Skip to content

Commit

Permalink
feat: add wlogout
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 17, 2025
1 parent 6c8d3b5 commit 3e79227
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions applications/niri/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
inputs,
config,
lib,
pkgs,
...
Expand All @@ -24,6 +25,9 @@ in
"-c"
"rbw unlock && rofi-rbw -t password"
];
# The quit action will show a confirmation dialog to avoid accidental exits.
"Mod+Shift+E".action =
if config.programs.wlogout.enable then { spawn = "wlogout"; } else { quit = { }; };
};
input = {
focus-follows-mouse.enable = true;
Expand Down
3 changes: 0 additions & 3 deletions applications/niri/defaultKeyBind.nix
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@
"Ctrl+Print".action.screenshot-screen = { };
"Alt+Print".action.screenshot-window = { };

# The quit action will show a confirmation dialog to avoid accidental exits.
"Mod+Shift+E".action.quit = { };

# Powers off the monitors. To turn them back on, do any input like
# moving the mouse or pressing any other key.
"Mod+Shift+P".action.power-off-monitors = { };
Expand Down
4 changes: 4 additions & 0 deletions homes/nixos/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ in
};
};

programs.wlogout = {
enable = true;
};

gtk = {
enable = true;
gtk3.extraConfig = {
Expand Down

0 comments on commit 3e79227

Please sign in to comment.