diff options
Diffstat (limited to '.local/bin/setbg')
-rwxr-xr-x | .local/bin/setbg | 2 |
1 files changed, 1 insertions, 1 deletions
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 |