mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add laptop related config
This commit is contained in:
parent
c132f9fba9
commit
71c6c34fda
3 changed files with 55 additions and 24 deletions
|
|
@ -49,6 +49,11 @@ in {
|
|||
WINIT_X11_SCALE_FACTOR = "1";
|
||||
};
|
||||
|
||||
## Laptop
|
||||
powerManagement.enable = true;
|
||||
services.thermald.enable = true;
|
||||
services.tlp.enable = true;
|
||||
|
||||
## Mouse
|
||||
services.libinput.mouse.accelProfile = "flat";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ in {
|
|||
# Modules
|
||||
mods.xdg.enable = true;
|
||||
mods.i3.enable = true;
|
||||
mods.battery.enable = true;
|
||||
mods.terminal.zsh.enable = true;
|
||||
mods.terminal.emulator.enable = true;
|
||||
mods.terminal.development.enable = true;
|
||||
|
|
@ -18,6 +19,7 @@ in {
|
|||
thunderbird
|
||||
pulseaudio
|
||||
pavucontrol
|
||||
alsa-utils
|
||||
]
|
||||
|
||||
# Non-free </3
|
||||
|
|
@ -25,7 +27,6 @@ in {
|
|||
++ [ google-cloud-sdk ];
|
||||
|
||||
# Hardware preferences
|
||||
|
||||
## Monitors
|
||||
services.autorandr.enable = true;
|
||||
programs.autorandr = {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ let
|
|||
};
|
||||
in with lib; {
|
||||
options.mods.i3.enable = mkEnableOption "enables i3";
|
||||
options.mods.battery.enable = mkEnableOption "enables battery";
|
||||
|
||||
config = mkIf config.mods.i3.enable {
|
||||
services.unclutter.enable = true;
|
||||
|
|
@ -21,29 +22,53 @@ in with lib; {
|
|||
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
bars.default = {
|
||||
settings.theme.overrides = with config.lib.stylix.colors.withHashtag; {
|
||||
idle_bg = base00;
|
||||
idle_fg = base05;
|
||||
separator = "";
|
||||
};
|
||||
icons = "awesome5";
|
||||
blocks = [
|
||||
{
|
||||
block = "sound";
|
||||
format = " $icon $volume ";
|
||||
click = [{
|
||||
button = "left";
|
||||
cmd = "${lib.getExe pkgs.pavucontrol}";
|
||||
}];
|
||||
}
|
||||
{
|
||||
block = "time";
|
||||
format = "$icon $timestamp.datetime(f:'%Y-%m-%d %a %H:%M:%S') ";
|
||||
interval = 1;
|
||||
}
|
||||
];
|
||||
};
|
||||
bars.default = lib.mkMerge [
|
||||
{
|
||||
blocks = lib.mkBefore [
|
||||
{
|
||||
block = "privacy";
|
||||
driver = [ { name = "v4l"; } { name = "pipewire"; } ];
|
||||
}
|
||||
{
|
||||
block = "net";
|
||||
format = " $icon ";
|
||||
inactive_format = " $icon ";
|
||||
}
|
||||
];
|
||||
}
|
||||
(lib.mkIf config.mods.battery.enable {
|
||||
blocks = [{
|
||||
block = "battery";
|
||||
format = " $icon $percentage ";
|
||||
# format_alt =
|
||||
# " $icon $percentage {$time_remaining.dur(hms:true, min_unit:m) |}";
|
||||
}];
|
||||
})
|
||||
{
|
||||
settings.theme.overrides = lib.mkMerge [
|
||||
{ separator = ""; }
|
||||
config.lib.stylix.i3status-rust.bar
|
||||
];
|
||||
icons = "awesome5";
|
||||
blocks = lib.mkAfter [
|
||||
{
|
||||
block = "sound";
|
||||
format = " $icon {$volume |} ";
|
||||
driver = "alsa";
|
||||
click = [{
|
||||
button = "left";
|
||||
cmd = "${lib.getExe pkgs.pavucontrol}";
|
||||
}];
|
||||
}
|
||||
{
|
||||
block = "time";
|
||||
format = "$icon $timestamp.datetime(f:'%Y-%m-%d %a %H:%M:%S') ";
|
||||
# format_alt = "$icon $timestamp.datetime(f:'%Y-%m-%d %H:%M') ";
|
||||
interval = 1;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
xsession.windowManager.i3 = let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue