Fix dpms slock issue

This commit is contained in:
Austen Adler 2016-07-01 13:47:08 -04:00
parent 2654ad6194
commit 4f38365496
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
2 changed files with 11 additions and 13 deletions

View File

@ -96,8 +96,8 @@ bindsym $mod+shift+7 move container to workspace 7
bindsym $mod+shift+8 move container to workspace 8 bindsym $mod+shift+8 move container to workspace 8
bindsym $mod+shift+9 move container to workspace 9 bindsym $mod+shift+9 move container to workspace 9
bindsym $mod+shift+0 move container to workspace 10 bindsym $mod+shift+0 move container to workspace 10
bindsym $mod+grave exec "slock" bindsym $mod+grave exec "~/.i3/run.sh screen-lock"
bindsym $mod+shift+grave exec "slock" bindsym $mod+shift+grave exec "~/.i3/run.sh screen-lock"
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
bindsym $mod+u focus parent bindsym $mod+u focus parent
bindsym $mod+shift+u focus child bindsym $mod+shift+u focus child

View File

@ -13,17 +13,6 @@ if [ "$1" = "lock" ];then
xinput enable $ID xinput enable $ID
echo "Touchpad enabled." echo "Touchpad enabled."
fi fi
##synclient TouchpadOff=1
#MOUSE=$(xinput list | grep Mouse | sed -e 's/.*id=//' | cut -f 1)
#TRACK=$(xinput list | grep 'TouchPad' | sed -e 's/.*id=//' | cut -f 1)
#xinput set-prop $MOUSE "Device Enabled" 0
#xinput set-prop $TRACK "Device Enabled" 0
##while [ ! "$PASSWORD" = "a" ];do export PASSWORD=$((rofi -dmenu)</dev/null);done
#xinput set-prop $MOUSE "Device Enabled" 1
#xinput set-prop $TRACK "Device Enabled" 1
##synclient TouchpadOff=0
fi fi
if [ "$1" = "pass" ];then if [ "$1" = "pass" ];then
pass -c $(ls ~/.password-store/*/*|cut -b-37 --complement|rofi -dmenu|sed -e 's/\.gpg//') pass -c $(ls ~/.password-store/*/*|cut -b-37 --complement|rofi -dmenu|sed -e 's/\.gpg//')
@ -60,3 +49,12 @@ if [ "$1" = "boot" ];then
/usr/bin/ck-launch-session /usr/bin/i3 /usr/bin/ck-launch-session /usr/bin/i3
fi fi
fi fi
if [ "$1" = "screen-lock" ];then
revert(){
xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM
xset +dpms dpms 5 5 5
slock
revert
fi