From 7fc350c84c880ef528f497adf4c7a156eabb699c Mon Sep 17 00:00:00 2001 From: ziro Date: Tue, 6 Oct 2020 09:30:52 +0700 Subject: [PATCH] + Uh.... something change.... --- .config/bspwm/bspwmrc | 2 +- .config/vim/vim_nix | 8 +++++++- .config/vim/vimrc | 2 ++ .config/zsh/.zprofile | 2 ++ .local/bin/custom/mcpelauncher-dmenu | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 2cb238a..d5916e1 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,9 +1,9 @@ #! /bin/dash -picom & sxhkd & xsetroot -cursor_name left_ptr & nitrogen --restore & +picom & $HOME/.scripts/launch-conky.sh & $HOME/.config/polybar/launch.sh & diff --git a/.config/vim/vim_nix b/.config/vim/vim_nix index 29282ec..0db01ef 100644 --- a/.config/vim/vim_nix +++ b/.config/vim/vim_nix @@ -19,7 +19,8 @@ let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" " ----- Mutt au BufRead /tmp/mutt-* set tw=72 -" ----- Execute Python +" ----- Execute corresponding language +" python if !has("nvim") autocmd FileType python map :w:!clear; python3 "%" autocmd FileType python imap :w:!clear; python3 "%" @@ -28,9 +29,14 @@ else autocmd FileType python imap :w:vs:ter python3 "%" endif +" sh (either bash or zsh) autocmd FileType sh map :w:vs:ter sh "%" autocmd FileType sh imap :w:vs:ter sh "%" +" c (untested) +autocmd FileType c map :w:vs:ter gcc "%" -o %< && ./"%" && read +autocmd FileType c imap :w:vs:ter gcc "%" -o %< && ./"%" && read + " ----- Automatically Render PDF autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 3db3dba..d4c768b 100755 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -18,6 +18,8 @@ " ============================== " null2264's VIMRC " ============================== +" NeoVIM is recommended! This vimrc created inside NeoVIM and not tested on +" VIM " ----- Sourcing Mapping/Config diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index f531d73..0c8975f 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -8,3 +8,5 @@ bash /usr/bin/tdm [[ -f ~/.zshrc ]] && . ~/.zshrc [ ! -s ~/.config/mpd/pid ] && mpd + +export PATH="$HOME/.poetry/bin:$PATH" diff --git a/.local/bin/custom/mcpelauncher-dmenu b/.local/bin/custom/mcpelauncher-dmenu index 12bff4a..f18c24d 100755 --- a/.local/bin/custom/mcpelauncher-dmenu +++ b/.local/bin/custom/mcpelauncher-dmenu @@ -3,5 +3,5 @@ version=$(find ~/.local/share/mcpelauncher/versions -maxdepth 1 | sort -r | awk '!/ns$/ && !/.ini/' | sed "s/^.*s\///" | dmenu -l 10 -i -p "MCPE Versions") [ -z $version ] && exit 1 -gamemoderun mcpelauncher-client -dg ~/.local/share/mcpelauncher/versions/$version & +gamemoderun mcpelauncher-client -ww 1366 -wh 740 -dg ~/.local/share/mcpelauncher/versions/$version & sleep 5s && mcpelauncher-rpc "$version"