Adjust vim keybinds and add mail fetch/indicator

This commit is contained in:
Felix Suchert 2021-05-21 18:00:09 +02:00
parent 881d410c8c
commit 09880a77b1
Signed by: feliix42
GPG key ID: 24363525EA0E8A99
7 changed files with 50 additions and 13 deletions

View file

@ -5,6 +5,7 @@ syntax on
let g:ale_completion_enabled = 1
" disable latex linting from ale as i've got my own plugin for that
let g:ale_linters = { 'tex': []}
let b:ale_fixers = {'haskell': ['hindent']}
" Initialize plugin system
@ -45,8 +46,8 @@ Plug 'dense-analysis/ale'
call plug#end()
" open fzf files in new tab instead of new buffer
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)
"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)
set laststatus=2
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-L> <C-W><C-L><C-W>\|
" nnoremap <C-H> <C-W><C-H><C-W>\|
map <C-H> :tabp<Enter>
map <C-L> :tabn<Enter>
map <leader>h :tabp<Enter>
map <leader>l :tabn<Enter>
map <C-H> :bprevious<Enter>
map <C-L> :bnext<Enter>
map <leader>f :Files<Enter>
map <leader>bl :Buffers<Enter>
" fix auto-completion
set wildmenu " show a completion menu

View file

@ -23,7 +23,7 @@
# available, otherwise `xterm-256color` is used.
#TERM: alacritty
#window:
window:
# Window dimensions (changes require restart)
#
# 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
# by DPI and the specified value is always added at both opposing sides.
#padding:
# x: 0
# y: 0
padding:
x: 5
y: 5
# Spread additional padding evenly around the terminal content.
#dynamic_padding: false

View file

@ -5,6 +5,6 @@ profile office {
}
profile home {
output eDP-1 mode 3840x2160 position 1920,0 scale 2
output "Acer Technologies V233H LGT0C0224020" mode 1920x1080 position 0,0
output eDP-1 mode 3840x2160 position 0,0 scale 2
output "Acer Technologies V233H LGT0C0224020" mode 1920x1080 position 1920,0
}

View file

@ -276,6 +276,7 @@
mpv
streamlink
ffmpeg-full
musikcube
## messenger
tdesktop
signal-desktop
@ -342,6 +343,22 @@
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.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];

View file

@ -41,6 +41,9 @@ exec swayidle -w \
timeout 300 'swaylock -f -c 99999960' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
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
# 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
}
# optics
default_border pixel 2
gaps inner 10
smart_borders no_gaps
### Key bindings
#
# Basics:

View file

@ -6,7 +6,7 @@
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"],
"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": {
"disable-scroll-wraparound": true,
"all-outputs": false
@ -72,6 +72,14 @@
"default": ["", ""]
},
"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": {
// "format": " {}",

View file

@ -12,8 +12,8 @@ window#waybar {
}
#window {
font-weight: bold;
font-family: "Fira";
font-weight: normal;
font-family: "Fira Regular";
}
#workspaces {