From: Daniel Liu Date: Sun, 30 May 2021 03:38:56 +0000 (-0400) Subject: tmux X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=16ff07cf2c1fd43077b930bcdc926ae86abd935c;p=dotfiles.git tmux --- diff --git a/.Xresources b/.Xresources index 24a168b..47bc1ea 100644 --- a/.Xresources +++ b/.Xresources @@ -28,44 +28,63 @@ #define nordbg #2E3440 /* gruvbox */ -#define gruv0 #282828 -#define gruv8 #928374 -#define gruv1 #CC241D -#define gruv9 #FB4934 -#define gruv2 #98971A -#define gruv10 #B8BB26 -#define gruv3 #D79921 -#define gruv11 #FABD2F -#define gruv4 #458588 -#define gruv12 #83A598 -#define gruv5 #B16286 -#define gruv13 #D3869B -#define gruv6 #689D6A -#define gruv14 #8EC07C -#define gruv7 #A89984 -#define gruv15 #EBDBB2 -#define gruvfg #EBDBB2 -#define gruvbg #282828 +/* #define gruv0 #282828 */ +/* #define gruv8 #928374 */ +/* #define gruv1 #CC241D */ +/* #define gruv9 #FB4934 */ +/* #define gruv2 #98971A */ +/* #define gruv10 #B8BB26 */ +/* #define gruv3 #D79921 */ +/* #define gruv11 #FABD2F */ +/* #define gruv4 #458588 */ +/* #define gruv12 #83A598 */ +/* #define gruv5 #B16286 */ +/* #define gruv13 #D3869B */ +/* #define gruv6 #689D6A */ +/* #define gruv14 #8EC07C */ +/* #define gruv7 #A89984 */ +/* #define gruv15 #EBDBB2 */ +/* #define gruvfg #EBDBB2 */ +/* #define gruvbg #282828 */ -#define theme0 nord0 -#define theme8 nord8 -#define theme1 nord1 -#define theme9 nord9 -#define theme2 nord2 -#define theme10 nord10 -#define theme3 nord3 -#define theme11 nord11 -#define theme4 nord4 -#define theme12 nord12 -#define theme5 nord5 -#define theme13 nord13 -#define theme6 nord6 -#define theme14 nord14 -#define theme7 nord7 -#define theme15 nord15 -#define themefg nordfg -#define themebg nordbg -#define themehl nord11 +#define gruv0 #32302f +#define gruv1 #ea6962 +#define gruv2 #a9b665 +#define gruv3 #d8a657 +#define gruv4 #7daea3 +#define gruv5 #d3869b +#define gruv6 #89b482 +#define gruv7 #d4be98 +#define gruv8 #32302f +#define gruv9 #ea6962 +#define gruv10 #a9b665 +#define gruv11 #d8a657 +#define gruv12 #7daea3 +#define gruv13 #d3869b +#define gruv14 #89b482 +#define gruv15 #d4be98 +#define gruvfg #d4be98 +#define gruvbg #32302f + +#define theme0 gruv0 +#define theme8 gruv8 +#define theme1 gruv1 +#define theme9 gruv9 +#define theme2 gruv2 +#define theme10 gruv10 +#define theme3 gruv3 +#define theme11 gruv11 +#define theme4 gruv4 +#define theme12 gruv12 +#define theme5 gruv5 +#define theme13 gruv13 +#define theme6 gruv6 +#define theme14 gruv14 +#define theme7 gruv7 +#define theme15 gruv15 +#define themefg gruvfg +#define themebg gruvbg +#define themehl gruv11 *.font: Source Code Pro:size=12 diff --git a/.bashrc b/.bashrc index 6af1de6..fd64225 100644 --- a/.bashrc +++ b/.bashrc @@ -17,6 +17,9 @@ set -o vi source ~/.config/shell/commonrc +source ~/Scripts/lfcd +bind '"\C-f":"lfcd\n"' + # startup stuff ufetch-arch diff --git a/.config/shell/commonrc b/.config/shell/commonrc index d0851da..ef3845f 100644 --- a/.config/shell/commonrc +++ b/.config/shell/commonrc @@ -2,6 +2,7 @@ # alias alias ls='ls --color=auto' alias grep='grep --color=auto' +alias cp='cp -i' alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias suckless-clean='make clean && rm -rf config.h && git reset --hard home/master' alias musicdl="youtube-dl -f bestaudio" diff --git a/.config/zsh/.zsh_history b/.config/zsh/.zsh_history index fed5c6b..3c824de 100644 --- a/.config/zsh/.zsh_history +++ b/.config/zsh/.zsh_history @@ -56,3 +56,9 @@ dotfiles status ls ls exit +ls +ls -a +colortest +clear +ls +ls diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 857db44..60903c6 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -7,7 +7,7 @@ autoload -U colors && colors -PS1=" %B%{$fg[yellow]%}Z_%{$fg[white]%} %1~ %{$fg[yellow]%}>>>%{$reset_color%}%b " +PS1=" %B%{$fg[yellow]%}𝓩_%{$fg[white]%} %1~ %{$fg[yellow]%}>>>%{$reset_color%}%b " ## tab completion grid autoload -U compinit diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..fbc3081 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,53 @@ +# pinosaur's dwm inspired tmux.conf + +set -sg escape-time 0 +set -g mouse off + +bind -n M-r source-file ~/.tmux.conf \; display "reloaded config file" + +# dwm like key bindings +bind -n M-Enter split-window -h +# bind -n M-N split-window -v +bind -n M-Enter split-window -h -c "#{pane_current_path}" +bind -n M-h resize-pane -L 5 +bind -n M-l resize-pane -R 5 +bind -n M-K swap-pane -U +bind -n M-J swap-pane -D +bind -n M-C kill-pane +bind -n M-k select-pane -L +bind -n M-j select-pane -R +bind -n M-Q kill-server + +# window stuff +set -g base-index 1 + +bind -n M-1 if-shell 'tmux select-window -t:1' '' 'new-window -t:1' +bind -n M-2 if-shell 'tmux select-window -t:2' '' 'new-window -t:2' +bind -n M-3 if-shell 'tmux select-window -t:3' '' 'new-window -t:3' +bind -n M-4 if-shell 'tmux select-window -t:4' '' 'new-window -t:4' +bind -n M-5 if-shell 'tmux select-window -t:5' '' 'new-window -t:5' +bind -n M-6 if-shell 'tmux select-window -t:6' '' 'new-window -t:6' +bind -n M-7 if-shell 'tmux select-window -t:7' '' 'new-window -t:7' +bind -n M-8 if-shell 'tmux select-window -t:8' '' 'new-window -t:8' +bind -n M-9 if-shell 'tmux select-window -t:9' '' 'new-window -t:9' + +bind -n M-w choose-tree + +# statusbar +set-option -g status-position top +set-window-option -g automatic-rename on + +# set-window-option -g window-status-fg white +# set-window-option -g window-status-bg black +# set-window-option -g window-status-current-fg black +# set-window-option -g window-status-current-bg green + +set -g status-left "" +#set -g status-right "" +set -g window-status-format "[#I]" +set -g window-status-current-format "[#I]" +set -g window-status-separator "" + +set -g status-right "/ #(blocks_bat) / #(blocks_ram) / #(blocks_mem) / #(blocks_date) / #(whoami) " +set status-right-length 80 + diff --git a/.vim/templates/skeleton.tex b/.vim/templates/skeleton.tex index 2d64863..ed1ec59 100644 --- a/.vim/templates/skeleton.tex +++ b/.vim/templates/skeleton.tex @@ -1,14 +1,44 @@ \documentclass[11pt]{article} -\textwidth 15cm -\textheight 24cm -\evensidemargin 6mm -\oddsidemargin 6mm -\topmargin -1.1cm \setlength{\parskip}{1.5ex} -\usepackage{amsfonts,amsmath,amssymb,enumerate} +\usepackage{amsfonts,amsmath,amssymb,enumerate,mathtools} +\usepackage{titlesec,titling} +\usepackage{float} +\usepackage[margin=0.5in,bottom=0.25in,top=0.4in]{geometry} +\usepackage[shortlabels]{enumitem} +\setlist{nosep} +% \usepackage{import} +% \usepackage{xifthen} +% \usepackage{pdfpages} +% \usepackage{transparent} + +% \usepackage{graphicx} +% \graphicspath{ {./resources/} } + +\newcommand{\incfig}[2][1]{% + \def\svgwidth{#1\columnwidth} + \import{./resources/}{#2.pdf_tex} +} + +\titleformat{\section} +{\large\bfseries}{}{0em}{}[\titlerule] +\titlespacing{\section} +{0em}{0em}{0.3em} + +\titleformat{\subsection} +{\bfseries}{}{0em}{} +\titlespacing{\subsection} +{0em}{0em}{-0.5em} + +\renewcommand{\maketitle}{ + \begin{center} + \textbf{\thetitle}\\ + \theauthor\\ + \thedate + \end{center} +} \begin{document} \parindent=0pt @@ -20,3 +50,4 @@ \end{document} + diff --git a/.vimrc b/.vimrc index aeea621..43c2132 100644 --- a/.vimrc +++ b/.vimrc @@ -14,7 +14,7 @@ set smartcase set encoding=utf-8 set tabstop=4 set shiftwidth=4 -" set expandtab +set expandtab set nrformats+=alpha "inc/dec alpha set hidden @@ -153,8 +153,11 @@ let g:vimtex_quickfix_mode=0 let g:tex_conceal='abdmgs' let g:vimtex_compiler_latexmk = { - \'build_dir': '/home/pinosaur/.cache/latexaux/' + \'build_dir': '/home/pinosaur/.cache/latexaux/', \} + " \'options': [ + " \ '-shell-escape', + " \], " Ctrlp " let g:ctrlp_cmd='CtrlPTag' diff --git a/.xinitrc b/.xinitrc index b400a14..593d27d 100644 --- a/.xinitrc +++ b/.xinitrc @@ -37,7 +37,7 @@ sxhkd & mpd & mpd-change & xbanish & -picom --experimental-backends & +# picom --experimental-backends & #syncthing & # ibus