Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Setting the output filename for SimpleScreenRecorder
- CONFIG_FILE=/home/peachman/.ssr/settings.conf
- CONFIG_TEMP=/home/peachman/.ssr/temp.conf
- PATH1=file=/home/peachman/Desktop/screenrecord.*.mkv
- PATH2=file=/home/peachman/Desktop/screenrecord-$(date +%Y%m%d_%H_%M_%S).mkv
- # if config file exists
- if [[ -f $CONFIG_FILE ]]; then
- # change the output filename in the config file
- cat $CONFIG_FILE | sed -e 's#'"$PATH1"'#'"$PATH2"'#' > $CONFIG_TEMP
- mv $CONFIG_TEMP $CONFIG_FILE
- echo "Config file set, starting SimpleScreenRecorder."
- # starting the application
- exec simplescreenrecorder
- else
- echo "Error: Can't find config file, please check: $CONFIG_FILE"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement