diff options
| -rw-r--r-- | picom.conf | 104 | ||||
| -rw-r--r-- | shell/aliasrc | 55 | ||||
| -rw-r--r-- | shell/bm-dirs | 14 | ||||
| -rw-r--r-- | shell/bm-files | 23 | ||||
| -rw-r--r-- | shell/inputrc | 19 | ||||
| -rw-r--r-- | shell/profile | 156 | ||||
| -rw-r--r-- | shell/shortcutrc | 30 | ||||
| -rw-r--r-- | shell/zshnameddirrc | 29 | ||||
| -rw-r--r-- | zathura/zathurarc | 61 |
9 files changed, 444 insertions, 47 deletions
diff --git a/picom.conf b/picom.conf new file mode 100644 index 0000000..3c173c4 --- /dev/null +++ b/picom.conf @@ -0,0 +1,104 @@ +# Shadow +shadow = false; +no-dnd-shadow = true; +no-dock-shadow = true; +shadow-radius = 7; +shadow-offset-x = -7; +shadow-offset-y = -7; +shadow-opacity = 0.7; +# shadow-red = 0.0; +# shadow-green = 0.0; +# shadow-blue = 0.0; +shadow-exclude = [ + "! name~=''", + "name = 'Notification'", + "name = 'Plank'", + "name = 'Docky'", + "name = 'Kupfer'", + "name = 'xfce4-notifyd'", + "name *= 'VLC'", + "name *= 'compton'", + "name *= 'Chromium'", + "name *= 'Chrome'", + "name *= 'Firefox'", + "class_g = 'launcher.exe'", + "class_g = 'Conky'", + "class_g = 'Kupfer'", + "class_g = 'Synapse'", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'" +]; +# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) +shadow-ignore-shaped = false; +# shadow-exclude = "n:e:Notification"; +# shadow-exclude-reg = "x10+0+0"; +# xinerama-shadow-crop = true; + +# Opacity +menu-opacity = 1.0; +# inactive-opacity = 0.8; +# active-opacity = 0.8; +# frame-opacity = 0.7; +inactive-opacity-override = false; +#alpha-step = 0.06; +# inactive-dim = 0.2; +# inactive-dim-fixed = true; +# blur-background = true; +# blur-background-frame = true; +# blur-kern = "3x3box"; +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# blur-background-fixed = true; +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c" +]; +# opacity-rule = [ "80:class_g = 'URxvt'" ]; + +# Fading +fading = true; +fade-delta = 5; +fade-in-step = 0.04; +fade-out-step = 0.04; +no-fading-openclose = false; +# no-fading-destroyed-argb = true; +fade-exclude = [ ]; + +# Other +backend = "glx"; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +# use-ewmh-active-win = true; +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; +vsync = "true"; +dbe = false; +#paint-on-overlay = true; +# sw-opti = true; +unredir-if-possible = false; +# unredir-if-possible-delay = 5000; +# unredir-if-possible-exclude = [ ]; +focus-exclude = [ "class_g = 'Cairo-clock'" ]; +detect-transient = true; +detect-client-leader = true; +invert-color-include = [ ]; +# resize-damage = 1; + +# GLX backend +glx-no-stencil = true; +glx-copy-from-front = false; +# glx-use-copysubbuffermesa = true; +# glx-no-rebind-pixmap = true; +glx-swap-method = "1"; +# glx-use-gpushader4 = true; +# xrender-sync = true; +# xrender-sync-fence = true; + +# Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; }; +}; diff --git a/shell/aliasrc b/shell/aliasrc new file mode 100644 index 0000000..0bbae4a --- /dev/null +++ b/shell/aliasrc @@ -0,0 +1,55 @@ +#!/bin/sh + +# Use neovim for vim if present. +[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" + +# Use $XINITRC variable if file exists. +[ -f "$XINITRC" ] && alias startx="startx $XINITRC" + +# sudo not required for some system commands +for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do + alias $command="sudo $command" +done; unset command + +# Verbosity and settings that you pretty much just always are going to want. +alias \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + bc="bc -ql" \ + mkd="mkdir -pv" \ + yt="youtube-dl --add-metadata -i" \ + yta="yt -x -f bestaudio/best" \ + ffmpeg="ffmpeg -hide_banner" + +# Colorize commands when possible. +alias \ + ls="ls -hN --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + ccat="highlight --out-format=ansi" + +# These common commands are just too long! Abbreviate them. +alias \ + ka="killall" \ + g="git" \ + trem="transmission-remote" \ + YT="youtube-viewer" \ + sdn="shutdown -h now" \ + e="$EDITOR" \ + v="$EDITOR" \ + p="pacman" \ + xi="sudo xbps-install" \ + xr="sudo xbps-remove -R" \ + xq="xbps-query" \ + z="zathura" + +alias \ + magit="nvim -c MagitOnly" \ + ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \ + weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \ + +# extra +alias \ + nassh="ssh root@10.0.0.8" \ + vultrssh="ssh -p 46701 tyler@tylerhoang.xyz" \ diff --git a/shell/bm-dirs b/shell/bm-dirs new file mode 100644 index 0000000..7bb0407 --- /dev/null +++ b/shell/bm-dirs @@ -0,0 +1,14 @@ +# You can add comments to these files with # +cac ${XDG_CACHE_HOME:-$HOME/.cache} +cf ${XDG_CONFIG_HOME:-$HOME/.config} +d ${XDG_DOWNLOAD_DIR:-$HOME/down} +D ${XDG_DOCUMENTS_DIR:-$HOME/docs} +dt ${XDG_DATA_HOME:-$HOME/.local/share} +rr $HOME/.local/src +h $HOME +m ${XDG_MUSIC_DIR:-$HOME/mus} +mn /mnt +pp ${XDG_PICTURES_DIR:-$HOME/pics} +sc $HOME/.local/bin +src $HOME/.local/src +vv ${XDG_VIDEOS_DIR:-$HOME/vids} diff --git a/shell/bm-files b/shell/bm-files new file mode 100644 index 0000000..7acbb66 --- /dev/null +++ b/shell/bm-files @@ -0,0 +1,23 @@ +# These files automatically update when edited/saved in vim: + +# keys filename description +bf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-files # This file, a list of bookmarked files +bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs # A list of bookmarked directories similar to this file +cfx ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources # Colors, themes and variables for X11 +cfb ~/.local/src/dwmblocks/config.h # dwmblocks: the status bar for dwm + + +# These do not update automatically, but on the next new instance of a program: + +cfv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim # vim/neovim config +cfz $ZDOTDIR/.zshrc # zsh (shell) config +cfa ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc # aliases used by zsh (and potentially other shells) +cfp ${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile # profile file for login settings for zsh +cfm ${XDG_CONFIG_HOME:-$HOME/.config}/mutt/muttrc # mutt (email client) config +cfn ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/config # newsboat (RSS reader) +cfu ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls # RSS urls for newsboat +cfmb ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/bindings # ncmpcpp (music player) keybinds file +cfmc ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/config # ncmpcpp (music player) config +cfl ${XDG_CONFIG_HOME:-$HOME/.config}/lf/lfrc # lf (file browser) config +cfL ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope # lf's scope/preview file +cfX ${XDG_CONFIG_HOME:-$HOME/.config}/sxiv/exec/key-handler # sxiv (image viewer) key/script handler diff --git a/shell/inputrc b/shell/inputrc new file mode 100644 index 0000000..f9b94dd --- /dev/null +++ b/shell/inputrc @@ -0,0 +1,19 @@ +$include /etc/inputrc +set editing-mode vi +$if mode=vi + +set show-mode-in-prompt on +set vi-ins-mode-string \1\e[6 q\2 +set vi-cmd-mode-string \1\e[2 q\2 + +set keymap vi-command +# these are for vi-command mode +Control-l: clear-screen +Control-a: beginning-of-line + +set keymap vi-insert +# these are for vi-insert mode +Control-l: clear-screen +Control-a: beginning-of-line + +$endif diff --git a/shell/profile b/shell/profile new file mode 100644 index 0000000..ec3b45b --- /dev/null +++ b/shell/profile @@ -0,0 +1,156 @@ +#!/bin/zsh + +# profile file. Runs on login. Environmental variables are set here. + +# If you don't plan on reverting to bash, you can remove the link in ~/.profile +# to clean up. + +# Adds `~/.local/bin` to $PATH +export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}" + +unsetopt PROMPT_SP + +# Default programs: +export EDITOR="nvim" +export TERMINAL="st" +export BROWSER="brave" + +# ~/ Clean-up: +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" +export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc" +#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs. +export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config" +export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0" +export LESSHISTFILE="-" +export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc" +export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/shell/inputrc" +export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh" +#export ALSA_CONFIG_PATH="$XDG_CONFIG_HOME/alsa/asoundrc" +#export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg" +export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default" +export KODI_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/kodi" +export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store" +export TMUX_TMPDIR="$XDG_RUNTIME_DIR" +export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android" +export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo" +export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" +export ANSIBLE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/ansible/ansible.cfg" +export UNISON="${XDG_DATA_HOME:-$HOME/.local/share}/unison" +export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history" +export WEECHAT_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/weechat" +export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config" +export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum" + +# Other program settings: +export DICS="/usr/share/stardict/dic/" +export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" +export FZF_DEFAULT_OPTS="--layout=reverse --height 40%" +export LESS=-R +export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')" +export LESS_TERMCAP_md="$(printf '%b' '[1;36m')" +export LESS_TERMCAP_me="$(printf '%b' '[0m')" +export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')" +export LESS_TERMCAP_se="$(printf '%b' '[0m')" +export LESS_TERMCAP_us="$(printf '%b' '[1;32m')" +export LESS_TERMCAP_ue="$(printf '%b' '[0m')" +export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null" +export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. +export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads. +export AWT_TOOLKIT="MToolkit wmname LG3D" #May have to install wmname +export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm + +# This is the list for lf icons: +export LF_ICONS="di=📁:\ +fi=📃:\ +tw=🤝:\ +ow=📂:\ +ln=⛓:\ +or=❌:\ +ex=🎯:\ +*.txt=✍:\ +*.mom=✍:\ +*.me=✍:\ +*.ms=✍:\ +*.png=🖼:\ +*.webp=🖼:\ +*.ico=🖼:\ +*.jpg=📸:\ +*.jpe=📸:\ +*.jpeg=📸:\ +*.gif=🖼:\ +*.svg=🗺:\ +*.tif=🖼:\ +*.tiff=🖼:\ +*.xcf=🖌:\ +*.html=🌎:\ +*.xml=📰:\ +*.gpg=🔒:\ +*.css=🎨:\ +*.pdf=📚:\ +*.djvu=📚:\ +*.epub=📚:\ +*.csv=📓:\ +*.xlsx=📓:\ +*.tex=📜:\ +*.md=📘:\ +*.r=📊:\ +*.R=📊:\ +*.rmd=📊:\ +*.Rmd=📊:\ +*.m=📊:\ +*.mp3=🎵:\ +*.opus=🎵:\ +*.ogg=🎵:\ +*.m4a=🎵:\ +*.flac=🎼:\ +*.wav=🎼:\ +*.mkv=🎥:\ +*.mp4=🎥:\ +*.webm=🎥:\ +*.mpeg=🎥:\ +*.avi=🎥:\ +*.mov=🎥:\ +*.mpg=🎥:\ +*.wmv=🎥:\ +*.m4b=🎥:\ +*.flv=🎥:\ +*.zip=📦:\ +*.rar=📦:\ +*.7z=📦:\ +*.tar.gz=📦:\ +*.z64=🎮:\ +*.v64=🎮:\ +*.n64=🎮:\ +*.gba=🎮:\ +*.nes=🎮:\ +*.gdi=🎮:\ +*.1=ℹ:\ +*.nfo=ℹ:\ +*.info=ℹ:\ +*.log=📙:\ +*.iso=📀:\ +*.img=📀:\ +*.bib=🎓:\ +*.ged=👪:\ +*.part=💔:\ +*.torrent=🔽:\ +*.jar=♨:\ +*.java=♨:\ +" + +[ ! -f ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ] && shortcuts >/dev/null 2>&1 & + +#if pacman -Qs libxft-bgra >/dev/null 2>&1; then +# # Start graphical server on user's current tty if not already running. +# [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" +#else +# echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm. +#Please run: +# \033[32mparu -S libxft-bgra-git\033[0m +#and replace \`libxft\`. Afterwards, you may start the graphical server by running \`startx\`." +#fi + +# Switch escape and caps if tty and no passwd required: +sudo -n loadkeys ${XDG_DATA_HOME:-$HOME/.local/share}/larbs/ttymaps.kmap 2>/dev/null diff --git a/shell/shortcutrc b/shell/shortcutrc new file mode 100644 index 0000000..62cce3c --- /dev/null +++ b/shell/shortcutrc @@ -0,0 +1,30 @@ +# vim: filetype=sh +alias cac="cd /home/tyler/.cache && ls -a" \ +cf="cd /home/tyler/.config && ls -a" \ +d="cd /home/tyler/down && ls -a" \ +D="cd /home/tyler/docs && ls -a" \ +dt="cd /home/tyler/.local/share && ls -a" \ +rr="cd /home/tyler/.local/src && ls -a" \ +h="cd /home/tyler && ls -a" \ +m="cd /home/tyler/mus && ls -a" \ +mn="cd /mnt && ls -a" \ +pp="cd /home/tyler/pics && ls -a" \ +sc="cd /home/tyler/.local/bin && ls -a" \ +src="cd /home/tyler/.local/src && ls -a" \ +vv="cd /home/tyler/vids && ls -a" \ +bf="$EDITOR /home/tyler/.config/shell/bm-files" \ +bd="$EDITOR /home/tyler/.config/shell/bm-dirs" \ +cfx="$EDITOR /home/tyler/.config/x11/xresources" \ +cfb="$EDITOR ~/.local/src/dwmblocks/config.h" \ +cfv="$EDITOR /home/tyler/.config/nvim/init.vim" \ +cfz="$EDITOR /home/tyler/.config/zsh/.zshrc" \ +cfa="$EDITOR /home/tyler/.config/shell/aliasrc" \ +cfp="$EDITOR /home/tyler/.config/shell/profile" \ +cfm="$EDITOR /home/tyler/.config/mutt/muttrc" \ +cfn="$EDITOR /home/tyler/.config/newsboat/config" \ +cfu="$EDITOR /home/tyler/.config/newsboat/urls" \ +cfmb="$EDITOR /home/tyler/.config/ncmpcpp/bindings" \ +cfmc="$EDITOR /home/tyler/.config/ncmpcpp/config" \ +cfl="$EDITOR /home/tyler/.config/lf/lfrc" \ +cfL="$EDITOR /home/tyler/.config/lf/scope" \ +cfX="$EDITOR /home/tyler/.config/sxiv/exec/key-handler" \ diff --git a/shell/zshnameddirrc b/shell/zshnameddirrc new file mode 100644 index 0000000..5dd3a99 --- /dev/null +++ b/shell/zshnameddirrc @@ -0,0 +1,29 @@ +hash -d cac=/home/tyler/.cache +hash -d cf=/home/tyler/.config +hash -d d=/home/tyler/down +hash -d D=/home/tyler/docs +hash -d dt=/home/tyler/.local/share +hash -d rr=/home/tyler/.local/src +hash -d h=/home/tyler +hash -d m=/home/tyler/mus +hash -d mn=/mnt +hash -d pp=/home/tyler/pics +hash -d sc=/home/tyler/.local/bin +hash -d src=/home/tyler/.local/src +hash -d vv=/home/tyler/vids +hash -d bf=/home/tyler/.config/shell/bm-files +hash -d bd=/home/tyler/.config/shell/bm-dirs +hash -d cfx=/home/tyler/.config/x11/xresources +hash -d cfb=~/.local/src/dwmblocks/config.h +hash -d cfv=/home/tyler/.config/nvim/init.vim +hash -d cfz=/home/tyler/.config/zsh/.zshrc +hash -d cfa=/home/tyler/.config/shell/aliasrc +hash -d cfp=/home/tyler/.config/shell/profile +hash -d cfm=/home/tyler/.config/mutt/muttrc +hash -d cfn=/home/tyler/.config/newsboat/config +hash -d cfu=/home/tyler/.config/newsboat/urls +hash -d cfmb=/home/tyler/.config/ncmpcpp/bindings +hash -d cfmc=/home/tyler/.config/ncmpcpp/config +hash -d cfl=/home/tyler/.config/lf/lfrc +hash -d cfL=/home/tyler/.config/lf/scope +hash -d cfX=/home/tyler/.config/sxiv/exec/key-handler diff --git a/zathura/zathurarc b/zathura/zathurarc index 29be9fe..452e116 100644 --- a/zathura/zathurarc +++ b/zathura/zathurarc @@ -1,48 +1,15 @@ -# settings -set adjust-open "best-fit" -set window-height "980" -set window-width "900" -set selection-clipboard "clipboard" -set statusbar-basename "true" -set pages-per-row "1" -set zoom-min "50" -set vertical-center "true" -set page-padding "2" # blank space between pages -set incremental-search "true" - - -# keybindings -map <F1> set "pages-per-row 1" -map <F2> set "pages-per-row 2" -map <C--> zoom out -map <C-=> zoom in -map i recolor - - -#stop at page boundries -set scroll-page-aware "true" -set scroll-full-overlap 0.01 -set scroll-step 100 - - -# appearance -set font "JetBrains Mono 8" -set default-bg "#282A36" -set default-fg "#F8F8F2" - -set highlight-color "#5f819d" -set highlight-active-color "#555aa7" - -set statusbar-bg "#0D0C03" -set statusbar-fg "#e1c697" - -set recolor-lightcolor "#282A36" -set recolor-darkcolor "#F8F8F2" -set recolor "true" #This define if the pdf will be dark ou light - -# setting recolor-keep true will keep any color your pdf has. -# if it is false, itll just be black and white -set recolor-keephue "true" - -# vim: set ft=conf: set sandbox none +set statusbar-h-padding 0 +set statusbar-v-padding 0 +set page-padding 1 +set selection-clipboard clipboard +map u scroll half-up +map d scroll half-down +map D toggle_page_mode +map r reload +map R rotate +map K zoom in +map J zoom out +map i recolor +map p print +map g goto top |
