Compare commits
3 commits
800a2f4ad1
...
d4b19a279e
| Author | SHA1 | Date | |
|---|---|---|---|
| d4b19a279e | |||
| c9f4ad0e13 | |||
| 5d538562d5 |
3 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, lib, hostname, ... }: {
|
||||
programs.niri.settings.binds = {
|
||||
"XF86AudioRaiseVolume" = { action.spawn = [ "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%+" ]; allow-when-locked = true; };
|
||||
"XF86AudioLowerVolume" = { action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-" ]; allow-when-locked = true; };
|
||||
"XF86AudioRaiseVolume" = { action.spawn = [ "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "2%+" ]; allow-when-locked = true; };
|
||||
"XF86AudioLowerVolume" = { action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "2%-" ]; allow-when-locked = true; };
|
||||
"XF86AudioMute" = { action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle" ]; allow-when-locked = true; };
|
||||
"XF86AudioMicMute" = { action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle" ]; allow-when-locked = true; };
|
||||
"XF86MonBrightnessUp" = { action.spawn = [ "brightnessctl" "s" "10%+" ]; allow-when-locked = true; };
|
||||
|
|
@ -23,10 +23,10 @@
|
|||
"Mod+Shift+Down".action.move-window-down-or-to-workspace-down = {};
|
||||
"Mod+Shift+Left".action.move-column-left = {};
|
||||
"Mod+Shift+Right".action.move-column-right = {};
|
||||
"Mod+Ctrl+Left".action.set-window-width = [ "-5%" ];
|
||||
"Mod+Ctrl+Right".action.set-window-width = [ "+5%" ];
|
||||
"Mod+Ctrl+Down".action.set-window-height = [ "+5%" ];
|
||||
"Mod+Ctrl+Up".action.set-window-height = [ "-5%" ];
|
||||
"Mod+Ctrl+Left".action.set-window-width = [ "-2%" ];
|
||||
"Mod+Ctrl+Right".action.set-window-width = [ "+2%" ];
|
||||
"Mod+Ctrl+Down".action.set-window-height = [ "+2%" ];
|
||||
"Mod+Ctrl+Up".action.set-window-height = [ "-2%" ];
|
||||
|
||||
"Mod+G".action.center-column = {};
|
||||
"Mod+F".action.toggle-window-floating = {};
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
i18n.defaultLocale = locale;
|
||||
environment.localBinInPath = true;
|
||||
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
boot.kernel.sysctl."vm.swappiness" = 10; # only swap when necessary
|
||||
|
||||
security = {
|
||||
polkit = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
];
|
||||
nixpkgs.overlays = [ inputs.mc.overlay ];
|
||||
|
||||
powerManagement.cpuFreqGovernor = "powersave"; # performance governor causes overheating and thermal throttling, works fine with powesave
|
||||
boot.kernel.sysctl."vm.swappiness" = 10; # reduce swap usage and keep memory performance smooth
|
||||
|
||||
services.minecraft-servers = {
|
||||
# LOCK IN
|
||||
enable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue