diff --git a/.config/i3/config b/.config/i3/config index b2d800b..55c691b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 diff --git a/.config/yadm/files/packages.txt b/.config/yadm/files/packages.txt index 3e5960f..c0f46fd 100644 --- a/.config/yadm/files/packages.txt +++ b/.config/yadm/files/packages.txt @@ -11,7 +11,6 @@ gnome-keyring hyfetch i3-wm i3lock -i3lock-fancy keepassxc keepmenu less diff --git a/scripts/system/power.sh b/scripts/system/power.sh index 65121b5..a48a9f7 100644 --- a/scripts/system/power.sh +++ b/scripts/system/power.sh @@ -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