aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/swayrecord
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-02-03 00:01:16 +0300
committerYaroslav <contact@yaroslavps.com>2020-02-03 00:01:16 +0300
commite5532752993f463524e0c89d5e82b5a84a77759b (patch)
tree0ce47eba97ecd5256d6cd29c86a50ac756b30cc1 /dotfiles/.local/bin/swayrecord
parent2cb2af9d66ef98877ffee2f588c7a85036750d55 (diff)
downloadswayrice-e5532752993f463524e0c89d5e82b5a84a77759b.tar.gz
swayrice-e5532752993f463524e0c89d5e82b5a84a77759b.zip
load gtk settings on sway start, vpn shortcut and waybar indicator
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 90ed24a..378b46f 100755
--- a/dotfiles/.local/bin/swayrecord
+++ b/dotfiles/.local/bin/swayrecord
@@ -1,14 +1,14 @@
#!/bin/sh
-if [ -f "$HOME/.recordingpid" ]; then
+if [ -f "$HOME/.cache/recordingpid" ]; then
killall -SIGINT wf-recorder
- rm -f ~/.recordingpid
+ rm -f ~/.cache/recordingpid
notify-send "⏺ Screen recording" "Recording stopped"
killall -39 waybar
exit
fi
-wf-recorder -f "$HOME/Video/recordings/$(date '+%y%m%d-%H%M-%S').mp4" &
-echo $! > ~/.recordingpid
+wf-recorder -f "$HOME/Videos/recordings/$(date '+%y%m%d-%H%M-%S').mp4" &
+echo $! > ~/.cache/recordingpid
notify-send "⏺ Screen recording" "Recording started"
killall -39 waybar