diff --git a/.config/hypr/scripts/autostart b/.config/hypr/scripts/autostart index 569e173a..dd4604c6 100755 --- a/.config/hypr/scripts/autostart +++ b/.config/hypr/scripts/autostart @@ -27,7 +27,7 @@ udiskie & devify & # Idle daemon to screen lock -/home/matt/.config/sway/idle.sh & +swayidle & # Clipboard wl-clip-persist --clipboard regular & diff --git a/.config/sway/idle.sh b/.config/sway/idle.sh deleted file mode 100755 index 112e49cc..00000000 --- a/.config/sway/idle.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -swayidle -w -d \ - timeout 600 '~/.config/sway/lock.sh -f --grace 12 --fade-in 10' \ - before-sleep 'pgrep swaylock || ~/.config/sway/lock.sh -f --fade-in 0 && true' diff --git a/.config/sway/lock.sh b/.config/sway/lock.sh deleted file mode 100755 index ffd96ab2..00000000 --- a/.config/sway/lock.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -swaylock --screenshots --clock --indicator-idle-visible \ - --indicator-radius 100 \ - --indicator-thickness 12 \ - --ignore-empty-password \ - --ring-color 494d64 \ - --key-hl-color ed8796 \ - --text-color b7bdf8 \ - --line-color b7bdf8 \ - --inside-color 24273a \ - --separator-color b7bdf8 \ - --inside-ver-color 8bd5ca \ - --inside-wrong-color ed8796 \ - --line-ver-color 8bd5ca \ - --ring-ver-color 8bd5ca \ - --line-wrong-color ed8796 \ - --ring-wrong-color ed8796 \ - --text-caps-lock-color f5a97f \ - --ring-clear-color c6a0f6 \ - --line-clear-color c6a0f6 \ - --inside-clear-color c6a0f6 \ - --text-clear-color 24273a \ - --fade-in 0.5 \ - --effect-scale 0.5 --effect-blur 7x3 --effect-scale 2 \ - --effect-vignette 0.5:0.9 \ - "$@" diff --git a/.config/swayidle/.github/README.md b/.config/swayidle/.github/README.md new file mode 100644 index 00000000..affa9d51 --- /dev/null +++ b/.config/swayidle/.github/README.md @@ -0,0 +1,3 @@ +
+ +
diff --git a/.config/swayidle/.github/title.png b/.config/swayidle/.github/title.png new file mode 100644 index 00000000..dc17f60c Binary files /dev/null and b/.config/swayidle/.github/title.png differ diff --git a/.config/swayidle/config b/.config/swayidle/config new file mode 100644 index 00000000..78f5ffd5 --- /dev/null +++ b/.config/swayidle/config @@ -0,0 +1,3 @@ +timeout 10 'swaylock -f --grace 12 --fade-in 10' + +before-sleep 'pgrep swaylock || swaylock -f --fade-in 0 && true' diff --git a/.config/swaylock/.github/README.md b/.config/swaylock/.github/README.md new file mode 100644 index 00000000..affa9d51 --- /dev/null +++ b/.config/swaylock/.github/README.md @@ -0,0 +1,3 @@ +
+ +
diff --git a/.config/swaylock/.github/title.png b/.config/swaylock/.github/title.png new file mode 100644 index 00000000..a0a3ef42 Binary files /dev/null and b/.config/swaylock/.github/title.png differ diff --git a/.config/swaylock/config b/.config/swaylock/config new file mode 100644 index 00000000..b342ace9 --- /dev/null +++ b/.config/swaylock/config @@ -0,0 +1,50 @@ +ignore-empty-password +font=JetBrainsMono Nerd Font + +clock + +screenshots + +fade-in=0.5 + +effect-blur=7x3 +effect-scale=2 +effect-vignette=0.6:0.5 + +indicator-idle-visible +indicator-radius=100 +indicator-thickness=12 +indicator-caps-lock + +key-hl-color=ed8796 + +separator-color=00000000 + +inside-color=24273a +inside-clear-color=c6a0f6 +# inside-caps-lock-color=009ddc00 +inside-ver-color=8bd5ca +inside-wrong-color=ed8796 + +ring-color=494d64 +ring-clear-color=c6a0f6 +# ring-caps-lock-color=231f20D9 +ring-ver-color=8bd5ca +ring-wrong-color=ed8796 + +line-color=b7bdf8 +line-clear-color=c6a0f6 +# line-caps-lock-color=009ddcFF +line-ver-color=8bd5ca +line-wrong-color=ed8796 + +text-color=b7bdf8 +text-clear-color=24273a +text-ver-color=24273a +text-wrong-color=24273a + +# bs-hl-color=ee2e24FF +# caps-lock-key-hl-color=ffd204FF +# caps-lock-bs-hl-color=ee2e24FF +# disable-caps-lock-text +text-caps-lock-color=f5a97f diff --git a/.config/wleave/actions b/.config/wleave/actions index 4a932385..b2374eb3 100755 --- a/.config/wleave/actions +++ b/.config/wleave/actions @@ -1,28 +1,28 @@ #!/usr/bin/env bash if [[ "$?" == 0 ]]; then - sleep 0.25s - if [[ "$1" == 'shutdown' ]]; then - systemctl poweroff - elif [[ "$1" == 'reboot' ]]; then - systemctl reboot - elif [[ "$1" == 'hibernate' ]]; then - playerctl --all-players stop - pkill wleave - sleep 0.5s - systemctl suspend-then-hibernate - elif [[ "$1" == 'lock' ]]; then - pkill wleave - sleep 0.5s - ~/.config/sway/lock.sh - elif [[ "$1" == 'suspend' ]]; then - playerctl --all-players stop - pkill wleave - sleep 0.5s - systemctl suspend - elif [[ "$1" == 'logout' ]]; then - hyprctl dispatch exit none - fi + sleep 0.25s + if [[ "$1" == 'shutdown' ]]; then + systemctl poweroff + elif [[ "$1" == 'reboot' ]]; then + systemctl reboot + elif [[ "$1" == 'hibernate' ]]; then + playerctl --all-players stop + pkill wleave + sleep 0.5s + systemctl suspend-then-hibernate + elif [[ "$1" == 'lock' ]]; then + pkill wleave + sleep 0.5s + swaylock + elif [[ "$1" == 'suspend' ]]; then + playerctl --all-players stop + pkill wleave + sleep 0.5s + systemctl suspend + elif [[ "$1" == 'logout' ]]; then + hyprctl dispatch exit none + fi else - exit + exit fi diff --git a/.github/README.md b/.github/README.md index 1d30c6d8..e2d891a3 100644 --- a/.github/README.md +++ b/.github/README.md @@ -48,8 +48,8 @@ Here is some _small_ information about my setup: - **Firewall**: [ufw](https://wiki.archlinux.org/title/ufw) - **Clipboard Manager**: [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (with [cliphist](https://github.com/sentriz/cliphist)) - **Wallpaper Switcher**: [swww](https://github.com/Horus645/swww) -- **Lock Screen**: [swaylock-effects](https://github.com/mortie/swaylock-effects) ([Config](../.config/sway/)) :gear: -- **Idle Timeout**: [swayidle](https://github.com/swaywm/swayidle) ([Config](../.config/sway/)) :gear: +- **Lock Screen**: [swaylock-effects](https://github.com/mortie/swaylock-effects) ([Config](../.config/swaylock/)) :gear: +- **Idle Timeout**: [swayidle](https://github.com/swaywm/swayidle) ([Config](../.config/swayidle/)) :gear: - **Color Picker**: [Hyprpicker](https://github.com/hyprwm/hyprpicker) - **Recording Tool**: [wf-recorder](https://github.com/ammen99/wf-recorder) - **Screenshot Tool**: [Hyprshot](https://github.com/Gustash/Hyprshot)