diff options
Diffstat (limited to 'files')
| -rw-r--r-- | files/firefox/user-overrides.js | 53 | ||||
| -rw-r--r-- | files/kitty/kitty.conf | 4 | ||||
| -rw-r--r-- | files/shell/bash_profile | 1 | ||||
| -rw-r--r-- | files/shell/bashrc | 5 | ||||
| -rw-r--r-- | files/shell/profile | 4 | ||||
| -rw-r--r-- | files/sway/config | 6 | ||||
| -rw-r--r-- | files/user-dirs.dirs | 8 | ||||
| -rw-r--r-- | files/vim/autoload/Juliana.vim | 14 | ||||
| -rw-r--r-- | files/vim/colors/lil_pablo.vim | 2 | ||||
| -rw-r--r-- | files/vim/patches/qname_edit.diff | 34 | ||||
| -rw-r--r-- | files/vim/plugin/qname.1.2.vim | 9 | ||||
| -rw-r--r-- | files/vim/vimrc | 5 |
12 files changed, 83 insertions, 62 deletions
diff --git a/files/firefox/user-overrides.js b/files/firefox/user-overrides.js index 7d2abb8..c20ae70 100644 --- a/files/firefox/user-overrides.js +++ b/files/firefox/user-overrides.js @@ -1,13 +1,13 @@ -// user.js overrides +// user.js overrides. user_pref("network.http.referer.XOriginTrimmingPolicy", 2); user_pref("network.http.referer.XOriginPolicy", 0); user_pref("privacy.resistFingerprinting", true); user_pref("keyword.enabled", true); -// Greatly increase memory-only cache size +// Greatly increase memory-only cache size. user_pref("browser.cache.memory.capacity", 524288); -// Disable unwanted urlbar suggestions +// Disable unwanted urlbar suggestions. user_pref("browser.urlbar.suggest.topsites", false); user_pref("browser.urlbar.suggest.searches", false); user_pref("browser.urlbar.suggest.remotetab", false); @@ -23,27 +23,30 @@ user_pref("browser.urlbar.suggest.weather", false); user_pref("browser.urlbar.merino.enabled", false); user_pref("browser.urlbar.quicksuggest.enabled", false); -// Disable pocket +// Disable pocket. user_pref("extensions.pocket.enabled", false); user_pref("browser.urlbar.suggest.pocket", false); -// Disable screenshot extension +// Use the same search engine for private tabs. +user_pref("browser.search.separatePrivateDefault", false); + +// Disable screenshot extension. user_pref("extensions.screenshots.disabled", true); -// Disable picture-in-picture +// Disable picture-in-picture. user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", false); -// Disable video autoplay by default +// Disable video autoplay by default. user_pref("media.autoplay.default", 5); -// Enable WebGL +// Enable WebGL. user_pref("webgl.disabled", false); -// Enable DRM, Disable DRM UI +// Enable DRM, Disable DRM UI. user_pref("media.eme.enabled", true); user_pref("browser.eme.ui.enabled", false); -// Change annoying keybinds +// Change annoying keybinds. user_pref("ui.key.menuAccessKey", 17); user_pref("ui.key.menuAccessKeyFocuses", false); user_pref("mousebutton.4th.enabled", false); @@ -52,7 +55,7 @@ user_pref("mousebutton.5th.enabled", false); // Disable tab groups. user_pref("browser.tabs.groups.enabled", false); -// Good smooth-scrolling +// Good smooth-scrolling. user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 250); user_pref("general.smoothScroll.mouseWheel.durationMinMS", 250); user_pref("general.smoothScroll.msdPhysics.enabled", true); @@ -66,52 +69,52 @@ user_pref("mousewheel.default.delta_multiplier_x", 200); user_pref("mousewheel.default.delta_multiplier_y", 200); user_pref("mousewheel.min_line_scroll_amount", 22); -// Performance +// Performance. user_pref("gfx.webrender.enabled", true); user_pref("gfx.webrender.all", true); -// Hardware accelerated video decoding +// Hardware accelerated video decoding. user_pref("media.ffmpeg.vaapi.enabled", true); -// ForkServer +// ForkServer. user_pref("dom.ipc.forkserver.enable", true); -// Disable pop-up when using mic +// Disable pop-up when using mic. user_pref("privacy.webrtc.legacyGlobalIndicator", false); -// PipeWire stuff +// PipeWire stuff. user_pref("reader.parse-on-load.enabled", false); user_pref("media.webspeech.synth.enabled", false); -// Disable "sign into sync" +// Disable "sign into sync". user_pref("identity.fxaccounts.enabled", false); -// userChrome.css +// userChrome.css. user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); user_pref("browser.uidensity", 0); user_pref("svg.context-properties.content.enabled", true); user_pref("browser.theme.dark-private-windows", false); user_pref("browser.tabs.drawInTitlebar", true); -// Gnome theme +// Gnome theme. user_pref("gnomeTheme.normalWidthTabs", true); -// adw3-gtk +// adw3-gtk. user_pref("widget.gtk.libadwaita-colors.enabled", false); -// Hide bookmarks +// Hide bookmarks. user_pref("browser.toolbars.bookmarks.visibility", "never"); -// No titlebar +// No titlebar. user_pref("browser.tabs.inTitlebar", 0); -// Disable gestures +// Disable gestures. user_pref("apz.gtk.pangesture.enabled", false); -// Disable firefox view +// Disable firefox view. user_pref("browser.tabs.firefox-view", false); user_pref("browser.tabs.firefox-view-next", false); -// Disable tab preview +// Disable tab preview. user_pref("browser.tabs.hoverPreview.enabled", false); user_pref("browser.tabs.hoverPreview.showThumbnails", false); diff --git a/files/kitty/kitty.conf b/files/kitty/kitty.conf index a32e47e..ef80b7c 100644 --- a/files/kitty/kitty.conf +++ b/files/kitty/kitty.conf @@ -10,7 +10,7 @@ disable_ligatures always window_padding_width 1 placement_strategy top-left -shell /bin/bash +shell /bin/bash --login shell_integration enabled clear_all_shortcuts yes @@ -44,7 +44,7 @@ resize_debounce_time 0.025 0.5 cursor_shape block #cursor_blink_interval -1 linear ease-out #cursor_stop_blinking_after 20.0 -cursor_trail 4 +cursor_trail 6 cursor_trail_decay 0.075 0.425 cursor_trail_start_threshold 3 #cursor #${colo.foreground} diff --git a/files/shell/bash_profile b/files/shell/bash_profile new file mode 100644 index 0000000..9ec9900 --- /dev/null +++ b/files/shell/bash_profile @@ -0,0 +1 @@ +[[ -r ~/.bashrc ]] && . ~/.bashrc diff --git a/files/shell/bashrc b/files/shell/bashrc index 443501d..df595d0 100644 --- a/files/shell/bashrc +++ b/files/shell/bashrc @@ -41,8 +41,9 @@ alias rod='ssh -p 1738 rod' alias bmrg='ssh boomerang' alias cmv-add='$HOME/c/camu/scripts/cmv_add.sh' alias cmv-pause='cmv-add PAUSE' -alias cmv-next='cmv-add NEXT' -alias cmv-prev='cmv-add PREV' +cmv-next() { cmv-add "NEXT $@"; } +cmv-prev() { cmv-add "PREV $@"; } +cmv-seek() { cmv-add "SEEK $@"; } alias cmv-shuffle='cmv-add SHUFFLE' alias cmv-sort='cmv-add SORT' alias cmv-reverse='cmv-add REVERSE' diff --git a/files/shell/profile b/files/shell/profile index fc677a7..f0f0cac 100644 --- a/files/shell/profile +++ b/files/shell/profile @@ -1,7 +1,7 @@ export PATH="$PATH:$HOME/.local/bin" -#export GPG_TTY=$(tty) +export GPG_TTY=$(tty) unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi -export MAIN_MONITOR=DP-1 +#export MAIN_MONITOR=DP-1 diff --git a/files/sway/config b/files/sway/config index 3ec0052..93327b2 100644 --- a/files/sway/config +++ b/files/sway/config @@ -15,6 +15,8 @@ default_border normal 1 titlebar_border_thickness 1 titlebar_padding 4 3 +#mouse_warping container + floating_modifier $mod1 normal bindsym $mod1+Shift+q kill @@ -100,8 +102,10 @@ client.urgent $urgent $urgent $fg $urgent $urgent client.placeholder $bg $bg $fg $bg $bg client.background $bg -exec dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK +#seat * hide_cursor when-typing enable exec_always swaymsg 'seat * hide_cursor 4000' + +exec dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK MAIN_MONITOR exec swayidle -w \ timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' exec mako diff --git a/files/user-dirs.dirs b/files/user-dirs.dirs index 018d12a..9101df1 100644 --- a/files/user-dirs.dirs +++ b/files/user-dirs.dirs @@ -1,8 +1,8 @@ -XDG_DESKTOP_DIR="$HOME/tmp" +XDG_DESKTOP_DIR="$HOME/dl/tmp" XDG_DOCUMENTS_DIR="$HOME/docs" XDG_DOWNLOAD_DIR="$HOME/dl" -XDG_MUSIC_DIR="$HOME/tmp" +XDG_MUSIC_DIR="$HOME/dl/tmp" XDG_PICTURES_DIR="$HOME/pics" -XDG_PUBLICSHARE_DIR="$HOME/tmp" -XDG_TEMPLATES_DIR="$HOME/tmp" +XDG_PUBLICSHARE_DIR="$HOME/dl/tmp" +XDG_TEMPLATES_DIR="$HOME/dl/tmp" XDG_VIDEOS_DIR="$HOME/dl/mp4" diff --git a/files/vim/autoload/Juliana.vim b/files/vim/autoload/Juliana.vim index 9af02d7..492f3d5 100644 --- a/files/vim/autoload/Juliana.vim +++ b/files/vim/autoload/Juliana.vim @@ -5,31 +5,31 @@ function! Juliana#Init() augroup JulianaPersistAu autocmd ModeChanged [V\x16]*:i let g:Juliana#has_selection = 1 autocmd InsertLeave * let g:Juliana#has_selection = 0 + " Don't trigger autocomplete until a character is typed. + autocmd ModeChanged [nvV\x16]:i setglobal noac | autocmd InsertCharPre * setglobal ac | autocmd! InsertCharPre * augroup END - " This won't trigger autocomplete until 2 characters are typed. - autocmd ModeChanged *:i set noac | augroup JulianaSkipAutocomplete | autocmd TextChangedI * set ac | autocmd! JulianaSkipAutocomplete | augroup END endfunction function! Juliana#CompleteTab(type) if a:type == "START" - let g:Juliana#stop=0 + let g:Juliana#stop = 0 return "" endif if !g:Juliana#stop " Vanilla <Tab> if we are at the front of a line. if a:type == "TAB" && col(".") >= col("$") && !pumvisible() - let g:Juliana#stop=1 + let g:Juliana#stop = 1 return "\<Tab>" elseif a:type == "ALIGN" && !pumvisible() " Align if !pumvisible(). - let g:Juliana#stop=1 + let g:Juliana#stop = 1 if g:Juliana#has_selection return "\<ESC>gv=i" else return "\<ESC>\<C-v>=i" endif elseif a:type == "NEXT" " If pumvisible(), goto the next result. - let g:Juliana#stop=1 + let g:Juliana#stop = 1 return "\<C-n>" endif endif @@ -49,7 +49,7 @@ endfunction function! Juliana#CompleteNTab(type) if a:type == "FOLD" - if foldlevel(line(".")) " Toggle fold if on fold. + if foldlevel(line(".")) " Toggle fold if on a fold. return "za" else return "\<Tab>" diff --git a/files/vim/colors/lil_pablo.vim b/files/vim/colors/lil_pablo.vim index 1ab6d2a..555ac4c 100644 --- a/files/vim/colors/lil_pablo.vim +++ b/files/vim/colors/lil_pablo.vim @@ -10,7 +10,9 @@ set background=dark hi clear let g:colors_name = 'lil_pablo' +" :%s/gui\(bg\|fg\)=\(#[0-9a-f]*\|NONE\) //g " :%s/cterm\(bg\|fg\)=\([0-9]*\|NONE\|fg\)\ /cterm\1=\2\ gui\1=##\2##\ /g +" :%s/##NONE##/NONE/g hi Normal ctermfg=15 guifg=#ffffff ctermbg=0 guibg=#000000 cterm=NONE hi Comment ctermfg=8 guifg=#808080 ctermbg=NONE guibg=NONE cterm=NONE diff --git a/files/vim/patches/qname_edit.diff b/files/vim/patches/qname_edit.diff index ab1ed09..b5350c6 100644 --- a/files/vim/patches/qname_edit.diff +++ b/files/vim/patches/qname_edit.diff @@ -1,7 +1,7 @@ Post- dos2unix, Tabify, and Trim. --- a/qname.1.2.vim 2025-08-03 20:12:24.629096223 -0400 -+++ b/qname.1.2.vim 2025-10-30 16:45:40.688588103 -0400 -@@ -7,7 +7,27 @@ ++++ b/qname.1.2.vim 2025-11-04 11:19:39.070454407 -0500 +@@ -7,7 +7,30 @@ " License: Vim License " ============================================================================= @@ -25,11 +25,14 @@ Post- dos2unix, Tabify, and Trim. +" Fix logic to not include buffers with modifiable off +" 2025-10-30: +" Treat <S-BS> the same as <BS> ++" 2025-11-04: ++" Open selected buffer in the current window, even if the same buffer is ++" already open in another window. +" " 1.2 2013-01-03 " ADD: <Tab> and <S-Tab> moves selection like <Up> and <Down> " ADD: Use <silent> mapping to keep cmdline clear -@@ -30,12 +50,6 @@ +@@ -30,12 +53,6 @@ finish endif @@ -42,7 +45,7 @@ Post- dos2unix, Tabify, and Trim. if exists("g:qname_loaded") && g:qname_loaded finish endif -@@ -53,7 +67,7 @@ +@@ -53,7 +70,7 @@ " use case-sensitive equality operator, otherwise <BS> looks like " <S-Tab> if 'ignorecase' is set @@ -51,7 +54,7 @@ Post- dos2unix, Tabify, and Trim. let s:inp = s:inp[:-2] elseif _key ==# "\<C-U>" let s:inp = "" -@@ -70,16 +84,19 @@ +@@ -70,16 +87,19 @@ call s:swb(str2nr(matchstr(s:s[_sel], '<\zs\d\+\ze>'))) endif call QNameInit(0) @@ -75,7 +78,7 @@ Post- dos2unix, Tabify, and Trim. else call s:build() endif -@@ -88,7 +105,6 @@ +@@ -88,7 +108,6 @@ cal QNameInit(0) finally " clean up screen after dismissing search window @@ -83,7 +86,7 @@ Post- dos2unix, Tabify, and Trim. call inputrestore() endtry endfunc -@@ -99,6 +115,7 @@ +@@ -99,6 +118,7 @@ let s:cmdh = &cmdheight if a:start != -1 let s:inp = "" @@ -91,7 +94,7 @@ Post- dos2unix, Tabify, and Trim. endif call s:baselist() call s:build() -@@ -112,16 +129,27 @@ +@@ -112,16 +132,27 @@ function! s:build() let s:s = [] let s:n = [] @@ -122,7 +125,16 @@ Post- dos2unix, Tabify, and Trim. cal s:colPrinter.put(s:n) else cal s:colPrinter.put(s:s) -@@ -137,37 +165,28 @@ +@@ -129,45 +160,32 @@ + endfunc + + function! s:swb(bno) +- if bufwinnr(a:bno) == -1 +- exe "hid b" a:bno +- else +- exe bufwinnr(a:bno) . "winc w" +- endif ++ exe "hid b" a:bno endfunc function! s:fmatch(src,pat) @@ -165,7 +177,7 @@ Post- dos2unix, Tabify, and Trim. function! s:colPrinter.put(its) dict let _cols = [] let _trow = self.trow -@@ -224,11 +243,7 @@ +@@ -224,11 +242,7 @@ function! s:colPrinter.vert(mv) dict let _t = self.sel + a:mv let _len = self.len @@ -178,7 +190,7 @@ Post- dos2unix, Tabify, and Trim. let self.sel = _t endif endfunc -@@ -244,7 +259,7 @@ +@@ -244,7 +258,7 @@ let _t = _sel/_trow let _cpos = self.cpos let _lcol = self.lcol diff --git a/files/vim/plugin/qname.1.2.vim b/files/vim/plugin/qname.1.2.vim index 7ecd92f..4e81318 100644 --- a/files/vim/plugin/qname.1.2.vim +++ b/files/vim/plugin/qname.1.2.vim @@ -27,6 +27,9 @@ " Fix logic to not include buffers with modifiable off " 2025-10-30: " Treat <S-BS> the same as <BS> +" 2025-11-04: +" Open selected buffer in the current window, even if the same buffer is +" already open in another window. " " 1.2 2013-01-03 " ADD: <Tab> and <S-Tab> moves selection like <Up> and <Down> @@ -157,11 +160,7 @@ function! s:build() endfunc function! s:swb(bno) - if bufwinnr(a:bno) == -1 - exe "hid b" a:bno - else - exe bufwinnr(a:bno) . "winc w" - endif + exe "hid b" a:bno endfunc function! s:fmatch(src,pat) diff --git a/files/vim/vimrc b/files/vim/vimrc index b3bb734..93d1215 100644 --- a/files/vim/vimrc +++ b/files/vim/vimrc @@ -128,9 +128,8 @@ if isdirectory(expand("~/c")) endif set autocomplete -"set complete=.^4,w^3,b^2,u^2,i^2,d^2 -set complete=.^4,w^3,b^2,u^2 -set completeopt+=menu,popup +set complete=.^4,w^2,b^2 +set completeopt+=menu,menuone,popup,noinsert,noselect " Plugins. let g:fugitive_no_maps = 1 |