Actually let's not use images for the lock screen, it's too annoying

can't center or scale, so I'd have to manually make an image for each
computer. Maybe I'll get back to it later
This commit is contained in:
Adam Goldsmith 2017-10-31 17:07:27 -04:00
parent 9caea156e6
commit 301c02a43a
2 changed files with 10 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

View File

@ -3,7 +3,15 @@
lock() {
killall -SIGHUP gpg-agent
setxkbmap -option 'ctrl:nocaps' -option "shift:both_capslock"
i3lock -i /home/adam/.config/i3/LockScreen.png -ec222222
# needs i3lock-color
i3lock --ignore-empty-password --clock --indicator -f --color=222222 \
--textcolor=eeeeeeee --timecolor=eeeeeeee --datecolor=cccccccc \
--ringcolor=333333ff --line-uses-ring --insidecolor=00000000 \
--insidewrongcolor=00000000 --insidevercolor=00000000 \
--datestr="%Y-%m-%d $(hostname)"
# will work with normal i3lock
#i3lock -ec222222 -i /home/adam/.config/i3/LockScreen.png
}
case "$1" in
@ -26,7 +34,7 @@ case "$1" in
systemctl poweroff
;;
pick)
$0 $(echo -e "lock\nlogout\nsuspend\nhibernate\nreboot\nshutdown" | rofi -dmenu -i -bg '#222222' -fg '#cccccc' -fg-active '#ffffff')
$0 $(echo -e "lock\nlogout\nsuspend\nhibernate\nreboot\nshutdown" | rofi -dmenu -i)
;;
*)
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown|pick}"