sway: setup swayidle

This commit is contained in:
2022-07-26 20:46:29 +03:00
parent 1097d4fb40
commit 153d0b5d13
3 changed files with 13 additions and 6 deletions

View File

@@ -1,9 +1,14 @@
#! /bin/bash
__lock() {
gtklock
gtklock -d
}
if [[ "$1" == "just-lock" ]]; then
__lock
exit
fi
amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l)
if [[ "$amount_of_outputs" == "1" ]]; then