From 82cf021b78d235ca98df61d4ce55d4c0969c2e5f Mon Sep 17 00:00:00 2001 From: Dennis Lee Date: Sat, 4 Apr 2020 12:55:06 -0700 Subject: substitute ~/.local/share with $XDG_DATA_HOME --- .local/bin/statusbar/help | 2 +- .local/bin/statusbar/mailbox | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/statusbar') diff --git a/.local/bin/statusbar/help b/.local/bin/statusbar/help index d7345dc..d58f5cc 100755 --- a/.local/bin/statusbar/help +++ b/.local/bin/statusbar/help @@ -1,7 +1,7 @@ #!/bin/sh case $BLOCK_BUTTON in - 1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;; + 1) groff -mom $XDG_DATA_HOME/larbs/readme.mom -Tpdf | zathura - ;; 2) i3 restart ;; 3) pgrep -x dunst >/dev/null && notify-send "❓ Help module" "\- Left click to open LARBS guide. - Middle click to refresh i3.";; diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox index 3ace5f5..72d4511 100755 --- a/.local/bin/statusbar/mailbox +++ b/.local/bin/statusbar/mailbox @@ -13,7 +13,7 @@ case $BLOCK_BUTTON in - Middle click syncs mail" ;; esac -unread="$(find ~/.local/share/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)" +unread="$(find $XDG_DATA_HOME/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)" icon="$(cat "/tmp/imapsyncicon_$USER")" -- cgit v1.3.1