Finally made swayidle and swaylock work lol

This commit is contained in:
vib 2023-02-27 12:17:02 +02:00
parent f72f489403
commit 5e8983a9cf
4 changed files with 35 additions and 5 deletions

View file

@ -29,6 +29,7 @@ then
goconfig dunst
goconfig foot
goconfig sway
goconfig swaylock
goconfig i3status-rust
goconfig nvim
goconfig ncmpcpp

View file

@ -28,9 +28,8 @@ output DP-1 bg ~/.local/share/wallpapers/bg2 fill
### Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
timeout 600 'swaylock & swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'
font terminus 8
smart_borders no_gaps

View file

@ -179,8 +179,7 @@ mode "resize" {
bindsym $mod+r mode "resize"
# Turn off all displays (useful on laptops)
bindsym $mod+Alt+c exec killall -SIGUSR1 swayidle
bindsym $mod+Alt+c exec sleep 1 && killall -SIGUSR1 swayidle
# Volume control
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%

31
swaylock/config Normal file
View file

@ -0,0 +1,31 @@
ignore-empty-password
image=~/.local/share/wallpapers/bg1
indicator-idle-visible
indicator-radius=150
indicator-thickness=30
inside-color=1d1f21
inside-clear-color=1d1f21
inside-ver-color=1d1f21
inside-wrong-color=1d1f21
key-hl-color=7aa6daaa
bs-hl-color=d54e53aa
separator-color=55555555
line-color=1d1f21
line-uses-ring
text-color=81a2be
text-clear-color=b5bd68
text-caps-lock-color=f0c674
text-ver-color=81a2be
text-wrong-color=cc6666
ring-color=81a2be55
ring-ver-color=81a2be
ring-clear-color=b5bd6811
ring-wrong-color=cc6666