mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-11-22 16:49:37 +01:00
10 lines
220 B
Plaintext
10 lines
220 B
Plaintext
|
#!/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
|