aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-04-07 20:19:45 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2021-04-07 20:19:45 +0200
commit1c1d4d33618eb647ff38e5802ecf6e26d16cad38 (patch)
tree10dbe8e10f512c65033acc247a5e3188859a18eb
parent60ecffe5784e5980939416dcbf22b81a26a5de62 (diff)
downloadscripts-1c1d4d33618eb647ff38e5802ecf6e26d16cad38.tar.gz
scripts-1c1d4d33618eb647ff38e5802ecf6e26d16cad38.zip
Scripts now check env var for status bar name.
-rwxr-xr-xbrightness.sh2
-rwxr-xr-xcmusPlay.sh3
-rwxr-xr-xrm.sh2
-rwxr-xr-xscreenRecord.sh2
-rwxr-xr-xstopScreenRecord.sh2
-rwxr-xr-xvol.sh2
6 files changed, 6 insertions, 7 deletions
diff --git a/brightness.sh b/brightness.sh
index cf2480f..f5cf952 100755
--- a/brightness.sh
+++ b/brightness.sh
@@ -23,4 +23,4 @@ else
fi
dunstify -r "$(dunstifyIDs.sh "brightness")" -t 500 "$(~/scripts/i3blocks/i3brightness.sh)"
-pkill -SIGRTMIN+11 i3blocks
+[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+11 "$STATUS_BAR"
diff --git a/cmusPlay.sh b/cmusPlay.sh
index e60dc45..a132062 100755
--- a/cmusPlay.sh
+++ b/cmusPlay.sh
@@ -8,5 +8,4 @@ else
cmus-remote -u
fi
-pkill -SIGRTMIN+12 i3blocks
-
+[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+12 "$STATUS_BAR"
diff --git a/rm.sh b/rm.sh
index 59a07fc..633f9df 100755
--- a/rm.sh
+++ b/rm.sh
@@ -8,4 +8,4 @@ for file in "$@"
do
mv "$file" "$folder"
done
-pkill -SIGRTMIN+14 i3blocks
+[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+14 "$STATUS_BAR"
diff --git a/screenRecord.sh b/screenRecord.sh
index a257388..3aed794 100755
--- a/screenRecord.sh
+++ b/screenRecord.sh
@@ -23,4 +23,4 @@ fi
# ffmpeg -video_size "$(getResolution.sh)" -framerate 30 -f x11grab -i :0.0+0,0 -f alsa -ac 2 -i hw:0,0 "$HOME/videos/recs/$filename" &
ffmpeg -video_size "$screenRes" -framerate 25 -f x11grab -i "$screenPos" -f pulse -ac 2 -i default -vcodec libx264 "${recsFolder}/${filename}" &
notify-send -t 1000 "Recording $filename"
- pkill -SIGRTMIN+13 i3blocks
+ [ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+13 "$STATUS_BAR"
diff --git a/stopScreenRecord.sh b/stopScreenRecord.sh
index 71131a3..664589d 100755
--- a/stopScreenRecord.sh
+++ b/stopScreenRecord.sh
@@ -12,4 +12,4 @@ do
kill "$process" && notify-send -t 1000 "Recording $process stopped."
done
rm $markfile
-pkill -SIGRTMIN+13 i3blocks
+[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+13 "$STATUS_BAR"
diff --git a/vol.sh b/vol.sh
index 6ba41a6..22e77d3 100755
--- a/vol.sh
+++ b/vol.sh
@@ -7,4 +7,4 @@ else
fi
dunstify -r "$(dunstifyIDs.sh "vol")" -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
-pkill -SIGRTMIN+10 i3blocks
+[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+10 "$STATUS_BAR"