summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-22 11:29:31 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-22 11:29:31 (EDT)
commit10d5ddff0343049032914ea3a23e07d4d2f7240f (patch)
treebee5d3524079bba11ce7e10840fdcb637087737c
parentae058e8e9d7b97b3ce0062d76af1b1638fa6563b (diff)
downloadfluxbox-10d5ddff0343049032914ea3a23e07d4d2f7240f.zip
fluxbox-10d5ddff0343049032914ea3a23e07d4d2f7240f.tar.gz
fluxbox-10d5ddff0343049032914ea3a23e07d4d2f7240f.tar.bz2
.config/fbpanel/taskbar: Replace pager with DT#
-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 "${@}"