Skip to content

Commit 8d27b64

Browse files
author
Von Random
committed
tvim: get rid of nvim; mykblayouts: get rid of ducky layouts; compton_toggle: disable fade effects
1 parent 6c3e745 commit 8d27b64

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

compton_toggle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [[ -e $nvidia_dev ]]; then
1515
else
1616
gpu_opts=(--dbe --vsync opengl --backend xrender)
1717
fi
18-
compton $gpu_opts[@] -cGC -t-5 -l-5 -r4 -o.55 &
18+
compton $gpu_opts[@] -cGC -t-5 -l-5 -r4 -o.55 --no-fading-openclose &
1919
pid=$!
2020
if [[ -n $pid ]]; then
2121
printf '%s' $pid > $pidfile

mykblayouts

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
#!/usr/bin/env zsh
22

3+
layouts='us(altgr-intl),ru(typewriter)'
4+
opts='grp:win_space_toggle,compose:menu,ctrl:nocaps'
5+
36
# reset this before setting anything
47
setxkbmap us -option
5-
6-
if $(lsusb -d '04d9:0125' > /dev/null) || [[ -n $1 ]]; then
7-
layouts='us(altgr-intl),ru(typewriter)'
8-
opts='grp:win_space_toggle,compose:menu,ctrl:nocaps'
9-
else
10-
layouts='us(ducky),ru(ducky)'
11-
opts='grp:win_space_toggle,compose:menu'
12-
fi
13-
148
setxkbmap $layouts -option $opts

tvim

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22
typeset -a vimopt=(
33
'--cmd' 'let g:tvim = 1'
4-
'-c' 'set mouse=a'
54
)
65

76
error() {
@@ -10,6 +9,6 @@ error() {
109
}
1110

1211
termbin=$(command -v default-terminal-emulator) || termbin=$(command -v xterm) || error "No terminal found!"
13-
vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!"
12+
vimbin=$(command -v vim) || error "No vim binary found!"
1413

1514
exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown

0 commit comments

Comments
 (0)