aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/swayrecord
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-03 14:51:18 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-03 14:51:18 +0300
commit0b580d8480209f5e272ef3f847261c092880a84b (patch)
tree5759f0d9e5ee07b6d64a1691093231f2943f18c4 /dotfiles/.local/bin/swayrecord
parentb6398f0b808851b123f4711f3f48d7d7688a5d8c (diff)
downloadswayrice-0b580d8480209f5e272ef3f847261c092880a84b.tar.gz
swayrice-0b580d8480209f5e272ef3f847261c092880a84b.zip
forgot to update recording script
Diffstat (limited to 'dotfiles/.local/bin/swayrecord')
-rwxr-xr-xdotfiles/.local/bin/swayrecord8
1 files changed, 4 insertions, 4 deletions
diff --git a/dotfiles/.local/bin/swayrecord b/dotfiles/.local/bin/swayrecord
index f93ae87..5c1c2a6 100755
--- a/dotfiles/.local/bin/swayrecord
+++ b/dotfiles/.local/bin/swayrecord
@@ -1,7 +1,7 @@
#!/bin/sh
# Source settings from .bemenurc
-. $HOME/.bemenurc
+. ~/.config/bemenurc
if ! [ -d $VREC_DIR ]; then
mkdir -p $VREC_DIR
@@ -19,7 +19,7 @@ trap finishrecording SIGINT
finishvideo () {
kill -2 "$VIDEO_PID"
- notify-send "⏺ Recording" \
+ notify-send "🔴 Recording" \
"Screen recording stopped and saved at "$VREC_DIR"/video-"$OUTPUT".mp4"
}
@@ -65,8 +65,8 @@ video () {
wf-recorder -f "$VREC_DIR/video-$OUTPUT.mp4" &
VIDEO_PID=$!
echo $$ > ~/.cache/recordingpid
- echo "⏺" > ~/.cache/recordingicon
- notify-send "⏺ Recording" "Screen recording started"
+ echo "🔴" > ~/.cache/recordingicon
+ notify-send "🔴 Recording" "Screen recording started"
killall -39 waybar
wait
}