diff options
-rwxr-xr-x | brightness.sh | 2 | ||||
-rwxr-xr-x | cmusPlay.sh | 3 | ||||
-rwxr-xr-x | rm.sh | 2 | ||||
-rwxr-xr-x | screenRecord.sh | 2 | ||||
-rwxr-xr-x | stopScreenRecord.sh | 2 | ||||
-rwxr-xr-x | vol.sh | 2 |
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" @@ -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" @@ -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" |