swaylock: move niri lock hotkey
This commit is contained in:
parent
26a4d33742
commit
98da73dceb
2 changed files with 8 additions and 7 deletions
|
|
@ -172,10 +172,6 @@
|
||||||
# Suggested binds for running programs: terminal, app launcher, screen locker.
|
# Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
"Mod+T".action.spawn = "${lib.getBin pkgs.gnome-console}/bin/kgx";
|
"Mod+T".action.spawn = "${lib.getBin pkgs.gnome-console}/bin/kgx";
|
||||||
"Mod+D".action.spawn = "${lib.getBin config.programs.fuzzel.package}/bin/fuzzel";
|
"Mod+D".action.spawn = "${lib.getBin config.programs.fuzzel.package}/bin/fuzzel";
|
||||||
"Super+Alt+L" = {
|
|
||||||
action.spawn = "${lib.getBin config.programs.swaylock.package}/bin/swaylock";
|
|
||||||
allow-when-locked = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
# You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||||
# Note: the entire command goes as a single argument in the end.
|
# Note: the entire command goes as a single argument in the end.
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
# based on https://codeberg.org/kiara/cfg/src/commit/b9c472acd78c9c08dfe8b6a643c5c82cc5828433/home-manager/kiara/swaylock.nix#
|
# based on https://codeberg.org/kiara/cfg/src/commit/b9c472acd78c9c08dfe8b6a643c5c82cc5828433/home-manager/kiara/swaylock.nix#
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
{
|
{
|
||||||
config = {
|
|
||||||
stylix.targets.swaylock = {
|
stylix.targets.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
useWallpaper = true;
|
useWallpaper = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.swaylock-effects;
|
package = pkgs.swaylock-effects;
|
||||||
|
|
@ -50,5 +50,10 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
|
programs.niri.settings.binds."Super+Alt+L" = {
|
||||||
|
action.spawn = "${lib.getBin config.programs.swaylock.package}/bin/swaylock";
|
||||||
|
allow-when-locked = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue