dotfiles/scripts/toggle-monitor
2023-12-26 00:14:07 +03:00

10 lines
220 B
Bash
Executable File

#!/bin/bash
monitor=$(hyprctl -j monitors | jq '.[] | select(.name == "eDP-1") | .id')
if [[ $monitor == "" ]]; then
hyprctl keyword monitor eDP-1,preferred,0x1107,2.0
else
hyprctl keyword monitor eDP-1,disable
fi