aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/PywalSwww.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/PywalSwww.sh')
-rwxr-xr-xconfig/hypr/scripts/PywalSwww.sh4
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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage