Skip to content

Commit

Permalink
controlcenter: dunst: shortcuts setting was removed in 1.7.0
Browse files Browse the repository at this point in the history
See dunst-project/dunst#803 for details.
  • Loading branch information
wiedzmin committed Oct 28, 2021
1 parent a9a0d92 commit f4c2b54
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions modules/controlcenter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,6 @@ in
verbosity = "mesg";
word_wrap = "yes";
};
shortcuts = {
close = "ctrl+space";
close_all = "ctrl+shift+space";
history = "ctrl+grave";
context = "ctrl+shift+period";
};
urgency_low = { timeout = 3; };
urgency_normal = { timeout = 5; };
urgency_critical = { timeout = 7; };
Expand Down Expand Up @@ -299,7 +293,28 @@ in
key = [ prefix "Shift" "p" ];
cmd = "${pkgs.gmrun}/bin/gmrun";
mode = "root";
}];
}] ++ optionals (cfg.notifications.backend == "dunst") [
{
key = [ "Control" "space" ];
cmd = "${pkgs.dunst}/bin/dunstctl close";
mode = "root";
}
{
key = [ "Control" "Shift" "space" ];
cmd = "${pkgs.dunst}/bin/dunstctl close-all";
mode = "root";
}
{
key = [ "Control" "grave" ];
cmd = "${pkgs.dunst}/bin/dunstctl history-pop";
mode = "root";
}
{
key = [ "Control" "Shift" "equal" ];
cmd = "${pkgs.dunst}/bin/dunstctl context";
mode = "root";
}
];
})
(mkIf (cfg.enable && config.attributes.debug.scripts) {
home-manager.users.${user} = { home.packages = with pkgs; [ uptime_info ifconfless ]; };
Expand Down

0 comments on commit f4c2b54

Please sign in to comment.