Fix >dark >light actions for multimonitors (#332)

This commit is contained in:
end-4
2024-03-15 13:15:14 +07:00
committed by GitHub
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ "$1" == "--noswitch" ]; then if [ "$1" == "--noswitch" ]; then
imgpath=$(swww query | awk -F 'image: ' '{print $2}') imgpath=$(swww query | awk -F 'image: ' '{print $2}'| head -n 1)
# imgpath=$(ags run-js 'wallpaper.get(0)') # imgpath=$(ags run-js 'wallpaper.get(0)')
else else
# Select and set image (hyprland) # Select and set image (hyprland)