summaryrefslogtreecommitdiff
path: root/modules/home
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-02-06 13:24:27 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-02-06 13:24:27 +0100
commitfbad4d828272007ee5d6801294dce1f4c974386e (patch)
tree9e1f8372ef981054b09a5446720ba9ad78cdc01e /modules/home
parent0ff1737e48934988ba8ac2391554d623fa7b4897 (diff)
fixed the lock-screen wrapper
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/i3wm/nord-blue/i3lock.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/home/i3wm/nord-blue/i3lock.nix b/modules/home/i3wm/nord-blue/i3lock.nix
index 3338616..dc87766 100644
--- a/modules/home/i3wm/nord-blue/i3lock.nix
+++ b/modules/home/i3wm/nord-blue/i3lock.nix
@@ -6,14 +6,14 @@ pkgs.writeShellScriptBin "lock-screen" ''
#!/usr/bin/env sh
set -eu
- WALL="\$\{1:-$HOME/Pictures/wallpaper.png}"
+ WALL="''${1:-$HOME/Pictures/wallpaper.png}"
TMP="/tmp/lockscreen.png"
# Get current resolution (single-monitor friendly)
RES=$(xrandr | awk '/\*/ {print $1; exit}')
# Scale like feh --bg-fill
- magick "$WALL" -resize "\$\{RES}^" -gravity center -extent "$RES" "$TMP"
+ magick "''$WALL" -resize "''${RES}^" -gravity center -extent "''$RES" "''$TMP"
i3lock -i "$TMP"
''