Update lock command to use i3lock over i3lock-fancy
This commit is contained in:
parent
47fd2da912
commit
db0ad5baf3
3 changed files with 7 additions and 5 deletions
|
@ -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+f exec --no-startup-id firefox
|
||||||
bindsym $mod+u exec --no-startup-id autorandr -c
|
bindsym $mod+u exec --no-startup-id autorandr -c
|
||||||
bindsym $mod+Shift+f exec --no-startup-id firefox --private-window
|
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
|
# start a terminal
|
||||||
|
|
|
@ -11,7 +11,6 @@ gnome-keyring
|
||||||
hyfetch
|
hyfetch
|
||||||
i3-wm
|
i3-wm
|
||||||
i3lock
|
i3lock
|
||||||
i3lock-fancy
|
|
||||||
keepassxc
|
keepassxc
|
||||||
keepmenu
|
keepmenu
|
||||||
less
|
less
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
#!/bin/bash
|
#!/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
|
then
|
||||||
i3lock-fancy -g -t "System Locked" -f Hack-Regular
|
i3lock --color 000000
|
||||||
|
elif [ "$option" = "sleep" ];
|
||||||
|
then
|
||||||
|
i3lock --color 000000
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
elif [ "$option" = "logout" ];
|
elif [ "$option" = "logout" ];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue