summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsubh <subh@example.com>2026-01-22 22:45:43 +0530
committersubh <subh@example.com>2026-01-22 22:50:42 +0530
commite648c437574f6b732194da95bccaa6b519a79749 (patch)
tree7b4c2ec58169eac1bd0e2d8fa84652966afd4b16
parent602f0d40e76e46b78928286a5a7e8eb3d5a2f40a (diff)
added screen-recording script
-rwxr-xr-xscripts/screen-record-stop.sh5
-rwxr-xr-xscripts/screen-record.sh8
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/screen-record-stop.sh b/scripts/screen-record-stop.sh
new file mode 100755
index 0000000..3eb1694
--- /dev/null
+++ b/scripts/screen-record-stop.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+killall wf-recorder
+
+notify-send -u normal -i media-record "Recording Stopped" "Saving recording to: /home/subh/Videos/recordings/video.mkv"
diff --git a/scripts/screen-record.sh b/scripts/screen-record.sh
new file mode 100755
index 0000000..28026a7
--- /dev/null
+++ b/scripts/screen-record.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+DISPLAY="$(hyprctl monitors | head -n 1 | cut -d ' ' -f 2)"
+
+notify-send -u normal -i video-display "Recording Screen" "Display: $DISPLAY"
+
+wf-recorder -Dyf ~/Videos/recordings/video.mkv
+