super + {Down,Left,Right}
mpc {toggle,prev,next}
+super + e
+ emoter
+
+super + shift + e
+ emoter -g
+
alt + s
screenshot -f
\ldots
endsnippet
+snippet big) "Big paren" w
+\left( $1 \right) $0
+endsnippet
+
+snippet big| "Big abs" w
+\left| $1 \right| $0
+endsnippet
+
# text
snippet span "Span" w
\text{span}($0)
let &t_SI = "\<Esc>[6 q" "insert mode
let &t_SR = "\<Esc>[4 q" "replace mode
-" spell check
-setlocal spell
-set spelllang=en_us
-set spellcapcheck=
-
" conceal
set conceallevel=2
let g:netrw_banner = 0
let g:netrw_winsize = 25
+" spell check
+setlocal spell
+set spelllang=en_us
+set spellcapcheck=
+
+" accept first spell check fix
+map <leader>z 1z=<cr>
+
" View whitespace
map <leader>s :set list!<cr>
-set lcs=space:·
+set listchars=tab:▸\ ,space:·,eol:¬
" colors
hi Conceal ctermbg=Black
else
hi StatusLine cterm=None gui=None ctermfg=black ctermbg=DarkGrey
endif
-
+
return ''
endfunction
--- /dev/null
+#!/bin/sh
+
+# format images to be discord size
+
+mv "$1" "$1_temp" && \
+ ffmpeg -i "$1_temp" -vf scale=48:-1 "$1" && \
+ rm "$1_temp"
--- /dev/null
+#!/bin/sh
+
+emote_dir="$HOME/Downloads/emotes"
+
+mode="image/png"
+[ "$1" = "-g" ] && mode="image/gif"
+
+emote_name="$(ls $emote_dir | grep -E '\.png$|\.jpeg$|\.jpg' | dmenu)"
+[ ! -f "$emote_dir/$emote_name" ] && exit 0
+
+echo "$emote_dir/$emote_name" | \
+ xargs xclip -selection clipboard -t "$mode" -i
+
+# now paste the image
+xdotool getactivewindow key ctrl+v
+xdotool getactivewindow key --delay 250 KP_Enter
+
#!/bin/sh
bat="$(cat /sys/class/power_supply/BAT0/capacity)"
+stat="$(cat /sys/class/power_supply/BAT0/status)"
+
+status="?"
+[ "$stat" = "Charging" ] && status="C"
+[ "$stat" = "Discharging" ] && status="D"
icon=""
[ $bat -gt "13" ] && icon=""
[ $bat -gt "63" ] && icon=""
[ $bat -gt "88" ] && icon=""
-echo "$icon $bat%"
+echo "$icon $status$bat%"
--- /dev/null
+#!/bin/sh
+
+## creates a new shell script and chmods it
+
+[ -f "$1" ] && echo "File already exists, aborting" && return 1
+
+echo '#!/bin/sh' > "$1" && chmod +x "$1" && $EDITOR "$1"