From 1a45bc255532ab93b55c9a1a1c17a62c728b88be Mon Sep 17 00:00:00 2001 From: kpa28 Date: Mon, 7 Oct 2024 23:12:00 -0700 Subject: [PATCH] joshuto->yazi, htop->btop --- .config/.gitignore | 1 + .config/helix/config.toml | 3 ++- .config/helix/languages.toml | 9 +++++++++ .config/julia/startup.jl | 8 +++++--- .config/picom/picom.conf | 8 ++++---- .config/polybar/launch.sh | 8 ++++---- .config/qutebrowser/config.yml | 25 ++++++++++++++++--------- .config/sxhkd/sxhkdrc | 4 ++-- .config/yazi/keymap.toml | 13 +++++++++++++ .config/yazi/yazi.toml | 20 ++++++++++++++++++++ .config/zathura/zathurarc | 2 +- .profile | 6 +++--- .xinitrc | 2 +- README.md | 7 +++---- 14 files changed, 84 insertions(+), 32 deletions(-) create mode 100644 .config/yazi/keymap.toml create mode 100644 .config/yazi/yazi.toml diff --git a/.config/.gitignore b/.config/.gitignore index 8b04b88..d9db58a 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -41,6 +41,7 @@ !/sxhkd/** !/tmux/** !/yay/** +!/yazi/** !/zathura/** !/zsh/** !mimeapps.list diff --git a/.config/helix/config.toml b/.config/helix/config.toml index f335e68..0284c95 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -4,7 +4,8 @@ # /_//_/\__/_/_//_\_\ # Helix text editor runtime config. -theme = "everforest_dark" # gruvbox, gruvbox_dark_hard, pop-dark, everforest_dark, onedark, autumn, bogster, noctis_bordo, rasmus, tokyonight_storm +theme = "pop-dark" # pop-dark, everforest_dark, bogster, onedark, autumn, gruvbox, gruvbox_dark_hard, noctis_bordo, rasmus, tokyonight_storm +# theme = "flatwhite" # flatwhite, everforest_light, bogster_light [keys.normal] "#" = "toggle_comments" diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 7f8ef33..faabd48 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -8,6 +8,15 @@ name = "julia" indent = { tab-width = 4, unit = "\t" } +[language-server.julia] +command = "julia" +timeout = 60 +# args = [ "--project=@LanguageServer", "--startup-file=no", "--history-file=no", "--quiet", "-e", "using LanguageServer; runserver()" ] + +[[language]] +name = "rust" +indent = { tab-width = 4, unit = "\t" } + [[language]] name = "latex" indent = { tab-width = 4, unit = "\t" } diff --git a/.config/julia/startup.jl b/.config/julia/startup.jl index eaeb9ad..72aa920 100644 --- a/.config/julia/startup.jl +++ b/.config/julia/startup.jl @@ -7,8 +7,10 @@ # # symlink $HOME/.julia/config/startup.jl to this file to have it load on startup +# using AbbreviatedStackTraces +using OhMyREPL using Revise -setlogger_debug_all!() = ENV["JULIA_DEBUG"] = "all" # show @debug in all contexts -setlogger_debug_main!() = ENV["JULIA_DEBUG"] = Main # show @debug in Main only -setlogger_debug_clear!() = delete!(ENV, "JULIA_DEBUG") # no @debug shown (default) +logger_debug_all!() = ENV["JULIA_DEBUG"] = "all" # show @debug in all contexts +logger_debug_main!() = ENV["JULIA_DEBUG"] = Main # show @debug in Main only +logger_debug_clear!() = delete!(ENV, "JULIA_DEBUG") # no @debug shown (default) diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index f486d7c..e10c95a 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -6,6 +6,8 @@ # /_/ # compton compositor runtime config. +backend = "xrender"; # glx, egl, xrender, dummy + # Effects shadow = false; fading = true; @@ -13,14 +15,12 @@ fading = true; fade-in-step = 0.1; fade-out-step = 0.1; -# backend = "xrender"; # default -# backend = "glx"; -# backend = "xr_glx_hybrid"; - # vsync = true; # Reduces single monitor tearing # vsync = "opengl-oml"; # Also reduces single monitor tearing # use-damage = false # Fixes flickering window issue that started after version 7.5: https://github.com/yshui/picom/issues/375 +fade-exclude = [ "class_g = 'xsecurelock'" ]; + # Brodies screen tearing options #glx-no-stencil = true; #glx-copy-from-front = false; diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index b628326..8c5afa7 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -11,10 +11,10 @@ if [ -z "$(pgrep -x polybar)" ]; then ACTIVE="$(polybar -m | cut -d':' -f1)"; PRIMARY="$(printf '%s' "$ACTIVE" | sed -n '1p')"; SECONDARY="$(printf '%s' "$ACTIVE" | sed -n '2p')"; - # MONITOR=$PRIMARY polybar --reload top & - # MONITOR=$PRIMARY polybar --reload bottom & - MONITOR=$PRIMARY polybar --reload top 2>$HOME/polybar.top.log & - MONITOR=$PRIMARY polybar --reload bottom 2>$HOME/polybar.bottom.log & + MONITOR=$PRIMARY polybar --reload top & + MONITOR=$PRIMARY polybar --reload bottom & + # MONITOR=$PRIMARY polybar --reload top 2>$HOME/polybar.top.log & + # MONITOR=$PRIMARY polybar --reload bottom 2>$HOME/polybar.bottom.log & # Multi monitor bar mirroring: https://github.com/polybar/polybar/issues/763 # for m in $(polybar --list-monitors | cut -d":" -f1); do diff --git a/.config/qutebrowser/config.yml b/.config/qutebrowser/config.yml index bf69da7..cb4d791 100644 --- a/.config/qutebrowser/config.yml +++ b/.config/qutebrowser/config.yml @@ -107,14 +107,21 @@ url.searchengines: { # 'apk': 'https://pkgs.alpinelinux.org/packages?name={}&branch=edge&arch=armhf', # 'void': 'https://wiki.voidlinux.org/?search={}', - # langs - 'djul': 'https://docs.julialang.org/en/v1/search/?q={}', + # langs - julia + 'jdoc': 'https://docs.julialang.org/en/v1/search/?q={}', + 'jstd': 'https://docs.julialang.org/en/v1/search/?q={}', + 'jdis': 'https://discourse.julialang.org/search?q={}', 'jpkg': 'https://juliapackages.com/packages?search={}', - 'jhub': 'https://juliahub.com/ui/Packages?q={}', - # 'rust': 'https://doc.rust-lang.org/reference/index.html?search={}', + # 'jhub': 'https://juliahub.com/ui/Packages?q={}', + + # langs - rust + 'rdoc': 'https://doc.rust-lang.org/reference/index.html?search={}', + 'rstd': 'https://doc.rust-lang.org/std/?search={}', # 'rbook': 'https://doc.rust-lang.org/book/title-page.html?search={}', - # 'rstd': 'https://doc.rust-lang.org/std/?search={}', - # 'cargo': 'https://crates.io/search?q={}' + 'rbook': 'https://rust-book.cs.brown.edu/?search={}', + 'rpkg': 'https://crates.io/search?q={}', + + # langs - python # 'py3': 'https://docs.python.org/3/search.html?q={}', # 'conda': 'https://anaconda.org/search?q={}', # 'pip': 'https://pypi.org/search/?q={}', @@ -140,11 +147,11 @@ window.hide_decoration: True ## ZOOM # 250% puts most text at about .24" height # Based on tan(.6°) * distance where distance = 24" -zoom.default: '85%' +zoom.default: '150%' ## FONTS -# fonts.default_size: '10px' -# fonts.web.size.default: 16 +fonts.default_size: '30px' +fonts.web.size.default: 28 # fonts.web.size.default_fixed: 13 # CUSTOM diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 9148ea3..db0d0e3 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -88,9 +88,9 @@ super + a super + d $TERMINAL -e transg-tui -# htop (information) +# btop (system monitor) super + i - $TERMINAL -e htop + $TERMINAL -e btop # Toggle nord super + F7 diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml new file mode 100644 index 0000000..4f76856 --- /dev/null +++ b/.config/yazi/keymap.toml @@ -0,0 +1,13 @@ +# _ +# __ _____ ____ (_) +# / // / _ `/_ // / +# \_, /\_,_//__/_/ +# /___/ +# yazi keymap overrides + +[manager] +prepend_keymap = [ + # Misc Integration + { on = [""], run = "shell --block dragon-drop --all $@" }, +] + diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml new file mode 100644 index 0000000..171d826 --- /dev/null +++ b/.config/yazi/yazi.toml @@ -0,0 +1,20 @@ +# _ +# __ _____ ____ (_) +# / // / _ `/_ // / +# \_, /\_,_//__/_/ +# /___/ +# yazi runtime config + +[manager] +sort_dir_first = true +linemode = "size" +show_symlink = true + +[opener] +edit = [ + { run = '$EDITOR "$@"', block = true }, +] +open = [ + { run = 'xdg-open "$@"' }, +] + diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 1a55cd6..7a14890 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -9,7 +9,7 @@ set statusbar-h-padding 0 set statusbar-v-padding 0 set page-padding 1 set selection-clipboard clipboard -set recolor 1 +set recolor 0 set recolor-keephue 1 set font "monospace normal 16" diff --git a/.profile b/.profile index 9864d6b..11e2800 100644 --- a/.profile +++ b/.profile @@ -23,7 +23,7 @@ export DIFFPROG=$VISUAL export PAGER='bat' export BROWSER='qutebrowser' export READER='zathura' -export FILE='joshuto' +export FILE='yazi' export TASK_CLIENT='planify' export EMAIL_CLIENT='tutanota-desktop' export BIB="$HOME/Documents/LaTeX/uni.bib" @@ -45,7 +45,7 @@ export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export PSQLRC="$XDG_CONFIG_HOME/postgres/psqlrc" export ALIASDIR="$XDG_SCRIPT_HOME/aliases" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" -export GOPATH="$XDG_SRC_HOME/go" +# export GOPATH="$XDG_SRC_HOME/go" export PYLINTRC="$XDG_CONFIG_HOME/pylint/pylintrc" export GRIPHOME="$XDG_CONFIG_HOME/grip" export GNUPGHOME="$XDG_DATA_HOME/gnupg" @@ -57,7 +57,7 @@ export PATH="$PATH:$(du "$XDG_SCRIPT_HOME" | cut -f2 | grep -v "$BLACKLIST" | tr export PATH="$JAVA_HOME:$PATH:$GOPATH/bin:$HOME/.julia/conda/3/bin:$XDG_SRC_HOME/webapp/bin" # Global day/night times for theming: -export TIMENIGHT="17:00" +export TIMENIGHT="19:00" export TIMEDAY="08:00" # Set less/man colors: diff --git a/.xinitrc b/.xinitrc index 5a3df6e..c4ad613 100755 --- a/.xinitrc +++ b/.xinitrc @@ -13,7 +13,7 @@ exec "$XDG_CONFIG_HOME/polybar/launch.sh" & picom --config "$XDG_CONFIG_HOME/picom/picom.conf" & # picom for transparency and to reduce tearing dunst & # dunst for notifications xset r rate 300 50 & # Increase xrate, speeds up key input -unclutter & # Remove mouse when idle +xbanish & # Remove mouse cursor on keypress redshift -l "$("$XDG_SCRIPT_HOME/apitools/geoloc" | tr ',' ':')" & setxkbmap -option caps:super -option altwin:menu_win && \ # Map caps to mod, menu button to win, details: /usr/share/X11/xkb/rules/evdev.lst killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' # Mod by itself is now escape, TODO: do the same for right window button diff --git a/README.md b/README.md index cc9b2a4..3fb04ee 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,12 @@ My [arch linux](https://archlinux.org/) / [bspwm](https://github.com/baskerville * text editor: [helix](https://helix-editor.com) * window manager: [bspwm](https://github.com/baskerville/bspwm) * compositor: [picom](https://github.com/yshui/picom) -* terminal: [xst](https://github.com/gnotclub/xst) (a [st](https://st.suckless.org) fork) || [alacritty](https://alacritty.org) (backup) +* terminal: [alacritty](https://alacritty.org) || [xst](https://github.com/gnotclub/xst) (a [st](https://st.suckless.org) fork) * status bar: [polybar](https://polybar.github.io) -* file manager: [joshuto](https://github.com/kamiyaa/joshuto) -* file manager: [lf](https://pkg.go.dev/github.com/gokcehan/lf) && [pistol](https://github.com/doronbehar/pistol) && [dragon](https://github.com/mwh/dragon) +* file manager: [yazi](https://github.com/sxyazi/yazi) * notifications: [dunst](https://dunst-project.org) * launcher: [rofi](https://github.com/davatorium/rofi) -* music: [mpd](https://www.musicpd.org) && [ncmpcpp](https://github.com/ncmpcpp/ncmpcpp) + * video: [mpv](https://mpv.io) * hotkeys: [sxhkd](https://github.com/baskerville/sxhkd) * browser: [qutebrowser](https://qutebrowser.org/)