diff options
-rw-r--r-- | users/sils/default.nix | 1 | ||||
-rw-r--r-- | users/sils/swayidle/default.nix | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix index 8483819..d39d785 100644 --- a/users/sils/default.nix +++ b/users/sils/default.nix @@ -12,6 +12,7 @@ ./packages #./river #TODO Update Shell Library ./ssh + ./swayidle ./swaylock ./xsession #./yambar #TODO Update Shell Library diff --git a/users/sils/swayidle/default.nix b/users/sils/swayidle/default.nix new file mode 100644 index 0000000..5d0f96d --- /dev/null +++ b/users/sils/swayidle/default.nix @@ -0,0 +1,16 @@ +{pkgs, ...}: { + services.swayidle = { + enable = true; + events = [ + # TODO: Find a way to close keepassxc-database on lock + #{ + # event = "lock"; + # command = ""; + #} + { + event = "before-sleep"; + command = "${pkgs.swaylock}/bin/swaylock"; + } + ]; + }; +} |