diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-05-09 23:12:25 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-09 23:12:25 +0900 |
| commit | a3994cc8edd41fa42dfe1a6f22754dcdcc3d1e51 (patch) | |
| tree | d7c3a5611522f5c485614fbd62334a28e5b74253 /config/hypr/scripts/PywalSwww.sh | |
| parent | 472661662b29ec932f017e44a36a63b0dc61ac38 (diff) | |
| parent | 42430346d8e9bd491f349a12e28f2d8299ae601b (diff) | |
Merge branch 'development' into main
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" |
