diff --git a/.config/i3/LockScreen.png b/.config/i3/LockScreen.png deleted file mode 100644 index 1cc0c34..0000000 Binary files a/.config/i3/LockScreen.png and /dev/null differ diff --git a/.config/i3/lock.sh b/.config/i3/lock.sh index 56021ed..bcfc969 100755 --- a/.config/i3/lock.sh +++ b/.config/i3/lock.sh @@ -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}"