mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-22 06:44:41 +01:00
suspend might come in useful
This commit is contained in:
parent
90855d3f7e
commit
9fd93cd929
@ -106,6 +106,9 @@ bindsym $mod+r mode "resize"
|
||||
# Lock the computer
|
||||
bindsym $mod+l exec /bin/bash ~/.config/i3/scripts/i3lock.sh
|
||||
|
||||
# Lock the computer
|
||||
bindsym $mod+shift+l exec /bin/bash ~/.config/i3/scripts/suspend.sh
|
||||
|
||||
############################################
|
||||
# Application Keys #
|
||||
############################################
|
||||
|
9
i3/scripts/suspend.sh
Normal file
9
i3/scripts/suspend.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# check if locked
|
||||
if !(pgrep -x "i3lock" > /dev/null)
|
||||
then
|
||||
bash ~/.config/i3/scripts/i3lock.sh
|
||||
fi
|
||||
|
||||
systemctl suspend
|
Loading…
Reference in New Issue
Block a user