refactor(dotfiles): separate desktop configuration
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
monitor=$1
|
||||
state=$(hyprctl monitors all -j | jq -r ".[] | select(.name == \"$monitor\") | .disabled")
|
||||
if [ $state == "true" ]; then
|
||||
hyprctl keyword monitor $monitor,preferred
|
||||
else
|
||||
hyprctl keyword monitor $monitor,disable
|
||||
fi
|
||||
Reference in New Issue
Block a user