mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
feat: implement hyprlock and hypridle
This commit is contained in:
parent
870f8fdde5
commit
0d47ab58f5
4 changed files with 146 additions and 8 deletions
|
|
@ -65,6 +65,8 @@ in {
|
|||
imports = [
|
||||
./hyprpolkitagent.nix
|
||||
./hyprpaper.nix
|
||||
./hyprlock.nix
|
||||
./hypridle.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
@ -132,7 +134,10 @@ in {
|
|||
)
|
||||
config.monitors;
|
||||
|
||||
exec = ["systemctl --user start hyprpaper"];
|
||||
exec = [
|
||||
"systemctl --user start hyprpaper"
|
||||
"systemctl --user start hypridle"
|
||||
];
|
||||
|
||||
input = {
|
||||
# Most unknown keyboards will be of the DK layout, we set known keyboards to eu in `devices`
|
||||
|
|
@ -247,7 +252,7 @@ in {
|
|||
"SUPER, BACKSPACE, killactive"
|
||||
"SUPER, SPACE, exec, astal launcher"
|
||||
"SUPER, semicolon, exec, astal launcher .e"
|
||||
"SUPER, p, exec, ${getExe config.programs.uwsm.package} app -- loginctl lock-session"
|
||||
"SUPER, p, exec, ${getExe config.programs.uwsm.package} app -- ${pkgs.systemd}/bin/loginctl lock-session"
|
||||
|
||||
", Print, exec, ${lib.getExe pkgs.grimblast} save area - | ${lib.getExe pkgs.satty} -f -"
|
||||
"SHIFT, Print, exec, ${lib.getExe pkgs.grimblast} --freeze save area - | ${lib.getExe pkgs.satty} -f -"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue