Update poylbar config
This commit is contained in:
parent
a5e953b1ab
commit
e1397c8a45
2 changed files with 9 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
monitorPages = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" ];
|
monitorPages = [ "Ⅰ" "Ⅱ" "Ⅲ" "Ⅳ" "Ⅴ" "Ⅵ" "Ⅶ" "Ⅷ" "Ⅸ" "Ⅹ" ];
|
||||||
monitorPagesString = lib.strings.concatStringsSep " " monitorPages;
|
monitorPagesString = lib.strings.concatStringsSep " " monitorPages;
|
||||||
strPalette = pkgs.lib.rice.palette.toRGBHex pkgs.rice.colorPalette;
|
strPalette = pkgs.lib.rice.palette.toRGBHex pkgs.rice.colorPalette;
|
||||||
xrandr = "${pkgs.xorg.xrandr}/bin/xrandr";
|
xrandr = "${pkgs.xorg.xrandr}/bin/xrandr";
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,8 @@ let
|
||||||
'';
|
'';
|
||||||
colors = with pkgs.lib.rice;
|
colors = with pkgs.lib.rice;
|
||||||
let alpha = 255 * opacity;
|
let alpha = 255 * opacity;
|
||||||
in palette.toARGBHex rec {
|
in
|
||||||
|
palette.toARGBHex rec {
|
||||||
|
|
||||||
normal = {
|
normal = {
|
||||||
foreground = colorPalette.normal.white;
|
foreground = colorPalette.normal.white;
|
||||||
|
|
@ -62,10 +63,7 @@ let
|
||||||
foreground = colors.normal.foreground;
|
foreground = colors.normal.foreground;
|
||||||
line-size = 2;
|
line-size = 2;
|
||||||
line-color = colors.normal.underline;
|
line-color = colors.normal.underline;
|
||||||
padding = {
|
padding = 0;
|
||||||
left = 0;
|
|
||||||
right = 0;
|
|
||||||
};
|
|
||||||
module.margin = {
|
module.margin = {
|
||||||
left = 0;
|
left = 0;
|
||||||
right = 0;
|
right = 0;
|
||||||
|
|
@ -125,12 +123,11 @@ in
|
||||||
"bar/primary" = recursiveUpdate commonBar {
|
"bar/primary" = recursiveUpdate commonBar {
|
||||||
modules-left = "bspwm";
|
modules-left = "bspwm";
|
||||||
# modules-center =
|
# modules-center =
|
||||||
modules-right =
|
modules-right = "player pulseaudio temperature cpu memory battery date powermenu";
|
||||||
"player pulseaudio temperature cpu memory battery date powermenu";
|
|
||||||
enable-ipc = true;
|
enable-ipc = true;
|
||||||
tray = {
|
tray = {
|
||||||
position = "right";
|
position = "right";
|
||||||
padding = 0;
|
padding = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -185,8 +182,8 @@ in
|
||||||
label =
|
label =
|
||||||
let
|
let
|
||||||
common = {
|
common = {
|
||||||
padding = 1;
|
padding = 0;
|
||||||
separator = " ";
|
separator = "&nsbp;&nsbp;";
|
||||||
text = "%name%";
|
text = "%name%";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
@ -197,7 +194,7 @@ in
|
||||||
background = colors.alert;
|
background = colors.alert;
|
||||||
};
|
};
|
||||||
empty = recursiveUpdate (recursiveUpdate colors.normal common) {
|
empty = recursiveUpdate (recursiveUpdate colors.normal common) {
|
||||||
text = "";
|
text = "·";
|
||||||
padding = 0;
|
padding = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue