From 92e2025bf2158074b89684529d6342bb2c27ea6d Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Sun, 1 Jun 2025 22:49:58 -0400 Subject: [PATCH] 408 current 2025-06-01 22:49:40 25.05.20250424.f771eb4 6.12.24 * --- home/home.nix | 1 + home/programs/cmus/autosave | 235 ------------------------------ home/programs/cmus/default.nix | 2 +- home/programs/firefox/default.nix | 21 +++ home/programs/zsh/zshrc | 2 + system/users/default.nix | 2 +- 6 files changed, 26 insertions(+), 237 deletions(-) delete mode 100644 home/programs/cmus/autosave diff --git a/home/home.nix b/home/home.nix index b5d8f3a..a822042 100644 --- a/home/home.nix +++ b/home/home.nix @@ -63,6 +63,7 @@ in { home.packages = with pkgs; [ + systemd cachix # any other packages go here # xrandr diff --git a/home/programs/cmus/autosave b/home/programs/cmus/autosave deleted file mode 100644 index 13f34e2..0000000 --- a/home/programs/cmus/autosave +++ /dev/null @@ -1,235 +0,0 @@ -set aaa_mode=all -set altformat_current=%y -set altformat_playlist=%d -set altformat_title=cmus -set altformat_trackwin= %f%= %d -set auto_expand_albums_follow=false -set auto_expand_albums_search=false -set auto_expand_albums_selcur=false -set auto_hide_playlists_panel=false -set auto_reshuffle=true -set block_key_paste=true -set buffer_seconds=10 -set color_cmdline_attr=default -set color_cmdline_bg=default -set color_cmdline_fg=default -set color_cur_sel_attr=default -set color_error=lightred -set color_info=lightyellow -set color_separator=black -set color_statusline_attr=default -set color_statusline_bg=default -set color_statusline_fg=blue -set color_titleline_attr=default -set color_titleline_bg=default -set color_titleline_fg=blue -set color_trackwin_album_attr=bold -set color_trackwin_album_bg=default -set color_trackwin_album_fg=default -set color_win_attr=default -set color_win_bg=default -set color_win_cur=blue -set color_win_cur_attr=default -set color_win_cur_sel_attr=default -set color_win_cur_sel_bg=darkgray -set color_win_cur_sel_fg=default -set color_win_dir=blue -set color_win_fg=default -set color_win_inactive_cur_sel_attr=default -set color_win_inactive_cur_sel_bg=default -set color_win_inactive_cur_sel_fg=blue -set color_win_inactive_sel_attr=default -set color_win_inactive_sel_bg=black -set color_win_inactive_sel_fg=default -set color_win_sel_attr=default -set color_win_sel_bg=darkgray -set color_win_sel_fg=default -set color_win_title_attr=default -set color_win_title_bg=default -set color_win_title_fg=magenta -set confirm_run=true -set continue=true -set continue_album=true -set device=/dev/cdrom -set display_artist_sort_name=false -set dsp.alsa.device=default -set dsp.ao.buffer_size=16384 -set dsp.ao.device_interface= -set dsp.ao.driver= -set dsp.ao.wav_counter=1 -set dsp.ao.wav_dir=/home/synchronous -set dsp.jack.resampling_quality=2 -set dsp.jack.server_name= -set dsp.oss.device= -set follow=false -set format_clipped_text=… -set format_current= -set format_playlist= . %a - %t -set format_playlist_va= . %a - %t -set format_statusline= %{status} %t%= %1{follow} %{?show_playback_position?%{position} %{?duration?/ %{duration} }?%{?duration?%{duration} }} -set format_title=cmus -set format_trackwin= . %t%= -set format_trackwin_album=%l -set format_trackwin_va= . %t%= %y -set format_treewin= %l -set format_treewin_artist= %a -set icecast_default_charset=ISO-8859-1 -set id3_default_charset=ISO-8859-1 -set ignore_duplicates=false -set input.aac.priority=50 -set input.cdio.priority=50 -set input.cue.priority=50 -set input.ffmpeg.priority=30 -set input.flac.priority=50 -set input.mad.priority=55 -set input.modplug.priority=50 -set input.mp4.priority=50 -set input.mpc.priority=50 -set input.vorbis.priority=50 -set input.wav.priority=50 -set input.wavpack.priority=50 -set lib_add_filter= -set lib_sort=artist title -set mixer.alsa.channel=Master -set mixer.alsa.device=default -set mixer.oss.channel=PCM -set mixer.oss.device= -set mixer.pulse.restore_volume=1 -set mouse=false -set mpris=true -set output_plugin=alsa -set passwd= -set pause_on_output_change=false -set pl_env_vars= -set pl_sort= -set play_library=true -set play_sorted=false -set repeat=true -set repeat_current=false -set replaygain=disabled -set replaygain_limit=true -set replaygain_preamp=0.000000 -set resume=false -set rewind_offset=5 -set scroll_offset=2 -set set_term_title=false -set show_all_tracks=true -set show_current_bitrate=false -set show_hidden=false -set show_playback_position=true -set show_remaining_time=true -set shuffle=albums -set skip_track_info=false -set smart_artist_sort=true -set softvol=false -set softvol_state=0 0 -set sort_albums_by_name=false -set start_view=tree -set status_display_program= -set stop_after_queue=false -set time_show_leading_zero=true -set tree_width_max=0 -set tree_width_percent=33 -set wrap_search=true -bind browser backspace browser-up -bind browser i toggle show_hidden -bind browser space win-activate -bind browser u win-update -bind common ! push shell -bind common + vol +10% -bind common , seek -1m -bind common - vol -10% -bind common . seek +1m -bind common / search-start -bind common 1 view tree -bind common 2 view sorted -bind common 3 view playlist -bind common 4 view queue -bind common 5 view browser -bind common 6 view filters -bind common 7 view settings -bind common < seek -30 -bind common = vol +10% -bind common > seek +30 -bind common ? search-b-start -bind common B player-next-album -bind common C toggle continue -bind common D win-remove -bind common E win-add-Q -bind common F push filter -bind common G win-bottom -bind common I echo {} -bind common L win-sel-cur -bind common M toggle play_library -bind common N search-prev -bind common P win-mv-before -bind common U win-update-cache -bind common Z player-prev-album -bind common [ vol +1% +0 -bind common ] vol +0 +1% -bind common ^B win-page-up -bind common ^C echo Type :quit to exit cmus. -bind common ^D win-half-page-down -bind common ^E win-scroll-down -bind common ^F win-page-down -bind common ^L refresh -bind common ^R toggle repeat_current -bind common ^U win-half-page-up -bind common ^Y win-scroll-up -bind common a win-add-l -bind common b player-next -bind common c player-pause -bind common d run /home/zman/.config/cmus/cover-viewer -bind common delete win-remove -bind common down win-down -bind common e win-add-q -bind common end win-bottom -bind common enter win-activate -bind common f toggle follow -bind common g win-top -bind common h seek -5 -bind common home win-top -bind common i invert -bind common j win-down -bind common k win-up -bind common l seek +5 -bind common left seek -5 -bind common m toggle aaa_mode -bind common mlb_click_bar player-pause -bind common mlb_click_selected win-activate -bind common mouse_scroll_down win-down -bind common mouse_scroll_down_bar seek -5 -bind common mouse_scroll_down_title right-view -bind common mouse_scroll_up win-up -bind common mouse_scroll_up_bar seek +5 -bind common mouse_scroll_up_title left-view -bind common n search-next -bind common o toggle play_sorted -bind common p win-mv-after -bind common page_down win-page-down -bind common page_up win-page-up -bind common q quit -i -bind common r toggle repeat -bind common right seek +5 -bind common s toggle shuffle -bind common space win-toggle -bind common t toggle show_remaining_time -bind common tab win-next -bind common u update-cache -bind common up win-up -bind common v player-stop -bind common x player-play -bind common y win-add-p -bind common z player-prev -bind common { vol -1% -0 -bind common } vol -0 -1% -bind library A set lib_sort=album discnumber tracknumber title filename -bind library a set lib_sort=artist album discnumber tracknumber title filename -fset 90s=date>=1990&date<2000 -fset classical=genre="Classical" -fset missing-tag=!stream&(artist=""|album=""|title=""|tracknumber=-1|date=-1) -fset mp3=filename="*.mp3" -fset ogg=filename="*.ogg" -fset ogg-or-mp3=ogg|mp3 -fset unheard=play_count=0 -factivate diff --git a/home/programs/cmus/default.nix b/home/programs/cmus/default.nix index 12ab89b..51151d0 100644 --- a/home/programs/cmus/default.nix +++ b/home/programs/cmus/default.nix @@ -7,5 +7,5 @@ cmus ]; home.file.".config/cmus/rc".source = ./rc; - home.file.".config/cmus/autosave".source = ./autosave; + # home.file.".config/cmus/autosave".source = ./autosave; } diff --git a/home/programs/firefox/default.nix b/home/programs/firefox/default.nix index 62f10d6..81f2200 100644 --- a/home/programs/firefox/default.nix +++ b/home/programs/firefox/default.nix @@ -126,10 +126,31 @@ in { ### This is all aesthetic stuff # for tiling window managers expands to the size of the window + # QUIC + "network.http.http3.enabled" = true; + "network.http.http3.grease-advertised-version" = true; + "browser.sessionstore.restore_on_demand" = true; + "dom.ipc.processPriorityManager.idleUsesNanoStackshot" = true; + + "dom.ipc.processPriorityManager.backgroundUsesEcoQoS" = false; + + # disable prefetch + "network.prefetch-next" = false; + "network.dns.disablePrefetch" = true; + "network.dns.disablePrefetchFromHTTPS" = true; + "network.predictor.enable-prefetch" = false; + "network.http.speculative-parallel-limit" = 0; + # dir lol "browser.download.dir" = "/home/synchronous/downloads"; "browser.download.folderList" = 2; + "browser.cache.memory.enable" = false; + "browser.tabs.unloadOnLowMemory" = true; + "accessibility.force_disabled" = 1; + "gfx.webrender.all" = true; + "gfx.webrender.software" = false; + # https://support.mozilla.org/en-US/questions/1253302 "mousewheel.with_control.action" = 1; diff --git a/home/programs/zsh/zshrc b/home/programs/zsh/zshrc index e7451ca..782caf0 100644 --- a/home/programs/zsh/zshrc +++ b/home/programs/zsh/zshrc @@ -190,6 +190,7 @@ alias gbdc="bluetoothctl disconnect" # alias rebuild="sh /home/synchronous/.scripts/nixos-rebuild.sh" alias cfg="cd /home/synchronous/nix-cfg" alias cfg-main="nvim /home/synchronous/nix-cfg/configuration.nix" +alias firefox-cfg="nvim /home/synchronous/nix-cfg/home/programs/firefox/default.nix" alias zshrc="nvim /home/synchronous/nix-cfg/home/programs/zsh/zshrc" alias sxhkdrc="nvim /home/synchronous/nix-cfg/home/programs/sxhkd/sxhkdrc" alias programs="cd /home/synchronous/nix-cfg/home/programs" @@ -202,6 +203,7 @@ alias nrc="cd /home/synchronous/nix-cfg/home/programs/nvim" alias ndwc="nmcli device wifi connect" alias ndwl="nmcli device wifi list" +alias wt="systemctl restart NetworkManager" stack() { find . -type f -exec echo -e "\n--- {} ---\n" \; -exec cat {} \; diff --git a/system/users/default.nix b/system/users/default.nix index 56a6137..8eb5def 100644 --- a/system/users/default.nix +++ b/system/users/default.nix @@ -15,7 +15,7 @@ in { description = "jake"; extraGroups = ["networkmanager" "wheel" "docker"]; packages = with pkgs; [ - kdePackages.kate + # kdePackages.kate # firefox git arandr