Add tv-power-menu.sh
This commit is contained in:
18
system-menu/tv-power-menu.sh
Executable file
18
system-menu/tv-power-menu.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
choice="$(fuzzel --index -d <<'EOF'
|
||||
Enable
|
||||
Disable
|
||||
EOF
|
||||
)"
|
||||
if (( ${?} != 0 )) || (( "${choice}" == -1 )); then
|
||||
exit 0
|
||||
fi
|
||||
case "${choice}" in
|
||||
0)
|
||||
hyprctl keyword monitor 'DP-1,1920x1080@60,auto,1'
|
||||
;;
|
||||
1)
|
||||
hyprctl keyword monitor 'DP-1,disable'
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user