2020-03-22 13:58:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Toggles the LARBS welcome message.
|
|
|
|
|
2020-04-04 19:52:29 +00:00
|
|
|
PIC="$XDG_DATA_HOME/larbs/larbs.png"
|
2020-03-22 13:58:59 +00:00
|
|
|
|
|
|
|
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." )
|