feat(swayidle & lock): added configs and documentation

This commit is contained in:
Sergio Laín 2023-11-19 00:38:42 +01:00
parent b3f34fe419
commit ca9cb81e9a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
11 changed files with 85 additions and 58 deletions

View file

@ -27,7 +27,7 @@ udiskie &
devify &
# Idle daemon to screen lock
/home/matt/.config/sway/idle.sh &
swayidle &
# Clipboard
wl-clip-persist --clipboard regular &

View file

@ -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'

View file

@ -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 \
"$@"

3
.config/swayidle/.github/README.md vendored Normal file
View file

@ -0,0 +1,3 @@
<div align="center">
<a href=""><img src="./title.png"></a>
</div>

BIN
.config/swayidle/.github/title.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

3
.config/swayidle/config Normal file
View file

@ -0,0 +1,3 @@
timeout 10 'swaylock -f --grace 12 --fade-in 10'
before-sleep 'pgrep swaylock || swaylock -f --fade-in 0 && true'

3
.config/swaylock/.github/README.md vendored Normal file
View file

@ -0,0 +1,3 @@
<div align="center">
<a href=""><img src="./title.png"></a>
</div>

BIN
.config/swaylock/.github/title.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

50
.config/swaylock/config Normal file
View file

@ -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

View file

@ -14,7 +14,7 @@ if [[ "$?" == 0 ]]; then
elif [[ "$1" == 'lock' ]]; then
pkill wleave
sleep 0.5s
~/.config/sway/lock.sh
swaylock
elif [[ "$1" == 'suspend' ]]; then
playerctl --all-players stop
pkill wleave

4
.github/README.md vendored
View file

@ -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)