From f4c4550e327d9090c82a735d39d104d0bedb602d Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 30 Mar 2025 01:00:51 -0400 Subject: Loads of laptop shit --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/setbg') diff --git a/.local/bin/setbg b/.local/bin/setbg index bfde81e..942c4e6 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -5,7 +5,7 @@ [ ! -f "$1" ] && exit [ -z "$(file "$1" | grep -o 'image data')" ] && exit -displays=$(xrandr | grep " connected" | sed 's/^\([a-Z,0-9,-]*\).*/\1/') +displays=$(wlr-randr --json | jq -r '.[] | select(.active) | .name') # Same as above but use dmenu only if there are multiple displays if [ "$(echo "$displays" | wc -l)" -gt 1 ]; then -- cgit v1.2.3