feat(hyprland): migrate session feature bindings
This commit was merged in pull request #158.
This commit is contained in:
@@ -48,6 +48,24 @@ in
|
|||||||
lib.mkEnableOption "the hyprlock lock screen";
|
lib.mkEnableOption "the hyprlock lock screen";
|
||||||
|
|
||||||
config = lib.mkIf config.modules.desktop.session.hyprland.hyprlock.enable {
|
config = lib.mkIf config.modules.desktop.session.hyprland.hyprlock.enable {
|
||||||
|
registry.keybind.${config.networking.hostName} = {
|
||||||
|
hyprlock-lock = {
|
||||||
|
keys = "SUPER + X";
|
||||||
|
action = {
|
||||||
|
kind = "exec";
|
||||||
|
command = "${pkgs.procps}/bin/pidof hyprlock || ${hyprlock}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hyprlock-toggle-idle-inhibit = {
|
||||||
|
keys = "SUPER + CTRL + X";
|
||||||
|
action = {
|
||||||
|
kind = "exec";
|
||||||
|
command = "${idleLockToggle}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
# Colors and the lock-screen background come from Stylix's hyprlock target,
|
# Colors and the lock-screen background come from Stylix's hyprlock target,
|
||||||
# so only geometry and behaviour are set here.
|
# so only geometry and behaviour are set here.
|
||||||
@@ -82,15 +100,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Lock on Super+X.
|
|
||||||
# The guard drops the keypress when a locker is already up, so a second
|
|
||||||
# hyprlock never stacks over the first.
|
|
||||||
/*
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [
|
|
||||||
"$mod, X, exec, ${pkgs.procps}/bin/pidof hyprlock || ${hyprlock}"
|
|
||||||
"$mod CTRL, X, exec, ${idleLockToggle}"
|
|
||||||
];
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ in
|
|||||||
options.modules.desktop.session.mako.enable = lib.mkEnableOption "the mako notification daemon";
|
options.modules.desktop.session.mako.enable = lib.mkEnableOption "the mako notification daemon";
|
||||||
|
|
||||||
config = lib.mkIf config.modules.desktop.session.mako.enable {
|
config = lib.mkIf config.modules.desktop.session.mako.enable {
|
||||||
|
registry.keybind.${config.networking.hostName}.mako-history = {
|
||||||
|
keys = "SUPER + N";
|
||||||
|
action = {
|
||||||
|
kind = "exec";
|
||||||
|
command = "${makoctl} restore";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
# Colors and the popup font come from Stylix's mako target, so only
|
# Colors and the popup font come from Stylix's mako target, so only
|
||||||
# behaviour is set here.
|
# behaviour is set here.
|
||||||
@@ -32,14 +40,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Recall the last notification from history, keyboard-only like the rest
|
|
||||||
# of the session.
|
|
||||||
# $mod is defined by the compositor config these binds share.
|
|
||||||
/*
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [
|
|
||||||
"$mod, N, exec, ${makoctl} restore"
|
|
||||||
];
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,24 @@ in
|
|||||||
options.modules.desktop.session.rofi.enable = lib.mkEnableOption "the rofi launcher";
|
options.modules.desktop.session.rofi.enable = lib.mkEnableOption "the rofi launcher";
|
||||||
|
|
||||||
config = lib.mkIf config.modules.desktop.session.rofi.enable {
|
config = lib.mkIf config.modules.desktop.session.rofi.enable {
|
||||||
|
registry.keybind.${config.networking.hostName} = {
|
||||||
|
rofi-launcher = {
|
||||||
|
keys = "SUPER + R";
|
||||||
|
action = {
|
||||||
|
kind = "exec";
|
||||||
|
command = "${pkgs.rofi}/bin/rofi -show drun";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
rofi-power-menu = {
|
||||||
|
keys = "SUPER + SHIFT + X";
|
||||||
|
action = {
|
||||||
|
kind = "exec";
|
||||||
|
command = "${powerMenu}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
# No theme is set here: Stylix's rofi target supplies the Nord one.
|
# No theme is set here: Stylix's rofi target supplies the Nord one.
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
@@ -40,14 +58,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# The launcher and the session menu, kept next to the tool they drive.
|
|
||||||
# $mod is defined by the compositor config these binds share.
|
|
||||||
/*
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [
|
|
||||||
"$mod, R, exec, ${pkgs.rofi}/bin/rofi -show drun"
|
|
||||||
"$mod SHIFT, X, exec, ${powerMenu}"
|
|
||||||
];
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user