summaryrefslogtreecommitdiffhomepage
path: root/src/Sway.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sway.hs')
-rw-r--r--src/Sway.hs17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/Sway.hs b/src/Sway.hs
index 4c197ab..5c7ecc2 100644
--- a/src/Sway.hs
+++ b/src/Sway.hs
@@ -21,21 +21,11 @@ mprisx client width =
, "-T", show width
, "-E", "…", "-M", "100", "-x", ""] 40
-
-nmmail = NotmuchMail "mail" [MailItem "" "" "tag:new"] 100
-
config p = (baseConfig p) {
position = TopSize C 100 (defaultHeight - 1)
, textOutput = True
, textOutputFormat = Swaybar
, font = "Source Code Pro Medium 9"
- , additionalFonts = [ "xft:Symbola 9"
- , "xft:Symbola 10"
- , "xft:Symbola 11"
- , "xft:Symbola 11"
- , "xft:DejaVu Sans Mono 9"
- , "xft:FontAwesome 10"
- , "xft:FontAwesome 9"]
, bgColor = "#ffffffc0"
, fgColor = "#000000"
, border = FullB
@@ -61,24 +51,29 @@ config p = (baseConfig p) {
, Run (PipeReader ":/tmp/emacs.status" "estat")
, Run nmmail
]
- , template = fc "#a0522d" "|mail| |estat|"
+ , template = fc "#a0522d" "|mail| |estat| "
++ " |batt0| "
+ ++ " "
++ "<action=`toggle-app.sh nm-applet --indicator`>"
++ " |wg-mullvad||tun0||wlp164s0wi|"
++ "</action>"
++ " |dynnetwork| "
+ ++ "<hspace=3/>"
++ "<action=`toggle-app.sh pavucontrol`>"
++ " |default:Master| "
++ fn 7 "\xf130" ++ " |default:Capture|"
++ "</action> "
++ "|mpd|"
+ ++ "<hspace=3/>"
++ " |EGPH| "
++ " {} <hspace=3/>"
++ "|multicpu| "
++ "|multicoretemp| "
++ " |top| "
+ ++ "<hspace=1/>"
++ fni "☸" ++ " |memory| "
++ " |diskio| |disku| "
+ ++ "<hspace=3/>"
++ " |datetime| "
++ " |laTime| "
} where dimi = fc (pDim p)