mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-08 13:10:37 +00:00
b1335a3628
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
10 lines
284 B
Bash
Executable File
10 lines
284 B
Bash
Executable File
#!/bin/bash
|
|
|
|
displays=$(xrandr | grep " connected" | wc -l)
|
|
if [ $displays -eq 1 ]; then
|
|
i3lock-fancy; echo "systemctl suspend" > /home/reekymarko/Scripts/suspendcommand
|
|
else
|
|
echo "won't suspend, external display connected"
|
|
echo " " > /home/reekymarko/Scripts/suspendcommand
|
|
fi
|