Handy dot files with sensible bindings and settings
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
251 B

#!/bin/bash
if grep open /proc/acpi/button/lid/LID/state; then
hyprctl keyword monitor "eDP-1, preferred, auto, 1"
else
if [[ `hyprctl monitors | grep "Monitor" | wc -l` != 1 ]]; then
hyprctl keyword monitor "eDP-1, disable"
fi
fi