(xmobar) add timeshift indicator

This commit is contained in:
qvalentin 2022-01-14 18:20:08 +01:00
parent 51b2932aa6
commit 66bc7c0937
2 changed files with 7 additions and 1 deletions

View File

@ -23,13 +23,14 @@ Config { overrideRedirect = False
, Run XMonadLog
, Run Com "get_music_info" [] "" 10
, Run Com "wttr" [] "" 360
, Run Com "backUpRunning.sh" [] "" 360
]
, sepChar = "%"
, alignSep = "}{"
, template = " <fn=2> </fn>%XMonadLog% }{\
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0>%get_music_info%</fc>\
\<fn=2><fc=BGCOLOR,COLOR9:0></fc></fn><fc=FGCOLOR,BGCOLOR:0><fn=1><fc=COLOR9> </fc></fn>%alsa:default:Master%</fc>\
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0><fn=1><fc=BGCOLOR,COLOR9:0> </fc></fn>%cpu%</fc>\
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0><fn=1><fc=BGCOLOR,COLOR9:0>%backUpRunning.sh% </fc></fn>%cpu%</fc>\
\<fn=2><fc=BGCOLOR,COLOR9:0></fc></fn><fc=FGCOLOR,BGCOLOR:0><fn=1><fc=COLOR9> </fc></fn>%memory%</fc>\
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0>%date%</fc>\
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0>%wttr%</fc>"

5
.scripts/backUpRunning.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
if ps aux | egrep '[r]sync'; then
echo " "
fi