From dab407eb8e31e8b3abd921c6897830f6adc17d40 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 5 Jun 2020 05:24:17 -0500 Subject: [PATCH] Polybar: Add module to show pending reboots --- .config/polybar/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/polybar/config b/.config/polybar/config index 5eda0d45..7bac5ca4 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -73,7 +73,7 @@ modules-right = fshome | wlan-laptop wlan-desktop monitor = ${env:PB_MONITOR:eDP-1} inherit = template/bar border-top-size = ${res/config.border-size} -modules-left = battery cpu memory +modules-left = battery cpu memory reboot-required modules-right = backlight pulse | date [bar/secondary] @@ -243,6 +243,12 @@ bar-volume-empty = ${res/config.bar-empty} bar-volume-empty-foreground = ${res/colors.gray} bar-volume-indicator = ${res/config.bar-indicator} +[module/reboot-required] +type = custom/script +exec = "echo Reboot required" +exec-if = "[ -f /var/run/reboot-required ]" +format-foreground = ${res/colors.yellow} + [module/wlan-laptop] type = internal/network interface = wlp1s0