aboutsummaryrefslogtreecommitdiff
path: root/extras/HOME
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-01-17 23:12:46 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commitc2201172d4b582cfc90a87cfe6a3a0c95cdea4e7 (patch)
tree10e297d4465307437fe5cdb02d4ad21614e36984 /extras/HOME
parentda9ecbc1006b1567b551f2bcb09e82a08c8d11ae (diff)
downloadrde-c2201172d4b582cfc90a87cfe6a3a0c95cdea4e7.tar.gz
rde-c2201172d4b582cfc90a87cfe6a3a0c95cdea4e7.tar.bz2
rde-c2201172d4b582cfc90a87cfe6a3a0c95cdea4e7.zip
Better media
Diffstat (limited to 'extras/HOME')
-rw-r--r--extras/HOME/.xmobarrc10
-rwxr-xr-xextras/HOME/.xmonad/xmobar-media9
2 files changed, 12 insertions, 7 deletions
diff --git a/extras/HOME/.xmobarrc b/extras/HOME/.xmobarrc
index db8d994..7461de8 100644
--- a/extras/HOME/.xmobarrc
+++ b/extras/HOME/.xmobarrc
@@ -29,16 +29,14 @@ Config
, alignSep = "}{"
, template =
" %logo% <fc=#a0a0a0><fn=3>%uname%</fn></fc><fc=#404040> │\
- \</fc><fc=#a0a0a0> %date%</fc><fc=#404040> │ \
\</fc>%StdinReader%}\
\{ %cpu% %memory% <fc=#404040>\
\│</fc> %weather% <fc=#404040>│\
- \</fc> <fc=#a0a0a0>%mpris2%</fc> <fc=#404040>│ \
+ \</fc> <fc=#a0a0a0>%media%</fc> <fc=#404040>│ \
\</fc>%bluetooth%%bat% <fc=#404040>│</fc> <fn=2><fc=#606060>%time%</fc></fn> "
, commands = [
Run StdinReader,
- Run Date "%H:%M:%S" "time" 10,
- Run Date "<fn=3>%m/%d</fn>" "date" 10,
+ Run Date "%m/%d %H:%M:%S" "time" 10,
Run Cpu [
"-t", "<fn=3><fc=#000000><bar></fc></fn>",
"-L", "3",
@@ -57,9 +55,7 @@ Config
"--normal", "#88ff88",
"--high", "#ff8888"
] 10,
- Run Mpris2 "spotify" [
- "-t", "<fc=#1aa54b></fc> <fn=3><title></fn>",
- "--nastring", "<fc=#404040> </fc>"] 20,
+ Run Com ".xmonad/xmobar-media" [] "media" 20,
Run Com ".xmonad/xmobar-weather" [] "weather" 9000,
Run Com ".xmonad/xmobar-logo" [] "logo" 0,
Run Com "uname" ["-r"] "uname" 0,
diff --git a/extras/HOME/.xmonad/xmobar-media b/extras/HOME/.xmonad/xmobar-media
new file mode 100755
index 0000000..7232900
--- /dev/null
+++ b/extras/HOME/.xmonad/xmobar-media
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+title="$(spotify-control getTitle)"
+
+if [[ "$?" -eq 0 ]] ; then
+ echo "<fc=#1aa54b></fc> <fn=3>$title</fn>"
+else
+ echo "<fc=#404040> </fc>"
+fi