random-scripts/system-menu/tv-power-menu.sh

19 lines
310 B
Bash
Raw Normal View History

2023-12-20 20:21:40 -08:00
#!/usr/bin/env zsh
choice="$(fuzzel --index -d <<'EOF'
Enable
Disable
EOF
)"
if (( ${?} != 0 )) || (( "${choice}" == -1 )); then
exit 0
fi
case "${choice}" in
0)
2024-08-06 20:45:20 -07:00
wlr-randr --output DP-3 --mode 1920x1080@60 --scale 1 --on
2023-12-20 20:21:40 -08:00
;;
1)
2024-08-06 20:45:20 -07:00
wlr-randr --output DP-3 --off
2023-12-20 20:21:40 -08:00
;;
esac