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

Add gnome-screenshot support

parent a8703cd4
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ Supports SFW and NSFW modes, perfect for shitposting, AND for work!
### Debian and Fedora based systems
[deb and rpm files are automatically generated per version.](https://git.volkor.me/Volkor/SUpload/-/tags)
[deb and rpm files are automatically generated for each version.](https://git.volkor.me/Volkor/SUpload/-/tags)
### Everything else
......@@ -27,7 +27,7 @@ sudo make install
## Optional dependencies
- maim OR scrot (optional, needed for screenshots)
- maim, scrot, or gnome-screenshot (optional, needed for screenshots)
- [ffcast](https://github.com/minos-org/ffcast/) (needed for video recording)
- xclip (optional, needed for clipboard)
- libnotify (optional, needed for notifications)
......
......@@ -13,7 +13,8 @@
## directory to save screenshots (To disable file saving, put it in /tmp, where it will be deleted on reboot)
#file_dir="${HOME}/Pictures/screenshots"
## Change screenshot backend (pick either 'maim' or 'scrot')
## Change screenshot backend (pick either 'maim' 'scrot' or 'gnome-screenshot')
## gnome-screenshot is the only working one in wayland.
#sshot="maim"
## Default Domain - Defaults to https://volkor.me/ - Check here for supported: https://git.volkor.me/Volkor/SUpload/-/wikis/supported-sites
......
#!/bin/bash
# SUpload (Screenshot-Upload)
version="1.2"
version="1.2.1"
## Colours
r='\033[0;31m'
......@@ -49,7 +49,7 @@ Options:
-d Use custom domain use -d <domain>
-h Show this menu
-o Automatically open in browser
-s Screenshot mode (maim Selection)
-s Screenshot mode (Area Selection)
-g Screen Recording Mode (ffcast)
-V Verbose (debug mode)
-v Shows current version of SUpload
......@@ -176,8 +176,10 @@ if [ "$screenshot" = "true" ] ; then
screen_prog="maim -s -o" ;;
scrot)
screen_prog="scrot -s" ;;
gnome-screenshot)
screen_prog="gnome-screenshot -a -f";;
*)
echo -e "${r}ERROR:${nc} Invalid SSHOT in config, must be scrot or maim."
echo -e "${r}ERROR:${nc} Invalid SSHOT in config, must be scrot, maim or gnomescreenshot."
exit 1
;;
esac
......
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