summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-26 04:08:53 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-26 04:08:53 -0300
commit8dc8f2d52338fd87e7763995e6732f5a295300e8 (patch)
tree56ea8a124b9a81e42251ffa1be92ad6475d7bef3 /zsh
huh
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zprofile7
m---------zsh/.zsh/zsh-autosuggestions0
-rw-r--r--zsh/.zshenv32
-rw-r--r--zsh/.zshrc78
4 files changed, 117 insertions, 0 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile
new file mode 100644
index 0000000..93d8d9f
--- /dev/null
+++ b/zsh/.zprofile
@@ -0,0 +1,7 @@
+[[ -f ~/.zshrc ]] && . ~/.zshrc
+
+# xinit
+
+if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+ exec startx
+fi
diff --git a/zsh/.zsh/zsh-autosuggestions b/zsh/.zsh/zsh-autosuggestions
new file mode 160000
+Subproject a411ef3e0992d4839f0732ebeb9823024afaaaa
diff --git a/zsh/.zshenv b/zsh/.zshenv
new file mode 100644
index 0000000..4de5a45
--- /dev/null
+++ b/zsh/.zshenv
@@ -0,0 +1,32 @@
+typeset -U PATH path
+path=("$HOME/.local/bin" ~/stf/scripts/ "$path[@]")
+export PATH
+
+# Programs
+export EDITOR="nvim"
+export TERMINAL="st"
+export BROWSER="firefox"
+
+# Home clean-up
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CONFIG_HOME="$HOME/.config"
+export ZDOTDIR=$HOME/.config/zsh
+export HISTFILE="$XDG_STATE_HOME"/.config/zsh/history
+export WGETRC="$XDG_CONFIG_HOME/wgetrc"
+export WINEPREFIX="$XDG_DATA_HOME"/wineprefixes/default
+export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
+export ELECTRUMDIR="$XDG_DATA_HOME/electrum"
+export GOPATH="$XDG_DATA_HOME/go"
+export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
+export GNUPGHOME="$XDG_DATA_HOME/gnupg"
+export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" vt1
+
+# Personal dirs
+export STUFF_DIR="$HOME/stf"
+export MUSIC_DIR="$HOME/stf/music"
+export VIDS_DIR="$HOME/stf/vids"
+export SS_DIR="$HOME/stf/ss"
+export DLS_DIR="$HOME/stf/dls"
+export SCRIPTS_DIR="$HOME/stf/scripts"
+export WEB_DIR="$HOME/stf/webdev"
+export ROMS_DIR="$HOME/HDD/P2_300G/ROMS"
diff --git a/zsh/.zshrc b/zsh/.zshrc
new file mode 100644
index 0000000..ed60251
--- /dev/null
+++ b/zsh/.zshrc
@@ -0,0 +1,78 @@
+# Export colors
+export TERM=xterm-256color
+
+# Colors and prompt
+autoload -U colors && colors
+PS1='%B %F{245}m%f in %F{088}%f%~ %F{245}$ %f'
+
+# History Files
+HISTFILE=~/.cache/zsh/histfile
+HISTSIZE=1000
+SAVEHIST=1000
+
+zstyle :compinstall filename '/home/monoblanco/.config/zsh/.zshrc'
+
+autoload -Uz compinit
+zstyle ':completion:*' menu select
+zmodload zsh/complist
+compinit
+_comp_options+=(globdots)
+
+# Syntax Highlighting
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
+
+# Autosuggestions
+source ~/.config/zsh/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
+
+# Alias generales
+alias ytsong="yt-dlp -x --audio-format mp3 -o '$HOME/stf/music/%(title)s.%(ext)s'"
+alias rm="rm -i"
+alias hdmion="xrandr --output HDMI-1 --mode 1360x768 --left-of DVI-D-1 && source '$HOME/.config/feh/.fehbg' && i3-msg restart"
+alias hdmioff="xrandr --output HDMI-1 --off && source '$HOME/.config/feh/.fehbg' && i3-msg restart"
+alias fmpv="setsid -f mpv"
+alias ll="ls -lA"
+alias vim="nvim"
+alias vps="ssh root@drainerdomain.xyz"
+alias t="todo.sh"
+
+# Home clean
+alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
+alias monerod='monerod --data-dir "$XDG_DATA_HOME"/bitmonero'
+alias gpg2='gpg2 --homedir "$XDG_DATA_HOME"/gnupg'
+
+# VIM TREE
+alias vimweb="nvim ~/stf/webdev"
+
+
+# Alias cfg
+alias ci3="vim $HOME/.config/i3/config"
+alias cpicom="vim $HOME/.config/picom.conf"
+alias cdunst="vim $HOME/.config/dunst/dunstrc"
+alias cmpd="vim $HOME/.config/mpd/mpd.conf"
+alias cmpv="vim $HOME/.config/mpv/mpv.conf"
+alias cncmp="vim $HOME/.config/ncmpcpp/config"
+alias cnewsu="vim $HOME/.config/newsboat/urls"
+alias cnews="vim $HOME/.config/newsboat/config"
+alias cpoly="vim $HOME/.config/polybar/cuts/config.ini"
+alias czsh="vim $HOME/.config/zsh/.zshrc"
+
+# One-time-neofetch
+[ $(pidof st | wc -w) -lt 2 ] && neofetch
+
+# Import colorscheme from 'wal' asynchronously
+# & # Run the process in the background.
+# ( ) # Hide shell job control messages.
+# Not supported in the "fish" shell.
+# (cat ~/.cache/wal/sequences &)
+
+# Alternative (blocks terminal for 0-3ms)
+# cat ~/.cache/wal/sequences
+
+# To add support for TTYs this line can be optionally added.
+source ~/.cache/wal/colors-tty.sh
+
+# Import the colors.
+. "${HOME}/.cache/wal/colors.sh"
+
+# Create the alias.
+alias dmen='dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -fn "Iosevka-11"'