From 39e9d4e4f740647e49cf7f2f090bc0ddb27a7d76 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Sat, 1 Apr 2023 19:04:39 +0200 Subject: update --- .bash_aliases | 128 ---------------------------------------------------------- .bash_profile | 14 ------- .bashrc | 117 ----------------------------------------------------- .tmux.conf | 41 ------------------- 4 files changed, 300 deletions(-) delete mode 100644 .bash_aliases delete mode 100644 .bash_profile delete mode 100644 .bashrc delete mode 100644 .tmux.conf diff --git a/.bash_aliases b/.bash_aliases deleted file mode 100644 index 46e9dcd..0000000 --- a/.bash_aliases +++ /dev/null @@ -1,128 +0,0 @@ -# __ _ _ -# ___ __ _ / _| ___| |__ __ _| |__ ___ -# / __/ _` | |_ / _ \ '_ \ / _` | '_ \ / _ \ -# | (_| (_| | _| __/ |_) | (_| | |_) | __/ -# \___\__,_|_| \___|_.__/ \__,_|_.__/ \___| -# - -################# -# Miscellaneous # -################# - -alias reboot='sudo reboot' -alias poweroff='sudo poweroff' -alias refresh='source ~/.bashrc' -alias fuck='sudo $(history -p !!)' -alias open='xdg-open' -alias rsync='rsync -avh --progress' -alias cwp='xwallpaper --maximize "$(/usr/bin/ls -1 -d /hdd/pics/wallpaper/* | shuf -n1)"' -alias fd='fdfind' - -# Control Audio -alias headset='pactl set-default-sink alsa_output.pci-0000_29_00.0.analog-stereo' -alias speakers='pactl set-default-sink alsa_output.pci-0000_31_00.4.analog-stereo' -alias setvol='pactl set-sink-volume @DEFAULT_SINK@' - -# Monitor / Resolution settings, mainly for playing old-ass games -alias setlmon-lowres='xrandr --auto --output HDMI-A-0 --mode 640x480 --primary' -alias setlmon-midres='xrandr --auto --output HDMI-A-0 --mode 800x600 --primary' -alias setlmon-default='xrandr --auto --output HDMI-A-0 --mode 1920x1080 --primary' -alias setrmon-lowres='xrandr --auto --output DisplayPort-2 --mode 640x480 --left-of HDMI-A-0' -alias setrmon-midres='xrandr --auto --output DisplayPort-2 --mode 800x600 --left-of HDMI-A-0' -alias setrmon-default='xrandr --auto --output DisplayPort-2 --mode 1600x900 --left-of HDMI-A-0' - -alias cn='clear;macchina' - -# Colorize grep output -alias grep='grep --color=auto -i' - -alias ls='ls -hl --color=always --group-directories-first' - -alias nnn='nnn -Hde' - -# Convert date from YYYYMMDD to YYYY-MM-DD -date-convert() { - for i in *; do - mv "${i}" "$(echo "${i}" | - sed 's/\([0-9][0-9][0-9][0-9]\)\([0-9][0-9]\)\([0-9][0-9]\)/\1-\2-\3/')" - done; -} - -# Reverse date from DD-MM-YYYY to YYYY-MM-DD -date-reverse() { - for i in *; do - mv "${i}" "$(echo "${i}" | - sed 's/\([0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9][0-9][0-9]\)/\3-\1-\2/')" - done; -} - -# Convert video files to webm -mkwebm() { - ffmpeg -i "${1}" -crf 1 -b:v 1M -c:a libvorbis "${1%.*}".webm -} - -# record primary monitor with audio output and input -record() { - ffmpeg -s 1920x1080 \ - -framerate 60 -f x11grab -i :0.0+1600 \ - -f pulse -ac 2 -ar 44100 -i alsa_output.pci-0000_29_00.0.analog-stereo.monitor \ - -f pulse -ac 1 -ar 44100 -i alsa_input.usb-SunplusIT_Inc_FHD_Camera_Microphone_01.00.00-02.analog-stereo \ - -filter_complex amix=inputs=2 \ - -vcodec libx265 -s 1920x1080 \ - -acodec libvorbis -ab 128k \ - ~/vids/$1.mkv -} - -####### -# git # -####### - -alias commit='git commit -m' -alias fetch='git fetch' -alias upstream='git push --set-upstream origin' -alias remote='git remote add origin' -alias pull='git pull origin' -alias push='git push origin' - -# Shortcut for dotfiles repo -alias dfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' - -################### -# Package Manager # -################### - -alias aptin='sudo apt install' -alias aptup='sudo apt update && sudo apt upgrade' -alias aptupd='sudo apt update' -alias aptupg='sudo apt upgrade' -alias aptrm='sudo apt remove' -alias aptsr='apt search' -alias listup='apt list --upgradeable' -alias listin='apt list --installed' - -########## -# yt-dlp # -########## - -alias ytvid='yt-dlp -o "/hdd/vids/random/%(title)s.%(ext)s" --remux-video "mkv"' -alias ytarchive='yt-dlp -o "/hdd/vids/archives/%(uploader)s/%(upload_date)s - %(title)s/%(title)s.%(ext)s" --remux-video "mkv"' - -# Function to specify filename, so I can avoid total chaos in my library -ytmp3() { - read -p "Enter filename: " name; - yt-dlp -x --audio-format mp3 --download-archive "/hdd/music/Archive_goodMusic.txt" \ - --embed-metadata -o "/hdd/music/Youtube Downloads/$name.%(ext)s" $1 -} - -########### -# Network # -########### - -alias flush-dns='sudo /etc/init.d/dns-clean start' - -############# -# Shortcuts # -############# - -alias jpwine='LANG=ja_JP.UTF-8 WINEDEBUG=-all wine' -alias emacs='emacsclient -c --socket-name=/tmp/emacs1000/server' diff --git a/.bash_profile b/.bash_profile deleted file mode 100644 index e65e24b..0000000 --- a/.bash_profile +++ /dev/null @@ -1,14 +0,0 @@ -# Path for Android Development -export ANDROID_HOME=$HOME/.local/src/android/Sdk -export PATH=$PATH:$ANDROID_HOME/emulator -export PATH=$PATH:$ANDROID_HOME/tools -export PATH=$PATH:$ANDROID_HOME/tools/bin -export PATH=$PATH:$ANDROID_HOME/platform-tools - -# Add various paths -export PATH="$PATH:$HOME/.fzf/bin:$HOME/.cargo/bin" -export _JAVA_AWT_WM_NONREPARENTING=1 - -[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile - -umask 0077 diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 7da912f..0000000 --- a/.bashrc +++ /dev/null @@ -1,117 +0,0 @@ -# __ _ _ -# ___ __ _ / _| ___ | |__ __ _| |__ ___ -# / __| / _' | |_ / _ \| _ \ / _' | _ \ / _ \ -# | |__ / (_| | _| __/| |_) / (_| | |_) | __/ -# \___|\___._/_| \___/|____/\___._/____/ \___/ - -export LC_ALL=en_US.UTF-8 - -export STARSHIP_CONFIG=~/.config/starship/starship.toml -export MAIL=~/.mutt/Maildir - -if [ -f "/etc/profile.d/rvm.sh" ]; then - source /etc/profile.d/rvm.sh -fi - -# If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac - -export NO_AT_BRIDGE=1 - -stty start undef - -# append to the history file, don't overwrite it -shopt -s histappend - -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=2000 - -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize - -# Enable globbing hidden/dot files (.filename). -shopt -s dotglob - -# make less more friendly for non-text input files, see lesspipe(1) -[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - -# set variable identifying the chroot you work in (used in the prompt below) -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi - - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - - -# enable colors -if [ -f ~/.dircolors ]; then - eval "`dircolors -b ~/.dircolors`" -fi - - -alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' - -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi - -# Generated for envman. Do not edit. -[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh" - -# fzf configs -[ -f ~/.config/fzf/fzf.bash ] && source ~/.config/fzf/fzf.bash -export FZF_DEFAULT_OPS="--extended" -export FZF_DEFAULT_COMMAND="fd --type f" -export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" - -# NNN -[ -f ~/.config/nnn/nnn.bash ] && source ~/.config/nnn/nnn.bash - -macchina - -export NVM_DIR=$HOME/.nvm - -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion - -[[ -s "$HOME/.rvm/environments/ruby-3.1.2" ]] && source "$HOME/.rvm/environments/ruby-3.1.2" - - -# BEGIN_KITTY_SHELL_INTEGRATION -if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi -# END_KITTY_SHELL_INTEGRATION - -eval "$(starship init bash)" diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index 686ce8d..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,41 +0,0 @@ -# Status-bar settings -set -g status-right "%H:%M" -set -g window-status-current-style "underscore" -set -g message-command-style 'fg=#000000,bg=#FFFF00' -set -g message-style 'fg=#000000, bg=#FFFF00' -set -g status-bg '#333333' -set -g status-fg '#FFFFFF' -set -g set-titles on -set -g set-titles-string "#T" - -# Enable RGB colour if running in xterm(1) -set-option -sa terminal-overrides ",xterm*:Tc" - -# Change the default $TERM to tmux-256color -set -g default-terminal "tmux-256color" - -# Set history-limit -set -g history-limit 10000 - -## KEYBINDS - -# Change the prefix key to C-a -set -g prefix C-a -unbind C-b -bind C-a send-prefix - -bind C-v split-window -v # split vertically -bind C-h split-window -h # split horizontally -bind C-w killp # kill pane -bind C-q killw # kill window -bind -n M-h select-pane -L -bind -n M-l select-pane -R -bind -n M-k select-pane -U -bind -n M-j select-pane -D - -# Turn the mouse on, but without copy mode dragging -set -g mouse off - -# Keys to toggle monitoring activity in a window and the synchronize-panes option -bind m set monitor-activity -bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}' -- cgit v1.2.3