Modules/Hyprland: Add dunst package conditionally and keybinds for scratchpad
This commit is contained in:
@ -68,9 +68,6 @@
|
||||
"$mainMod CTRL, k" = ["movewindow, u"];
|
||||
"$mainMod CTRL, d" = ["movewindow, d"];
|
||||
|
||||
# Special workspace
|
||||
"$mainMod, x" = ["togglespecialworkspace"];
|
||||
|
||||
# TODO: Somehow write this more compact? Try to use workspace 0 instead of 10...
|
||||
"$mainMod, 1" = ["workspace, 1"];
|
||||
"$mainMod, 2" = ["workspace, 2"];
|
||||
@ -82,6 +79,7 @@
|
||||
"$mainMod, 8" = ["workspace, 8"];
|
||||
"$mainMod, 9" = ["workspace, 9"];
|
||||
"$mainMod, 0" = ["workspace, 10"];
|
||||
"$mainMod, x" = ["togglespecialworkspace"];
|
||||
|
||||
"$mainMod SHIFT, 1" = ["movetoworkspace, 1"];
|
||||
"$mainMod SHIFT, 2" = ["movetoworkspace, 2"];
|
||||
@ -93,6 +91,7 @@
|
||||
"$mainMod SHIFT, 8" = ["movetoworkspace, 8"];
|
||||
"$mainMod SHIFT, 9" = ["movetoworkspace, 9"];
|
||||
"$mainMod SHIFT, 0" = ["movetoworkspace, 10"];
|
||||
"$mainMod SHIFT, x" = ["movetoworkspace, special"];
|
||||
|
||||
# Reset workspaces to the defined configuration in hyprland.workspaces:
|
||||
# [
|
||||
@ -112,8 +111,9 @@
|
||||
"$mainMod, mouse:273" = ["resizewindow"];
|
||||
};
|
||||
|
||||
always-exec = [
|
||||
# "dunst" # Notifications
|
||||
always-exec = builtins.concatLists [
|
||||
(lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications
|
||||
[
|
||||
"wl-paste -t text --watch clipman store --no-persist"
|
||||
"wl-paste -p -t text --watch clipman store -P --histpath=\"~/.local/share/clipman-primary.json\""
|
||||
"hyprctl setcursor Bibata-Modern-Classic 16"
|
||||
@ -129,6 +129,7 @@
|
||||
# This is used for example when running systemd commands without root.
|
||||
"${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-authentication-agent-1"
|
||||
# "systemctl --user start hyprpolkitagent.service"
|
||||
]
|
||||
];
|
||||
in {
|
||||
options.modules.hyprland = import ./options.nix {inherit lib mylib;};
|
||||
@ -159,7 +160,7 @@ in {
|
||||
x11.enable = true;
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Classic";
|
||||
size = 16;
|
||||
size = 32;
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
|
Reference in New Issue
Block a user