From 2dc968e6cefaef906bcd5a28de67c3e9456bb296 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 21 Jun 2018 15:07:55 -0500 Subject: [PATCH] Polybar: Add Dropbox module --- .config/polybar/config | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/polybar/config b/.config/polybar/config index 1d325874..0b0517ca 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -16,6 +16,7 @@ warning = ${xrdb:color1} icon-battery = ${res/colors.primary} icon-cpu = ${xrdb:color12} icon-date = ${res/colors.primary} +icon-dropbox = ${res/colors.primary} icon-fs = ${xrdb:color10} icon-memory = ${xrdb:color13} icon-volume = ${res/colors.primary} @@ -99,7 +100,7 @@ border-top-size = 0 modules-left = bspwm modules-center = xwindow -modules-right = fs-home | wlan +modules-right = dropbox fs-home | wlan [bar/secondary] monitor = ${env:PB_MONITOR} @@ -212,6 +213,15 @@ interval = 30 label = %date% %time% +[module/dropbox] +type = custom/script +format-prefix = "Dropbox: " +format-prefix-foreground = ${res/colors.icon-dropbox} +interval = 15 + +exec = dropbox status +exec-if = which dropbox + [module/fs-home] type = internal/fs format-mounted =