aboutsummaryrefslogtreecommitdiffstats
path: root/.config/polybar/modules.ini
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/modules.ini')
-rw-r--r--.config/polybar/modules.ini21
1 files changed, 20 insertions, 1 deletions
diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini
index ede850e..24fda55 100644
--- a/.config/polybar/modules.ini
+++ b/.config/polybar/modules.ini
@@ -128,14 +128,19 @@ label-foreground = ${colors.temp-fg}
[module/battery]
type = internal/battery
+low-at = 30
full-at = 100
battery = BAT0
adapter = ADP1
poll-interval = 5
-label-full =
label-charging = " %{T3}󰄌 %{T-}%percentage%% "
label-discharging = " %{T3}󰄌 %{T-}%percentage%% "
+label-low = " %{T3}󰄌 %{T-}%percentage%% "
+label-full =
+
+# for some reason it won't work properly without this
+format-low = <label-low>
label-charging-background = ${colors.batt-charging-bg}
label-charging-foreground = ${colors.batt-charging-fg}
@@ -143,6 +148,9 @@ label-charging-foreground = ${colors.batt-charging-fg}
label-discharging-background = ${colors.batt-discharging-bg}
label-discharging-foreground = ${colors.batt-discharging-fg}
+label-low-background = ${colors.batt-low-bg}
+label-low-foreground = ${colors.batt-low-fg}
+
label-full-background = ${colors.batt-full-bg}
label-full-foreground = ${colors.batt-full-fg}
@@ -209,3 +217,14 @@ tray-background = ${colors.systray-bg}
tray-foreground = ${colors.systray-fg}
tray-spacing = 8px
+
+[module/polydoro]
+type = custom/script
+
+exec = FORMAT_WORK_IDLE=" Task {counter}" FORMAT_BREAK_IDLE="%{F#89b4fa} Break {counter}%{F-}" FORMAT_LONG_BREAK_IDLE="%{F#a6e3a1} Long Break%{F-}" FORMAT_WORK="%{F#94e2d5} {time}" FORMAT_BREAK="%{F#89b4fa} {time}%{F-}" FORMAT_LONG_BREAK="%{F#a6e3a1} {time}%{F-}" FORMAT_WORK_PAUSED="%{F#94e2d5} {counter} - {time}" FORMAT_BREAK_PAUSED="%{F#89b4fa} {counter} - {time}%{F-}" FORMAT_LONG_BREAK_PAUSED="%{F#a6e3a1} {time}%{F-}" polydoro -l
+
+tail = true
+format-padding = 2
+click-left = polydoro toggle
+click-middle = polydoro skip
+click-right = polydoro reset