diff --git a/.config/xmobar/xmobarrc-template.hs b/.config/xmobar/xmobarrc-template.hs index 9c3051d..5bc2d2d 100644 --- a/.config/xmobar/xmobarrc-template.hs +++ b/.config/xmobar/xmobarrc-template.hs @@ -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 = "  %XMonadLog% }{\ \%get_music_info%\ \ %alsa:default:Master%\ - \﬙ %cpu%\ + \%backUpRunning.sh%﬙ %cpu%\ \ %memory%\ \%date%\ \%wttr%" diff --git a/.scripts/backUpRunning.sh b/.scripts/backUpRunning.sh new file mode 100755 index 0000000..35dd999 --- /dev/null +++ b/.scripts/backUpRunning.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +if ps aux | egrep '[r]sync'; then + echo " " +fi