Skip to content
Snippets Groups Projects
Unverified Commit 8d83f866 authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

change maim to default, allow webp lossless

parent e5561925
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ sudo make install
## Optional dependencies
- maim, scrot, or gnome-screenshot (optional, needed for screenshots)
- slop (optional, needed for video recording)
- maim, or gnome-screenshot (optional, needed for screenshots) (maim 5.7.4 needed for webp screenshots.)
- ffmpeg, slop (optional, needed for video recording)
- xclip (optional, needed for clipboard)
- libnotify (optional, needed for notifications)
......
......@@ -3,7 +3,8 @@
## Uncomment the below settings to override the defaults!
## file naming scheme
#photo_format="date +%F-%T.png"
#photo_format="date +%F-%T.png" ## For PNG images
#photo_format="date +%F-%T.webp" ## For WebP images
#video_format="date +%F-%T.mp4"
## ffmpeg config for screen recording (1st line is CPU Encoding, 2nd is VAAPI)
......
#!/bin/bash
# SUpload (Screenshot-Upload)
version="1.2.1"
version="1.2.2"
## Colours
r='\033[0;31m'
......@@ -12,10 +12,10 @@ nc='\033[0m'
debug=false
domain="https://volkor.me"
sshot="gnome-screenshot"
sshot="maim"
photo_format="date +%F-%T.png"
video_format="date +%F-%T.mp4"
ffmpeg_config="-pix_fmt yuv420p -preset ultrafast -vcodec libx264 -tune zerolatency -b:v 3M"
ffmpeg_config="-framerate 60 -preset veryfast -vcodec libx264 -pix_fmt yuv420p -vf crop=floor(iw/2)*2:floor(ih/2)*2 -movflags faststart -tune zerolatency -crf 25"
file_dir="${HOME}/Pictures/screenshots"
browser=false
clipboard=true
......@@ -173,7 +173,7 @@ if [ "$screenshot" = "true" ] ; then
case $sshot in
maim)
screen_prog="maim -s -o" ;;
screen_prog="maim -s -m 10 -o" ;;
scrot)
screen_prog="scrot -s" ;;
gnome-screenshot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment