home(sway): switch to swaylock-effects
This commit is contained in:
parent
d26dce3bd8
commit
faf2e37e36
2 changed files with 55 additions and 3 deletions
|
@ -18,7 +18,7 @@
|
|||
XF86MonBrightnessUp = "light -A 5";
|
||||
XF86MonBrightnessDown = "light -U 5";
|
||||
|
||||
"Control+Alt+l" = "exec ${pkgs.swaylock}/bin/swaylock -c 000000";
|
||||
"Control+Alt+l" = "exec swaylock -f --grace 0";
|
||||
"Print" = "exec ${pkgs.grim}/bin/grim - | ${pkgs.wl-clipboard}/bin/wl-copy";
|
||||
"${modifier}+Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy";
|
||||
"${modifier}+q" = "exec google-chrome-stable";
|
||||
|
@ -45,4 +45,24 @@
|
|||
output."*".bg = "#000000 solid_color";
|
||||
};
|
||||
};
|
||||
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = {
|
||||
indicator-caps-lock = true;
|
||||
font-size = 20;
|
||||
ignore-empty-password = true;
|
||||
show-failed-attempts = true;
|
||||
color = mkDefault "#00000000";
|
||||
|
||||
# Ring
|
||||
indicator-radius = 115;
|
||||
|
||||
# Swaylock-effects specific settings
|
||||
clock = true;
|
||||
timestr = "%r";
|
||||
grace = 2;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue