Update poylbar config

This commit is contained in:
Filippo Berto 2022-11-03 10:44:20 +01:00
parent a5e953b1ab
commit e1397c8a45
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
2 changed files with 9 additions and 12 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, lib, ... }:
let
monitorPages = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" ];
monitorPages = [ "" "" "" "" "" "" "" "" "" "" ];
monitorPagesString = lib.strings.concatStringsSep " " monitorPages;
strPalette = pkgs.lib.rice.palette.toRGBHex pkgs.rice.colorPalette;
xrandr = "${pkgs.xorg.xrandr}/bin/xrandr";

View file

@ -20,7 +20,8 @@ let
'';
colors = with pkgs.lib.rice;
let alpha = 255 * opacity;
in palette.toARGBHex rec {
in
palette.toARGBHex rec {
normal = {
foreground = colorPalette.normal.white;
@ -62,10 +63,7 @@ let
foreground = colors.normal.foreground;
line-size = 2;
line-color = colors.normal.underline;
padding = {
left = 0;
right = 0;
};
padding = 0;
module.margin = {
left = 0;
right = 0;
@ -125,12 +123,11 @@ in
"bar/primary" = recursiveUpdate commonBar {
modules-left = "bspwm";
# modules-center =
modules-right =
"player pulseaudio temperature cpu memory battery date powermenu";
modules-right = "player pulseaudio temperature cpu memory battery date powermenu";
enable-ipc = true;
tray = {
position = "right";
padding = 0;
padding = 1;
};
};
@ -185,8 +182,8 @@ in
label =
let
common = {
padding = 1;
separator = " ";
padding = 0;
separator = "&nsbp;&nsbp;";
text = "%name%";
};
in
@ -197,7 +194,7 @@ in
background = colors.alert;
};
empty = recursiveUpdate (recursiveUpdate colors.normal common) {
text = "󰧟";
text = "·";
padding = 0;
};
};