Skip to content

FFMPEG script to select a monitor and launch a screen recording.

Notifications You must be signed in to change notification settings

niceiq/select-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Select & Record

This is a simple bash script that allows users with a multi-monitor setup to record their screen.

Features:

  • Detect connected monitors.
  • Select a monitor from list.
  • Launch a screen recording on the selected monitor.
  • Recording runs in the background.

Dependencies:

  • ffmpeg
  • dmenu

Usage

To start a recording, simply run: ./record.sh

To stop a recording, run ./record.sh --stop or ./record.sh -s

You can also add the script to your '/usr/local/bin/' folder to access it via either the terminal or your launcher.

Toggle Script

I've also written an additional script that allows me to toggle the screen recording on/off. This is optional but mapping this script to a key is a very efficient way to start/stop recordings.

#!/bin/bash

# Check if 'record' process is running
if pgrep -x "record" > /dev/null
then
    # If it is running, stop it
    record --stop
else
    # If it's not running, start it
    record
fi

About

FFMPEG script to select a monitor and launch a screen recording.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages