✨ feat(swayidle & lock): added configs and documentation
This commit is contained in:
parent
b3f34fe419
commit
ca9cb81e9a
11 changed files with 85 additions and 58 deletions
|
@ -27,7 +27,7 @@ udiskie &
|
||||||
devify &
|
devify &
|
||||||
|
|
||||||
# Idle daemon to screen lock
|
# Idle daemon to screen lock
|
||||||
/home/matt/.config/sway/idle.sh &
|
swayidle &
|
||||||
|
|
||||||
# Clipboard
|
# Clipboard
|
||||||
wl-clip-persist --clipboard regular &
|
wl-clip-persist --clipboard regular &
|
||||||
|
|
|
@ -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'
|
|
|
@ -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
3
.config/swayidle/.github/README.md
vendored
Normal 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
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
3
.config/swayidle/config
Normal 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
3
.config/swaylock/.github/README.md
vendored
Normal 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
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
50
.config/swaylock/config
Normal 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
|
|
@ -1,28 +1,28 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$?" == 0 ]]; then
|
if [[ "$?" == 0 ]]; then
|
||||||
sleep 0.25s
|
sleep 0.25s
|
||||||
if [[ "$1" == 'shutdown' ]]; then
|
if [[ "$1" == 'shutdown' ]]; then
|
||||||
systemctl poweroff
|
systemctl poweroff
|
||||||
elif [[ "$1" == 'reboot' ]]; then
|
elif [[ "$1" == 'reboot' ]]; then
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
elif [[ "$1" == 'hibernate' ]]; then
|
elif [[ "$1" == 'hibernate' ]]; then
|
||||||
playerctl --all-players stop
|
playerctl --all-players stop
|
||||||
pkill wleave
|
pkill wleave
|
||||||
sleep 0.5s
|
sleep 0.5s
|
||||||
systemctl suspend-then-hibernate
|
systemctl suspend-then-hibernate
|
||||||
elif [[ "$1" == 'lock' ]]; then
|
elif [[ "$1" == 'lock' ]]; then
|
||||||
pkill wleave
|
pkill wleave
|
||||||
sleep 0.5s
|
sleep 0.5s
|
||||||
~/.config/sway/lock.sh
|
swaylock
|
||||||
elif [[ "$1" == 'suspend' ]]; then
|
elif [[ "$1" == 'suspend' ]]; then
|
||||||
playerctl --all-players stop
|
playerctl --all-players stop
|
||||||
pkill wleave
|
pkill wleave
|
||||||
sleep 0.5s
|
sleep 0.5s
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
elif [[ "$1" == 'logout' ]]; then
|
elif [[ "$1" == 'logout' ]]; then
|
||||||
hyprctl dispatch exit none
|
hyprctl dispatch exit none
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
4
.github/README.md
vendored
4
.github/README.md
vendored
|
@ -48,8 +48,8 @@ Here is some _small_ information about my setup:
|
||||||
- **Firewall**: [ufw](https://wiki.archlinux.org/title/ufw)
|
- **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))
|
- **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)
|
- **Wallpaper Switcher**: [swww](https://github.com/Horus645/swww)
|
||||||
- **Lock Screen**: [swaylock-effects](https://github.com/mortie/swaylock-effects) ([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/sway/)) :gear:
|
- **Idle Timeout**: [swayidle](https://github.com/swaywm/swayidle) ([Config](../.config/swayidle/)) :gear:
|
||||||
- **Color Picker**: [Hyprpicker](https://github.com/hyprwm/hyprpicker)
|
- **Color Picker**: [Hyprpicker](https://github.com/hyprwm/hyprpicker)
|
||||||
- **Recording Tool**: [wf-recorder](https://github.com/ammen99/wf-recorder)
|
- **Recording Tool**: [wf-recorder](https://github.com/ammen99/wf-recorder)
|
||||||
- **Screenshot Tool**: [Hyprshot](https://github.com/Gustash/Hyprshot)
|
- **Screenshot Tool**: [Hyprshot](https://github.com/Gustash/Hyprshot)
|
||||||
|
|
Loading…
Add table
Reference in a new issue