Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 6 additions and 7 deletions.
  1. +1 −2 dwmstatus
  2. +5 −5 pbs
View
3 dwmstatus
@@ -13,8 +13,7 @@ date_upd() {
pb_stat() {
if (($(pgrep -c pianobar) > 0)) || (($(pgrep -c pianobarfly) > 0)); then
if [[ -s "$file" ]]; then
- source "$file"
- mus="$artist - $title |"
+ mus="$(cat $file)"
else
mus=''
fi
View
10 pbs
@@ -11,13 +11,13 @@ if [[ "$@" == 'songstart' ]]; then
while read -r line
do
- if ((numlines <= 1)); then
- echo "$line" >> "$file"
+ if ((numlines == 0)); then
+ echo -n "${line:7} - " >> "$file"
+ numlines=$((numlines+1))
+ elif ((numlines == 1)); then
+ echo -n "${line:6} |" >> "$file"
numlines=$((numlines+1))
fi
done
- sed -i 's/=/=\"/g' "$file"
- sed -i 's/$/\"/g' "$file"
-
fi

No commit comments for this range

Something went wrong with that request. Please try again.