Better grobi + polybar audio + updates
This commit is contained in:
parent
b07388875e
commit
b3fdc5f573
6 changed files with 89 additions and 68 deletions
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue