diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-04 10:38:27 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-04 10:38:27 +0200 |
commit | cbf39f1eca98c607aa3280c162966705eb536aba (patch) | |
tree | e29428ab3be791d30abba2c95fa3320f02e9716d /bin/guiscripts/newwal | |
parent | 5067419bd566d795d3f0b4269bbf425b4a28a14c (diff) |
use variable for wal cache directory
Diffstat (limited to 'bin/guiscripts/newwal')
-rwxr-xr-x | bin/guiscripts/newwal | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal index 5c8f371..462e1fd 100755 --- a/bin/guiscripts/newwal +++ b/bin/guiscripts/newwal @@ -3,6 +3,8 @@ which swaybg wal identify > /dev/null || exit 1 wall="$HOME/pics/wallpaper" +wdir="$HOME/.cache/wal" +test -d "$wdir" || exit 1 wal="$(find $HOME/pics/wallpapers -type f | xargs identify | grep 1920x1080 | @@ -16,7 +18,7 @@ wal -c wal -i "$wall" # foot -. "$HOME/.cache/wal/colors.sh" +. "$wdir/colors.sh" cat <<EOF | tr -d '#' > "$HOME/.config/foot/colors" [colors] foreground = $foreground @@ -42,6 +44,6 @@ bright7 = $color15 EOF # waybar +ln -sf "$wdir/colors-waybar.css" "$HOME/.config/waybar/colors.css" pkill waybar -ln -sf "$HOME/.cache/wal/colors-waybar.css" "$HOME/.config/waybar/colors.css" waybar & |