Compare commits

...

2 commits

Author SHA1 Message Date
c8c70a13fe Add laptop configuration for Waybar 2023-09-07 17:26:35 +02:00
658eea8539 Avoid error on statup about luasnip
Add luasnip plugins
2023-09-07 17:26:12 +02:00
2 changed files with 45 additions and 3 deletions

View file

@ -297,6 +297,7 @@
} }
''; '';
} }
luasnip
mason-lspconfig-nvim mason-lspconfig-nvim
{ {
plugin = mason-nvim; plugin = mason-nvim;

View file

@ -1,4 +1,5 @@
_: { {hostConfig, ...}:
{
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd = { systemd = {
@ -15,8 +16,13 @@ _: {
"sway/workspaces" "sway/workspaces"
"sway/mode" "sway/mode"
]; ];
modules-right = [ modules-right = [ "network" ]
"network" ++ (if hostConfig.laptop then
[ "custom/sep"
"backlight"
"battery"]
else null
) ++ [
"custom/sep" "custom/sep"
"memory" "memory"
"cpu" "cpu"
@ -96,6 +102,41 @@ _: {
"format" = "{temperatureC}°C "; "format" = "{temperatureC}°C ";
"thermal-zone" = "6"; "thermal-zone" = "6";
}; };
"backlight" = {
"format" = "{percent}% {icon}";
"format-icons" = [
"󰌶"
"󱩏"
"󱩐"
"󱩐"
"󱩑"
"󱩒"
"󱩓"
"󱩔"
"󱩕"
"󱩖"
"󰛨"
];
};
"battery" = {
"tooltip" = false;
"states" = {
"full" = 100;
"warning" = 30;
"critical" = 15;
};
"format" = "{capacity}% {icon}";
"format-charging" = "{capacity}% 󰓦";
"format-plugged" = "{capacity}% ";
"format-alt" = "{time} {icon}";
"format-icons" = [
" "
" "
" "
" "
" "
];
};
}; };
}; };
style = '' style = ''