convert_from_wal.sh (497B)
1 #!/bin/sh 2 # for replacing curly braces in pywal templates to convert them to wallust 'new_engine' templates 3 # TODO: 4 # - find way to convert double brace escapes, if they worked in pywal 5 # - find way to replace pywal template values 6 7 rpl () { 8 sed -i $1 $2 9 } 10 11 # replaces pywal double open brace escapes with regular opening curly braces 12 rpl 's/{/{{/g' $1 13 rpl 's/{{{{/{/g' $1 14 15 # replaces pywal double close brace escapes with regular closing curly braces 16 rpl 's/}/}}/g' $1 17 rpl 's/}}}}/}/g' $1