[swaylock] Bluescreen

This commit is contained in:
Tibo De Peuter 2025-10-01 07:37:06 +02:00
parent d6801e0679
commit 9e215b6df9
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
6 changed files with 23 additions and 19 deletions

BIN
assets/bluescreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View file

@ -11,6 +11,7 @@ in {
# Hint Electron apps to use wayland
NIXOS_OZONE_WL = "1";
ASSETS_DIR = ../../../../assets;
SCRIPT_DIR = ../../../../scripts;
};
@ -27,7 +28,7 @@ in {
wl-mirror # Mirror an output
wdisplays # Tool to configure displays
swaylock-effects
swaylock
glib

View file

@ -96,6 +96,7 @@ in {
]);
environment.sessionVariables = {
ASSETS_DIR = ../../../../assets;
SCRIPT_DIR = ../../../../scripts;
};

View file

@ -266,7 +266,7 @@ $right = l
$term = foot
$menu = j4-dmenu-desktop --dmenu="rofi -dmenu -i" --no-generic --usage-log="/home/tdpeuter/.local/state/dmenu.log" --term=$term
$lock = swaylock
$lock = swaylock --daemonize
source = /home/tdpeuter/.config/hypr/input-output.conf
source = /home/tdpeuter/.config/hypr/keybinds.conf

View file

@ -2,21 +2,23 @@
# .config/swaylock/config
#
indicator
indicator-radius=200
#indicator
#indicator-radius=200
#
#clock
#datestr=%A, %B %d %Y
#
#show-failed-attempts
#
#screenshots
#effect-pixelate=10
#effect-vignette=0.75:0 # Darken the whole screen.
#fade-in=0.25
#
#grace=7 # Allow to unlock without password for duration
#grace-no-mouse
clock
datestr=%A, %B %d %Y
show-failed-attempts
screenshots
effect-pixelate=10
effect-vignette=0.75:0 # Darken the whole screen.
fade-in=0.25
grace=7 # Allow to unlock without password for duration
grace-no-mouse
image=${ASSETS_DIR}/bluescreen.png
# Styling

View file

@ -90,21 +90,21 @@
"format": "\uf09c", /* */
"tooltip": true,
"tooltip-format": "Lock device",
"on-click": "swaylock -f"
"on-click": "swaylock --daemonize"
},
"custom/system-sleep": {
"format": "\uf186", /* */
"tooltip": true,
"tooltip-format": "Put device to sleep",
"on-click": "swaylock -f; systemctl suspend"
"on-click": "swaylock --daemonize; systemctl suspend"
},
"custom/system-hibernate": {
"format": "\uf2dc", /* */
"tooltip": true,
"tooltip-format": "Hibernate device",
"on-click": "swaylock -f; systemctl hibernate"
"on-click": "swaylock --daemonize; systemctl hibernate"
},
"custom/system-reboot": {