fix swaylock's red screen of death

ref: https://github.com/swaywm/sway/issues/7046

* update sheldon inline cmd to more reliably build swaylock-effects from
  sources
* add host-specific swaylock config
* rm image field from swaylock's config that was added there to prevent
  swaylock (swaylock-effects) from crashing when bluring the screenshot
This commit is contained in:
leo 2023-04-05 15:34:43 +02:00
parent b45d28b5b5
commit a2b688410f
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
4 changed files with 32 additions and 3 deletions

@ -27,7 +27,7 @@ inline = 'nuaerc() {cd ~/utils/sr.ht/\~rjarry/aerc || exit 1; git pull --all --p
[plugins.nuwlsunset]
inline = 'nuwlsunset() {cd ~/utils/sr.ht/wlsunset || exit 1; git pull --all; mkdir -pv build; meson build -Dprefix=~/.local --reconfigure && ninja -C build && ninja -C build install}'
[plugins.nuswaylock-effects]
inline = 'nuswaylock-effects() {cd ~/utils/swaylock-effects || exit 1; git pull --all --prune && meson -Dprefix=/usr/local --reconfigure build && ninja -C build && sudo ninja -C build install}'
inline = 'nuswaylock-effects() {cd ~/src/github.com/jirutka-swaylock-effects || ((mkdir -pv ~/src/github.com && git clone https://github.com/jirutka/swaylock-effects ~/src/github.com/jirutka-swaylock-effects) || (echo failed to enter project dir)) && cd ~/src/github.com/jirutka-swaylock-effects; git pull --all --prune && (meson -Dprefix=/usr build; meson setup -Dprefix=/usr --reconfigure build) && ninja -C build && sudo ninja -C build install}'
[plugins.nuhashcat]
inline = 'nuhashcat() {cd ~/utils/hashcat || exit 1; git pull --all --prune; make clean && sudo make install}'

@ -2,7 +2,11 @@
daemonize
screenshots
image=$HOME/Pictures/apod/2020-August-11-Churning-Clouds-on-Jupiter.jpg
# when https://github.com/jirutka/swaylock-effects (a7691b8) is compiled from
# source, the issue with the red screen of death
# (https://github.com/swaywm/sway/issues/7046) doesn't happen anymore and using
# an image in conjunction with screenshot becomes unnecessary (again).
#image=$HOME/Pictures/apod/2020-August-11-Churning-Clouds-on-Jupiter.jpg
clock
indicator-idle-visible
show-failed-attempts

@ -0,0 +1,25 @@
# vim: ft=config
daemonize
screenshots
# when https://github.com/jirutka/swaylock-effects (a7691b8) is compiled from
# source, the issue with the red screen of death
# (https://github.com/swaywm/sway/issues/7046) doesn't happen anymore and using
# an image in conjunction with screenshot becomes unnecessary (again).
#image=$HOME/Pictures/apod/2020-August-11-Churning-Clouds-on-Jupiter.jpg
clock
indicator-idle-visible
show-failed-attempts
indicator-radius=150
indicator-thickness=7
effect-blur=7x5
effect-vignette=0.5:0.5
ring-color=451e75
key-hl-color=a01b83
line-color=00000000
inside-color=00000088
separator-color=00000000
fade-in=0.1337
grace=5
grace-no-mouse
grace-no-touch

@ -165,7 +165,7 @@ in {
};
".config/swaylock/config" = {
source = .config/swaylock/config;
source = .config/swaylock/config.${hostName};
};
".config/tridactyl/tridactylrc" = {
source = .config/tridactyl/tridactylrc;