diff options
author | Von Random <von@vdrandom.org> | 2019-04-08 18:36:00 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2019-04-08 18:36:00 +0300 |
commit | 8d27b64fdbf79bcaa80bc661e67da9148c73e06c (patch) | |
tree | 6145e67fd40c807a6002cf4348a635c95520899a | |
parent | 6c3e745835146b91f0077359f7f23580bcb7061d (diff) |
tvim: get rid of nvim; mykblayouts: get rid of ducky layouts; compton_toggle: disable fade effects
-rwxr-xr-x | compton_toggle | 2 | ||||
-rwxr-xr-x | mykblayouts | 12 | ||||
-rwxr-xr-x | tvim | 3 |
3 files changed, 5 insertions, 12 deletions
diff --git a/compton_toggle b/compton_toggle index f8b6d28..e249387 100755 --- a/compton_toggle +++ b/compton_toggle @@ -15,7 +15,7 @@ if [[ -e $nvidia_dev ]]; then else gpu_opts=(--dbe --vsync opengl --backend xrender) fi -compton $gpu_opts[@] -cGC -t-5 -l-5 -r4 -o.55 & +compton $gpu_opts[@] -cGC -t-5 -l-5 -r4 -o.55 --no-fading-openclose & pid=$! if [[ -n $pid ]]; then printf '%s' $pid > $pidfile diff --git a/mykblayouts b/mykblayouts index cf6be38..109188b 100755 --- a/mykblayouts +++ b/mykblayouts @@ -1,14 +1,8 @@ #!/usr/bin/env zsh +layouts='us(altgr-intl),ru(typewriter)' +opts='grp:win_space_toggle,compose:menu,ctrl:nocaps' + # reset this before setting anything setxkbmap us -option - -if $(lsusb -d '04d9:0125' > /dev/null) || [[ -n $1 ]]; then - layouts='us(altgr-intl),ru(typewriter)' - opts='grp:win_space_toggle,compose:menu,ctrl:nocaps' -else - layouts='us(ducky),ru(ducky)' - opts='grp:win_space_toggle,compose:menu' -fi - setxkbmap $layouts -option $opts @@ -1,7 +1,6 @@ #!/usr/bin/env bash typeset -a vimopt=( '--cmd' 'let g:tvim = 1' - '-c' 'set mouse=a' ) error() { @@ -10,6 +9,6 @@ error() { } termbin=$(command -v default-terminal-emulator) || termbin=$(command -v xterm) || error "No terminal found!" -vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!" +vimbin=$(command -v vim) || error "No vim binary found!" exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown |