xbindkeys escape quotes

Posted by Danilo Bargen on Super User See other posts from Super User or by Danilo Bargen
Published on 2012-03-14T15:00:18Z Indexed on 2012/06/15 15:19 UTC
Read the original article Hit count: 366

Filed under:
|
|

How can I escape quotes in .xbindkeysrc commands? Neither of those work.

"pacmd dump|awk --non-decimal-data '$1~/set-sink-volume/{system ("pacmd "$1" "$2" "$3+2500)}'"

"pacmd dump|awk --non-decimal-data '\$1~/set-sink-volume/{system ("pacmd "\$1" "\$2" "\$3+2500)}'"

"pacmd dump|awk --non-decimal-data '\$1~/set-sink-volume/{system (\"pacmd \"\$1\" \"\$2\" \"\$3+2500)}'"

"pacmd dump|awk --non-decimal-data '$1~/set-sink-volume/{system (\"pacmd \"$1\" \"$2\" \"$3+2500)}'"

(The commands raises the PluseAudio volume level)

© Super User or respective owner

Related posts about bash

Related posts about escape-characters