feat(polybar): move the battery module

This commit is contained in:
Pavel Korytov 2021-12-01 12:59:19 +03:00
parent 267fb8a98e
commit a17dee9be5
3 changed files with 12 additions and 12 deletions

View file

@ -28,17 +28,17 @@ gright = 
; Glyphs:1 ends here ; Glyphs:1 ends here
; [[file:../../Desktop.org::*Modules][Modules:4]] ; [[file:../../Desktop.org::*Modules][Modules:4]]
[module/glyph-green--light-yellow] [module/glyph-light-cyan--cyan]
type = custom/text type = custom/text
content-background = ${colors.green} content-background = ${colors.light-cyan}
content-foreground = ${colors.light-yellow} content-foreground = ${colors.cyan}
content = ${glyph.gright} content = ${glyph.gright}
content-font = 5 content-font = 5
[module/glyph-red--green] [module/glyph-magenta--light-cyan]
type = custom/text type = custom/text
content-background = ${colors.red} content-background = ${colors.magenta}
content-foreground = ${colors.green} content-foreground = ${colors.light-cyan}
content = ${glyph.gright} content = ${glyph.gright}
content-font = 5 content-font = 5
@ -385,9 +385,9 @@ adapter = ADP0
time-format = %H:%M time-format = %H:%M
format-discharging = <ramp-capacity> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
format-discharging-background = ${colors.green} format-discharging-background = ${colors.light-cyan}
format-charging-background = ${colors.green} format-charging-background = ${colors.light-cyan}
format-full-background = ${colors.green} format-full-background = ${colors.light-cyan}
label-discharging = %percentage%% %time% label-discharging = %percentage%% %time%
label-charging =  %percentage%% %time% label-charging =  %percentage%% %time%

View file

@ -1354,13 +1354,13 @@ So, here is a table with all modules.
|-------+-------------+---------------+-------| |-------+-------------+---------------+-------|
| 1 | pulseaudio | light-magenta | + | | 1 | pulseaudio | light-magenta | + |
| 2 | mpd | magenta | + | | 2 | mpd | magenta | + |
| 9 | battery | light-cyan | + |
| 3 | cpu | cyan | + | | 3 | cpu | cyan | + |
| 4 | ram-memory | light-green | + | | 4 | ram-memory | light-green | + |
| 5 | swap-memory | green | + | | 5 | swap-memory | green | + |
| 6 | network | light-red | + | | 6 | network | light-red | + |
| 7 | openvpn | light-red | | | 7 | openvpn | light-red | |
| 8 | xkeyboard | red | + | | 8 | xkeyboard | red | + |
| 9 | battery | green | + |
| 10 | weather | light-yellow | + | | 10 | weather | light-yellow | + |
| 12 | sun | yellow | + | | 12 | sun | yellow | + |
| 13 | aw-afk | light-blue | + | | 13 | aw-afk | light-blue | + |

View file

@ -34,8 +34,8 @@ declare -A BAR_HEIGHT=(
["HDMI-A-0"]="29" ["HDMI-A-0"]="29"
) )
declare -A BLOCKS=( declare -A BLOCKS=(
["eDP"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--green battery glyph-green--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ["eDP"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--light-cyan battery glyph-light-cyan--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background "
["eDP-1"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--green battery glyph-green--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ["eDP-1"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--light-cyan battery glyph-light-cyan--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background "
["DVI-D-0"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ["DVI-D-0"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background "
["HDMI-A-0"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ["HDMI-A-0"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red network openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background "
) )