From f9a00a7961bc1ea850a21ebe70363da86a6aebdb Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 9 Aug 2024 00:29:56 -0400 Subject: Trim fat on makewall script --- .local/bin/makewall | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/makewall b/.local/bin/makewall index 991fa11..614d030 100755 --- a/.local/bin/makewall +++ b/.local/bin/makewall @@ -1,9 +1,6 @@ #!/bin/sh -wallDir="$XDG_CONFIG_HOME/wallpapers" - -# Reset any existing wallpapers -killall swaybg +wallDir="${XDG_CONFIG_HOME:-$HOME}/wallpapers" # Acquire the list of connected displays displays="$(wlr-randr --json | jq -r '.[] | select(.enabled) | .name')" @@ -18,11 +15,9 @@ setDisplay() { case $(ls $wallDir) in *"$1"*) wall=$(ls $wallDir | grep "$1" | head -n 1) - # xwallpaper --output $1 --zoom $wallDir/$wall ;; *) wall=$(ls $wallDir | grep "default" | head -n 1) - # xwallpaper --output $1 --zoom $wallDir/$wall ;; esac swaybg --output $1 -m fill --image $wallDir/$wall & -- cgit v1.2.3