mirror of
https://github.com/Melon-Bread/gnu-slash-dot-files
synced 2024-11-25 00:38:23 -05:00
Compare commits
2 Commits
a6fa4fc336
...
7b63c20df3
Author | SHA1 | Date | |
---|---|---|---|
7b63c20df3 | |||
83d5339170 |
0
.bin/Pipgrade.sh
Normal file → Executable file
0
.bin/Pipgrade.sh
Normal file → Executable file
@ -6,7 +6,7 @@ yay -S retroarch-git --noconfirm
|
||||
echo 'Updating Cores....'
|
||||
python ~/Documents/Projects/RetroUFO/RetroUFO.py
|
||||
|
||||
echo 'Updating Thumbnails'
|
||||
cd "~/.config/retroarch/thumbnails/"
|
||||
git pull --recurse-submodules
|
||||
git submodule update --remote --recursive
|
||||
#echo 'Updating Thumbnails'
|
||||
#cd "~/.config/retroarch/thumbnails/"
|
||||
#git pull --recurse-submodules
|
||||
#git submodule update --remote --recursive
|
||||
|
1241
.bin/activate
Executable file
1241
.bin/activate
Executable file
File diff suppressed because it is too large
Load Diff
34
.bin/ff2mpv.py
Executable file
34
.bin/ff2mpv.py
Executable file
@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys, struct, json
|
||||
from subprocess import Popen, DEVNULL
|
||||
|
||||
def main():
|
||||
message = get_message()
|
||||
url = message.get('url')
|
||||
args = ['mpv', '--no-terminal', '--', url]
|
||||
Popen(args, stdin=DEVNULL, stdout=DEVNULL, stderr=DEVNULL)
|
||||
# Need to respond something to avoid "Error: An unexpected error occurred"
|
||||
# in Browser Console.
|
||||
send_message('ok')
|
||||
|
||||
|
||||
# https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging#App_side
|
||||
def get_message():
|
||||
raw_length = sys.stdin.buffer.read(4)
|
||||
if not raw_length:
|
||||
return {}
|
||||
length = struct.unpack('@I', raw_length)[0]
|
||||
message = sys.stdin.buffer.read(length).decode('utf-8')
|
||||
return json.loads(message)
|
||||
|
||||
|
||||
def send_message(message):
|
||||
content = json.dumps(message).encode('utf-8')
|
||||
length = struct.pack('@I', len(content))
|
||||
sys.stdout.buffer.write(length)
|
||||
sys.stdout.buffer.write(content)
|
||||
sys.stdout.buffer.flush()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
BIN
.bin/hacbrewpack
Executable file
BIN
.bin/hacbrewpack
Executable file
Binary file not shown.
@ -6,7 +6,7 @@ MiscCursorBlinks=FALSE
|
||||
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
|
||||
MiscDefaultGeometry=80x24
|
||||
MiscInheritGeometry=FALSE
|
||||
MiscMenubarDefault=TRUE
|
||||
MiscMenubarDefault=FALSE
|
||||
MiscMouseAutohide=FALSE
|
||||
MiscToolbarDefault=FALSE
|
||||
MiscConfirmClose=TRUE
|
||||
|
6
.zshrc
6
.zshrc
@ -73,7 +73,6 @@ plugins=(
|
||||
zsh-autosuggestions
|
||||
zsh-syntax-highlighting
|
||||
history-substring-search
|
||||
yadm-zsh
|
||||
)
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
@ -118,8 +117,7 @@ export PATH="$PATH:$HOME/go/bin"
|
||||
export PATH="$PATH:$HOME/.bin/"
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
export PATH="$HOME/.node_modules/bin:$PATH"
|
||||
export IDF_PATH="~/Documents/esp-idf-v3.1-odroid"
|
||||
export PATH="$PATH:$HOME/Documents/xtensa-esp32-elf/bin:$HOME/Documents/xtensa-esp32-elf/bin"
|
||||
neofetch
|
||||
|
||||
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
||||
export SDKMAN_DIR="/home/melon/.sdkman"
|
||||
[[ -s "/home/melon/.sdkman/bin/sdkman-init.sh" ]] && source "/home/melon/.sdkman/bin/sdkman-init.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user