Add 'reboot required' i3status notification
dblume

dblume commited on 2024-01-16 22:16:38
Showing 1 changed files, with 9 additions and 0 deletions.

... ...
@@ -5,6 +5,7 @@
5 5
 # The following line should contain a sharp s:
6 6
 # ß
7 7
 # If the above line is not correctly displayed, fix your editor first!
8
+# https://fontawesome.com/v4/cheatsheet/
8 9
 
9 10
 general {
10 11
         colors = true
... ...
@@ -12,6 +13,7 @@ general {
12 13
 }
13 14
 
14 15
 #order += "ipv6"
16
+order += "path_exists reboot_req"
15 17
 order += "wireless _first_"
16 18
 order += "volume master"
17 19
 #order += "ethernet _first_"
... ...
@@ -21,6 +23,13 @@ order += "battery all"
21 23
 #order += "memory"
22 24
 order += "tztime local"
23 25
 
26
+path_exists reboot_req {
27
+	path = "/var/run/reboot-required"
28
+	format = " Reboot required"
29
+	format_down = ""
30
+	color_good = "#aaaaff"
31
+}
32
+
24 33
 wireless _first_ {
25 34
         format_up = "%quality on %essid %ip"
26 35
         # format_up = " %quality %ip"
27 36