1
0
mirror of https://github.com/Melon-Bread/gnu-slash-dot-files synced 2025-07-06 13:14:37 -04:00

Compare commits

...

22 Commits

Author SHA1 Message Date
e8f4a3d762 Removed junk packages 2020-03-30 13:26:43 -04:00
f109906a5f Update zprezto config 2020-03-30 13:25:09 -04:00
2d11df696e Please stop yelling at me 2020-03-30 13:24:07 -04:00
947960bd99 Added heic2png script 2020-03-30 13:18:07 -04:00
fcc12892dd Just install the RetroUFO package and use that 2019-12-20 08:59:28 -05:00
a7f5259e76 Clean up some scripts 2019-12-10 10:16:16 -05:00
e2d4318f3c Added youtube-dl config 2019-12-10 01:03:52 -05:00
45e7d24525 Minior Tweaks 2019-12-05 10:36:37 -05:00
03cd876a8a Added topgrade config 2019-12-05 10:23:56 -05:00
bb610e7aba yadm Upgrade 2019-11-30 16:38:06 -05:00
0bcddc39a8 Delete .zpreztorc 2019-11-30 16:35:56 -05:00
526cf3a12c Delete .zshrc 2019-11-30 16:35:43 -05:00
416f29264a More prezto migration 2019-11-06 21:30:45 -05:00
b2a5b4d025 added prexto config 2019-11-03 21:56:25 -05:00
fa6ca24c1b Added jupyter layer 2019-11-03 09:26:12 -05:00
d7eefe8a64 Slow move to prezto 2019-10-26 19:18:07 -04:00
7b63c20df3 updated configs 2019-10-26 16:17:18 -04:00
83d5339170 updated scripts 2019-10-26 16:16:12 -04:00
a6fa4fc336 Added sdkman config 2019-06-08 14:12:46 -04:00
9473c2b5c9 Added No-Intro script 2019-06-08 14:10:59 -04:00
1327d5d3e9 Delete .exrc 2019-06-08 14:10:14 -04:00
4b37582283 Put vi config in correct spot 2019-06-08 14:09:41 -04:00
17 changed files with 405 additions and 129 deletions

View File

@ -55,6 +55,9 @@ name = "lsp"
[[layers]]
name = "lang#python"
[[layers]]
name = "lang#ipynb"
[[layers]]
name = "lang#c"
@ -69,6 +72,7 @@ name = "lang#markdown"
[[layers]]
name = "lang#rust"
recommended-style = "enabled"
[[layers]]
name = "lang#sh"

Binary file not shown.

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
yay -S pcsx2-git citra-canary-git yuzu-canary-git rpcs3-git dolphin-emu-git desmume-git retroarch-git --noconfirm --sudoloop
yay -S pcsx2-git citra-canary-git yuzu-mainline-git rpcs3-git dolphin-emu-git retroarch-git --noconfirm --sudoloop

0
.bin/Pipgrade.sh Normal file → Executable file
View File

View File

@ -4,9 +4,9 @@ echo 'Updating RetroArch...'
yay -S retroarch-git --noconfirm
echo 'Updating Cores....'
python ~/Documents/Projects/RetroUFO/RetroUFO.py
RetroUFO
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

34
.bin/ff2mpv.py Executable file
View 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()

42
.bin/heic2png.py Executable file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env python3
"""
Converts every HEIC image in a directory into a PNG image.
This script assumes you have `heif-convert` in your PATH
"""
__author__ = "Melon Bread"
__version__ = "1.0.0"
__license__ = "MIT"
import argparse
import os
import subprocess
def main(args):
""" Main entry point of the app """
working_directory = args.input
for file in os.listdir(working_directory):
if file.upper().endswith('.HEIC'):
print(f'Converting {file}...')
subprocess.Popen(['heif-convert', file, f'{file[:-4]}png']).wait()
else:
print(f"Skipping {file}...")
if __name__ == "__main__":
""" This is executed when run from the command line """
parser = argparse.ArgumentParser()
# Required positional argument
parser.add_argument('-i', '--input', metavar='STRING', required=True,
help='The directory containing the HEIC image files')
# Specify output of "--version"
parser.add_argument(
"--version",
action="version",
version="%(prog)s (version {version})".format(version=__version__))
args = parser.parse_args()
main(args)

