summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-10 02:51:54 +0100
committerJokler <jokler@protonmail.com>2020-01-10 03:02:59 +0100
commitb6be49b3341f53ea880112f0a429abc13f298ba2 (patch)
tree1ddb0f53c6188b35df1abe39a16f76c377c88a0f
parent03d4b11fb37b9d6d973670eb1a7ce7cd47449e2f (diff)
downloaddotfiles-b6be49b3341f53ea880112f0a429abc13f298ba2.tar.gz
dotfiles-b6be49b3341f53ea880112f0a429abc13f298ba2.zip
Polybar: Remove margin and add an update counter
-rw-r--r--.config/polybar/config22
1 files changed, 18 insertions, 4 deletions
diff --git a/.config/polybar/config b/.config/polybar/config
index 9f8f37a..e98089e 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -22,7 +22,7 @@ foreground = ${colors.foreground}
line-size = 3
line-color = #f00
-border-size = 4
+border-size = 0
border-color = #00000000
padding-left = 0
@@ -36,7 +36,7 @@ font-1 = Unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = "WunconSiji:pixelsize=10;1"
modules-left = date
-modules-center =
+modules-center = pkgupdates-available
modules-right = i3
scroll-up = i3wm-wsnext
@@ -59,7 +59,7 @@ foreground = ${colors.foreground}
line-size = 3
line-color = #f00
-border-size = 4
+border-size = 0
border-color = #00000000
padding-left = 0
@@ -99,7 +99,7 @@ foreground = ${colors.foreground}
line-size = 3
line-color = #f00
-border-size = 4
+border-size = 0
border-color = #00000000
padding-left = 0
@@ -322,6 +322,20 @@ menu-2-0-exec = systemctl poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
+[module/pkgupdates-available]
+type = custom/script
+
+; Available tokens:
+; %counter%
+; Command to be executed (using "/usr/bin/env sh -c [command]")
+exec = /home/jokler/.config/polybar/checkupdates.sh
+
+; Will the script output continous content?
+tail = false
+
+; Seconds to sleep between updates
+; Default: 5 (0 if `tail = true`)
+interval = 1800
[settings]
screenchange-reload = true