dotfiles/i3/things/lid-close.sh

8 lines
132 B
Bash
Raw Normal View History

2023-11-20 00:48:36 -06:00
#/usr/bin/env bash
source $HOME/.Xdbus
grep -q closed /proc/acpi/button/lid/LID0/state
if [ $? = 0 ]; then
i3lock -c 202f56
fi