Create comfortable home office setup
This commit is contained in:
parent
52c33cce79
commit
dbcb96e2c2
|
@ -1,6 +1,5 @@
|
||||||
# Ignore logs
|
weechat/.weechat/*.log
|
||||||
weechat/.weechat/logs
|
weechat/.weechat/logs
|
||||||
weechat/**/*.log
|
|
||||||
weechat/.weechat/script/
|
weechat/.weechat/script/
|
||||||
weechat/.weechat/sec.conf
|
weechat/.weechat/sec.conf
|
||||||
neovim/.config/nvim/.netrwhist
|
neovim/.config/nvim/.netrwhist
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
output eDP-1 disable
|
output eDP-1 enable
|
||||||
output HDMI-A-2 enable
|
output HDMI-A-2 enable mode 1440x900
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ bold_italic_font Go Mono Bold Italic
|
||||||
#: italic_font Operator Mono Book Italic
|
#: italic_font Operator Mono Book Italic
|
||||||
#: bold_italic_font Operator Mono Medium Italic
|
#: bold_italic_font Operator Mono Medium Italic
|
||||||
|
|
||||||
font_size 10.0
|
font_size 11.0
|
||||||
|
|
||||||
#: Font size (in pts)
|
#: Font size (in pts)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
""Basic stuff
|
""Basic stuff
|
||||||
set number
|
set number
|
||||||
set ttyfast
|
|
||||||
set encoding=utf8
|
set encoding=utf8
|
||||||
set clipboard+=unnamedplus
|
set clipboard+=unnamedplus
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
|
@ -49,8 +48,15 @@ let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
set laststatus=0
|
set laststatus=0
|
||||||
""Set Markdown filetype for neomutt
|
""Set Markdown filetype for neomutt
|
||||||
autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown
|
autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown
|
||||||
""Quitting whether Goyo is active or not
|
""Quit whether Goyo is active or not
|
||||||
function! s:goyo_enter()
|
function! s:goyo_enter()
|
||||||
|
if executable('tmux') && strlen($TMUX)
|
||||||
|
silent !tmux set status off
|
||||||
|
silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
|
||||||
|
endif
|
||||||
|
set noshowmode
|
||||||
|
set noshowcmd
|
||||||
|
set scrolloff=999
|
||||||
let b:quitting = 0
|
let b:quitting = 0
|
||||||
let b:quitting_bang = 0
|
let b:quitting_bang = 0
|
||||||
autocmd QuitPre <buffer> let b:quitting = 1
|
autocmd QuitPre <buffer> let b:quitting = 1
|
||||||
|
@ -58,15 +64,19 @@ function! s:goyo_enter()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:goyo_leave()
|
function! s:goyo_leave()
|
||||||
" Quit Vim if this is the only remaining buffer
|
if executable('tmux') && strlen($TMUX)
|
||||||
if b:quitting && len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) == 1
|
silent !tmux set status on
|
||||||
|
silent !tmux list-panes -F '\#F' | grep -q Z && tmux resize-pane -Z
|
||||||
|
endif
|
||||||
|
set showmode
|
||||||
|
set showcmd
|
||||||
|
set scrolloff=5
|
||||||
if b:quitting_bang
|
if b:quitting_bang
|
||||||
qa!
|
qa!
|
||||||
else
|
else
|
||||||
qa
|
qa
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
autocmd! User GoyoEnter call <SID>goyo_enter()
|
autocmd! User GoyoEnter nested call <SID>goyo_enter()
|
||||||
autocmd! User GoyoLeave call <SID>goyo_leave()
|
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
||||||
|
|
|
@ -34,7 +34,7 @@ location-provider=manual
|
||||||
; 'randr' is the preferred method, 'vidmode' is an older API.
|
; 'randr' is the preferred method, 'vidmode' is an older API.
|
||||||
; but works in some cases when 'randr' does not.
|
; but works in some cases when 'randr' does not.
|
||||||
; The adjustment method settings are in a different section.
|
; The adjustment method settings are in a different section.
|
||||||
adjustment-method=randr
|
adjustment-method=wayland
|
||||||
|
|
||||||
; Configuration of the location-provider:
|
; Configuration of the location-provider:
|
||||||
; type 'redshift -l PROVIDER:help' to see the settings.
|
; type 'redshift -l PROVIDER:help' to see the settings.
|
||||||
|
|
|
@ -297,6 +297,8 @@ exec swayidle -w \
|
||||||
exec doas wg-quick up /etc/wireguard/wg0.conf
|
exec doas wg-quick up /etc/wireguard/wg0.conf
|
||||||
# kanshi
|
# kanshi
|
||||||
exec kanshi
|
exec kanshi
|
||||||
|
# redshift
|
||||||
|
exec redshift
|
||||||
# tmux
|
# tmux
|
||||||
assign [app_id="tmux"] $workspace1
|
assign [app_id="tmux"] $workspace1
|
||||||
exec kitty --class tmux -- tmuxp load ~/.tmuxp/local.yaml
|
exec kitty --class tmux -- tmuxp load ~/.tmuxp/local.yaml
|
||||||
|
|
|
@ -26,7 +26,7 @@ bind l select-pane -R
|
||||||
|
|
||||||
# equalize splits with x
|
# equalize splits with x
|
||||||
unbind space
|
unbind space
|
||||||
bind x select-layout even-vertical
|
bind space select-layout even-vertical
|
||||||
|
|
||||||
# window switching
|
# window switching
|
||||||
unbind n
|
unbind n
|
||||||
|
@ -40,7 +40,8 @@ bind-key n command-prompt "rename-window '%%'"
|
||||||
|
|
||||||
# change kill window bind
|
# change kill window bind
|
||||||
unbind &
|
unbind &
|
||||||
bind k kill-session
|
unbind x
|
||||||
|
bind x kill-session
|
||||||
|
|
||||||
# force a reload of the config file
|
# force a reload of the config file
|
||||||
unbind r
|
unbind r
|
||||||
|
|
Loading…
Reference in New Issue