|
|
|
@ -11,8 +11,8 @@ monitor_outputs=($(ls "$cache_dir")) |
|
|
|
# Initialize a flag to determine if the ln command was executed |
|
|
|
# Initialize a flag to determine if the ln command was executed |
|
|
|
ln_success=false |
|
|
|
ln_success=false |
|
|
|
|
|
|
|
|
|
|
|
# Get first valid monitor |
|
|
|
# Get current focused monitor |
|
|
|
current_monitor=$(hyprctl -j monitors | jq -r '.[0].name') |
|
|
|
current_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') |
|
|
|
echo $current_monitor |
|
|
|
echo $current_monitor |
|
|
|
# Construct the full path to the cache file |
|
|
|
# Construct the full path to the cache file |
|
|
|
cache_file="$cache_dir$current_monitor" |
|
|
|
cache_file="$cache_dir$current_monitor" |
|
|
|
|