From 5e8983a9cf7569add5b641c69fcade71d4aca4f4 Mon Sep 17 00:00:00 2001 From: vib Date: Mon, 27 Feb 2023 12:17:02 +0200 Subject: [PATCH] Finally made swayidle and swaylock work lol --- install.sh | 1 + sway/config | 5 ++--- sway/config.d/keybinds.conf | 3 +-- swaylock/config | 31 +++++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 swaylock/config diff --git a/install.sh b/install.sh index 0d2c4c9..0e9737d 100755 --- a/install.sh +++ b/install.sh @@ -29,6 +29,7 @@ then goconfig dunst goconfig foot goconfig sway + goconfig swaylock goconfig i3status-rust goconfig nvim goconfig ncmpcpp diff --git a/sway/config b/sway/config index f9ca6d8..e75af60 100644 --- a/sway/config +++ b/sway/config @@ -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 diff --git a/sway/config.d/keybinds.conf b/sway/config.d/keybinds.conf index 8ccc986..96980b2 100644 --- a/sway/config.d/keybinds.conf +++ b/sway/config.d/keybinds.conf @@ -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% diff --git a/swaylock/config b/swaylock/config new file mode 100644 index 0000000..64e9477 --- /dev/null +++ b/swaylock/config @@ -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