diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/XMonad/lib/Hooks.hs | 6 | ||||
-rw-r--r-- | .config/polybar/config.ini | 37 |
2 files changed, 38 insertions, 5 deletions
diff --git a/.config/XMonad/lib/Hooks.hs b/.config/XMonad/lib/Hooks.hs index d2e1ebf..a982398 100644 --- a/.config/XMonad/lib/Hooks.hs +++ b/.config/XMonad/lib/Hooks.hs @@ -38,8 +38,8 @@ myStartupHook = do spawnOnce "dunst" spawnOnce "polystart" spawnOnce "nitrogen --restore" - spawnOnce "cbatticon" + -- spawnOnce "cbatticon" spawnOnce "udiskie" - -- setWMName "Anime Thighs" - setWMName "LG3D" + setWMName "Anime Thighs" + -- setWMName "LG3D" setDefaultCursor xC_left_ptr diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 5e4bcb8..2786f49 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -76,6 +76,15 @@ vol-fg = ${colors.module-color-0} vol-bg = ${colors.module-bg} vol-fg-alt = #c32aeb +batt-charging-bg = ${colors.module-bg} +batt-charging-fg = ${colors.module-color-0} + +batt-discharging-bg = ${colors.module-bg} +batt-discharging-fg = ${colors.module-color-1} + +batt-full-bg = ${colors.module-bg} +batt-full-fg = ${colors.module-color-0} + [bar/mybar] ;monitor = ${env:MONITOR:eDP-1-1} enable-ipc = true @@ -111,7 +120,7 @@ font-3 = fixed:pixelsize=10;1 modules-left = date uptime wlan eth filesystem-root filesystem-home filesystem-hdd cpu temperature memory xwindow ;modules-center = xwindow -modules-right = pulseaudio ewmh +modules-right = pulseaudio ewmh battery tray-position = right tray-padding = 2 @@ -273,7 +282,31 @@ screenchange-reload = true margin-top = 0 margin-bottom = 0 -; vim:ft=dosini +[module/battery] +type = internal/battery + +; This is useful in case the battery never reports 100% charge +full-at = 100 + +; Use the following command to list batteries and adapters: +; $ ls -1 /sys/class/power_supply/ +battery = BAT0 +adapter = ADP1 + +poll-interval = 5 + +label-full = +label-discharging = " BATT: %percentage%% " +label-charging = " BATT: %percentage%% " + +label-charging-background = ${colors.batt-charging-bg} +label-charging-foreground = ${colors.batt-charging-fg} + +label-discharging-background = ${colors.batt-discharging-bg} +label-discharging-foreground = ${colors.batt-discharging-fg} + +label-full-background = ${colors.batt-full-bg} +label-full-foreground = ${colors.batt-full-fg} [module/ewmh] type = internal/xworkspaces |