2024-11-12 18:03:28 -05:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
2024-12-04 02:54:40 -05:00
|
|
|
(pkgs.writeScriptBin "sleep-sway" ''
|
2024-11-12 18:03:28 -05:00
|
|
|
swaylock & ${pkgs.swayidle}/bin/swayidle -w \
|
|
|
|
timeout 1 'swaymsg "output * dpms off"' \
|
|
|
|
resume 'swaymsg "output * dpms on"; pkill -9 swayidle'
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
}
|