aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/config.ini##template
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-07 14:40:33 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-07 14:40:33 +0100
commit94327f9f156a4ecb908f51bb4a1483973e8564d0 (patch)
treea09da3169c9795620d3443ba4c7009176863cc96 /.config/polybar/config.ini##template
parentd3261948b866f7e7b60024f2dd6e82502b2dbea1 (diff)
add khal to polybar
Diffstat (limited to '.config/polybar/config.ini##template')
-rw-r--r--.config/polybar/config.ini##template12
1 files changed, 8 insertions, 4 deletions
diff --git a/.config/polybar/config.ini##template b/.config/polybar/config.ini##template
index 38f6797..b5d5d87 100644
--- a/.config/polybar/config.ini##template
+++ b/.config/polybar/config.ini##template
@@ -1,6 +1,5 @@
[barsettings]
padding = 1.9
-
include-file = ./colors.ini
[global/wm]
@@ -8,7 +7,6 @@ margin-bottom = 50
margin-top = 0
[bar/main]
-
tray-position = right
tray-padding = ${barsettings.padding}
tray-background = ${color.bg}
@@ -45,11 +43,11 @@ font-2 = "Hiragino Kaku Gothic ProN W6:pixelsize=8:weight=medium:size=0;1"
font-3 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2"
{% if yadm.hostname == "thoncc" %}
-modules-left = time date mpd
+modules-left = time date cal mpd
modules-center = battery1 battery2 brightness
modules-right = wireless keyboard volume whoami
{% else %}
-modules-left = time date
+modules-left = time date cal
modules-center = mpd
modules-right = wacomtouch keyboard volume whoami
{% endif %}
@@ -127,6 +125,12 @@ exec = ~/.local/share/bin/kbindicator
tail = true
label-font = 1
+[module/cal]
+type = custom/script
+exec = khal list now tomorrow --notstarted --day-format '' --format '({start-time}) {calendar-color}{title}{reset}'
+interval = 60
+# TODO: create script for converting ASCII escape codes to polybar/lemonbar formatting tags
+
{% include "config.{{ yadm.hostname }}.ini" %}
; vim:ft=dosini