Update toggle-welcome

This commit is contained in:
Vlad Doster 2020-05-18 23:27:59 -05:00 committed by GitHub
parent 7e814572cf
commit 1eaaa3fc8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
PIC="${XDG_DATA_HOME}/larbs/larbs.png"
grep LARBSWELCOME "$XDG_CONFIG_HOME/xprofile" &&
( sed -i "/LARBSWELCOME/d" "$XDG_CONFIG_HOME/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" >> "$XDG_CONFIG_HOME/xprofile" &&
grep LARBSWELCOME "${XDG_CONFIG_HOME}/xprofile" &&
( sed -i "/LARBSWELCOME/d" "${XDG_CONFIG_HOME}/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" >> "${XDG_CONFIG_HOME}/xprofile" &&
notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." )