mirror of
https://github.com/Feliix42/dotfiles.git
synced 2024-11-22 14:06:30 +00:00
Adjust vim keybinds and add mail fetch/indicator
This commit is contained in:
parent
881d410c8c
commit
09880a77b1
7 changed files with 50 additions and 13 deletions
|
@ -5,6 +5,7 @@ syntax on
|
||||||
let g:ale_completion_enabled = 1
|
let g:ale_completion_enabled = 1
|
||||||
" disable latex linting from ale as i've got my own plugin for that
|
" disable latex linting from ale as i've got my own plugin for that
|
||||||
let g:ale_linters = { 'tex': []}
|
let g:ale_linters = { 'tex': []}
|
||||||
|
let b:ale_fixers = {'haskell': ['hindent']}
|
||||||
|
|
||||||
|
|
||||||
" Initialize plugin system
|
" Initialize plugin system
|
||||||
|
@ -45,8 +46,8 @@ Plug 'dense-analysis/ale'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" open fzf files in new tab instead of new buffer
|
" open fzf files in new tab instead of new buffer
|
||||||
command! -bang -nargs=? -complete=dir Files
|
"command! -bang -nargs=? -complete=dir Files
|
||||||
\ call fzf#vim#files(<q-args>, {'sink': 'tabedit', 'options': ['--info=inline', '--preview', '~/.vim/plugged/fzf.vim/bin/preview.sh {}']}, <bang>0)
|
"\ call fzf#vim#files(<q-args>, {'sink': 'tabedit', 'options': ['--info=inline', '--preview', '~/.vim/plugged/fzf.vim/bin/preview.sh {}']}, <bang>0)
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
@ -73,9 +74,12 @@ au BufRead,BufNewFile *.ohuao setfiletype json
|
||||||
" nnoremap <C-K> <C-W><C-K><C-W>_
|
" nnoremap <C-K> <C-W><C-K><C-W>_
|
||||||
" nnoremap <C-L> <C-W><C-L><C-W>\|
|
" nnoremap <C-L> <C-W><C-L><C-W>\|
|
||||||
" nnoremap <C-H> <C-W><C-H><C-W>\|
|
" nnoremap <C-H> <C-W><C-H><C-W>\|
|
||||||
map <C-H> :tabp<Enter>
|
map <leader>h :tabp<Enter>
|
||||||
map <C-L> :tabn<Enter>
|
map <leader>l :tabn<Enter>
|
||||||
|
map <C-H> :bprevious<Enter>
|
||||||
|
map <C-L> :bnext<Enter>
|
||||||
map <leader>f :Files<Enter>
|
map <leader>f :Files<Enter>
|
||||||
|
map <leader>bl :Buffers<Enter>
|
||||||
|
|
||||||
" fix auto-completion
|
" fix auto-completion
|
||||||
set wildmenu " show a completion menu
|
set wildmenu " show a completion menu
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# available, otherwise `xterm-256color` is used.
|
# available, otherwise `xterm-256color` is used.
|
||||||
#TERM: alacritty
|
#TERM: alacritty
|
||||||
|
|
||||||
#window:
|
window:
|
||||||
# Window dimensions (changes require restart)
|
# Window dimensions (changes require restart)
|
||||||
#
|
#
|
||||||
# Number of lines/columns (not pixels) in the terminal. The number of columns
|
# Number of lines/columns (not pixels) in the terminal. The number of columns
|
||||||
|
@ -45,9 +45,9 @@
|
||||||
#
|
#
|
||||||
# Blank space added around the window in pixels. This padding is scaled
|
# Blank space added around the window in pixels. This padding is scaled
|
||||||
# by DPI and the specified value is always added at both opposing sides.
|
# by DPI and the specified value is always added at both opposing sides.
|
||||||
#padding:
|
padding:
|
||||||
# x: 0
|
x: 5
|
||||||
# y: 0
|
y: 5
|
||||||
|
|
||||||
# Spread additional padding evenly around the terminal content.
|
# Spread additional padding evenly around the terminal content.
|
||||||
#dynamic_padding: false
|
#dynamic_padding: false
|
||||||
|
|
|
@ -5,6 +5,6 @@ profile office {
|
||||||
}
|
}
|
||||||
|
|
||||||
profile home {
|
profile home {
|
||||||
output eDP-1 mode 3840x2160 position 1920,0 scale 2
|
output eDP-1 mode 3840x2160 position 0,0 scale 2
|
||||||
output "Acer Technologies V233H LGT0C0224020" mode 1920x1080 position 0,0
|
output "Acer Technologies V233H LGT0C0224020" mode 1920x1080 position 1920,0
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,6 +276,7 @@
|
||||||
mpv
|
mpv
|
||||||
streamlink
|
streamlink
|
||||||
ffmpeg-full
|
ffmpeg-full
|
||||||
|
musikcube
|
||||||
## messenger
|
## messenger
|
||||||
tdesktop
|
tdesktop
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
@ -342,6 +343,22 @@
|
||||||
updateResolvConf = true;
|
updateResolvConf = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# periodic automated mail fetching
|
||||||
|
systemd.user.services.mailfetch = {
|
||||||
|
enable = true;
|
||||||
|
description = "Automatically fetches for new mail when the network is up";
|
||||||
|
after = [ "network-online.target" ];
|
||||||
|
wantedBy = [ "network-online.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = "60";
|
||||||
|
};
|
||||||
|
path = with pkgs; [ bash notmuch isync ];
|
||||||
|
script = ''
|
||||||
|
mbsync -a && /home/felix/.config/neomutt/notmuch-hook.sh
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
|
@ -41,6 +41,9 @@ exec swayidle -w \
|
||||||
timeout 300 'swaylock -f -c 99999960' \
|
timeout 300 'swaylock -f -c 99999960' \
|
||||||
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep 'swaylock -f -c 99999960'
|
before-sleep 'swaylock -f -c 99999960'
|
||||||
|
|
||||||
|
# though not necessary, I want to ensure the right deamon is running.
|
||||||
|
exec mako
|
||||||
#
|
#
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
|
@ -73,6 +76,11 @@ input "2:7:SynPS/2_Synaptics_TouchPad" {
|
||||||
middle_emulation enabled
|
middle_emulation enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# optics
|
||||||
|
default_border pixel 2
|
||||||
|
gaps inner 10
|
||||||
|
smart_borders no_gaps
|
||||||
|
|
||||||
### Key bindings
|
### Key bindings
|
||||||
#
|
#
|
||||||
# Basics:
|
# Basics:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["sway/window"],
|
"modules-center": ["sway/window"],
|
||||||
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray", "clock"],
|
"modules-right": ["custom/mail", "pulseaudio", "network", "cpu", "memory", "battery", "tray", "clock"],
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"disable-scroll-wraparound": true,
|
"disable-scroll-wraparound": true,
|
||||||
"all-outputs": false
|
"all-outputs": false
|
||||||
|
@ -72,6 +72,14 @@
|
||||||
"default": ["", ""]
|
"default": ["", ""]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
|
"custom/mail": {
|
||||||
|
"format": " {}",
|
||||||
|
"max-length": 10,
|
||||||
|
"interval": 60,
|
||||||
|
"exec": "notmuch count tag:unread",
|
||||||
|
"exec-if": "[ $(notmuch count tag:unread) != 0 ]",
|
||||||
|
"on-click": "alacritty -e neomutt"
|
||||||
}
|
}
|
||||||
//"custom/spotify": {
|
//"custom/spotify": {
|
||||||
// "format": " {}",
|
// "format": " {}",
|
||||||
|
|
|
@ -12,8 +12,8 @@ window#waybar {
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
#window {
|
||||||
font-weight: bold;
|
font-weight: normal;
|
||||||
font-family: "Fira";
|
font-family: "Fira Regular";
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
|
|
Loading…
Reference in a new issue