# The screen lock bound to $mod+l in config/sway/config. # # It blanks the laptop panel, the keyboard backlight and the external monitor # (over DDC/CI) before swaylock, then restores whatever they were at. swaylock # itself comes from the sway module's default extraPackages, ddcutil from the # host's systemPackages, and brightnessctl from home/packages.nix. # # Linked as a plain executable rather than wrapped with writeShellApplication, # so it stays a file that can be edited and run on its own -- same reasoning as # home/prayertimes.nix. # # Iteration loop: edit scripts/lock.sh -> git add if new -> nixos-rebuild switch. { ... }: { home.file."scripts/lock.sh" = { source = ../scripts/lock.sh; executable = true; }; }