diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2024-05-09 13:50:51 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2024-05-09 13:50:51 +0900 |
| commit | 39ba3c402f2e86c3d7296fe6925f1bd896d0959e (patch) | |
| tree | 1c55ab0a52e5d4b9bd647b29923598aeb6edffa0 /config/hypr/scripts/PywalSwww.sh | |
| parent | 25cbdc6a01177a5da063458438cc9ea10271ec9f (diff) | |
Wallpaper Select and Auto wallpaper change Script updated to be able to set wallpaper on focused monitor only. NOTE: you need awk
Diffstat (limited to 'config/hypr/scripts/PywalSwww.sh')
| -rwxr-xr-x | config/hypr/scripts/PywalSwww.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh index 30a4d980..9f7b15b5 100755 --- a/config/hypr/scripts/PywalSwww.sh +++ b/config/hypr/scripts/PywalSwww.sh @@ -11,8 +11,8 @@ monitor_outputs=($(ls "$cache_dir")) # Initialize a flag to determine if the ln command was executed ln_success=false -# Get first valid monitor -current_monitor=$(hyprctl -j monitors | jq -r '.[0].name') +# Get current focused monitor +current_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') echo $current_monitor # Construct the full path to the cache file cache_file="$cache_dir$current_monitor" |
