18 lines
634 B
Bash
Executable File
18 lines
634 B
Bash
Executable File
#!/bin/zsh
|
|
if [ "$1" = "lock" ];then
|
|
synclient TouchpadOff=1
|
|
while [ ! "$PASSWORD" = "a" ];do export PASSWORD=$(echo|dmenu -p Locked);done
|
|
synclient TouchpadOff=0
|
|
fi
|
|
if [ "$1" = "pass" ];then
|
|
pass -c $(ls ~/.password-store/*/*|cut -b-37 --complement|dmenu -l 5|sed -e 's/\.gpg//')
|
|
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;
|
|
#feh --bg-scale "$(shuf -n1 -e ~/.i3/wallOM/*)"
|
|
feh --bg-scale ~/.i3/wall/fbfKNDk.png
|
|
fi
|