summaryrefslogtreecommitdiff
path: root/scripts/rofi-screenrecord
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-04-11 18:25:38 +0530
committerryukamish <[email protected]>2026-04-11 18:25:38 +0530
commitb3474e85dcce03e7de0b4a4e30ff7fad1f38ee26 (patch)
treebcfe42ad76a825c283eec653140ab4052f0b3017 /scripts/rofi-screenrecord
parent607891801fbf2051a0c9062d15a445dd238c1e1b (diff)
add: small bash scripts for added functionality
Diffstat (limited to 'scripts/rofi-screenrecord')
-rwxr-xr-xscripts/rofi-screenrecord21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/rofi-screenrecord b/scripts/rofi-screenrecord
new file mode 100755
index 0000000..61e516c
--- /dev/null
+++ b/scripts/rofi-screenrecord
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+screenrecord_args=$(printf '%b' '󰍹 DISPLAY\n󰍹 DISPLAY+AUDIO\n󰖠 DISPLAY+WEBCAM\n REGION\n REGION+AUDIO' | rofi -dmenu -p " Record Screen: " -i)
+
+case "$screenrecord_args" in
+*DISPLAY)
+ screenrecord output
+ ;;
+*DISPLAY+AUDIO)
+ screenrecord output --with-audio
+ ;;
+*DISPLAY+WEBCAM)
+ screenrecord output --with-webcam --with-audio
+ ;;
+*REGION)
+ screenrecord region
+ ;;
+*REGION+AUDIO)
+ screenrecord region --with-audio
+ ;;
+esac