/* herbe */
herbe.background_color: themebg
-herbe.font_pattern: Source Code Pro:size=10
+herbe.font_pattern: Sauce Code Pro Nerd Font:size=10
/* herbe.font_pattern: Symbols Nerd Font:style=2048-em */
herbe.width: 300
herbe.pos_x: 20
[[ $- != *i* ]] && return
# prompt lmao
-# PS1='\e[01;33m λ_\e[m\e[01;37m \W \e[m\e[01;33m> \e[m'
-# PS2='\e[01;37m> \e[m'
-PS1=' λ_ \W > '
+PS1='\[\033[01;33m\] λ_\[\033[01;37m\] \W\[\033[01;33m\] > \[\033[00m\]'
+PS2='\[\033[01;37m\]> \[\033[00m\]'
#set vi mode
set -o vi
--- /dev/null
+snippet guard "header guard" w
+#ifndef $1
+#define $1
+
+$0
+
+#endif // $1
+endsnippet
+
+snippet cpp "cpp extern" w
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+$0
+
+#ifdef __cplusplus
+}
+#endif
+endsnippet
set laststatus=2
set statusline=
set statusline+=%{StatusModeColor()}
-set statusline+=%{StatusModifiedColor()}
-set statusline+=%1*\ |
+set statusline+=%1*\ |
set statusline+=%0*\ vim\ \[%{mode()}\]
-set statusline+=\[%{BufCount()}\]
-set statusline+=\ %1*\ %F\ %m
+set statusline+=\ %1*\ %{expand('%:~:.')}\ %m
set statusline+=%=
-set statusline+=%0*
-set statusline+=\ %ff
+set statusline+=%y
+set statusline+=\ %0*
set statusline+=\ %r\[%{v:register}\]
set statusline+=\ %l/%L:%c\ |
set statusline+=%1*\ |
+" set statusline+=%{StatusModeColor()}
+" set statusline+=%{StatusModifiedColor()}
+" set statusline+=%1*\ |
+" set statusline+=%0*\ vim\ \[%{mode()}\]
+" set statusline+=\[%{BufCount()}\]
+" set statusline+=\ %1*\ %{expand('%:~:.')}\ %m
+" set statusline+=%=
+" set statusline+=%y
+" set statusline+=\ %0*
+" set statusline+=\ %r\[%{v:register}\]
+" set statusline+=\ %l/%L:%c\ |
+" set statusline+=%1*\ |
" Templates
augroup templates
--- /dev/null
+#!/bin/sh
+
+while [ 1 ];
+do
+ xdotool getmouselocation
+done
# make sure the song acc changed
cur_song="$(mpc current)"
- [ "$cur_song" == "$playing" ] && continue;
+ [ "$cur_song" = "$playing" ] && continue;
playing="$cur_song";
-
[ -z "$cur_song" ] && continue; # don't send notify if no song tho
out="${cur_song%.*}" # get rid of extension
while read line; do
icon="$(echo $line | get_json app_icon)"
msg="$(echo $line | get_json summary)"
- herbe "$icon $msg" &
+ herbe "$icon $msg" &
done
}
link=$(echo "$2" | grep -P "https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\//=]*)") >/dev/null 2>&1
-[ -n "$link" ] && openlink "$link" && notify-send "Opening Link: $link"
+[ -n "$link" ] && openlink "$link" && notify-send -i "" "Opening Link: $link"