add suspend bind

This commit is contained in:
Leonardo Eugênio 2022-07-20 19:48:29 -03:00
parent 0f7cde3640
commit 20ef97bddc
2 changed files with 6 additions and 1 deletions

View file

@ -195,6 +195,7 @@ in
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
security.sudo.wheelNeedsPassword = false;
nix = {
package = pkgs.nixFlakes; # or versioned attributes like nixVersions.nix_2_8
extraOptions = ''

View file

@ -368,7 +368,7 @@ in {
tap = "enabled";
};
input."*" = {
xkb_layout = "us(colemak)";
xkb_layout = "us(colemak),br";
xkb_options = "lv3:lsgt_switch,grp:shifts_toggle";
xkb_numlock = "enabled";
repeat_rate = "30";
@ -480,6 +480,9 @@ in {
XF86AudioNext = "exec playerctl next";
XF86AudioPrev = "exec playerctl previous";
};
system_binds = {
"Ctrl+${mod}+z" = "exec systemctl suspend";
};
in {
"${mod}+Return" = "exec ${terminal}";
"${mod}+x" = "kill";
@ -503,6 +506,7 @@ in {
// workspace_binds
// prev_next_binds
// movement_binds
// system_binds
# // map (key: "$mod+${key} workspace prev_on_output") [ key.tabL "bracketleft" "Prior" "button9" "button4" ]
# // map (key: "$mod+${key} workspace next_on_output") [ key.tabL "bracketleft" "Prior" "button9" "button4" ]
;