various
This commit is contained in:
parent
1258af937d
commit
09329903e4
Binary file not shown.
After Width: | Height: | Size: 3.0 MiB |
16
bin/generate
16
bin/generate
|
@ -1,10 +1,20 @@
|
|||
#!/bin/bash
|
||||
cd ~/repos/nixnet/
|
||||
cd ~/repos/nixnet/
|
||||
bundle exec jekyll build
|
||||
python cards.py
|
||||
cp -r ~/repos/nixnet/.well-known ~/repos/nixnet/_site
|
||||
python py/main.py
|
||||
python py/proxies.py
|
||||
|
||||
IFS=$'\n'
|
||||
for i in $(find _site -type f -name "*.html"); do
|
||||
./py/img.py "$i"
|
||||
done
|
||||
ssh server \
|
||||
"cd /var/www/nixnet.xyz && \
|
||||
mv lists/ /home/amolith/ && \
|
||||
rm -rf *"
|
||||
cp -r ~/repos/nixnet/.well-known ~/repos/nixnet/_site
|
||||
rsync -a ~/repos/nixnet/_site/ server:/var/www/nixnet.xyz
|
||||
ssh server \
|
||||
"cd /var/www && \
|
||||
mv /home/amolith/lists/ /var/www/nixnet.xyz/"
|
||||
notify-send "Website has been updated"
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar top2 &
|
||||
polybar bottom2 &
|
||||
|
||||
echo "Bars launched..."
|
|
@ -1 +0,0 @@
|
|||
~/repos/launcher/launcher
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
dir=$"/home/amolith/android/backups/Music/"
|
||||
dir=$"/home/amolith/Audio/Music/Phone/"
|
||||
IFS=$'\n'
|
||||
|
||||
for i in $(find . -type d); do
|
||||
|
@ -12,7 +12,7 @@ for i in $(find . -type f -name "*.flac"); do
|
|||
ffmpeg -i "$i" "$dir""$mp3"
|
||||
done
|
||||
|
||||
for i in $(find . -type f -not -name "*.flac"); do
|
||||
for i in $(find . -type f -name "*.mp3"); do
|
||||
cp "$i" "$dir""$i"
|
||||
done
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
IFS=$'\n'
|
||||
for i in $(find . -regex ".*\(mp4\|mkv\|\avi\)"); do
|
||||
dir=$(dirname "$i")
|
||||
sub=$(ls "$dir/"*.srt)
|
||||
file=$(basename "$i")
|
||||
subs=$(basename "$sub")
|
||||
[[ $sub == "" ]] && continue
|
||||
echo -e "\033[1m 💬 Renaming $subs \033(B\033[m"
|
||||
mv "$sub" "$i.srt.old"
|
||||
echo -e "\033[1m ⌛️ Syncing subtitles . . . \033(B\033[m"
|
||||
subsync "$i" -i "$i.srt.old" > "$i.srt"
|
||||
echo -e "\033[1m ✔️ Subtitles are synced! \n \n \033(B\033[m"
|
||||
done
|
|
@ -11,7 +11,7 @@ font = Fira Code 11
|
|||
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
|
||||
# If markup is not allowed, those tags will be stripped out of the
|
||||
# message.
|
||||
markup = yes
|
||||
markup = no
|
||||
plain_text = no
|
||||
|
||||
# The format of the message. Possible variables are:
|
||||
|
@ -79,7 +79,7 @@ shrink = no
|
|||
# The transparency of the window. Range: [0; 100].
|
||||
# This option will only work if a compositing windowmanager is
|
||||
# present (e.g. xcompmgr, compiz, etc.).
|
||||
transparency = 10
|
||||
transparency = 10
|
||||
|
||||
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||
# for longer than idle_threshold seconds.
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -162,33 +162,32 @@ assign [class="Rhythmbox"] $ws10
|
|||
####################################################################################################
|
||||
|
||||
# run with reload
|
||||
exec_always --no-startup-id pkill dunst
|
||||
exec_always --no-startup-id start-compton
|
||||
exec_always --no-startup-id kolours
|
||||
exec_always --no-startup-id lp
|
||||
exec_always --no-startup-id numlockx on
|
||||
exec_always --no-startup-id xrdb -load ~/.Xresources
|
||||
exec_always --no-startup-id xinput set-prop 12 280 1
|
||||
exec_always --no-startup-id xinput set-prop 12 281 1
|
||||
exec_always --no-startup-id xinput set-prop 12 280 1
|
||||
exec_always --no-startup-id xinput set-prop 12 281 1
|
||||
exec_always --no-startup-id xinput set-prop 12 290 0
|
||||
exec_always --no-startup-id xinput set-prop 12 291 0
|
||||
exec_always --no-startup-id xinput set-prop 13 299 1
|
||||
exec_always --no-startup-id xinput set-prop 13 299 1
|
||||
exec_always --no-startup-id xinput set-prop 13 307 0
|
||||
exec_always --no-startup-id xinput set-prop 13 284 1
|
||||
exec_always --no-startup-id mpd
|
||||
exec_always --no-startup-id mpDris2
|
||||
exec_always --no-startup-id launch.sh
|
||||
exec_always --no-startup-id launch
|
||||
exec_always --no-startup-id pkill glava; glava -d
|
||||
exec_always --no-startup-id birdtray
|
||||
exec_always --no-startup-id riot-desktop
|
||||
exec_always --no-startup-id gajim
|
||||
exec_always --no-startup-id anon
|
||||
exec_always --no-startup-id syncthing -no-browser
|
||||
exec_always --no-startup-id dunst
|
||||
exec_always --no-startup-id blueman-apple
|
||||
exec_always --no-startup-id blueman-applet
|
||||
|
||||
|
||||
# run on startup only
|
||||
exec --no-startup-id compton
|
||||
exec --no-startup-id riot-desktop
|
||||
exec --no-startup-id gajim
|
||||
exec --no-startup-id xset b off
|
||||
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
|
||||
exec --no-startup-id lico-update.sh -r
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhist_cnt =1
|
||||
let g:netrw_dirhist_cnt =6
|
||||
let g:netrw_dirhist_1='/home/amolith/.ssh'
|
||||
let g:netrw_dirhist_2='/home/amolith/repos/nixnet/_includes/category'
|
||||
let g:netrw_dirhist_3='/home/amolith/repos/nixnet/contact2'
|
||||
let g:netrw_dirhist_4='/home/amolith/vagrant/self'
|
||||
let g:netrw_dirhist_5='/etc/pam.d'
|
||||
let g:netrw_dirhist_6='/home/amolith/repos/nixnet/_site/proxies'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,11 @@
|
|||
let mapleader =","
|
||||
|
||||
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
|
||||
echo "Downloading junegunn/vim-plug to manage plugins..."
|
||||
silent !mkdir -p ~/.config/nvim/autoload/
|
||||
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
|
||||
endif
|
||||
|
||||
call plug#begin()
|
||||
Plug 'jceb/vim-orgmode'
|
||||
Plug 'valloric/MatchTagAlways'
|
||||
|
@ -9,10 +17,8 @@ Plug 'vim-airline/vim-airline'
|
|||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'adelarsq/vim-matchit'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'yggdroot/indentline'
|
||||
Plug 'vim-syntastic/syntastic'
|
||||
Plug 'bling/vim-bufferline'
|
||||
|
@ -21,21 +27,85 @@ Plug 'chase/vim-ansible-yaml'
|
|||
call plug#end()
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
||||
set conceallevel=2
|
||||
set linebreak
|
||||
set foldlevelstart=99
|
||||
set clipboard=unnamedplus
|
||||
set listchars=tab:⇥-,eol:¬
|
||||
set expandtab
|
||||
set tabstop=2
|
||||
set shiftwidth=4
|
||||
set number
|
||||
set scrolloff=12
|
||||
set mouse=
|
||||
set foldmethod=indent
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_theme='deus'
|
||||
let g:indentLine_char = '▏'
|
||||
let mapleader = ","
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * nmap ; :
|
||||
" Enable autocompletion:
|
||||
set wildmode=longest,list,full
|
||||
" Disables automatic commenting on newline:
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
" Some basics
|
||||
set conceallevel=2
|
||||
set linebreak
|
||||
set foldlevelstart=99
|
||||
set clipboard=unnamedplus
|
||||
set listchars=tab:⇥-,eol:¬
|
||||
set expandtab
|
||||
set tabstop=2
|
||||
set shiftwidth=4
|
||||
set scrolloff=12
|
||||
set mouse=a
|
||||
set foldmethod=indent
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_theme='deus'
|
||||
let g:indentLine_char = '▏'
|
||||
let g:vimtex_compiler_progname = 'nvr'
|
||||
|
||||
" Some basics
|
||||
set nocompatible
|
||||
filetype plugin on
|
||||
syntax on
|
||||
set encoding=utf-8
|
||||
set number relativenumber
|
||||
" Enable autocompletion:
|
||||
set wildmode=longest,list,full
|
||||
" Disables automatic commenting on newline:
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
|
||||
" Automatically deletes all trailing whitespace on save.
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
|
||||
" Runs a script that cleans out tex build files whenever I close out of a .tex file.
|
||||
autocmd VimLeave *.tex !texclear %
|
||||
|
||||
"""LATEX
|
||||
" Word count:
|
||||
autocmd FileType tex map <leader>w :w !detex \| wc -w<CR>
|
||||
" Code snippets
|
||||
autocmd FileType tex inoremap ,fr \begin{frame}<Enter>\frametitle{}<Enter><Enter><++><Enter><Enter>\end{frame}<Enter><Enter><++><Esc>6kf}i
|
||||
autocmd FileType tex inoremap ,fi \begin{fitch}<Enter><Enter>\end{fitch}<Enter><Enter><++><Esc>3kA
|
||||
autocmd FileType tex inoremap ,exe \begin{exe}<Enter>\ex<Space><Enter>\end{exe}<Enter><Enter><++><Esc>3kA
|
||||
autocmd FileType tex inoremap ,em \emph{}<++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,bf \textbf{}<++><Esc>T{i
|
||||
autocmd FileType tex vnoremap , <ESC>`<i\{<ESC>`>2la}<ESC>?\\{<Enter>a
|
||||
autocmd FileType tex inoremap ,it \textit{}<++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,ct \textcite{}<++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,cp \parencite{}<++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,glos {\gll<Space><++><Space>\\<Enter><++><Space>\\<Enter>\trans{``<++>''}}<Esc>2k2bcw
|
||||
autocmd FileType tex inoremap ,x \begin{xlist}<Enter>\ex<Space><Enter>\end{xlist}<Esc>kA<Space>
|
||||
autocmd FileType tex inoremap ,ol \begin{enumerate}<Enter><Enter>\end{enumerate}<Enter><Enter><++><Esc>3kA\item<Space>
|
||||
autocmd FileType tex inoremap ,ul \begin{itemize}<Enter><Enter>\end{itemize}<Enter><Enter><++><Esc>3kA\item<Space>
|
||||
autocmd FileType tex inoremap ,li <Enter>\item<Space>
|
||||
autocmd FileType tex inoremap ,ref \ref{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,tab \begin{tabular}<Enter><++><Enter>\end{tabular}<Enter><Enter><++><Esc>4kA{}<Esc>i
|
||||
autocmd FileType tex inoremap ,ot \begin{tableau}<Enter>\inp{<++>}<Tab>\const{<++>}<Tab><++><Enter><++><Enter>\end{tableau}<Enter><Enter><++><Esc>5kA{}<Esc>i
|
||||
autocmd FileType tex inoremap ,can \cand{}<Tab><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,con \const{}<Tab><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,v \vio{}<Tab><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,a \href{}{<++>}<Space><++><Esc>2T{i
|
||||
autocmd FileType tex inoremap ,sc \textsc{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,chap \chapter{}<Enter><Enter><++><Esc>2kf}i
|
||||
autocmd FileType tex inoremap ,sec \section{}<Enter><Enter><++><Esc>2kf}i
|
||||
autocmd FileType tex inoremap ,ssec \subsection{}<Enter><Enter><++><Esc>2kf}i
|
||||
autocmd FileType tex inoremap ,sssec \subsubsection{}<Enter><Enter><++><Esc>2kf}i
|
||||
autocmd FileType tex inoremap ,st <Esc>F{i*<Esc>f}i
|
||||
autocmd FileType tex inoremap ,beg \begin{DELRN}<Enter><++><Enter>\end{DELRN}<Enter><Enter><++><Esc>4k0fR:MultipleCursorsFind<Space>DELRN<Enter>c
|
||||
autocmd FileType tex inoremap ,up <Esc>/usepackage<Enter>o\usepackage{}<Esc>i
|
||||
autocmd FileType tex nnoremap ,up /usepackage<Enter>o\usepackage{}<Esc>i
|
||||
autocmd FileType tex inoremap ,tt \texttt{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ,bt {\blindtext}
|
||||
autocmd FileType tex inoremap ,nu $\varnothing$
|
||||
autocmd FileType tex inoremap ,col \begin{columns}[T]<Enter>\begin{column}{.5\textwidth}<Enter><Enter>\end{column}<Enter>\begin{column}{.5\textwidth}<Enter><++><Enter>\end{column}<Enter>\end{columns}<Esc>5kA
|
||||
autocmd FileType tex inoremap ,rn (\ref{})<++><Esc>F}i
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * nmap ; :
|
||||
|
||||
" Filetypes
|
||||
autocmd BufRead,BufNewFile *.tex set filetype=tex
|
||||
|
|
|
@ -58,12 +58,62 @@ cursor-scroll = ns-resize
|
|||
tray-position = right
|
||||
tray-padding = 0
|
||||
|
||||
[bar/top2]
|
||||
monitor = HDMI-1
|
||||
width = 100%
|
||||
height = 20
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 0
|
||||
line-color = #f00
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
font-0 = "Fira Code:size=8"
|
||||
font-1 = "Font Awesome:size=9"
|
||||
font-2 = Weather Icons:size=12;1
|
||||
modules-left = i3
|
||||
modules-center = date
|
||||
modules-right = openweathermap-simple memory cpu network battery
|
||||
tray-position = none
|
||||
tray-padding = 2
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[bar/bottom2]
|
||||
monitor = HDMI-1
|
||||
width = 100%
|
||||
height = 20
|
||||
bottom = true
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
font-0 = "Fira Code:size=8"
|
||||
font-1 = "Font Awesome:size=9"
|
||||
modules-center = mpd pulseaudio
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
|
13
zsh/.zshrc
13
zsh/.zshrc
|
@ -7,8 +7,10 @@ ENABLE_CORRECTION="true"
|
|||
COMPLETION_WAITING_DOTS="true"
|
||||
export PATH="$PATH:$HOME/dotfiles/bin"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export GEM_HOME="$HOME/gems"
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
export GEM_HOME="$HOME/gems"
|
||||
export CHROOT="$HOME/chroot"
|
||||
export EDITOR="nvim"
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
|
@ -32,19 +34,12 @@ source ~/.cache/wal/colors-tty.sh
|
|||
|
||||
# ALIASES
|
||||
alias xclip="xclip -selection c"
|
||||
alias tb="nc termbin.com 9999 | xclip"
|
||||
alias weather="clear && curl sky.webionite.com/f/Lenoir/t"
|
||||
alias ncdu="ncdu --color dark -rr -x --exclude .git --exclude node_modules"
|
||||
alias y="strat -r arch yay"
|
||||
alias p="sudo pacman"
|
||||
alias mkd="mkdir -pv"
|
||||
alias b="bluetoothctl"
|
||||
alias x="xrandr --output HDMI-1 --right-of eDP-1"
|
||||
alias r="ranger"
|
||||
alias gpgp="python3 ~/repos/gpgp/gpgp.py"
|
||||
alias suck="sudo make clean install"
|
||||
alias vim="nvim"
|
||||
alias v="nvim"
|
||||
alias ssh="ssh -Y"
|
||||
unset zle_bracketed_paste
|
||||
|
||||
eval "$(rbenv init -)"
|
||||
|
|
Loading…
Reference in New Issue