summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-08-13 20:23:22 -0700
committerxyz <gky44px1999@gmail.com>2021-08-13 20:23:22 -0700
commitceb390c840788a8db4238e8c8bc6e0b996290798 (patch)
treeee402540d64c977aeb0230c1f0979285d3687b2a /.config
parenta5b58972bfcea12b608871f7d4c9a147943f3320 (diff)
export XDG_XXX_DIR env var in user-dirs.dirs, refactor
Diffstat (limited to '.config')
-rw-r--r--.config/sxhkd/sxhkdrc2
-rwxr-xr-x.config/sxiv/exec/key-handler2
2 files changed, 2 insertions, 2 deletions
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 421e4ec6..528ddcdc 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -1,7 +1,7 @@
# vim: ft=sh
alt + Print
- ffmpeg -f x11grab -i "$DISPLAY" -vframes 1 "$HOME/pictures/screenshots/$(time.uuid)".png
+ ffmpeg -f x11grab -i "$DISPLAY" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid)".png
XF86Audio{RaiseVolume,LowerVolume,Mute}
amixer set Master {5%+,5%-,toggle}
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index bfad867f..1077b731 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -38,7 +38,7 @@ flip() {
linkwall() {
tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do
- walldir="$HOME/pictures/wallpapers/"
+ walldir="$XDG_PICTURES_DIR/wallpapers/"
name=$(basename "$file")
if [ ! -e "$walldir$name" ]; then
convwall "$file" "$walldir$name" || ln -s "$file" "$walldir"