toggle-welcome separate script

This commit is contained in:
Luke Smith committed 2020-03-22 09:58:59 -04:00
1 parent 787a627f5a
commit 51a2408e84
2 files changed
+11 -1

No files matched your search

+10
View File
@@ -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." )