Finalize Lithium Wayland conf for now

This commit is contained in:
Vili Sinervä 2025-02-16 23:31:05 +02:00
parent 98abace782
commit c32ff9713e
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
4 changed files with 5 additions and 26 deletions

View file

@ -36,6 +36,7 @@
];
services = {
gnome.gnome-keyring.enable = true;
greetd = {
enable = true;
settings = {

View file

@ -7,28 +7,5 @@
];
};
services = {
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";
};
services.logind.lidSwitch = if config.boot.resumeDevice != "" then "hibernate" else "suspend";
}

View file

@ -49,7 +49,7 @@
imports = [
../base.nix
../users/vili.nix
../desktop-sway.nix
../desktop-wayland.nix
../development.nix
../onlykey.nix
../services/syncthing.nix

View file

@ -114,13 +114,14 @@ let
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"
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
mode $mode_system {
bindsym l exec --no-startup-id swaylock, mode "default"
bindsym s exec --no-startup-id "swaylock; systemctl suspend", mode "default"
bindsym h exec --no-startup-id systemctl hibernate, 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 Return mode "default"
bindsym Escape mode "default"