1
0
mirror of https://github.com/sahinakkaya/dotfiles.git synced 2025-04-07 12:02:06 +02:00
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