From b3474e85dcce03e7de0b4a4e30ff7fad1f38ee26 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Sat, 11 Apr 2026 18:25:38 +0530 Subject: add: small bash scripts for added functionality --- scripts/rofi-screenrecord | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/rofi-screenrecord (limited to 'scripts/rofi-screenrecord') 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 -- cgit v1.3