diff options
| -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 | ||||
| -rwxr-xr-x | hosts/iroha/scripts/run-sway | 1 | ||||
| -rw-r--r-- | hosts/iroha/stow.txt | 8 | ||||
| l--------- | hosts/iroha/stow/.bash_profile | 1 | ||||
| l--------- | hosts/iroha/stow/.config/colors.json | 1 | ||||
| l--------- | hosts/iroha/stow/.local/bin/7z-password | 1 | ||||
| -rw-r--r-- | hosts/iroha/sway_input_output | 12 | ||||
| -rw-r--r-- | nix_archive/flake.lock | 24 | ||||
| -rw-r--r-- | nix_archive/hosts/palm/configuration.nix | 6 | ||||
| -rw-r--r-- | nix_archive/nix/programs/bash.nix | 1 | ||||
| -rw-r--r-- | nix_archive/nix/system.nix | 2 | ||||
| -rwxr-xr-x | scripts/desktop/7z-password | 2 | ||||
| -rwxr-xr-x | scripts/desktop/proton-env | 12 |
24 files changed, 133 insertions, 83 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 diff --git a/hosts/iroha/scripts/run-sway b/hosts/iroha/scripts/run-sway index 7ae945e..c5122f0 100755 --- a/hosts/iroha/scripts/run-sway +++ b/hosts/iroha/scripts/run-sway @@ -1,2 +1,3 @@ #! /usr/bin/env sh +export MAIN_MONITOR=DP-1 dbus-run-session env WLR_RENDERER=vulkan sway diff --git a/hosts/iroha/stow.txt b/hosts/iroha/stow.txt index ffd60e2..e5ab47d 100644 --- a/hosts/iroha/stow.txt +++ b/hosts/iroha/stow.txt @@ -1,5 +1,6 @@ UNLINK: .Xresources UNLINK: .asoundrc +UNLINK: .bash_profile UNLINK: .bashrc UNLINK: .config/MangoHud UNLINK: .config/gdb @@ -13,6 +14,7 @@ UNLINK: .config/sway UNLINK: .config/user-dirs.dirs UNLINK: .gitconfig UNLINK: .gtkrc-2.0 +UNLINK: .local/bin/7z-password UNLINK: .local/bin/bemenu-colored UNLINK: .local/bin/check-orphans UNLINK: .local/bin/dmenu-emoji @@ -48,13 +50,16 @@ UNLINK: .vim/patches UNLINK: .vim/plugin UNLINK: .vim/vimrc UNLINK: scripts/disable-rgb +UNLINK: scripts/emaint-sync UNLINK: scripts/prepare-mounts UNLINK: scripts/prepare-network-mounts UNLINK: scripts/run-sway LINK: .Xresources => c/dotfiles/hosts/iroha/stow/.Xresources (reverts previous action) LINK: .asoundrc => c/dotfiles/hosts/iroha/stow/.asoundrc (reverts previous action) +LINK: .bash_profile => c/dotfiles/hosts/iroha/stow/.bash_profile (reverts previous action) LINK: .bashrc => c/dotfiles/hosts/iroha/stow/.bashrc (reverts previous action) LINK: .config/MangoHud => ../c/dotfiles/hosts/iroha/stow/.config/MangoHud (reverts previous action) +LINK: .config/colors.json => ../c/dotfiles/hosts/iroha/stow/.config/colors.json LINK: .config/gdb => ../c/dotfiles/hosts/iroha/stow/.config/gdb (reverts previous action) LINK: .config/gentoo-pipewire-launcher.conf => ../c/dotfiles/hosts/iroha/stow/.config/gentoo-pipewire-launcher.conf (reverts previous action) LINK: .config/gtk-3.0 => ../c/dotfiles/hosts/iroha/stow/.config/gtk-3.0 (reverts previous action) @@ -66,6 +71,7 @@ LINK: .config/sway => ../c/dotfiles/hosts/iroha/stow/.config/sway (reverts previ LINK: .config/user-dirs.dirs => ../c/dotfiles/hosts/iroha/stow/.config/user-dirs.dirs (reverts previous action) LINK: .gitconfig => c/dotfiles/hosts/iroha/stow/.gitconfig (reverts previous action) LINK: .gtkrc-2.0 => c/dotfiles/hosts/iroha/stow/.gtkrc-2.0 (reverts previous action) +LINK: .local/bin/7z-password => ../../c/dotfiles/hosts/iroha/stow/.local/bin/7z-password (reverts previous action) LINK: .local/bin/bemenu-colored => ../../c/dotfiles/hosts/iroha/stow/.local/bin/bemenu-colored (reverts previous action) LINK: .local/bin/check-orphans => ../../c/dotfiles/hosts/iroha/stow/.local/bin/check-orphans (reverts previous action) LINK: .local/bin/dmenu-emoji => ../../c/dotfiles/hosts/iroha/stow/.local/bin/dmenu-emoji (reverts previous action) @@ -101,7 +107,7 @@ LINK: .vim/patches => ../c/dotfiles/hosts/iroha/stow/.vim/patches (reverts previ LINK: .vim/plugin => ../c/dotfiles/hosts/iroha/stow/.vim/plugin (reverts previous action) LINK: .vim/vimrc => ../c/dotfiles/hosts/iroha/stow/.vim/vimrc (reverts previous action) LINK: scripts/disable-rgb => ../c/dotfiles/hosts/iroha/stow/scripts/disable-rgb (reverts previous action) -LINK: scripts/emaint-sync => ../c/dotfiles/hosts/iroha/stow/scripts/emaint-sync +LINK: scripts/emaint-sync => ../c/dotfiles/hosts/iroha/stow/scripts/emaint-sync (reverts previous action) LINK: scripts/prepare-mounts => ../c/dotfiles/hosts/iroha/stow/scripts/prepare-mounts (reverts previous action) LINK: scripts/prepare-network-mounts => ../c/dotfiles/hosts/iroha/stow/scripts/prepare-network-mounts (reverts previous action) LINK: scripts/run-sway => ../c/dotfiles/hosts/iroha/stow/scripts/run-sway (reverts previous action) diff --git a/hosts/iroha/stow/.bash_profile b/hosts/iroha/stow/.bash_profile new file mode 120000 index 0000000..2805ad2 --- /dev/null +++ b/hosts/iroha/stow/.bash_profile @@ -0,0 +1 @@ +../../../files/shell/bash_profile
\ No newline at end of file diff --git a/hosts/iroha/stow/.config/colors.json b/hosts/iroha/stow/.config/colors.json new file mode 120000 index 0000000..b4907ce --- /dev/null +++ b/hosts/iroha/stow/.config/colors.json @@ -0,0 +1 @@ +../../../../themes/iroha/colors.json
\ No newline at end of file diff --git a/hosts/iroha/stow/.local/bin/7z-password b/hosts/iroha/stow/.local/bin/7z-password new file mode 120000 index 0000000..e327685 --- /dev/null +++ b/hosts/iroha/stow/.local/bin/7z-password @@ -0,0 +1 @@ +../../../../../scripts/desktop/7z-password
\ No newline at end of file diff --git a/hosts/iroha/sway_input_output b/hosts/iroha/sway_input_output index 06936cc..e8598cb 100644 --- a/hosts/iroha/sway_input_output +++ b/hosts/iroha/sway_input_output @@ -17,12 +17,24 @@ input "1189:32769:BenQ_ZOWIE_BenQ_ZOWIE_Gaming_Mouse" { scroll_factor 1.0 } +input "2362:9488:PixArt_USB_Optical_Mouse" { + accel_profile flat + pointer_accel -0.225 + scroll_factor 1.0 +} + input "1133:50504:Logitech_USB_Receiver_Mouse" { accel_profile flat pointer_accel -0.15 scroll_factor 1.0 } +input "1386:890:Wacom_One_by_Wacom_S_Pen" { + events disabled +# map_to_output = "DP-1"; +# left_handed = "enabled"; +} + output "DP-1" { mode 2560x1440@144.000Hz #position 3000 200 diff --git a/nix_archive/flake.lock b/nix_archive/flake.lock index 8c1b326..20ac471 100644 --- a/nix_archive/flake.lock +++ b/nix_archive/flake.lock @@ -90,11 +90,11 @@ ] }, "locked": { - "lastModified": 1761845621, - "narHash": "sha256-d+R4MHsGmdebvSMsYUFWONsZSlUbOo8Zq/wjMdMiIac=", + "lastModified": 1762463325, + "narHash": "sha256-33YUsWpPyeBZEWrKQ2a1gkRZ7i0XCC/2MYpU6BVeQSU=", "owner": "nix-community", "repo": "home-manager", - "rev": "97e3022a8d2c09313fa49847f6da4d76abcfc72d", + "rev": "0562fef070a1027325dd4ea10813d64d2c967b39", "type": "github" }, "original": { @@ -144,11 +144,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1761827175, - "narHash": "sha256-XdPVSYyIBK4/ruoqujaQmmSGg3J2/EenexV9IEXhr6o=", + "lastModified": 1762463231, + "narHash": "sha256-hv1mG5j5PTbnWbtHHomzTus77pIxsc4x8VrMjc7+/YE=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "43ffe9ac82567512abb83187cb673de1091bdfa8", + "rev": "52113c4f5cfd1e823001310e56d9c8d0699a6226", "type": "github" }, "original": { @@ -211,11 +211,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1761672384, - "narHash": "sha256-o9KF3DJL7g7iYMZq9SWgfS1BFlNbsm6xplRjVlOCkXI=", + "lastModified": 1762363567, + "narHash": "sha256-YRqMDEtSMbitIMj+JLpheSz0pwEr0Rmy5mC7myl17xs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "08dacfca559e1d7da38f3cf05f1f45ee9bfd213c", + "rev": "ae814fd3904b621d8ab97418f1d0f2eb0d3716f4", "type": "github" }, "original": { @@ -233,11 +233,11 @@ ] }, "locked": { - "lastModified": 1761857284, - "narHash": "sha256-oIt6cQrUB4VA3lgDgwptzP5P7iq0DalaqQMctYQB31k=", + "lastModified": 1762609498, + "narHash": "sha256-wrKVkV5WDNVpgR9W9Nxliy9oPeJRonFGyGft3RTQXDU=", "owner": "nix-community", "repo": "NUR", - "rev": "abbcf2d95f63db25ae8c6cfd331bbab3b97d962a", + "rev": "bd7e74a823bb44f3b452a5e35dfe20548fa6ce91", "type": "github" }, "original": { diff --git a/nix_archive/hosts/palm/configuration.nix b/nix_archive/hosts/palm/configuration.nix index 42cf14c..4619df3 100644 --- a/nix_archive/hosts/palm/configuration.nix +++ b/nix_archive/hosts/palm/configuration.nix @@ -50,7 +50,7 @@ in { top_padding = 0; picture = ../../themes/year_of_snake/splash.png; width = 64; - padding = { top = -3; left = -4; text = 5; }; + padding = { top = -4; left = -4; text = 5; }; position = "left"; header = ""; footer = ""; @@ -100,13 +100,13 @@ in { CPU_SCALING_GOVERNOR_ON_AC = "performance"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 20; + CPU_MAX_PERF_ON_BAT = 30; START_CHARGE_THRESH_BAT0 = 40; STOP_CHARGE_THRESH_BAT0 = 85; diff --git a/nix_archive/nix/programs/bash.nix b/nix_archive/nix/programs/bash.nix index 571b4fe..cf18376 100644 --- a/nix_archive/nix/programs/bash.nix +++ b/nix_archive/nix/programs/bash.nix @@ -9,6 +9,7 @@ programs.bash = { enable = true; shellAliases = { + ls = "ls --ignore=lost+found --color=auto"; cp = "rsync -av"; top = "htop"; bc = "bc -l"; diff --git a/nix_archive/nix/system.nix b/nix_archive/nix/system.nix index 7aaebe6..46b6ad1 100644 --- a/nix_archive/nix/system.nix +++ b/nix_archive/nix/system.nix @@ -13,6 +13,8 @@ nixpkgs.config.allowUnfree = true; hardware.enableRedistributableFirmware = true; + boot.kernel.sysctl."kernel.yama.ptrace_scope" = "0"; + security.pam.loginLimits = [ { domain = "*"; diff --git a/scripts/desktop/7z-password b/scripts/desktop/7z-password index 72e90f9..30d843c 100755 --- a/scripts/desktop/7z-password +++ b/scripts/desktop/7z-password @@ -1,2 +1,2 @@ #! /usr/bin/env sh -7z a -p -mhe=on $1 $2 +7z a -p -mhe=on $@ diff --git a/scripts/desktop/proton-env b/scripts/desktop/proton-env index d62f488..c228b24 100755 --- a/scripts/desktop/proton-env +++ b/scripts/desktop/proton-env @@ -3,12 +3,12 @@ # https://gist.github.com/Kron4ek/af1bbc1353302751a0941308294ec24a export STEAM_COMPAT_LAUNCHER_SERVICE=proton +export PROTON_USE_NTSYNC=1 export DXVK_HUD=compiler export DXVK_LOG_LEVEL=none export DXVK_DEBUG=none -export VKD3D_HUD=compiler export VKD3D_DEBUG=none export VKD3D_SHADER_DEBUG=none @@ -17,9 +17,13 @@ unset SDL_VIDEO_DRIVER xrandr --output $MAIN_MONITOR --primary +scxctl start --sched bpfland --mode gaming + +# LD_PRELOAD could disable steam overlay if the old value wasn't included. if [[ $MANGOHUD == 1 || -z $MANGOHUD ]]; then - exec env LD_PRELOAD="/usr/lib64/libgamemodeauto.so" mangohud "$@" - #exec env LD_PRELOAD="/usr/lib64/libgamemodeauto.so:/usr/lib64/libMangoHud.so:/usr/lib64/libMangoHud_opengl.so" mangohud "$@" + env LD_PRELOAD="$LD_PRELOAD:/usr/lib64/libgamemodeauto.so" mangohud "$@" else - exec env LD_PRELOAD="/usr/lib64/libgamemodeauto.so" "$@" + env LD_PRELOAD="$LD_PRELOAD:/usr/lib64/libgamemodeauto.so" "$@" fi + +scxctl stop |