View File

@ -1 +0,0 @@
/home/melon/Games/Linux/pico-8/pico8

10
.bin/remove_japan.py Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python3
import os
for file in os.listdir('./'):
if '(Japan)' in file:
print(f"Removing {file}...")
os.remove(file)
else:
print(f"Skipping {file}...")

33
.config/topgrade.toml Normal file
View File

@ -0,0 +1,33 @@
# Additional git repositories to pull
git_repos = [
# "~/Documents/Projects/*/",
"~/Documents/Git/*/"
]
# Same options as the command line flag
#disable = ["atom", "tmux"]
# List of remote machines with Topgrade installed on them
#remote_topgrades = ["toothless", "pi", "parnas"]
no_retry = true
yay_arguments = "--noconfirm"
# Arguments to pass SSH when upgrading remote systems
#ssh_arguments = "-o ConnectTimeout=2"
# Arguments to pass Git when pulling Repositories
git_arguments = "--rebase --autostash"
# Do not set the terminal title
#set_title = false
# Commands to run before anything
#[pre_commands]
#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
# Custom commands
#[commands]
#"Python Environment" = "~/dev/.env/bin/pip install -i https://pypi.python.org/simple -U --upgrade-strategy eager jupyter"
[commands]
"RetroArch" = "RA-Update.sh"

View File

@ -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

11
.config/youtube-dl/config Normal file
View File

@ -0,0 +1,11 @@
-o "./%(title)s.%(ext)s"
# Subtitles
--all-subs
# --write-subs en
--embed-subs
# Meta
#--embed-thumbnail
--add-metadata

233
.zprezto/runcoms/zpreztorc Normal file
View File

