toggle-welcome separate script
This commit is contained in:
parent
787a627f5a
commit
51a2408e84
2 changed files with 11 additions and 1 deletions
|
@ -230,7 +230,7 @@ bindsym $mod+F9 exec --no-startup-id dmenumount
|
||||||
bindsym $mod+F10 exec --no-startup-id dmenuumount
|
bindsym $mod+F10 exec --no-startup-id dmenuumount
|
||||||
bindsym $mod+F11 exec --no-startup-id ducksearch
|
bindsym $mod+F11 exec --no-startup-id ducksearch
|
||||||
bindsym $mod+F12 exec $term -e nmtui
|
bindsym $mod+F12 exec $term -e nmtui
|
||||||
bindsym $mod+Shift+F1 exec --no-startup-id grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i \"$HOME/.local/share/larbs/larbs.png\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." )
|
bindsym $mod+Shift+F1 exec --no-startup-id toggle-welcome
|
||||||
|
|
||||||
# #---Arrow Keys---# #
|
# #---Arrow Keys---# #
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
|
|
10
.local/bin/i3cmds/toggle-welcome
Executable file
10
.local/bin/i3cmds/toggle-welcome
Executable 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." )
|
Loading…
Reference in a new issue