Compare commits

...

2 Commits

Author SHA1 Message Date
randomuser f58dbe9264 factor out tabbing thing 2023-04-02 12:47:07 -05:00
randomuser 73c39f9eeb misc changes 2023-03-24 10:24:33 -05:00
6 changed files with 43 additions and 22 deletions

View File

@ -65,3 +65,4 @@ start_bitlbee() {
alias gs='git status'
alias f=files
alias lofi="mpv https://www.youtube.com/watch?v=jfKfPfyJRdk --no-video"
alias pavucontrol="ncpamixer"

View File

@ -45,6 +45,9 @@ export SFEED_URL_FILE="$SFEED_URL_FILE/.urls"
export $(dbus-launch)
export GTK_THEME="earth"
# elinks
export ELINKS_CONFDIR="$HOME/.config/elinks"
# source the bashrc(s)
[ -f $HOME/.config/bash/bashrc ] && . $HOME/.config/bash/bashrc
[ -f $HOME/.bashrc ] && . $HOME/.bashrc

View File

@ -24,3 +24,4 @@ bspc rule -a tmenu-prompt border=on sticky=on state=floating
bspc rule -a Xmessage border=on state=floating
bspc rule -a Zathura state=tiled
bspc rule -a generic-st-window state=floating manage=on sticky=on border=on
bspc rule -a floating-feh state=floating

View File

@ -45,6 +45,8 @@ end)
inoremap('qp', '<c-g>u<Esc>[s1z=`]a<c-g>u')
inoremap("<C-a>", "<Esc>mZ0i<Tab><Esc>`ZlA")
inoremap('jk', '<Esc>')
inoremap('zz', '<Esc>:w!<CR>a')
tnoremap('<Esc>', '<C-\\><C-n>')
-- }}}
@ -81,14 +83,28 @@ vim.api.nvim_create_autocmd({"BufWrite"}, {
})
-- autocmds for python
vim.api.nvim_create_autocmd({"Filetype"}, {
pattern = {"python"},
callback = function()
vim.bo.expandtab = true
vim.bo.tabstop = 4
vim.bo.shiftwidth = 4
end
})
-- vim.api.nvim_create_autocmd({"Filetype"}, {
-- pattern = {"python"},
-- callback = function()
-- vim.bo.expandtab = true
-- vim.bo.tabstop = 4
-- vim.bo.shiftwidth = 4
-- end
-- })
function setTabbing(lang, width)
vim.api.nvim_create_autocmd({"Filetype"}, {
pattern = {lang},
callback = function()
vim.bo.expandtab = true
vim.bo.tabstop = width
vim.bo.shiftwidth = width
end
})
end
setTabbing("python", 4)
setTabbing("javascript", 2)
-- }}}
-- vim options {{{

View File

@ -1,2 +1,2 @@
super + shift + p
super + shift + XF86AudioRaiseVolume
toggle-contingency-mode

View File

@ -55,21 +55,21 @@ super + {_,shift + }v
vol {inc,dec}
# mouse movement
super + u
xdotool mousemove_relative -- -10 0
super + {u, i, o, p}
xdotool mousemove_relative -- {-10 0, 0 10, 0 -10, 10 0}
super + i
xdotool mousemove_relative -- 0 10
super + o
xdotool mousemove_relative -- 0 -10
super + p
xdotool mousemove_relative -- 10 0
super + alt + {u, i, o, p}
xdotool mousemove_relative -- {-20 0, 0 20, 0 -20, 20 0}
super + shift + u
xdotool click 1
super + ctrl + shift + u
xdotool mousedown 1
@super + @ctrl + @shift + @u
xdotool mouseup 1
super + shift + p
xdotool click 2
@ -77,9 +77,6 @@ super + shift + p
super + x
toggle-contingency-mode
super + =
st -c generic-st-window -e nvim ~/.config/sxhkd/sxhkdrc
# bspwm
super + q
bspc node -c
@ -102,3 +99,6 @@ super + {t,f,s}
super + shift + t
bspwm-toggle-gaps
alt + F4
exit