From d5e71cd9ce195d381df6d75cc22af2cbc7b6ca43 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 6 Oct 2020 12:05:57 -0400 Subject: vimtex lang, screenstatus uses integers now --- .config/nvim/init.vim | 3 +++ .config/sxhkd/sxhkdrc | 6 +++--- .local/bin/screenstatus | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5b11c2f..95c0c14 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -186,6 +186,7 @@ autocmd FileType go nmap r :call ReuseVimGoTerm('GoRun') " Vimtex pdf viewer let g:latex_view_general_viewer = 'zathura' let g:vimtex_view_method = "zathura" +let g:tex_flavor = 'latex' " #---Document Compilation/Visualisation---# " " Compile document, be it groff/LaTeX/markdown/etc. @@ -194,6 +195,8 @@ autocmd InsertLeave,TextChanged *.gd,*.ms,*.mom :w! | :execute 'silent AsyncRun " autocmd InsertLeave *.rmd,*.rnw,*.tex :w! | :execute 'silent AsyncRun compiler %; todotable % TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK' autocmd VimLeave *.rmd,*.rnw,*.tex !texclear % map x :w! \| AsyncRun todotable % TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK TEMP +" Have dwmblocks automatically recompile and run when you edit this file in +autocmd BufWritePost ~/compilation/dwmblocks/config.h !cd ~/compilation/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid dwmblocks & } " Open corresponding .pdf/.html or preview map p :! opout % " Open corresponding .pdf/.html or preview diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 373c64e..42ceac9 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -225,13 +225,13 @@ super + q kill -15 `xdotool getwindowfocus getwindowpid` ## Increase/decrease Brightness {XF86MonBrightnessUp, XF86MonBrightnessDown} - xbacklight -time 50 -fps 60 -{inc,dec} 5 && screenstatus + xbacklight -time 50 -{inc,dec} 5 && screenstatus ## Max-Out Brightness shift + XF86MonBrightnessUp - xbacklight -time 100 -fps 60 -set 100 && screenstatus + xbacklight -time 100 -set 100 && screenstatus ## Set Brightness to 5 percent shift + XF86MonBrightnessDown - xbacklight -time 100 -fps 60 -set 5 && screenstatus + xbacklight -time 100 -set 5 && screenstatus ## Display Setup Utility (mirror or extend displays) XF86Display displaymenu diff --git a/.local/bin/screenstatus b/.local/bin/screenstatus index 009c01f..763311b 100755 --- a/.local/bin/screenstatus +++ b/.local/bin/screenstatus @@ -1,4 +1,4 @@ #!/bin/sh -notify-send.sh --replace-file /tmp/vol-notif -a "Screen Brightness" "$(xbacklight -get)%" +notify-send.sh --replace-file /tmp/vol-notif -a "Screen Brightness" "$(xbacklight -get | sed 's/\..*$//g')%" -- cgit v1.2.3