From: Daniel Liu Date: Mon, 21 Jun 2021 03:00:26 +0000 (-0400) Subject: lots of snippets X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=7f59e8b721746dbf0741f0083a1a5e74ce973278;p=dotfiles.git lots of snippets --- diff --git a/.config/shell/commonprofile b/.config/shell/commonprofile index 37d178f..54666b9 100644 --- a/.config/shell/commonprofile +++ b/.config/shell/commonprofile @@ -22,7 +22,7 @@ export QT_IM_MODULE=ibus export LESS_TERMCAP_md=$'\e[1;33m' export LESS_TERMCAP_mb=$'\e[1;33m' export LESS_TERMCAP_me=$'\e[0m' -export LESS_TERMCAP_so=$'\e[01;36m' +export LESS_TERMCAP_so=$'\e[01;31m' export LESS_TERMCAP_se=$'\e[0m' export LESS_TERMCAP_us=$'\e[1;4;36m' export LESS_TERMCAP_ue=$'\e[0m' diff --git a/.config/shell/commonrc b/.config/shell/commonrc index e9a7df0..3d9870a 100644 --- a/.config/shell/commonrc +++ b/.config/shell/commonrc @@ -15,7 +15,8 @@ alias drill-srs='drill-srs 2>/dev/null' alias scrkey='screenkey -t 2.5 --mods-mode emacs -s small -p fixed -g $(slop -n -f '%g')' alias mdp='export TERM=st; mdp' alias R='R --vanilla' -alias fzf="fzf --color=16 --header=peee --info=inline --preview='echo {}; file -b {}; echo =-=-=-=-=-=-=-=-=-=-=-=-=-=; head -$LINES {}'" +alias fzf="fzf --color=16 --header=fzf --info=inline --preview='echo {}; file -b {}; echo =-=-=-=-=-=-=-=-=-=-=-=-=-=; if [ -d '{}' ]; then ls -A {}; else head -$LINES {}; fi'" +alias gdb="gdb -q" alias v="$EDITOR" alias z="$READER" diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index de63487..4596249 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -6,6 +6,10 @@ XF86Audio{Mute} pulsemixer --toggle-mute &\ refresh_blocks 10 +super + r + kill -SIGUSR1 $(pidof sxhkd) &\ + notify-send "Reloaded sxhkd" -i "" + super + b brave @@ -39,6 +43,14 @@ super + e super + shift + e emoter -g +super + d + monitor-attach &\ + notify-send "Attached Monitor" -i "" + +super + shift + d + monitor-detach &\ + notify-send "Detached Monitor" -i "" + alt + s screenshot -f diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..9422460 --- /dev/null +++ b/.gdbinit @@ -0,0 +1 @@ +set disassembly-flavor intel diff --git a/.vim/mysnippets/asm.snippets b/.vim/mysnippets/asm.snippets new file mode 100644 index 0000000..b9784dc --- /dev/null +++ b/.vim/mysnippets/asm.snippets @@ -0,0 +1,10 @@ +snippet frame "Prologue and Epilogue" w +push ebp +mov ebp, esp + +$0 + +mov esp, ebp +pop ebp +ret +endsnippet diff --git a/.vim/mysnippets/c.snippets b/.vim/mysnippets/c.snippets new file mode 100644 index 0000000..79bb160 --- /dev/null +++ b/.vim/mysnippets/c.snippets @@ -0,0 +1,8 @@ +snippet main "main" w +int +main(int argc, char** argv) +{ + $0 + return 0; +} +endsnippet diff --git a/.vim/mysnippets/haskell.snippets b/.vim/mysnippets/haskell.snippets new file mode 100644 index 0000000..b20a8bd --- /dev/null +++ b/.vim/mysnippets/haskell.snippets @@ -0,0 +1,4 @@ + +snippet ds "deriving Show" w +deriving (Show) +endsnippet diff --git a/.vim/mysnippets/markdown.snippets b/.vim/mysnippets/markdown.snippets new file mode 100644 index 0000000..def505b --- /dev/null +++ b/.vim/mysnippets/markdown.snippets @@ -0,0 +1,32 @@ +snippet b "Bold" w +**$1**$0 +endsnippet + +snippet i "Italics" w +_$1_$0 +endsnippet + +snippet def "Definition" w +**$1** - $0 +endsnippet + +snippet link "Link" w +[$1]($2)$0 +endsnippet + +snippet trans "Translation Box" w +### raw +$1 +### literal +### better +endsnippet + +snippet im "Inline math" w +$$$1$$$0 +endsnippet + +snippet bm "Block math" w +\[ + $1 +\]$0 +endsnippet