Minor improvements

This commit is contained in:
Austen Adler 2015-03-03 11:37:40 -05:00
parent d0a652e6d5
commit 63e2c183b6
2 changed files with 3 additions and 3 deletions

View File

@ -88,8 +88,8 @@ bindsym $mod+shift+Return exec uxterm -e "cd `xcwd`&&/bin/zsh"
bindsym $mod+shift+c kill
bindsym $mod+c move absolute position center
bindsym $mod+F1 exec "~/.i3/run.sh lock"
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10 -time 0 -steps 1"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10 -time 0 -steps 1"
bindsym XF86MonBrightnessUp exec "xbacklight -inc 5 -time 0 -steps 1"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 5 -time 0 -steps 1"
bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')"
bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+ unmute"
bindsym XF86AudioLowerVolume exec "amixer set Master 5%- unmute"

View File

@ -1,7 +1,7 @@
#!/bin/zsh
if [ "$1" = "lock" ];then
synclient TouchpadOff=1
while [ ! "$PASSWORD" = "a" ];do export PASSWORD=$(echo|dmenu -p Type\ a:);done
while [ ! "$PASSWORD" = "a" ];do export PASSWORD=$(echo|dmenu -p Locked);done
synclient TouchpadOff=0
fi
if [ "$1" = "pass" ];then