🐛 fix polybar battery module
parent
85de3b3ac6
commit
a7f9f05ccf
|
@ -36,89 +36,88 @@ in
|
||||||
{
|
{
|
||||||
home-manager.users.moritz = {
|
home-manager.users.moritz = {
|
||||||
programs = {
|
programs = {
|
||||||
kitty.extraConfig =
|
kitty.extraConfig = ''
|
||||||
''
|
# vim:ft=kitty
|
||||||
# vim:ft=kitty
|
|
||||||
|
|
||||||
## name: Catppuccin-Frappe
|
## name: Catppuccin-Frappe
|
||||||
## author: Pocco81 (https://github.com/Pocco81)
|
## author: Pocco81 (https://github.com/Pocco81)
|
||||||
## license: MIT
|
## license: MIT
|
||||||
## upstream: https://github.com/catppuccin/kitty/blob/main/frappe.conf
|
## upstream: https://github.com/catppuccin/kitty/blob/main/frappe.conf
|
||||||
## blurb: Soothing pastel theme for the high-spirited!
|
## blurb: Soothing pastel theme for the high-spirited!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# The basic colors
|
# The basic colors
|
||||||
foreground #${text}
|
foreground #${text}
|
||||||
background #${base}
|
background #${base}
|
||||||
selection_foreground #${base}
|
selection_foreground #${base}
|
||||||
selection_background #${rosewater}
|
selection_background #${rosewater}
|
||||||
|
|
||||||
# Cursor colors
|
# Cursor colors
|
||||||
cursor #${rosewater}
|
cursor #${rosewater}
|
||||||
cursor_text_color #${base}
|
cursor_text_color #${base}
|
||||||
|
|
||||||
# URL underline color when hovering with mouse
|
# URL underline color when hovering with mouse
|
||||||
url_color #${rosewater}
|
url_color #${rosewater}
|
||||||
|
|
||||||
# Kitty window border colors
|
# Kitty window border colors
|
||||||
active_border_color #${lavender}
|
active_border_color #${lavender}
|
||||||
inactive_border_color #${overlay0}
|
inactive_border_color #${overlay0}
|
||||||
bell_border_color #${yellow}
|
bell_border_color #${yellow}
|
||||||
|
|
||||||
# OS Window titlebar colors
|
# OS Window titlebar colors
|
||||||
wayland_titlebar_color system
|
wayland_titlebar_color system
|
||||||
macos_titlebar_color system
|
macos_titlebar_color system
|
||||||
|
|
||||||
# Tab bar colors
|
# Tab bar colors
|
||||||
active_tab_foreground #${crust}
|
active_tab_foreground #${crust}
|
||||||
active_tab_background #${mauve}
|
active_tab_background #${mauve}
|
||||||
inactive_tab_foreground #${text}
|
inactive_tab_foreground #${text}
|
||||||
inactive_tab_background #${mantle}
|
inactive_tab_background #${mantle}
|
||||||
tab_bar_background #${crust}
|
tab_bar_background #${crust}
|
||||||
|
|
||||||
# Colors for marks (marked text in the terminal)
|
# Colors for marks (marked text in the terminal)
|
||||||
mark1_foreground #${base}
|
mark1_foreground #${base}
|
||||||
mark1_background #${lavender}
|
mark1_background #${lavender}
|
||||||
mark2_foreground #${base}
|
mark2_foreground #${base}
|
||||||
mark2_background #${mauve}
|
mark2_background #${mauve}
|
||||||
mark3_foreground #${base}
|
mark3_foreground #${base}
|
||||||
mark3_background #${sapphire}
|
mark3_background #${sapphire}
|
||||||
|
|
||||||
# The 16 terminal colors
|
# The 16 terminal colors
|
||||||
|
|
||||||
# black
|
# black
|
||||||
color0 #${surface1}
|
color0 #${surface1}
|
||||||
color8 #${surface2}
|
color8 #${surface2}
|
||||||
|
|
||||||
# red
|
# red
|
||||||
color1 #${red}
|
color1 #${red}
|
||||||
color9 #${red}
|
color9 #${red}
|
||||||
|
|
||||||
# green
|
# green
|
||||||
color2 #${green}
|
color2 #${green}
|
||||||
color10 #${green}
|
color10 #${green}
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
color3 #${yellow}
|
color3 #${yellow}
|
||||||
color11 #${yellow}
|
color11 #${yellow}
|
||||||
|
|
||||||
# blue
|
# blue
|
||||||
color4 #${blue}
|
color4 #${blue}
|
||||||
color12 #${blue}
|
color12 #${blue}
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
color5 #${pink}
|
color5 #${pink}
|
||||||
color13 #${pink}
|
color13 #${pink}
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
color6 #${teal}
|
color6 #${teal}
|
||||||
color14 #${teal}
|
color14 #${teal}
|
||||||
|
|
||||||
# white
|
# white
|
||||||
color7 #${subtext1}
|
color7 #${subtext1}
|
||||||
color15 #${subtext0}
|
color15 #${subtext0}
|
||||||
'';
|
'';
|
||||||
zathura.extraConfig = ''
|
zathura.extraConfig = ''
|
||||||
set window-title-basename "true"
|
set window-title-basename "true"
|
||||||
set selection-clipboard "clipboard"
|
set selection-clipboard "clipboard"
|
||||||
|
@ -253,6 +252,14 @@ in
|
||||||
format-connected-foreground = base;
|
format-connected-foreground = base;
|
||||||
format-connected-background = mauve;
|
format-connected-background = mauve;
|
||||||
};
|
};
|
||||||
|
"module/battery" = {
|
||||||
|
format-charging-foreground = base;
|
||||||
|
format-charging-background = green;
|
||||||
|
format-full-foreground = base;
|
||||||
|
format-full-background = green;
|
||||||
|
format-discharging-foreground = base;
|
||||||
|
format-discharging-background = red;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -74,8 +74,11 @@ in
|
||||||
time-format = "%H:%M";
|
time-format = "%H:%M";
|
||||||
|
|
||||||
format-charging = "<animation-charging> <label-charging>";
|
format-charging = "<animation-charging> <label-charging>";
|
||||||
|
format-charging-padding = 1;
|
||||||
format-discharging = "<animation-discharging> <label-discharging>";
|
format-discharging = "<animation-discharging> <label-discharging>";
|
||||||
|
format-discharging-padding = 1;
|
||||||
format-full = " <label-full>";
|
format-full = " <label-full>";
|
||||||
|
format-full-padding = 1;
|
||||||
|
|
||||||
label-charging = "%percentage%% %time% remaining";
|
label-charging = "%percentage%% %time% remaining";
|
||||||
label-discharging = "%percentage%% %time% remaining";
|
label-discharging = "%percentage%% %time% remaining";
|
||||||
|
|
Loading…
Reference in New Issue