NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor
git clone https://git.daemon-sec.xyz/NixDaemon.git
Log | Files | Refs | README

lid.lua (566B)


      1 -- lid.lua — shortcuts/lid.lua from the vault. Only the hard-coded old home
      2 -- (/home/daemon-sec) became o.bin.
      3 -- Replace the stock lock/clamshell bindings with selectable lid handling.
      4 hl.unbind("switch:on:Lid Switch")
      5 hl.unbind("switch:off:Lid Switch")
      6 o.bind("switch:on:Lid Switch", "Laptop lid closed", o.bin .. "/lid-control close", { locked = true })
      7 o.bind("switch:off:Lid Switch", "Laptop lid opened", o.bin .. "/lid-control wake", { locked = true })
      8 o.bind("SUPER + CTRL + F12", "Recover laptop display", o.bin .. "/lid-control wake", { locked = true })