Odin and polybar update
This commit is contained in:
parent
47e99ede4f
commit
f7e4fcf637
4 changed files with 104 additions and 68 deletions
|
|
@ -72,9 +72,9 @@ let
|
|||
};
|
||||
font = [
|
||||
"${pkgs.rice.font.monospace.name}:size=${toString pkgs.rice.font.monospace.size};2"
|
||||
"Font Awesome 6 Free:size=14;0"
|
||||
"Material Design Icons:size=${toString pkgs.rice.font.monospace.size};2"
|
||||
"EmojiOne Color:size=${toString pkgs.rice.font.monospace.size};0"
|
||||
# "Font Awesome 6 Free:size=14;0"
|
||||
# "Material Design Icons:size=${toString pkgs.rice.font.monospace.size};2"
|
||||
# "EmojiOne Color:size=${toString pkgs.rice.font.monospace.size};0"
|
||||
];
|
||||
wm-restack = "bspwm";
|
||||
};
|
||||
|
|
@ -84,10 +84,10 @@ in
|
|||
{
|
||||
home.packages = with pkgs; [
|
||||
pkgs.rice.font.monospace.package
|
||||
emojione
|
||||
noto-fonts-emoji
|
||||
material-design-icons
|
||||
font-awesome
|
||||
# emojione
|
||||
# noto-fonts-emoji
|
||||
# material-design-icons
|
||||
# font-awesome
|
||||
];
|
||||
services.polybar = {
|
||||
enable = true;
|
||||
|
|
@ -188,8 +188,7 @@ in
|
|||
"module/cpu" = {
|
||||
type = "internal/cpu";
|
||||
format = colors.normal // {
|
||||
text = " <label>";
|
||||
padding = 1;
|
||||
text = " <label>";
|
||||
};
|
||||
interval = 2;
|
||||
label = "%percentage-sum%%";
|
||||
|
|
@ -208,16 +207,13 @@ in
|
|||
alt = "%H:%M:%S";
|
||||
text = "%H:%M";
|
||||
};
|
||||
format = colors.normal // {
|
||||
padding = 1;
|
||||
};
|
||||
format = colors.normal;
|
||||
};
|
||||
|
||||
"module/memory" = {
|
||||
type = "internal/memory";
|
||||
format = colors.normal // {
|
||||
padding = 1;
|
||||
text = " <label>";
|
||||
text = " <label>";
|
||||
};
|
||||
interval = 2;
|
||||
label = "%percentage_used%%";
|
||||
|
|
@ -227,14 +223,10 @@ in
|
|||
"module/pulseaudio" = {
|
||||
interval = 2;
|
||||
bar.volume = {
|
||||
empty = {
|
||||
font = "2";
|
||||
text = "─";
|
||||
};
|
||||
fill = {
|
||||
text = "─";
|
||||
font = "2";
|
||||
};
|
||||
empty = { text = "─"; };
|
||||
fill = { text = "─"; };
|
||||
indicator = { text = "|"; };
|
||||
width = "10";
|
||||
foreground = [
|
||||
colors.green
|
||||
colors.green
|
||||
|
|
@ -245,36 +237,21 @@ in
|
|||
colors.orange
|
||||
colors.red
|
||||
];
|
||||
indicator = {
|
||||
text = "|";
|
||||
font = "2";
|
||||
};
|
||||
width = "10";
|
||||
};
|
||||
click.right = "${pgrep} pavucontrol && ${pkill} pavucontrol || ${pavucontrol}";
|
||||
format = {
|
||||
padding = 1;
|
||||
muted = colors.active // {
|
||||
padding = 1;
|
||||
};
|
||||
volume = colors.normal // {
|
||||
padding = 1;
|
||||
text = "<ramp-volume> <label-volume>";
|
||||
};
|
||||
muted = colors.active;
|
||||
volume = colors.normal // { text = "<ramp-volume> <label-volume>"; };
|
||||
};
|
||||
label.muted = {
|
||||
text = "";
|
||||
};
|
||||
label.volume = {
|
||||
text = "%percentage%%";
|
||||
};
|
||||
ramp.volume = [ "" "" "" ];
|
||||
label.muted = { text = "婢"; };
|
||||
label.volume = { text = "%percentage%%"; };
|
||||
ramp.volume = [ "奄" "奔" "墳" ];
|
||||
type = "internal/pulseaudio";
|
||||
};
|
||||
|
||||
"module/temperature" = {
|
||||
format = colors.normal // {
|
||||
padding = 1;
|
||||
text = "<ramp> <label>";
|
||||
warn = {
|
||||
padding = 1;
|
||||
|
|
@ -287,9 +264,7 @@ in
|
|||
text = "%temperature-c%";
|
||||
warn = "%temperature-c%";
|
||||
};
|
||||
ramp = {
|
||||
text = [ "" "" "" "" "" ];
|
||||
};
|
||||
ramp = { text = [ "" "" "" "" "" ]; };
|
||||
thermal.zone = "0";
|
||||
type = "internal/temperature";
|
||||
warn.temperature = "90";
|
||||
|
|
@ -303,15 +278,9 @@ in
|
|||
suffix = " ";
|
||||
};
|
||||
label = {
|
||||
open = colors.normal // {
|
||||
text = " ⏻ ";
|
||||
};
|
||||
close = colors.normal // {
|
||||
text = "Cancel";
|
||||
};
|
||||
separator = {
|
||||
text = "|";
|
||||
};
|
||||
open = colors.normal // { text = " ⏻ "; };
|
||||
close = colors.normal // { text = "Cancel"; };
|
||||
separator = { text = "|"; };
|
||||
};
|
||||
menu = [
|
||||
[
|
||||
|
|
@ -337,9 +306,7 @@ in
|
|||
|
||||
"module/player" = {
|
||||
type = "custom/script";
|
||||
format = colors.normal // {
|
||||
padding = 1;
|
||||
};
|
||||
format = colors.normal;
|
||||
exec = playerStatus;
|
||||
click.left = "${playerCtl} play-pause";
|
||||
scroll = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue