Polybar cleanup

This commit is contained in:
Agatha Lovelace 2023-04-02 12:52:25 +02:00
parent 9fd1ca4e5c
commit fdb7f082d6
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
1 changed files with 13 additions and 6 deletions

View File

@ -7,8 +7,15 @@ in {
systemd.user.services.polybar = {
Service = {
Environment = lib.mkForce
"PATH=${config.home-manager.users.agatha.services.polybar.package}/bin:/run/wrappers/bin:${pkgs.dbus}/bin:${pkgs.dunst}/bin";
Environment = lib.mkForce (lib.concatStringsSep ":" [
"PATH=${config.home-manager.users.agatha.services.polybar.package}/bin"
"/run/wrappers/bin"
"${pkgs.dbus}/bin"
"${pkgs.dunst}/bin"
"${pkgs.systemd}/bin"
"${pkgs.util-linux}/bin"
"${pkgs.gnused}/bin"
]);
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
@ -134,7 +141,7 @@ in {
format-prefix-foreground = "\${colors.foreground-alt}";
label = ''
%{A3:${pkgs.dunst}/bin/dunstify ' Calendar' "$(cal --color=always | sed "s#\\x1b\\[7m#<b>#;s#\\x1b\\[27m#</b>#g")":}%date%%{A} %time%'';
%{A3:${pkgs.dunst}/bin/dunstify ' Calendar' "$(${pkgs.util-linux}/bin/cal --color=always | ${pkgs.gnused}/bin/sed "s#\\x1b\\[7m#<b>#;s#\\x1b\\[27m#</b>#g")":}%date%%{A} %time%'';
};
"module/filesystem" = {
@ -172,7 +179,7 @@ in {
label-volume-foreground = "\${root.foreground}";
label-muted = " muted";
label-muted-foreground = "#666";
label-muted-foreground = "\${colors.primary}";
bar.volume = {
width = 14;
@ -211,9 +218,9 @@ in {
menu = {
"0-0" = "reboot";
"0-0-exec" = "reboot";
"0-0-exec" = "${pkgs.systemd}/bin/reboot";
"0-1" = "power off";
"0-1-exec" = "sudo poweroff";
"0-1-exec" = "sudo ${pkgs.systemd}/bin/poweroff";
};
};