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

@ -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