summaryrefslogtreecommitdiffstats
path: root/.local/bin/i3cmds/toggle-welcome
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-03-22 09:58:59 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-03-22 09:58:59 -0400
commit51a2408e84b6f88f37808e4d23284882a3958b4b (patch)
tree839812c96a2841be7c27bed9fd243875c7b3b401 /.local/bin/i3cmds/toggle-welcome
parent787a627f5af661f31fb6d9ef6cdaf975db7bb7e7 (diff)
downloadeibhear-51a2408e84b6f88f37808e4d23284882a3958b4b.tar.gz
eibhear-51a2408e84b6f88f37808e4d23284882a3958b4b.tar.zst
eibhear-51a2408e84b6f88f37808e4d23284882a3958b4b.zip
toggle-welcome separate script
Diffstat (limited to '.local/bin/i3cmds/toggle-welcome')
-rwxr-xr-x.local/bin/i3cmds/toggle-welcome10
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/i3cmds/toggle-welcome b/.local/bin/i3cmds/toggle-welcome
new file mode 100755
index 0000000..715db09
--- /dev/null
+++ b/.local/bin/i3cmds/toggle-welcome
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Toggles the LARBS welcome message.
+
+PIC="$HOME/.local/share/larbs/larbs.png"
+
+grep LARBSWELCOME "$HOME/.xprofile" &&
+ ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send -i "$PIC" "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) ||
+ ( echo "notify-send -i \"$PIC\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile &&
+ notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." )