Fix dpms slock issue
This commit is contained in:
parent
2654ad6194
commit
4f38365496
@ -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+9 move container to workspace 9
|
||||
bindsym $mod+shift+0 move container to workspace 10
|
||||
bindsym $mod+grave exec "slock"
|
||||
bindsym $mod+shift+grave exec "slock"
|
||||
bindsym $mod+grave exec "~/.i3/run.sh screen-lock"
|
||||
bindsym $mod+shift+grave exec "~/.i3/run.sh screen-lock"
|
||||
bindsym $mod+r mode "resize"
|
||||
bindsym $mod+u focus parent
|
||||
bindsym $mod+shift+u focus child
|
||||
|
20
i3/run.sh
20
i3/run.sh
@ -13,17 +13,6 @@ if [ "$1" = "lock" ];then
|
||||
xinput enable $ID
|
||||
echo "Touchpad enabled."
|
||||
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
|
||||
if [ "$1" = "pass" ];then
|
||||
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user