diff --git a/nixos/sway/default.nix b/nixos/sway/default.nix index 6177663b..6ba546d0 100644 --- a/nixos/sway/default.nix +++ b/nixos/sway/default.nix @@ -43,12 +43,10 @@ in } ]; startup = [ - { - command = "${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store"; - } - { - command = "${pkgs.clipman}/bin/clipman restore"; - } + { command = "${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store"; } + { command = "${pkgs.clipman}/bin/clipman restore"; } + { command = ''swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "outout * dpms off"' resume 'swaymsg "outout * dpms off"' before-sleep 'swaylock -f -c 000000' + ''; } ]; output.eDP-1.scale = "1.7"; input."1:1:AT_Translated_Set_2_keyboard" = {