From 74c769c27b306e3f5bd8997417ae817847b9d623 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 19 Mar 2020 18:32:18 -0400 Subject: [PATCH] Add beginning of wal setup --- feh/.config/wal/hooks/00-feh.sh | 3 +++ wal/bin/run-wal-hooks.sh | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100755 feh/.config/wal/hooks/00-feh.sh create mode 100755 wal/bin/run-wal-hooks.sh diff --git a/feh/.config/wal/hooks/00-feh.sh b/feh/.config/wal/hooks/00-feh.sh new file mode 100755 index 0000000..21d5761 --- /dev/null +++ b/feh/.config/wal/hooks/00-feh.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +feh --bg-fill "$(cat $HOME/.cache/wal/wal)" diff --git a/wal/bin/run-wal-hooks.sh b/wal/bin/run-wal-hooks.sh new file mode 100755 index 0000000..801dd5e --- /dev/null +++ b/wal/bin/run-wal-hooks.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# This script runs hooks found in $HOME/.config/wal/hooks. +# It's meant to be passed to wal as follows: wal -i /path/to/img -o run-wal-hooks.sh + +for f in $(find "$HOME/.config/wal/hooks/" -maxdepth 1 -type f | sort); do + bash "$f" +done