qwdhjqiowdqiowjd
This commit is contained in:
9
modules/hypr/screenOFF
Executable file
9
modules/hypr/screenOFF
Executable file
@@ -0,0 +1,9 @@
|
||||
|
||||
# Your main monitor (change this)
|
||||
MONITOR="DP-1"
|
||||
|
||||
# Create headless virtual display
|
||||
hyprctl output create headless
|
||||
|
||||
# Disable the monitor
|
||||
hyprctl keyword monitor $MONITOR,disable
|
||||
12
modules/hypr/screenON
Executable file
12
modules/hypr/screenON
Executable file
@@ -0,0 +1,12 @@
|
||||
|
||||
# Your main monitor (change this)
|
||||
MONITOR="DP-1"
|
||||
|
||||
# Turn monitor back on (you may want to change these options)
|
||||
hyprctl keyword monitor $MONITOR,highrr,auto,1
|
||||
|
||||
# Get name of headless display
|
||||
HEADLESS=$(hyprctl -j monitors | jq -r '.[] | select(.name | test("HEADLESS-"; "i")).name')
|
||||
|
||||
# Remove headless virtual display
|
||||
hyprctl output remove "$HEADLESS"
|
||||
Reference in New Issue
Block a user