Add seedbox status in xmobar

1cb677484d72578c79b56a163b8833f1a0413bbc
Alexis Sellier committed ago 1 parent 8d469256
.xmobarrc +2 -1
11 11
                  , Run MultiCpu   [ "--template", "<total0>% <total1>% <total2>% <total3>%", "-w", "3" ] 50
12 12
                  , Run Memory     [ "--template", "<usedratio>%" ] 10
13 13
                  , Run Date       "%a %b %d %Y %H:%M:%S" "date" 10
14 14
                  , Run DiskU      [("/", "<used>/<size>"), ("/home", "<used>/<size>")] [] 20
15 15
                  , Run Com        "xmobar-dropbox-status" [] "dropbox" 10
16 +
                  , Run Com        "seedbox-status" [] "seedbox" 1
16 17
                  , Run CoreTemp   [ "--template", "<core0>° <core1>° <core2>° <core3>°" ] 50
17 18
                  , Run StdinReader
18 19
                  ]
19 20
     , sepChar = "%"
20 21
     , alignSep = "}{"
21 -
     , template = "%StdinReader%  }{┊  %dropbox%  ┊ %coretemp% ┊ %multicpu%  ┊  %memory%  ┊  %disku% ┊  %dynnetwork%  ┊  <fc=#aa0000>%date%</fc> "
22 +
     , template = "%StdinReader%  }{┊ %seedbox% ┊  %dropbox%  ┊ %coretemp% ┊ %multicpu%  ┊  %memory%  ┊  %disku% ┊  %dynnetwork%  ┊  <fc=#aa0000>%date%</fc> "
22 23
}
bin/seedbox-status added +10 -0
1 +
#!/bin/sh
2 +
3 +
mounted="$(mount -t fuse.sshfs | awk '{print $3}')"
4 +
5 +
if [ ! -z "$mounted" ]; then
6 +
	echo "$mounted"
7 +
else
8 +
	echo "-"
9 +
fi
10 +