kjuulh
9d6cc15469
Add .config/sway/config Add .config/sway/config.d/application_defaults Add .config/sway/config.d/autostart_applications Add .config/sway/config.d/clamshell Add .config/sway/config.d/default Add .config/sway/config.d/input Add .config/sway/config.d/output Add .config/sway/config.d/theme Add .config/sway/keyboard.conf Add .config/sway/scripts/clamshell.sh Add .config/sway/scripts/import-gsettings Add .config/sway/scripts/lockman.sh Add .config/sway/scripts/screenshot.sh Add .config/sway/scripts/swayfader.py Add .config/sway/scripts/weather.sh Add .config/sway/sway.png Add .config/sway/swaylock.png
9 lines
186 B
Bash
9 lines
186 B
Bash
#!/usr/bin/bash
|
|
if [-d "/proc/acpi" ]; then
|
|
if cat /proc/acpi/button/lid/*/state | grep -q open; then
|
|
swaymsg output eDP-1 enable
|
|
else
|
|
swaymsg output eDP-1 disable
|
|
fi
|
|
fi
|