summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authoranntnzrb <51257127+anntnzrb@users.noreply.github.com>2020-12-01 18:21:03 -0500
committerGitHub <noreply@github.com>2020-12-01 18:21:03 -0500
commit7c96bd081ac25faea8144aaa8c770aaf31bd558a (patch)
tree6d5a0d74412a7f85d2ff3fa7448ad8ea56049aa7 /.local
parent1065e316117048ad21b920a74903ae930a50d412 (diff)
downloadeibhear-7c96bd081ac25faea8144aaa8c770aaf31bd558a.tar.gz
eibhear-7c96bd081ac25faea8144aaa8c770aaf31bd558a.tar.zst
eibhear-7c96bd081ac25faea8144aaa8c770aaf31bd558a.zip
Compatibility for FreeBSD's paste(1) (#853)
* Compatibility for FreeBSD's paste(1) According to FreeBSD's [paste(1)](https://www.freebsd.org/cgi/man.cgi?query=paste&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports), the extra `-` is needed (tested by myself). This obviously works for Linux as well, tested on Void Linux at least. > Create a colon-separated list of directories named bin, > suitable for use in the PATH environment variable: `find / -name bin -type d | paste -s -d : -` * Compatibility for FreeBSD's paste(1) According to FreeBSD's [paste(1)](https://www.freebsd.org/cgi/man.cgi?query=paste&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports), the extra `-` is needed (tested by myself). This obviously works for Linux as well, tested on Void Linux at least. > Create a colon-separated list of directories named bin, > suitable for use in the PATH environment variable: `find / -name bin -type d | paste -s -d : -`
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/displayselect2
-rwxr-xr-x.local/bin/statusbar/music2
-rwxr-xr-x.local/bin/statusbar/torrent2
3 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/displayselect b/.local/bin/displayselect
index 37d1397..b7f0a0f 100755
--- a/.local/bin/displayselect
+++ b/.local/bin/displayselect
@@ -53,7 +53,7 @@ multimon() { # Multi-monitor handler.
esac ;}
onescreen() { # If only one output available or chosen.
- xrandr --output "$1" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | paste -sd ' ')
+ xrandr --output "$1" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | paste -sd ' ' -)
}
postrun() { # Stuff to run to clean up.
diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music
index 8de3e6a..4b7c115 100755
--- a/.local/bin/statusbar/music
+++ b/.local/bin/statusbar/music
@@ -1,6 +1,6 @@
#!/bin/sh
-filter() { mpc | sed "/^volume:/d;s/\\&/&amp;/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ';}
+filter() { mpc | sed "/^volume:/d;s/\\&/&amp;/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ' -;}
pidof -x mpdup >/dev/null 2>&1 || mpdup >/dev/null 2>&1 &
diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent
index d2e0885..6527005 100755
--- a/.local/bin/statusbar/torrent
+++ b/.local/bin/statusbar/torrent
@@ -8,7 +8,7 @@ transmission-remote -l | grep % |
s/.*Idle.*/B 🕰️/;
s/.*Uploading.*/L ⬆️/;
s/.*%.*/M ⬇️/" |
- sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' '
+ sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e tremc ;;