silent workspace sending, more laptop hardware management
This commit is contained in:
@@ -279,8 +279,21 @@ $mainCtrlShift = $mainCtrl SHIFT
|
||||
bind = $mainShift, $ws_program, movetoworkspace, $ws_program
|
||||
bind = $mainShift, $ws_extra, movetoworkspace, name:extra
|
||||
|
||||
bind = $altShift, $ws_game, movetoworkspacesilent, $ws_game
|
||||
bind = $altShift, $ws_shell, movetoworkspacesilent, $ws_shell
|
||||
bind = $altShift, $ws_web, movetoworkspacesilent, $ws_web
|
||||
bind = $altShift, $ws_music, movetoworkspacesilent, $ws_music
|
||||
bind = $altShift, $ws_image, movetoworkspacesilent, $ws_image
|
||||
bind = $altShift, $ws_chat, movetoworkspacesilent, $ws_chat
|
||||
bind = $altShift, $ws_audio, movetoworkspacesilent, $ws_audio
|
||||
bind = $altShift, $ws_video, movetoworkspacesilent, $ws_video
|
||||
bind = $altShift, $ws_program, movetoworkspacesilent, $ws_program
|
||||
bind = $altShift, $ws_extra, movetoworkspacesilent, name:extra
|
||||
|
||||
bind = $mainCtrlShift, right, movetoworkspace, +1
|
||||
bind = $mainCtrlShift, left, movetoworkspace, -1
|
||||
bind = $altCtrlShift, right, movetoworkspacesilent, +1
|
||||
bind = $altCtrlShift, left, movetoworkspacesilent, -1
|
||||
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
@@ -31,34 +31,52 @@
|
||||
boot.resumeDevice = "/dev/disk/by-uuid/c7704142-d0b9-4a85-af1c-ce776b895c0f";
|
||||
boot.kernelParams = [
|
||||
"resume_offset=13629440"
|
||||
"mem_sleep_default=deep"
|
||||
"mem_sleep_default=s2idle"
|
||||
];
|
||||
boot.initrd.postMountCommands = lib.mkAfter ''
|
||||
swapon /mnt-root/var/swapfile
|
||||
'';
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
services.system76-scheduler.enable = true;
|
||||
services.tailscale.enable = false;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.auto-cpufreq.enable = false;
|
||||
services.thermald.enable = true;
|
||||
|
||||
systemd.services.charge-thresholds = {
|
||||
description = "Set System76 battery charge thresholds";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ]; # Ensure daemon is ready
|
||||
wantedBy = [ "multi-user.target" "post-resume.target" ];
|
||||
after = [ "network.target" "suspend.target" "hibernate.target" "hybrid-sleep.target" ]; # Ensures it runs post-resume
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.system76-power}/bin/system76-power charge-thresholds --profile balanced";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
services.logind.lidSwitch = "suspend-then-hibernate";
|
||||
systemd.services.thunderbolt-suspend = {
|
||||
description = "Disable Thunderbolt on suspend";
|
||||
wantedBy = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.bolt}/bin/boltctl forget --all"; # Or echo 1 > /sys/bus/thunderbolt/devices/*/authorized if no bolt
|
||||
};
|
||||
};
|
||||
systemd.services.thunderbolt-resume = {
|
||||
description = "Re-enable Thunderbolt on resume";
|
||||
wantedBy = [ "post-resume.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.bolt}/bin/boltctl authorize --all"; # Adjust as needed
|
||||
};
|
||||
};
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=20m
|
||||
SuspendState=mem
|
||||
'';
|
||||
|
||||
services.logind.lidSwitch = "suspend-then-hibernate";
|
||||
services.hardware.bolt.enable = true;
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = { inherit inputs; inherit cfg; };
|
||||
|
||||
@@ -159,6 +159,7 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bat
|
||||
bolt
|
||||
discord
|
||||
fd
|
||||
file
|
||||
|
||||
Reference in New Issue
Block a user