From 20ef97bddc937b7eb119e43f25673814801f3e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 20 Jul 2022 19:48:29 -0300 Subject: [PATCH] add suspend bind --- system/configuration.nix | 1 + user/home.nix | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/system/configuration.nix b/system/configuration.nix index 17057b4..01dc267 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -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 = '' diff --git a/user/home.nix b/user/home.nix index 5b60349..30370d7 100644 --- a/user/home.nix +++ b/user/home.nix @@ -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" ] ;