Removed commit history
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
commit
b1335a3628
199 changed files with 36930 additions and 0 deletions
9
home/Scripts/lidclose.sh
Executable file
9
home/Scripts/lidclose.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue