summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/fbpanel/taskbar8
-rwxr-xr-xlib/panel/dtmon10
2 files changed, 16 insertions, 2 deletions
diff --git a/.config/fbpanel/taskbar b/.config/fbpanel/taskbar
index 816bd5e..2905b1a 100644
--- a/.config/fbpanel/taskbar
+++ b/.config/fbpanel/taskbar
@@ -31,11 +31,15 @@ Plugin {
}
Plugin {
- type = pager
+ type = genmon
expand = false
padding = 0
config {
- showwallpaper = false
+ command = ~/lib/panel/dtmon
+ textsize = 10240
+ textcolor = #F3F3F5
+ pollingtime = 1
+ maxtextlength = 3
}
}
diff --git a/lib/panel/dtmon b/lib/panel/dtmon
new file mode 100755
index 0000000..ca2472d
--- /dev/null
+++ b/lib/panel/dtmon
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+main()
+{
+ dt="$(wmctrl -d | sed -n 's/ * \* .*$//p')"
+ : $((dt += 1))
+ printf 'DT%d\n' ${dt}
+}
+
+main "${@}"