2015-03-03 11:29:54 -05:00
|
|
|
#!/bin/zsh
|
|
|
|
if [ "$1" = "lock" ];then
|
2015-03-12 16:54:37 -04:00
|
|
|
#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
|
2015-04-19 11:14:16 -04:00
|
|
|
while [ ! "$PASSWORD" = "a" ];do export PASSWORD=$((rofi -dmenu $(i3-color-rofi))</dev/null);done
|
2015-03-12 16:54:37 -04:00
|
|
|
xinput set-prop $MOUSE "Device Enabled" 1
|
|
|
|
xinput set-prop $TRACK "Device Enabled" 1
|
|
|
|
#synclient TouchpadOff=0
|
2015-03-03 11:29:54 -05:00
|
|
|
fi
|
|
|
|
if [ "$1" = "pass" ];then
|
2015-04-13 08:12:43 -04:00
|
|
|
pass -c $(ls ~/.password-store/*/*|cut -b-37 --complement|rofi -dmenu $(i3-color-rofi)|sed -e 's/\.gpg//')
|
2015-03-03 11:29:54 -05:00
|
|
|
fi
|
|
|
|
if [ "$1" = "screensaver" ];then
|
|
|
|
cat /tmp/noss||i3lock -di `shuf -n1 -e ~/.i3/wall/*`
|
|
|
|
fi
|
|
|
|
if [ "$1" = "wall" ];then
|
|
|
|
#if [[ -d ~/.i3/wallOM ]];then feh --bg-scale "`shuf -n1 -e ~/.i3/wallOM/*`";else feh --bg-scale "`shuf -n1 -e ~/.i3/wall/*`";fi;
|
2015-04-02 23:32:32 -04:00
|
|
|
feh --bg-scale "$(shuf -n1 -e ~/.i3/wallOM/*)"
|
|
|
|
#feh --bg-scale ~/.i3/wall/fbfKNDk.png
|
2015-03-03 11:29:54 -05:00
|
|
|
fi
|
2015-04-27 08:21:16 -04:00
|
|
|
if [ "$1" = "swap" ];then
|
|
|
|
python << EOF
|
|
|
|
import i3
|
|
|
|
swap = [output for output in i3.get_outputs() if output['active']]
|
|
|
|
if len(swap) == 2:
|
|
|
|
for output in swap:
|
|
|
|
i3.workspace(output['current_workspace'])
|
|
|
|
i3.command('move', 'workspace to output right')
|
|
|
|
EOF
|
|
|
|
fi
|
2015-06-23 20:26:25 -04:00
|
|
|
if [ "$1" = "boot" ];then
|
|
|
|
/usr/bin/xset -b
|
|
|
|
/usr/bin/xset +fp /usr/share/fonts/X11/misc
|
|
|
|
/usr/bin/xset +fp /usr/share/fonts/X11/Type1
|
|
|
|
/usr/bin/xset +fp built-ins
|
2015-07-16 16:51:57 -04:00
|
|
|
/usr/bin/xset s off
|
|
|
|
/usr/bin/xset -dpms
|
2015-06-23 20:26:25 -04:00
|
|
|
/usr/local/bin/i3||/usr/bin/i3
|
|
|
|
fi
|