. . .

update

autumn d821f555 04b37eb6

+49 -4
+17
autumn.lua
··· 1 + 2 + 3 + 4 + local function fix_menu() 5 + local choices = {"spaces", "quotes", "both"} 6 + vim.ui.select(choices, {prompt = "fix"}, function(choice) 7 + if not choice then return end 8 + if choice == "spaces" or choice == "both" then 9 + vim.cmd("call CleanupWhitespace()") 10 + end 11 + if choice == "quotes" or choice == "both" then 12 + vim.cmd([[:%s/'\([^']*\)'/"\1"/g]]) 13 + end 14 + end) 15 + end 16 + 17 + vim.keymap.set("n", "fix", fix_menu) 1 18 2 19 --[[ 3 20
+5 -3
config
··· 34 34 exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 35 35 exec_always --no-startup-id feh /data/0/media/images/wallpapers/Active/ --randomize --bg-scale --no-fehbg 36 36 exec --no-startup-id nm-applet 37 - exec --no-startup-id xfce4-power-manager 37 + #exec --no-startup-id xfce4-power-manager 38 38 exec --no-startup-id pamac-tray 39 39 exec --no-startup-id clipit 40 - exec --no-startup-id xautolock -time 60 -locker ~/pixel-lock 40 + #exec --no-startup-id xautolock -time 60 -locker ~/pixel-lock 41 41 exec_always --no-startup-id ff-theme-util 42 42 exec_always --no-startup-id fix_xcursor 43 43 exec --no-startup-id ~/.screenlayout/main.sh 44 44 exec --no-startup-id xmodmap ~/.Xmodmap 45 - exec --no-startup-id picom -b 45 + # exec --no-startup-id picom -b 46 46 exec --no-startup-id xset b off 47 47 48 48 # === default management === ··· 64 64 for_window [class="qt5ct"] floating enable sticky enable border normal 65 65 for_window [class="Ants!"] floating enable border none 66 66 for_window [class="Stem UI Test"] floating enable border none 67 + for_window [class="Cuda Canvas"] floating enable border none 67 68 68 69 # === Bindings === 69 70 ··· 124 125 # = i3 = 125 126 126 127 bindsym Shift+Escape kill 128 + bindsym $mod+BackSpace kill 127 129 # reload i3 config 128 130 bindsym $mod+Shift+r reload 129 131 # fully restart i3 session (keeps user applications running)
+27 -1
init.vim
··· 1 + 1 2 " Plugins 2 3 3 4 call plug#begin('~/.local/share/nvim/plugged') ··· 24 25 Plug 'pangloss/vim-javascript' 25 26 Plug 'evanleck/vim-svelte', {'branch': 'main'} 26 27 28 + " wgsl 29 + Plug 'DingDean/wgsl.vim' 30 + 27 31 " Rust 28 32 "Plug 'rust-lang/rust.vim' 29 33 "Plug 'neoclide/coc.nvim', {'branch': 'release'} ··· 36 40 37 41 if exists("g:neovide") 38 42 let g:neovide_scale_factor = 1 39 - let g:neovide_transparency = 0.7 43 + let g:neovide_opacity = 0.7 40 44 let g:neovide_floating_blur_amount_x = 5.0 41 45 let g:neovide_floating_blur_amount_y = 5.0 42 46 let g:neovide_padding_left = 0 ··· 262 266 " ctrl-s to save, normal & insert modes 263 267 nnoremap <C-s> :w<return> 264 268 inoremap <c-s> <esc>:w<return>li 269 + 270 + " clean up whitespace 271 + function! CleanupWhitespace() 272 + " remove trailing whitespace 273 + %s/\s\+$//ge 274 + " ensure file starts with exactly one blank line 275 + 0put ='' 276 + " ensure file ends with exactly one blank line 277 + $put ='' 278 + " remove multiple blank lines at start/end 279 + %s/\%^\n\+/\r/ge 280 + %s/\n\+\%$/\r/ge 281 + endfunction 282 + 283 + "nnoremap spaces :call CleanupWhitespace()<return> 284 + "nnoremap quotes :%s/'\([^']*\)'/"\1"/g<return> 285 + 286 + "function! QuickFixes() 287 + 288 + 289 + 290 + "endfunction 265 291 266 292 " Goyo 267 293 nnoremap <silent><leader>zen :Goyo<return>