cleanup sudo usage

This commit is contained in:
Ivan Dimitrov 2024-05-06 13:26:21 +03:00
parent ac684779eb
commit 1abd5a0ec3
2 changed files with 2 additions and 7 deletions

View File

@ -3,10 +3,5 @@
enable = true;
enableNushellIntegration = true;
enableZshIntegration = true;
settings = {
sudo = {
disabled = false;
};
};
};
}

View File

@ -26,8 +26,8 @@
# Display
"Alt+Shift+l" = "exec ${pkgs.swaylock}/bin/swaylock"; # Lock screen
"XF86ScreenSaver" = "output 'eDP-1' toggle"; # Turn screen off
"XF86MonBrightnessUp" = "exec sudo ${pkgs.light}/bin/light -A 10";
"XF86MonBrightnessDown" = "exec sudo ${pkgs.light}/bin/light -U 10";
"XF86MonBrightnessUp" = "exec doas ${pkgs.light}/bin/light -A 10";
"XF86MonBrightnessDown" = "exec doas ${pkgs.light}/bin/light -U 10";
# Programs
"${modifier}+p" = "exec ${menu}";
"${modifier}+Shift+a" = "exec screenshot area";