aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
''