add scripts, mostly taken from LARBS

This commit is contained in:
Tibeuleu
2024-03-06 11:35:50 +01:00
parent daa93aadf5
commit 8160de0f74
43 changed files with 939 additions and 22 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Toggles the LARBS welcome message.
PIC="${XDG_DATA_HOME:-$HOME/.local/share}/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" &&
notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." )