lots of snippets
authorDaniel Liu <mr.picklepinosaur@gmail.com>
Mon, 21 Jun 2021 03:00:26 +0000 (23:00 -0400)
committerDaniel Liu <mr.picklepinosaur@gmail.com>
Mon, 21 Jun 2021 03:00:26 +0000 (23:00 -0400)
.config/shell/commonprofile
.config/shell/commonrc
.config/sxhkd/sxhkdrc
.gdbinit [new file with mode: 0644]
.vim/mysnippets/asm.snippets [new file with mode: 0644]
.vim/mysnippets/c.snippets [new file with mode: 0644]
.vim/mysnippets/haskell.snippets [new file with mode: 0644]
.vim/mysnippets/markdown.snippets [new file with mode: 0644]

index 37d178f..54666b9 100644 (file)
@@ -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'
index e9a7df0..3d9870a 100644 (file)
@@ -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"
index de63487..4596249 100644 (file)
@@ -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 (file)
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 (file)
index 0000000..b9784dc
--- /dev/null
@@ -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 (file)
index 0000000..79bb160
--- /dev/null
@@ -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 (file)
index 0000000..b20a8bd
--- /dev/null
@@ -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 (file)
index 0000000..def505b
--- /dev/null
@@ -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