diff options
author | jao <jao@gnu.org> | 2022-08-13 17:15:15 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-08-13 17:15:15 +0100 |
commit | f62d3d8c2bc488f26fa21a3f824879d614570aec (patch) | |
tree | c28fedc2bea27e7cc85df7d0e0b2fc9ee5bc1de9 /lib/Bottom.hs | |
parent | c94a9349d25394726456efc8b1dbcca8385b1b77 (diff) | |
download | xmobar-config-f62d3d8c2bc488f26fa21a3f824879d614570aec.tar.gz xmobar-config-f62d3d8c2bc488f26fa21a3f824879d614570aec.tar.bz2 |
lib: clean ups
Diffstat (limited to 'lib/Bottom.hs')
-rw-r--r-- | lib/Bottom.hs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/Bottom.hs b/lib/Bottom.hs new file mode 100644 index 0000000..5b2b6c9 --- /dev/null +++ b/lib/Bottom.hs @@ -0,0 +1,35 @@ +module Bottom (config) where + +import Xmobar +import Config +import Monitors + +-- ⏱ +config cs tpl p = (baseConfig p) { + position = BottomSize C 100 defaultHeight + , textOffset = defaultHeight - 6 + , textOffsets = [defaultHeight - 6, defaultHeight - 6, + defaultHeight - 4, defaultHeight - 8, + defaultHeight - 7] + , border = TopB + , template = "|tray| \ + \<action=`toggle-app.sh nm-applet`>|proton0||wlp1s0wi|</action> \ + \ |dynnetwork| \ + \ <action=`toggle-app.sh pasystray`>|default:Master|\ + \ |default:Capture|</action> <fn=2>🎵</fn>" + ++ tpl + ++ " {} |mail| |EGPH| \ + \ <fn=2>🗓 </fn>|uptime| <fn=2>🕓 </fn>|datetime| |laTime| " + , commands = [ Run (uptime p) + , Run (wireless p "wlp1s0") + , Run (dynNetwork p) + , Run proton0 + , Run (weather "EGPH" p) -- LEGE, LEBL, KCV0 + , Run trayPadding + , Run (mail p) + , Run (masterVol p) + , Run captureVol + , Run laTime + , Run localTime + ] ++ cs +} |