Compare commits
4 Commits
ac09714cc6
...
80199181b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
80199181b9
|
|||
|
851b1538ab
|
|||
|
7ee2892ec1
|
|||
|
a0907a888f
|
@@ -10,17 +10,4 @@
|
||||
<startup-notify/>
|
||||
<directories/>
|
||||
</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>
|
||||
|
||||
@@ -1,23 +1,26 @@
|
||||
[user]
|
||||
name = Niklas Kapelle
|
||||
email = niklas@kapelle.org
|
||||
signingkey = 4EB651B36D841D16
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
|
||||
[init]
|
||||
defaultBranch = master
|
||||
|
||||
[core]
|
||||
excludesFile = ~/.config/gitignore
|
||||
excludesFile = ~/.config/git/gitignore
|
||||
|
||||
[pager]
|
||||
diff = delta
|
||||
log = delta
|
||||
reflog = delta
|
||||
show = delta
|
||||
diff = delta
|
||||
log = delta
|
||||
reflog = delta
|
||||
show = delta
|
||||
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[commit]
|
||||
gpgsign = true
|
||||
diffFilter = delta --color-only
|
||||
|
||||
[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