mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-30 19:19:37 +01:00
10 lines
220 B
Bash
Executable File
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
|