Finalize Lithium Wayland conf for now
This commit is contained in:
parent
98abace782
commit
c32ff9713e
4 changed files with 5 additions and 26 deletions
|
@ -36,6 +36,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
gnome.gnome-keyring.enable = true;
|
||||||
greetd = {
|
greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
|
@ -7,28 +7,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services.logind.lidSwitch = if config.boot.resumeDevice != "" then "hibernate" else "suspend";
|
||||||
tlp = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
||||||
|
|
||||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
||||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
|
||||||
|
|
||||||
CPU_MIN_PERF_ON_AC = 0;
|
|
||||||
CPU_MAX_PERF_ON_AC = 100;
|
|
||||||
CPU_MIN_PERF_ON_BAT = 0;
|
|
||||||
CPU_MAX_PERF_ON_BAT = 40;
|
|
||||||
|
|
||||||
#Optional helps save long term battery health
|
|
||||||
START_CHARGE_THRESH_BAT0 = 60; # 60 and bellow it starts to charge
|
|
||||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
logind.lidSwitch = if config.boot.resumeDevice != "" then "hibernate" else "suspend";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../base.nix
|
../base.nix
|
||||||
../users/vili.nix
|
../users/vili.nix
|
||||||
../desktop-sway.nix
|
../desktop-wayland.nix
|
||||||
../development.nix
|
../development.nix
|
||||||
../onlykey.nix
|
../onlykey.nix
|
||||||
../services/syncthing.nix
|
../services/syncthing.nix
|
||||||
|
|
|
@ -114,13 +114,14 @@ let
|
||||||
bindsym $mod+Return exec "alacritty --config-file ${alacritty-conf}"
|
bindsym $mod+Return exec "alacritty --config-file ${alacritty-conf}"
|
||||||
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
|
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
|
||||||
|
|
||||||
set $mode_system "(l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"
|
set $mode_system "(l)ock, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"
|
||||||
bindsym $mod+Shift+p mode $mode_system
|
bindsym $mod+Shift+p mode $mode_system
|
||||||
mode $mode_system {
|
mode $mode_system {
|
||||||
bindsym l exec --no-startup-id swaylock, mode "default"
|
bindsym l exec --no-startup-id swaylock, mode "default"
|
||||||
bindsym s exec --no-startup-id "swaylock; systemctl suspend", mode "default"
|
bindsym s exec --no-startup-id "swaylock; systemctl suspend", mode "default"
|
||||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||||
|
bindsym e exec --no-startup-id loginctl terminate-session self, mode "default"
|
||||||
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue