From 60ed035ffd1ac2bf4aece742e62d67c3c5d675fc Mon Sep 17 00:00:00 2001 From: Hekuran <62762955+narukeh@users.noreply.github.com> Date: Sun, 27 Dec 2020 02:15:57 +0000 Subject: [PATCH] adopting `sb-` (#875) * adopting `sb-` The 2619a88fcd94cbd4b2caa719ba926ae0013fb4ec update might have broken scripts, like this, that use a script from `~sc/statusbar/` * adopt `sb-` --- .local/bin/statusbar/sb-music | 2 +- .local/bin/statusbar/sb-pacpackages | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/statusbar/sb-music b/.local/bin/statusbar/sb-music index 4b7c115..7504313 100755 --- a/.local/bin/statusbar/sb-music +++ b/.local/bin/statusbar/sb-music @@ -2,7 +2,7 @@ filter() { mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ' -;} -pidof -x mpdup >/dev/null 2>&1 || mpdup >/dev/null 2>&1 & +pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 & case $BLOCK_BUTTON in 1) mpc status | filter ; setsid -f "$TERMINAL" -e ncmpcpp ;; # right click, pause/unpause diff --git a/.local/bin/statusbar/sb-pacpackages b/.local/bin/statusbar/sb-pacpackages index a9b6cf7..37ebed3 100755 --- a/.local/bin/statusbar/sb-pacpackages +++ b/.local/bin/statusbar/sb-pacpackages @@ -18,7 +18,7 @@ # Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or i3blocks if using i3. case $BLOCK_BUTTON in - 1) setsid -f "$TERMINAL" -e popupgrade ;; + 1) setsid -f "$TERMINAL" -e sb-popupgrade ;; 2) notify-send "$(/usr/bin/pacman -Qu)" ;; 3) notify-send "🎁 Upgrade module" "📦: number of upgradable packages - Left click to upgrade packages