dotfiles/scripts/toggle-monitor

10 lines
220 B
Plaintext
Raw Normal View History

2023-12-25 22:14:07 +01:00
#!/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