Compare commits

..

7 Commits

Author SHA1 Message Date
b0016360ca removed nextcloud share scripts 2022-09-09 00:09:35 +02:00
57f2b1100d archwiki script improvement 2022-09-09 00:08:43 +02:00
160500ab1d animated wallpaper script fix 2022-09-09 00:07:54 +02:00
9ad0179554 removed spotifyd stuff 2022-09-09 00:06:35 +02:00
8cc013ad0a added upload last steam screenshot to rofi 2022-09-09 00:04:51 +02:00
b5bb2a75ca updated mimeapps.list 2022-09-09 00:03:34 +02:00
bac7ded52a updated vscode settings 2022-09-09 00:00:05 +02:00
12 changed files with 35 additions and 138 deletions

View File

@@ -7,7 +7,6 @@
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"vsicons.dontShowNewVersionMessage": true,
"workbench.colorTheme": "Visual Studio 2019 Dark",
"terminal.integrated.cursorStyle": "line",
"explorer.confirmDelete": false,
"C_Cpp.intelliSenseEngine": "Tag Parser",
@@ -23,15 +22,31 @@
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.codeLens.enabled": false,
"workbench.editorAssociations": [
{
"viewType": "hexEditor.hexedit",
"filenamePattern": "*.hex"
},
{
"viewType": "hexEditor.hexedit",
"filenamePattern": "*.bin"
"workbench.editorAssociations": {
"*.hex": "hexEditor.hexedit",
"*.bin": "hexEditor.hexedit"
},
"go.toolsManagement.autoUpdate": true,
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "advanced"
},
"[dockercompose]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "advanced",
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
],
"go.toolsManagement.autoUpdate": true
}
},
"typescript.updateImportsOnFileMove.enabled": "always",
"svelte.enable-ts-plugin": true,
"workbench.startupEditor": "none",
"terminal.integrated.showExitAlert": false,
"terminal.integrated.enableShellIntegration": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.inlineSuggest.enabled": true
}

View File

@@ -13,14 +13,13 @@ application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
image/png=org.nomacs.ImageLounge.desktop
image/jpeg=org.nomacs.ImageLounge.desktop
x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop
application/x-bittorrent=deluge.desktop
text/plain=visual-studio-code.desktop;
application/x-yaml=code-oss.desktop;
x-scheme-handler/nxm=vortex-downloads-handler.desktop
x-scheme-handler/nxm-protocol=vortex-downloads-handler.desktop
inode/directory=thunar.desktop
[Added Associations]
text/x-log=code-oss.desktop;
text/plain=code-oss.desktop;nvim.desktop;
x-scheme-handler/heroic=heroic.desktop
[Added Associations]
video/mp4=vlc.desktop;mpv.desktop;

View File

@@ -4,4 +4,5 @@ Select wallpaper,$HOME/.local/share/scripts/select-bg.sh
Install Package,alacritty --class "floatme" -e "$XDG_DATA_HOME/scripts/pacman-install.sh"
Take screenshot,$XDG_DATA_HOME/scripts/take-selected-screenshot.sh
Share screenshot,$XDG_DATA_HOME/scripts/share-screenshot.sh
Upload last Steam screenshot,$XDG_DATA_HOME/scripts/upload-last-steam-screenshot.sh
Emoji,rofimoji --clipboarder xclip --typer xdotool
Can't render this file because it contains an unexpected character in line 4 and column 35.

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env sh
# send ipc to polybar to update
polybar-msg hook spotifyd 1

View File

@@ -1,13 +0,0 @@
[global]
username = djeeberjr
password_cmd = $HOME/.config/spotifyd/secret.sh
backend = pulseaudio
bitrate = 320
device_name = Spotifyd
on_song_change_hook = $HOME/.config/spotifyd/change.sh

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env sh
mpv --no-input-terminal --loop-file=inf $2 --wid=$1 --panscan=1.0
mpv --no-input-terminal --loop-file=inf "$2" --wid="$1" --panscan=1.0

View File

@@ -2,5 +2,5 @@
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
xwinwrap -fs -ov -ni -b -nf -- $SCRIPTPATH/animated-wallpaper-mpv.sh WID $1
xwinwrap -fs -ov -ni -b -nf -- "$SCRIPTPATH/animated-wallpaper-mpv.sh" WID "$1"

View File

@@ -9,7 +9,7 @@ set -e
DOC_DIR="/usr/share/doc/arch-wiki/html/en/"
cd "$DOC_DIR"
selected=$(find -type f | cut -c3- | rev | cut -c6- | rev | tr _ ' ' | fzf -q "$1")
selected=$(find . -type f | cut -c3- | rev | cut -c6- | rev | tr _ ' ' | fzf -q "$1")
selected_file=$(echo "$selected" | tr ' ' _ | awk -v var="$DOC_DIR" '{print var $0 ".html"}')
xdg-open "$selected_file"

View File

@@ -1,30 +0,0 @@
#!/usr/bin/env sh
set -e
# get login cred and endpoint from config script
source $XDG_CONFIG_HOME/nextcloud.config.sh
# Exported vars from config script
#NC_ENDPOINT
#NC_USERNAME
#NC_PASSWORD
# get input
if test -n "$1"; then
REMOTE_PATH=$1
elif test ! -t 0; then
read -r REMOTE_PATH
else
>&2 echo "Provide a remote file"
exit 1
fi
# make request
curl -u "$NC_USERNAME:$NC_PASSWORD" \
-s \
-H "OCS-APIRequest: true" \
-d path="$REMOTE_PATH" \
-d shareType=3 \
-X POST \
"https://$NC_ENDPOINT/ocs/v2.php/apps/files_sharing/api/v1/shares" \
| perl -n -e'/<url>(.+)<\/url>/ && print $1'

View File

@@ -1,25 +0,0 @@
#!/usr/bin/env sh
# requires rclone to be setup
set -e
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
source $XDG_CONFIG_HOME/nextcloud.config.sh
if test -n "$1"; then
FILE_PATH=$1
elif test ! -t 0; then
read -r FILE_PATH
else
>&2 echo "Provide a file"
exit 1
fi
FILENAME=$(basename $FILE_PATH)
rclone copy "$FILE_PATH" "$NC_RCLONE_REMOTE:/$NC_SHARE_DIR"
$SCRIPTPATH/nc-create-share.sh "$NC_SHARE_DIR/$FILENAME"

View File

@@ -1,22 +0,0 @@
#!/usr/bin/env sh
set -e
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
source $XDG_CONFIG_HOME/nextcloud.config.sh
if test -n "$1"; then
FILE_PATH=$1
elif test ! -t 0; then
read -r FILE_PATH
else
>&2 echo "Provide a file"
exit 1
fi
$SCRIPTPATH/nc-share-file.sh "$FILE_PATH" \
| perl -n -e '/([a-zA-Z0-9]+)$/ && print $1' \
| awk -n -e '{print "https://pb.kapelle.org/"$1}'

View File

@@ -1,24 +0,0 @@
#!/usr/bin/env sh
set -e
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
if test -n "$1"; then
FILE_PATH=$1
elif test ! -t 0; then
read -r FILE_PATH
else
>&2 echo "Provide a file"
exit 1
fi
if file -i -b "$FILE_PATH" | grep "text" &> /dev/null; then
$SCRIPTPATH/nc-share-text.sh "$FILE_PATH"
elif file -i -b "$FILE_PATH" | grep "image" &> /dev/null; then
$SCRIPTPATH/nc-share-file.sh "$FILE_PATH" | awk '{print $1"/preview"}'
else
$SCRIPTPATH/nc-share-file.sh "$FILE_PATH"
fi