diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-05 15:09:47 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-05 15:09:47 +0100 |
| commit | 84ba4efd106f5398ae96fb0b5200b1be97e2eb2e (patch) | |
| tree | 4f969669386f5acd0adbe292e159c4a34df04b78 /i3/conkyrc.json | |
| parent | d7608954bf4656036bf03f57f5c3422410ffb556 (diff) | |
| download | dotfiles-84ba4efd106f5398ae96fb0b5200b1be97e2eb2e.tar.gz dotfiles-84ba4efd106f5398ae96fb0b5200b1be97e2eb2e.zip | |
change audio setup to use pulseaudio
1) change media key commands to pamixer
2) change conky settings
* use pamixer to get volume and mute
* remove 'Volume:' String
* display default pa sink
Diffstat (limited to 'i3/conkyrc.json')
| -rw-r--r-- | i3/conkyrc.json | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/i3/conkyrc.json b/i3/conkyrc.json index 74a84db..bea7884 100644 --- a/i3/conkyrc.json +++ b/i3/conkyrc.json @@ -86,11 +86,14 @@ TEXT ################ Volume ######################## {"name": "symbol", "color": "\#ffffff", "full_text": - ${if_match "${exec amixer sget Master | grep "\[on\]"}"==""}"M"${else}"U"${endif}, + ${if_match "${exec pamixer --get-mute}"=="true"}"M"${else}"U"${endif}, "separator": false}, + + {"name": "card", "color": "\#ffffff", "separator": false, + "full_text": "${exec pacmd info | grep 'Default sink' | grep -o '[^.]*$'}"}, {"name": "Volume", "color": "\#ffffff", "full_text": - "Volume: [${exec amixer sget Master | grep Mono: | sed -e 's/[ \t]*Mono: Playback [0-9]* \[\([0-9]*%\)\].*/\1/'}]"}, + "[${exec pamixer --get-volume}%]"}, |
