Compare commits
4 Commits
ac09714cc6
...
80199181b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
80199181b9
|
|||
|
851b1538ab
|
|||
|
7ee2892ec1
|
|||
|
a0907a888f
|
@@ -10,17 +10,4 @@
|
|||||||
<startup-notify/>
|
<startup-notify/>
|
||||||
<directories/>
|
<directories/>
|
||||||
</action>
|
</action>
|
||||||
<action>
|
|
||||||
<icon></icon>
|
|
||||||
<name>Upload to Nextcloud</name>
|
|
||||||
<unique-id>1594761029052126-1</unique-id>
|
|
||||||
<command>$XDG_DATA_HOME/scripts/nc-share-file.sh %f | xclip -i -selection "clipboard" && notify-send -u low "Upload complete"</command>
|
|
||||||
<description>Uploads file to Nextcloud and copys the share link</description>
|
|
||||||
<patterns>*</patterns>
|
|
||||||
<audio-files/>
|
|
||||||
<image-files/>
|
|
||||||
<other-files/>
|
|
||||||
<text-files/>
|
|
||||||
<video-files/>
|
|
||||||
</action>
|
|
||||||
</actions>
|
</actions>
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
[user]
|
|
||||||
name = Niklas Kapelle
|
|
||||||
email = niklas@kapelle.org
|
|
||||||
signingkey = 4EB651B36D841D16
|
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
excludesFile = ~/.config/gitignore
|
excludesFile = ~/.config/git/gitignore
|
||||||
|
|
||||||
[pager]
|
[pager]
|
||||||
diff = delta
|
diff = delta
|
||||||
log = delta
|
log = delta
|
||||||
@@ -19,5 +18,9 @@
|
|||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
[commit]
|
|
||||||
gpgsign = true
|
[user]
|
||||||
|
useconfigonly = true
|
||||||
|
|
||||||
|
[includeIf "hasconfig:remote.*.url:**/*git.kapelle.org:*/**"]
|
||||||
|
path = ~/.config/git/private.inc
|
||||||
|
|||||||
6
.config/git/private.inc
Normal file
6
.config/git/private.inc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
[user]
|
||||||
|
name = Niklas Kapelle
|
||||||
|
email = niklas@kapelle.org
|
||||||
|
signingkey = 4EB651B36D841D16
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
3
.config/git/public.inc
Normal file
3
.config/git/public.inc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[user]
|
||||||
|
name = Djeeberjr
|
||||||
|
email = djeeberjr@gmail.com
|
||||||
14
.local/share/scripts/upload-image.sh
Executable file
14
.local/share/scripts/upload-image.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
SCRIPT=$(readlink -f "$0")
|
||||||
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||||
|
|
||||||
|
source $XDG_CONFIG_HOME/imgur.sh # exports: IMGUR_CLIENT_ID and IMGUR_CLIENT_SECRET
|
||||||
|
|
||||||
|
[ -z "$1" ] && read IMAGE_FILE || IMAGE_FILE="$1"
|
||||||
|
[ -z "$IMAGE_FILE" ] && echo "No file provided" && exit 1
|
||||||
|
|
||||||
|
curl -X POST -H "Authorization: Client-ID $IMGUR_CLIENT_ID" -F "image=@$IMAGE_FILE" https://api.imgur.com/3/upload 2>/dev/null| jq --raw-output '.data.link'
|
||||||
|
|
||||||
Reference in New Issue
Block a user