Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SUpload
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Volkor Barbarian Warrior
SUpload
Commits
ecc5df80
Unverified
Commit
ecc5df80
authored
4 years ago
by
Volkor Barbarian Warrior
Browse files
Options
Downloads
Patches
Plain Diff
Add gnome-screenshot support
parent
a8703cd4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
supload.conf
+2
-1
2 additions, 1 deletion
supload.conf
supload.sh
+5
-3
5 additions, 3 deletions
supload.sh
with
9 additions
and
6 deletions
README.md
+
2
−
2
View file @
ecc5df80
...
...
@@ -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 scr
ot (optional, needed for screenshots)
-
maim
, scrot, or gnome-screensh
ot (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)
...
...
This diff is collapsed.
Click to expand it.
supload.conf
+
2
−
1
View file @
ecc5df80
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
supload.sh
+
5
−
3
View file @
ecc5df80
#!/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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment