add scripts and config
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
MONON(){
|
||||
hyprctl keyword monitor DP-2,2560x1440@165,0x0,1
|
||||
}
|
||||
|
||||
MONOFF(){
|
||||
hyprctl keyword monitor DP-2,disable
|
||||
}
|
||||
|
||||
MONTEMP=$(hyprctl monitors | grep "(ID 1)")
|
||||
|
||||
if [[ $MONTEMP = "Monitor DP-2 (ID 1):" ]]; then
|
||||
MONOFF
|
||||
else
|
||||
MONON
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user