Update lock command to use i3lock over i3lock-fancy

This commit is contained in:
Ethan Lane 2025-04-20 13:05:13 +01:00
parent 47fd2da912
commit db0ad5baf3
3 changed files with 7 additions and 5 deletions

View file

@ -71,7 +71,7 @@ bindsym $mod+s exec --no-startup-id flameshot gui -p ~/Pictures/captures --clipb
bindsym $mod+f exec --no-startup-id firefox
bindsym $mod+u exec --no-startup-id autorandr -c
bindsym $mod+Shift+f exec --no-startup-id firefox --private-window
bindsym $mod+Shift+z exec --no-startup-id i3lock-fancy -g -t "System Locked" -f Hack-Regular
bindsym $mod+Shift+z exec --no-startup-id i3lock --color 000000
# =====
# start a terminal

View file

@ -11,7 +11,6 @@ gnome-keyring
hyfetch
i3-wm
i3lock
i3lock-fancy
keepassxc
keepmenu
less

View file

@ -1,10 +1,13 @@
#!/bin/bash
option=$(printf "sleep\nlogout\nshutdown\nrestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
option=$(printf "lock\nsleep\nlogout\nshutdown\nrestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
if [ "$option" = "sleep" ];
if [ "$option" = "lock" ];
then
i3lock-fancy -g -t "System Locked" -f Hack-Regular
i3lock --color 000000
elif [ "$option" = "sleep" ];
then
i3lock --color 000000
systemctl suspend
elif [ "$option" = "logout" ];
then