mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-04 11:19:06 +03:00
Add custom scripts
This commit is contained in:
9
scripts/toggle-monitor
Executable file
9
scripts/toggle-monitor
Executable file
@ -0,0 +1,9 @@
|
||||
#!/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
|
Reference in New Issue
Block a user