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 = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
networking.firewall.enable = false; networking.firewall.enable = false;
security.sudo.wheelNeedsPassword = false;
nix = { nix = {
package = pkgs.nixFlakes; # or versioned attributes like nixVersions.nix_2_8 package = pkgs.nixFlakes; # or versioned attributes like nixVersions.nix_2_8
extraOptions = '' extraOptions = ''

View file

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