Better grobi + polybar audio + updates

This commit is contained in:
Filippo Berto 2021-06-17 12:05:57 +02:00
parent b07388875e
commit b3fdc5f573
6 changed files with 89 additions and 68 deletions

View file

@ -10,7 +10,17 @@
primary = "HDMI-0";
}
{
name = "Fallback";
name = "Presentation";
outputs_connected = [ "eDP1" "DP1" ];
configure_row = [ "eDP1" "DP1" ];
primary = "eDP1";
}
{
name = "FallbackIntel";
configure_single = "eDP1";
}
{
name = "FallbackNvidia";
configure_single = "eDP-1-1";
}
];

View file

@ -2,11 +2,12 @@
let
grep = "${pkgs.gnugrep}/bin/grep";
cut = "${pkgs.coreutils}/bin/cut";
head = "${pkgs.coreutils}/bin/head";
pavucontrol = "${pkgs.pavucontrol}/bin/pavucontrol";
pgrep = "${pkgs.procps}/bin/pgrep";
pkill = "${pkgs.procps}/bin/pkill";
playerCtl = "${pkgs.playerctl}/bin/playerctl";
playerStatus = "${playerCtl} -f '{{emoji(status)}} {{title}} - {{artist}}' metadata | head -c 60";
playerStatus = "${playerCtl} -f '{{emoji(status)}} {{title}} - {{artist}}' metadata | ${head} -c 60";
colors = with pkgs.extra; palette.toARGBHex rec {
normal = {
@ -235,16 +236,16 @@ in
};
volume = colors.normal // {
padding = 1;
text = "<ramp-volume><label-volume> <bar-volume>";
text = "VOL <bar-volume> <label-volume>";
};
};
label.muted = {
text = "🔇";
text = "󰖁";
};
label.volume = {
text = " %percentage%%";
text = "%percentage%%";
};
ramp.volume = [ "🔈" "🔉" "🔊" ];
ramp.volume = [ "󰕿" "󰖀" "󰕾" ];
type = "internal/pulseaudio";
};