summaryrefslogtreecommitdiffstats
path: root/.local/bin/i3cmds
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-08 17:21:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-08 17:21:40 -0400
commit422d106fbab5505f3810fa845f4f71547c7a4332 (patch)
treef6a04c7eabbad04e7c11b3da8e683e69b9df5da2 /.local/bin/i3cmds
parent2c06dd36c61dea7383d2a12900eb83ee1751115a (diff)
downloadeibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.gz
eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.zst
eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.zip
assume default values if xdg dirs not set
Diffstat (limited to '.local/bin/i3cmds')
-rwxr-xr-x.local/bin/i3cmds/toggle-welcome2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/i3cmds/toggle-welcome b/.local/bin/i3cmds/toggle-welcome
index d8cc0ef..1f08eb1 100755
--- a/.local/bin/i3cmds/toggle-welcome
+++ b/.local/bin/i3cmds/toggle-welcome
@@ -2,7 +2,7 @@
# Toggles the LARBS welcome message.
-PIC="$XDG_DATA_HOME/larbs/larbs.png"
+PIC="${XDG_DATA_HOME:$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." ) ||