@ -0,0 +1,233 @@
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
# Set case-sensitivity for completion, history lookup, etc.
# zstyle ':prezto:*:*' case-sensitive 'yes'
# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'
# Add additional directories to load prezto modules from
#zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
# Allow module overrides when pmodule-dirs causes module name collisions
# zstyle ':prezto:load' pmodule-allow-overrides 'yes'
# Set the Zsh modules to load (man zshmodules).
# zstyle ':prezto:load' zmodule 'attr' 'stat'
# Set the Zsh functions to load (man zshcontrib).
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'syntax-highlighting' \
'history-substring-search' \
'autosuggestions' \
'git' \
'prompt' \
'python' \
'ssh' \
#
# Autosuggestions
#
# Set the query found color.
# zstyle ':prezto:module:autosuggestions:color' found ''
#
# Completions
#
# Set the entries to ignore in static */etc/hosts* for host completion.
# zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
# '0.0.0.0' '127.0.0.1'
#
# Editor
#
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'
# Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes'
# Allow the zsh prompt context to be shown.
#zstyle ':prezto:module:editor' ps-context 'yes'
#
# Git
#
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
# zstyle ':prezto:module:git:status:ignore' submodules 'all'
#
# GNU Utility
#
# Set the command prefix on non-GNU systems.
# zstyle ':prezto:module:gnu-utility' prefix 'g'
#
# History Substring Search
#
# Set the query found color.
# zstyle ':prezto:module:history-substring-search:color' found ''
# Set the query not found color.
# zstyle ':prezto:module:history-substring-search:color' not-found ''
# Set the search globbing flags.
# zstyle ':prezto:module:history-substring-search' globbing-flags ''
#
# macOS
#
# Set the keyword used by `mand` to open man pages in Dash.app
# zstyle ':prezto:module:osx:man' dash-keyword 'manpages'
#
# Pacman
#
# Set the Pacman frontend.
# zstyle ':prezto:module:pacman' frontend 'yaourt'
#
# Prompt
#
# Set the prompt theme to load.
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
zstyle ':prezto:module:prompt' theme 'paradox'
# Set the working directory prompt display length.
# By default, it is set to 'short'. Set it to 'long' (without '~' expansion)
# for longer or 'full' (with '~' expansion) for even longer prompt display.
# zstyle ':prezto:module:prompt' pwd-length 'short'
# Set the prompt to display the return code along with an indicator for non-zero
# return codes. This is not supported by all prompts.
# zstyle ':prezto:module:prompt' show-return-val 'yes'
#
# Python
#
# Auto switch the Python virtualenv on directory change.
zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'
# Automatically initialize virtualenvwrapper if pre-requisites are met.
# zstyle ':prezto:module:python:virtualenv' initialize 'yes'
#
# Ruby
#
# Auto switch the Ruby version on directory change.
# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
#
# Screen
#
# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:screen:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:screen:auto-start' remote 'yes'
#
# SSH
#
# Set the SSH identities to load into the agent.
# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
#
# Syntax Highlighting
#
# Set syntax highlighters.
# By default, only the main highlighter is enabled.
# zstyle ':prezto:module:syntax-highlighting' highlighters \
# 'main' \
# 'brackets' \
# 'pattern' \
# 'line' \
# 'cursor' \
# 'root'
#
# Set syntax highlighting styles.
# zstyle ':prezto:module:syntax-highlighting' styles \
# 'builtin' 'bg=blue' \
# 'command' 'bg=blue' \
# 'function' 'bg=blue'
#
# Set syntax pattern styles.
# zstyle ':prezto:module:syntax-highlighting' pattern \
# 'rm*-rf*' 'fg=white,bold,bg=red'
#
# Terminal
#
# Auto set the tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'
# Set the window title format.
zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
# Set the tab title format.
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
# Set the terminal multiplexer title format.
# zstyle ':prezto:module:terminal:multiplexer-title' format '%s'
#
# Tmux
#
# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:tmux:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'
# Integrate with iTerm2.
# zstyle ':prezto:module:tmux:iterm' integrate 'yes'
# Set the default session name:
# zstyle ':prezto:module:tmux:session' name 'YOUR DEFAULT SESSION NAME'
#
# Utility
#
# Enabled safe options. This aliases cp, ln, mv and rm so that they prompt
# before deleting or overwriting files. Set to 'no' to disable this safer
# behavior.
# zstyle ':prezto:module:utility' safe-ops 'yes'

31
.zprezto/runcoms/zshrc Normal file
View File

@ -0,0 +1,31 @@
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
alias zshconfig="nvim ~/.zshrc"
alias vim=nvim
alias ls=lsd
export DEVKITPRO=/opt/devkitpro
export DEVKITA64=/opt/devkitpro/devkitA64
export DEVKITARM=/opt/devkitpro/devkitARM
export DEVKITPPC=/opt/devkitpro/devkitPPC
export npm_config_prefix=~/.node_modules
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

121
.zshrc
View File

@ -1,121 +0,0 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/melon/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
archlinux
docker
git
mosh
python
tmux
virtualenv
zsh-autosuggestions
zsh-syntax-highlighting
history-substring-search
yadm-zsh
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
alias zshconfig="nvim ~/.zshrc"
alias vim=nvim
alias ls=lsd
export DEVKITPRO=/opt/devkitpro
export DEVKITA64=/opt/devkitpro/devkitA64
export DEVKITARM=/opt/devkitpro/devkitARM
export DEVKITPPC=/opt/devkitpro/devkitPPC
export npm_config_prefix=~/.node_modules
export PATH="$PATH:$HOME/go/bin"
export PATH="$PATH:$HOME/.bin/"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$HOME/.node_modules/bin:$PATH"
neofetch