diff --git a/entropy/.vimrc b/entropy/.vimrc index eb99025..2ea5e03 100644 --- a/entropy/.vimrc +++ b/entropy/.vimrc @@ -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(, {'sink': 'tabedit', 'options': ['--info=inline', '--preview', '~/.vim/plugged/fzf.vim/bin/preview.sh {}']}, 0) +"command! -bang -nargs=? -complete=dir Files + "\ call fzf#vim#files(, {'sink': 'tabedit', 'options': ['--info=inline', '--preview', '~/.vim/plugged/fzf.vim/bin/preview.sh {}']}, 0) set laststatus=2 let g:airline#extensions#tabline#enabled = 1 @@ -73,9 +74,12 @@ au BufRead,BufNewFile *.ohuao setfiletype json " nnoremap _ " nnoremap \| " nnoremap \| -map :tabp -map :tabn +map h :tabp +map l :tabn +map :bprevious +map :bnext map f :Files +map bl :Buffers " fix auto-completion set wildmenu " show a completion menu diff --git a/entropy/alacritty/alacritty.yml b/entropy/alacritty/alacritty.yml index 440897b..5cb512b 100644 --- a/entropy/alacritty/alacritty.yml +++ b/entropy/alacritty/alacritty.yml @@ -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 diff --git a/entropy/kanshi/config b/entropy/kanshi/config index a694cae..aa6ec50 100644 --- a/entropy/kanshi/config +++ b/entropy/kanshi/config @@ -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 } diff --git a/entropy/nixos/configuration.nix b/entropy/nixos/configuration.nix index 10cab69..fb98427 100644 --- a/entropy/nixos/configuration.nix +++ b/entropy/nixos/configuration.nix @@ -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 = [ ... ]; diff --git a/entropy/sway/config b/entropy/sway/config index 6f9c0e5..1ac5040 100644 --- a/entropy/sway/config +++ b/entropy/sway/config @@ -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: diff --git a/entropy/waybar/config b/entropy/waybar/config index a90b3ae..c5b8902 100644 --- a/entropy/waybar/config +++ b/entropy/waybar/config @@ -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": " {}", diff --git a/entropy/waybar/style.css b/entropy/waybar/style.css index 8984714..a86d9d6 100644 --- a/entropy/waybar/style.css +++ b/entropy/waybar/style.css @@ -12,8 +12,8 @@ window#waybar { } #window { - font-weight: bold; - font-family: "Fira"; + font-weight: normal; + font-family: "Fira Regular"; } #workspaces {