Fix: better config for thinkpad
This commit is contained in:
parent
55c3398a43
commit
3c9f6bddbf
3 changed files with 47 additions and 36 deletions
38
hm/common/polybar.nix
Normal file
38
hm/common/polybar.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ pkgs, ... }: {
|
||||
services = {
|
||||
polybar = {
|
||||
enable = true;
|
||||
script = "polybar main &";
|
||||
config = {
|
||||
"bar/main" = {
|
||||
width = "100%";
|
||||
height = "28";
|
||||
font-0 = "Iosevka Nerd Font:style=regular:pixelsize=12;2";
|
||||
font-1 = "Font Awesome 6 Free:style=Solid:pixelsize=10;2";
|
||||
modules-left = "bspwm";
|
||||
modules-center = "date";
|
||||
modules-right = "pulseaudio memory cpu";
|
||||
};
|
||||
"module/bspwm" = {
|
||||
type = "internal/bspwm";
|
||||
label-focused = "%name%";
|
||||
label-focused-foreground = "#e6e0de";
|
||||
label-focused-padding = 2;
|
||||
label-occupied = "%name%";
|
||||
label-occupied-padding = 2;
|
||||
label-urgent = "%name%";
|
||||
label-urgent-background = "#e42127";
|
||||
label-urgent-foreground = "#ffffff";
|
||||
label-empty = "%name%";
|
||||
label-empty-foreground = "#645d56";
|
||||
label-empty-padding = 2;
|
||||
};
|
||||
"module/date" = {
|
||||
type = "internal/date";
|
||||
interval = 60;
|
||||
date = "%d-%m-%Y %H:%M";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -5,8 +5,9 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
../common/picom.nix
|
||||
../common/betterlockscreen.nix
|
||||
../common/picom.nix
|
||||
../common/polybar.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
bspwm
|
||||
|
|
@ -93,39 +94,6 @@
|
|||
"super + t" = "bspc node -t tiled";
|
||||
};
|
||||
};
|
||||
polybar = {
|
||||
enable = true;
|
||||
script = "polybar main &";
|
||||
config = {
|
||||
"bar/main" = {
|
||||
width = "100%";
|
||||
height = "28";
|
||||
font-1 = "Font Awesome 6 Free:style=Solid:pixelsize=10;2";
|
||||
modules-left = "bspwm";
|
||||
modules-center = "date";
|
||||
modules-right = "pulseaudio memory cpu";
|
||||
};
|
||||
"module/bspwm" = {
|
||||
type = "internal/bspwm";
|
||||
label-focused = "%name%";
|
||||
label-focused-foreground = "#e6e0de";
|
||||
label-focused-padding = 2;
|
||||
label-occupied = "%name%";
|
||||
label-occupied-padding = 2;
|
||||
label-urgent = "%name%";
|
||||
label-urgent-background = "#e42127";
|
||||
label-urgent-foreground = "#ffffff";
|
||||
label-empty = "%name%";
|
||||
label-empty-foreground = "#645d56";
|
||||
label-empty-padding = 2;
|
||||
};
|
||||
"module/date" = {
|
||||
type = "internal/date";
|
||||
interval = 60;
|
||||
date = "%d-%m-%Y %H:%M";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
@ -146,7 +114,7 @@
|
|||
family = lib.mkForce "Iosevka Nerd Font";
|
||||
style = "Italic";
|
||||
};
|
||||
size = lib.mkForce 9;
|
||||
size = lib.mkForce 8;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -52,7 +52,12 @@ in {
|
|||
age ssh-to-age
|
||||
];
|
||||
|
||||
|
||||
security.pam.services.i3lock = {
|
||||
text = ''
|
||||
auth required pam_unix.so
|
||||
account required pam_unix.so
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
# Optionnel mais utile pour SSH au démarrage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue