From: Daniel Liu Date: Sat, 27 Feb 2021 18:26:47 +0000 (-0500) Subject: update X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=1def7f86eddd37e076f682894ea994ae005e6e97;p=dotfiles.git update --- diff --git a/.bashrc b/.bashrc index 9aa20e5..e08cc97 100644 --- a/.bashrc +++ b/.bashrc @@ -39,10 +39,11 @@ alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias suckless-clean='make clean && rm -rf config.h && git reset --hard home/master' alias musicdl="youtube-dl -f bestaudio" alias mpv="mpv --no-input-default-bindings" -# alias lockscreen='slock -m "$(figlet locked xd | cowsay -f cheese -n)"' alias darkmpv='mpv --vf=sub,lavfi="negate"' +# alias lockscreen='slock -m "$(figlet locked xd | cowsay -f cheese -n)"' alias nmaplocal='nmap -sn 192.168.1.0/24' alias refreshusb='udevadm control --reload-rules' +alias vpnup='nmcli connection up pinovpn' source fzfutil diff --git a/.github/README.md b/.github/README.md index 49d6045..1016558 100644 --- a/.github/README.md +++ b/.github/README.md @@ -1,5 +1,33 @@ # Dotfiles!! +## Scripts + +Here are some notable Scripts + +### fzfutil +cd-ing and vi-ing at the speed of light. Uses fzf to let you cd to dirs and edit files across the galaxy. +Simply source the script in your .bashrc or equivalent. +Customize which directories you want to include by editing the script. + +### git-pushall +Useful for when you have a repo with multiple remotes and are too lazy to push to them all. +Usage is as follows: +``` +git-pushall [branch] +``` +Limitations: does not work on bare repos yet + +### mpd-change +Sends a notification whenever mpd changes songs. Does not send anything on pause/play. + +### screenshot +Take screenshots with scrot. Dmenu prompt for filename, leaving empty generates a default name. +Limitations: no way to cancel screenshot, also the name prompt happens before the screenshot is taken (which is sorta annoying). +Will improve later. + +### usbmnt +Sends a notification whenever usb is mounted. + ## How I manage dotfiles This method of managing dotfiles was inspired by [this](https://www.youtube.com/watch?v=tBoLDpTWVOM) video. @@ -26,5 +54,3 @@ dotfiles status dotfiles commit -m 'added .bashrc' ``` -## Features - diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim new file mode 100644 index 0000000..3c3357d --- /dev/null +++ b/.vim/after/ftplugin/markdown.vim @@ -0,0 +1,2 @@ +syn match Spoiler /||.*||/ conceal cchar= +setlocal conceallevel=2 diff --git a/.vimrc b/.vimrc index b32ec0c..a0842f5 100644 --- a/.vimrc +++ b/.vimrc @@ -10,6 +10,7 @@ syntax on set number set relativenumber set incsearch +set smartcase set encoding=utf-8 set tabstop=4 set shiftwidth=4 @@ -77,12 +78,15 @@ endfunction call StatusModeColor() call StatusModifiedColor() +autocmd BufWritePost call StatusModifiedColor() set laststatus=2 set statusline= set statusline+=%{StatusModeColor()} -set statusline+=%1*\ | +set statusline+=%{StatusModifiedColor()} +set statusline+=%1*\ | set statusline+=%0*\ vim\ \[%{mode()}\] +set statusline+=\[%{BufCount()}\] set statusline+=\ %1*\ %{expand('%:~:.')}\ %m set statusline+=%= set statusline+=%y @@ -90,18 +94,6 @@ 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 diff --git a/.xinitrc b/.xinitrc index 99ba04c..819080b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -35,6 +35,7 @@ export QT_IM_MODULE=ibus ibus-daemon -drx # start some daemons +dwmblocks & tiramisu -j | notify & acpi_listen & redshift -l 55.7:12.6 -t 3000:3000 -g 0.85 -m randr -v & @@ -43,7 +44,6 @@ mpd & mpd-change & xbanish & picom & -dwmblocks & #syncthing & exec dwm diff --git a/Scripts/usbmnt b/Scripts/usbmnt index cafb1fb..594f549 100755 --- a/Scripts/usbmnt +++ b/Scripts/usbmnt @@ -13,9 +13,9 @@ case $1 in devpath="/dev/bus/usb/$(printf %03d $2)/$(printf %03d $3)" manname="$(lsusb -D $devpath | grep 'iManufacturer' | sed 's/\s*iManufacturer\s*[0-9]\s*//')" devname="$(lsusb -D $devpath | grep 'iProduct' | sed 's/\s*iProduct\s*[0-9]\s*//')" - su pinosaur -c "notify-send 'USB inserted: $manname $devname'" + su pinosaur -c "notify-send -i '' 'USB inserted: $manname $devname'" ;; - r) su pinosaur -c "notify-send 'USB ejected'";; + r) su pinosaur -c "notify-send -i '' 'USB ejected'";; *) exit 1;; esac