diff --git a/config/hypr/UserConfigs/Apps.conf b/config/hypr/UserConfigs/Apps.conf index 2cbae18e..b3698e6a 100644 --- a/config/hypr/UserConfigs/Apps.conf +++ b/config/hypr/UserConfigs/Apps.conf @@ -1,7 +1,7 @@ -env = BROWSER, firefox #! -@browser +env = BROWSER, zen-browser #! -@browser env = TERMINAL, kitty #! -@terminal env = EDITOR, nvim #! -@editor env = FILEMANAGER, thunar #! -@filemanager env = XDG_UTILS_TERMINAL, kitty #! -@terminal -env = XDG_UTILS_BROWSER, firefox #! -@browser +env = XDG_UTILS_BROWSER, zen-browser #! -@browser env = XDG_UTILS_FILEMANAGER, thunar #! -@filemanager diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index 39d89463..1ca42838 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -2,7 +2,7 @@ #environment-variables env = CLUTTER_BACKEND,wayland -env = GDK_BACKEND,wayland,x11 +env = GDK_BACKEND,wayland env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_QPA_PLATFORM,wayland;xcb env = QT_QPA_PLATFORMTHEME,qt5ct @@ -22,7 +22,7 @@ env = GTK_THEME,adw-gtk3-dark # firefox env = MOZ_ENABLE_WAYLAND,1 firefox -# electron >28 apps (may help) +# electron env = ELECTRON_ARGS="--enable-features=UseOzonePlatform --ozone-platform=wayland" env = MOZ_DBUS_REMOTE=1 env = ELECTRON_ENABLE_WAYLAND, 1 diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index f3610401..cc44f76f 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -1,4 +1,3 @@ - #Commands & Apps to be executed at launch $scriptsDir = $HOME/.config/hypr/scripts @@ -10,6 +9,8 @@ exec-once = dbus-update-activation-environment --systemd --all exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME + + exec-once = uwsm-app /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = uwsm-app udiskie diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 7d05ba13..0dc19cfe 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -7,21 +7,34 @@ $mainMod = SUPER $scriptsDir = $HOME/dotfiles/hypr/scripts +$terminal = kitty +$filemanager = thunar +$telegram = materialgram +$browser = zen-browser + +# bindi = Super, Super_L, global, caelestia:launcher # Testing bind = Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'terminal' -A "Test1=I got it!" -A "Test2=Another action" bind = Alt, Equal, exec, notify-send 'hmm' ${SLURP_ARGS} +bind = $mainMod, Space, exec, fabric-cli execute modus "launcher.show_launcher()" +bind = Alt, Tab, exec, fabric-cli execute modus "switcher.show_switcher()" # Applications -bind = ALT SHIFT,Return, exec, kitty --title Kitty --single-instance -bind = $mainMod, Return, exec, kitty -bind = ALT, E, exec, thunar -bind = $mainMod, B, exec, firefox -bind = ALT, T, exec, materialgram +bind = ALT SHIFT,Return, exec, $terminal --title Kitty --single-instance +bind = $mainMod, Return, exec, $terminal +bind = ALT, E, exec, $filemanager +bind = $mainMod, B, exec, $browser +bind = ALT, T, exec, $telegram + +bind = $mainMod, S, exec, fabric-cli execute modus "launcher.show_launcher('sc ss', external=True)" # Actions bind = $mainMod, F3, exec, $scriptsDir/kb_changer bind = $mainMod CTRL, L, exec, pidof hyprlock || hyprlock -q bind = $mainMod CTRL, P, exec, systemctl poweroff bind = $mainMod CTRL, R, exec, systemctl reboot +bind = $mainMod, X, exec,grimblast copy active - +# Special workspace +bind = ALT, Q, movetoworkspacesilent, special +bind = ALT SHIFT, Q, togglespecialworkspace, diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index e1d38de7..a72f0448 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -50,7 +50,7 @@ windowrule = tag +multimedia_video, class:^([Mm]pv|vlc)$ windowrule = tag +settings, class:^(gnome-disks|wihotspot(-gui)?)$ windowrule = tag +settings, class:^(file-roller|org.gnome.FileRoller)$ # archive manager windowrule = tag +settings, class:^(nm-applet|nm-connection-editor|blueman-manager)$ -windowrule = tag +settings, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$ +windowrule = tag +settings, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol|nwg-look)$ windowrule = tag +settings, class:^(qt5ct|qt6ct|[Yy]ad)$ windowrule = tag +settings, class:(xdg-desktop-portal-gtk) windowrule = tag +settings, class:^(org.kde.polkit-kde-authentication-agent-1)$ diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index 11726b46..340ff143 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -1,11 +1,5 @@ -listener { - timeout = 500 # in seconds. - on-timeout = notify-send "You are idle!" # command to run when timeout has passed. - on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. -} - general { - lock_cmd = pidof hyprlock || hyprlock -c ~/dotfiles/hypr/hyprlock.conf # avoid starting multiple hyprlock instances. + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. before_sleep_cmd = loginctl lock-session # lock before suspend. after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. } @@ -16,13 +10,6 @@ listener { on-resume = brightnessctl -r # monitor backlight restore. } -# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. -listener { - timeout = 150 # 2.5min. - on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight. - on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight. -} - listener { timeout = 300 # 5min on-timeout = loginctl lock-session # lock screen when timeout has passed diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index f5245ec2..76fa2cf5 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -20,5 +20,9 @@ source= $UserConfigs/UserSettings.conf source = $UserConfigs/UserDecorationAnimations.conf source = $UserConfigs/WorkspaceRules.conf -# Material colors -source = ~/.cache/material/colors-hyprland.conf + +# Modus +source = ~/.config/Modus/config/hypr/modus.conf + + + diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 48abea10..50adaafe 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -1 +1,89 @@ -source = ~/.cache/material/hyprlock.conf +source = ~/.config/Ax-Shell/config/hypr/colors.conf + +# BACKGROUND +background { + monitor = + path = ~/.current.wall #path to background image + blur_passes = 3 + blur_size = 3 + contrast = 1.0 + brightness = 0.5 + vibrancy = 0.0 + vibrancy_darkness = 0.0 +} + +# GENERAL +general { + grace = 0 + hide_cursor = true +} + +# INPUT FIELD +input-field { + monitor = + size = 256, 48 + outline_thickness = 0 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.5 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = rgba(00000000) + inner_color = rgba(0, 0, 0, 1) + font_color = rgb($foreground) + fail_color = rgb($error) + check_color = rgb($tertiary) + capslock_color = rgb($secondary) + fade_on_empty = false + font_family = Iosevka Nerd Font + placeholder_text = ... #text for input password + hide_input = false + position = 0, -100 + halign = center + valign = center + shadow_passes = 1 + shadow_size = 5 + shadow_boost = 0.5 +} + +# TIME +label { + monitor = + text = cmd[update:1000] echo "$(date +"%H:%M:%S")" + color = rgb($foreground) + font_size = 14 + font_family = Iosevka Nerd Font Bold + position = 0, -150 + halign = center + valign = center + shadow_passes = 1 + shadow_size = 5 + shadow_boost = 0.5 +} + +# USER +label { + monitor = + text = cmd[update:1000] echo "$USER@$(hostname)" + color = rgb($foreground) + font_size = 14 + font_family = Iosevka Nerd Font Bold Italic + position = 0, -50 + halign = center + valign = center + shadow_passes = 1 + shadow_size = 5 + shadow_boost = 0.5 +} + +# PICTURE +image { + path = .face.icon + size = 200 + position = 0, 75 + halign = center + valign = center + border_size = 3 + border_color = rgb($primary) + shadow_passes = 1 + shadow_size = 5 + shadow_boost = 0.5 +} diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh index 50327e87..55c2be8e 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -1,13 +1,16 @@ #!/bin/bash - # This is for polkits, it will start from top and will stop if the top is executed # Polkit possible paths files to check polkit=( "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" + "/usr/libexec/hyprpolkitagent" + "/usr/lib/hyprpolkitagent" + "/usr/lib/hyprpolkitagent/hyprpolkitagent" "/usr/lib/polkit-kde-authentication-agent-1" "/usr/lib/polkit-gnome-authentication-agent-1" "/usr/libexec/polkit-gnome-authentication-agent-1" + "/usr/libexec/polkit-mate-authentication-agent-1" "/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1" "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" ) diff --git a/config/hypr/scripts/RunCMD.sh b/config/hypr/scripts/RunCMD.sh deleted file mode 100755 index 70ddbdf3..00000000 --- a/config/hypr/scripts/RunCMD.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -source ~/dotfiles/hypr/scripts/Ui_cmd.sh - -help() { - declare -F -} -if [[ ! -z "$1" ]]; then - $1 "${@:2}" -fi diff --git a/config/kitty/colors.conf b/config/kitty/colors.conf new file mode 100644 index 00000000..158ed4ab --- /dev/null +++ b/config/kitty/colors.conf @@ -0,0 +1,41 @@ +cursor #dfe3e7 +cursor_text_color #c1c7ce + +foreground #dfe3e7 +background #0f1417 +selection_foreground #20333e +selection_background #b6c9d8 +url_color #91cef5 + +# black +color0 #181c1f +color8 #353a3d + +# red +color1 #ffb2b9 +color9 #ffccd0 + +# green +color2 #95d5a7 +color10 #a7dcb6 + +# yellow +color3 #b8cf84 +color11 #c3d696 + +# blue +# color4 #afc6ff +color4 #91cef5 +color12 #c8d8ff + +# magenta +color5 #e4b7f3 +color13 #eccdf7 + +# cyan +color6 #82d3e2 +color14 #97dae7 + +# white +color7 #8b9297 +color15 #dfe3e7 diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index da111c04..b638fa21 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -1,13 +1,25 @@ -include $HOME/.cache/wal/colors-kitty.conf +# ┌──────────────────────────────┐ +# │ │ +# │ ░█░█░▀█▀░▀█▀░▀█▀░█░█ │ +# │ ░█▀▄░░█░░░█░░░█░░░█░ │ +# │ ░▀░▀░▀▀▀░░▀░░░▀░░░▀░ │ +# │ │ +# └──────────────────────────────┘ + +include ./colors.conf + +# background_opacity 0.95 font_family Iosevka Nerd Font -font_size 10.5 +font_size 11 bold_font auto italic_font auto bold_italic_font auto +# modify_font cell_height 90% + remember_window_size no -initial_window_width 950 +initial_window_width 1000 initial_window_height 500 cursor_blink_interval 0.5 cursor_stop_blinking_after 0 @@ -20,6 +32,8 @@ hide_window_decorations yes confirm_os_window_close 0 +cursor_trail 1 + map ctrl+left resize_window narrower map ctrl+right resize_window wider map ctrl+up resize_window taller diff --git a/config/matugen/config.toml b/config/matugen/config.toml index 32fd92a1..290f0366 100644 --- a/config/matugen/config.toml +++ b/config/matugen/config.toml @@ -7,16 +7,16 @@ gtk_theme = true [config.wallpaper] command = "swww" -arguments = [ "img", "-t", "outer", "--transition-duration", "1.5", "--transition-step", "255", "--transition-fps", "60", "-f", "Nearest",] +arguments = [ "img", "-t", "fade", "--transition-duration", "0.5", "--transition-step", "255", "--transition-fps", "60", "-f", "Nearest",] set = true -[templates.ags] -input_path = "~/.config/matugen/templates/ags.scss" -output_path = "~/.config/ags/style/colors.scss" +[templates.pywal] +input_path = "~/.config/matugen/templates/pywal-colors" +output_path = "~/.cache/wal/colors" -[templates.foot] -input_path = "~/.config/matugen/templates/foot.ini" -output_path = "~/.config/foot/colors.ini" +[templates.nvim] +input_path = "~/.config/nvim/pywal/matugen.lua" +output_path = "~/.cache/wal/base46-dark.lua" [templates.gtk3] input_path = "~/.config/matugen/templates/gtk.css" @@ -35,35 +35,27 @@ input_path = "~/.config/matugen/templates/qtct-colors.conf" output_path = "~/.config/qt6ct/colors/matugen.conf" [templates.hyprland] -input_path = "~/Modus/config/matugen/templates/hyprland-colors.conf" -output_path = "~/Modus/config/hypr/colors.conf" +input_path = "~/.config/Modus/config/matugen/templates/hyprland-colors.conf" +output_path = "~/.config/Modus/config/hypr/colors.conf" [templates.kitty] input_path = "~/.config/matugen/templates/kitty-colors.conf" -output_path = "~/dotfiles/kitty/colors.conf" +output_path = "~/.config/kitty/colors.conf" post_hook = "killall -SIGUSR1 kitty &" -[templates.starship] -input_path = "~/.config/matugen/templates/starship-colors.toml" -output_path = "~/.config/starship.toml" -post_hook = "starship init zsh > ~/.zshrc" +# [templates.starship] +# input_path = "~/.config/matugen/templates/starship-colors.toml" +# output_path = "~/.config/starship.toml" +# post_hook = "starship init zsh > ~/.zshrc" [templates.Telegram] input_path = "~/.config/matugen/templates/telegram-colors.tdesktop-theme" output_path = "~/.config/telegram-desktop/themes/material-you.tdesktop-theme" -[templates.spicetify] -input_path = "~/.config/matugen/templates/spotify-colors.ini" -output_path = "~/.config/spicetify/Themes/Comfy/color.ini" - [templates.discord] input_path = "~/.config/matugen/templates/discord.css" output_path = "~/.config/vesktop/themes/quickCss.css" -[templates.vscode] -input_path = "~/.config/matugen/templates/vscode-color-theme.json" -output_path = "~/.vscode/extensions/theme-material-you/themes/vscode.json" - [templates.cava] input_path = "~/.config/matugen/templates/cava" output_path = "~/.config/cava/config" @@ -77,20 +69,30 @@ input_path = "~/.config/matugen/templates/zathurarc" output_path = "~/.config/zathura/colors" [templates.modus] -input_path = "~/Modus/config/matugen/templates/modus.css" -output_path = "~/Modus/styles/colors.css" +input_path = "~/.config/Modus/config/matugen/templates/modus.css" +output_path = "~/.config/Modus/styles/colors.css" post_hook = "fabric-cli exec modus 'app.set_css()' &" -[templates.hyprfabricated] -input_path = "~/Modus/config/matugen/templates/modus.css" -output_path = "~/.config/hyprfabricated/styles/colors.css" -post_hook = "fabric-cli exec hyprfabricated 'app.set_css()' &" - [templates.ax-shell] input_path = "~/.config/Ax-Shell/config/matugen/templates/ax-shell.css" output_path = "~/.config/Ax-Shell/styles/colors.css" post_hook = "fabric-cli exec ax-shell 'app.set_css()' &" +[templates.modusv1] +input_path = "~/Modus/config/matugen/templates/modusv1.css" +output_path = "~/Modus/styles/colors.css" +post_hook = "fabric-cli exec modusv1 'app.set_css()' &" + +[templates.hyprfabricated] +input_path = "~/.config/hyprfabricated/config/matugen/templates/hyprfabricated.css" +output_path = "~/.config/hyprfabricated/styles/colors.css" +post_hook = "fabric-cli exec hyprfabricated 'app.set_css()' &" + +[templates.yz-shell] +input_path = "~/.config/YZ-Shell/config/matugen/templates/yz-shell.css" +output_path = "~/.config/YZ-Shell/styles/colors.css" +post_hook = "fabric-cli exec yz-shell 'app.set_css()' &" + [config.custom_colors.red] color = "#FF0000" blend = true diff --git a/config/matugen/config.toml.bak b/config/matugen/config.toml.bak index 32fd92a1..51cbd2d4 100644 --- a/config/matugen/config.toml.bak +++ b/config/matugen/config.toml.bak @@ -10,14 +10,6 @@ command = "swww" arguments = [ "img", "-t", "outer", "--transition-duration", "1.5", "--transition-step", "255", "--transition-fps", "60", "-f", "Nearest",] set = true -[templates.ags] -input_path = "~/.config/matugen/templates/ags.scss" -output_path = "~/.config/ags/style/colors.scss" - -[templates.foot] -input_path = "~/.config/matugen/templates/foot.ini" -output_path = "~/.config/foot/colors.ini" - [templates.gtk3] input_path = "~/.config/matugen/templates/gtk.css" output_path = "~/.config/gtk-3.0/gtk.css" @@ -35,12 +27,12 @@ input_path = "~/.config/matugen/templates/qtct-colors.conf" output_path = "~/.config/qt6ct/colors/matugen.conf" [templates.hyprland] -input_path = "~/Modus/config/matugen/templates/hyprland-colors.conf" -output_path = "~/Modus/config/hypr/colors.conf" +input_path = "~/.config/Modus/config/matugen/templates/hyprland-colors.conf" +output_path = "~/.config/Modus/config/hypr/colors.conf" [templates.kitty] input_path = "~/.config/matugen/templates/kitty-colors.conf" -output_path = "~/dotfiles/kitty/colors.conf" +output_path = "~/.config/kitty/colors.conf" post_hook = "killall -SIGUSR1 kitty &" [templates.starship] @@ -52,18 +44,10 @@ post_hook = "starship init zsh > ~/.zshrc" input_path = "~/.config/matugen/templates/telegram-colors.tdesktop-theme" output_path = "~/.config/telegram-desktop/themes/material-you.tdesktop-theme" -[templates.spicetify] -input_path = "~/.config/matugen/templates/spotify-colors.ini" -output_path = "~/.config/spicetify/Themes/Comfy/color.ini" - [templates.discord] input_path = "~/.config/matugen/templates/discord.css" output_path = "~/.config/vesktop/themes/quickCss.css" -[templates.vscode] -input_path = "~/.config/matugen/templates/vscode-color-theme.json" -output_path = "~/.vscode/extensions/theme-material-you/themes/vscode.json" - [templates.cava] input_path = "~/.config/matugen/templates/cava" output_path = "~/.config/cava/config" @@ -77,20 +61,30 @@ input_path = "~/.config/matugen/templates/zathurarc" output_path = "~/.config/zathura/colors" [templates.modus] -input_path = "~/Modus/config/matugen/templates/modus.css" -output_path = "~/Modus/styles/colors.css" +input_path = "~/.config/Modus/config/matugen/templates/modus.css" +output_path = "~/.config/Modus/styles/colors.css" post_hook = "fabric-cli exec modus 'app.set_css()' &" -[templates.hyprfabricated] -input_path = "~/Modus/config/matugen/templates/modus.css" -output_path = "~/.config/hyprfabricated/styles/colors.css" -post_hook = "fabric-cli exec hyprfabricated 'app.set_css()' &" - [templates.ax-shell] input_path = "~/.config/Ax-Shell/config/matugen/templates/ax-shell.css" output_path = "~/.config/Ax-Shell/styles/colors.css" post_hook = "fabric-cli exec ax-shell 'app.set_css()' &" +[templates.modusv1] +input_path = "~/Modus/config/matugen/templates/modusv1.css" +output_path = "~/Modus/styles/colors.css" +post_hook = "fabric-cli exec modusv1 'app.set_css()' &" + +[templates.hyprfabricated] +input_path = "~/.config/hyprfabricated/config/matugen/templates/hyprfabricated.css" +output_path = "~/.config/hyprfabricated/styles/colors.css" +post_hook = "fabric-cli exec hyprfabricated 'app.set_css()' &" + +[templates.yz-shell] +input_path = "~/.config/YZ-Shell/config/matugen/templates/yz-shell.css" +output_path = "~/.config/YZ-Shell/styles/colors.css" +post_hook = "fabric-cli exec yz-shell 'app.set_css()' &" + [config.custom_colors.red] color = "#FF0000" blend = true diff --git a/config/matugen/templates/1modus.css b/config/matugen/templates/1modus.css deleted file mode 100644 index b128c783..00000000 --- a/config/matugen/templates/1modus.css +++ /dev/null @@ -1,83 +0,0 @@ - -:vars { - /* Core Colors */ - --primary: {{colors.primary.default.hex}}; - --on-primary: {{colors.on_primary.default.hex}}; - --primary-container: {{colors.primary_container.default.hex}}; - --on-primary-container: {{colors.on_primary_container.default.hex}}; - --secondary: {{colors.secondary.default.hex}}; - --on-secondary: {{colors.on_secondary.default.hex}}; - --secondary-container: {{colors.secondary_container.default.hex}}; - --on-secondary-container: {{colors.on_secondary_container.default.hex}}; - --tertiary: {{colors.tertiary.default.hex}}; - --on-tertiary: {{colors.on_tertiary.default.hex}}; - --tertiary-container: {{colors.tertiary_container.default.hex}}; - --on-tertiary-container: {{colors.on_tertiary_container.default.hex}}; - --error: {{colors.error.default.hex}}; - --on-error: {{colors.on_error.default.hex}}; - --error-container: {{colors.error_container.default.hex}}; - --on-error-container: {{colors.on_error_container.default.hex}}; - --background: {{colors.background.default.hex}}; - --on-background: {{colors.on_background.default.hex}}; - --surface: {{colors.surface.default.hex}}; - --on-surface: {{colors.on_surface.default.hex}}; - - /* Surface Variants */ - --surface-variant: {{colors.surface_variant.default.hex}}; - --on-surface-variant: {{colors.on_surface_variant.default.hex}}; - --surface-dim: {{colors.surface_dim.default.hex}}; - --surface-bright: {{colors.surface_bright.default.hex}}; - --surface-container-lowest: {{colors.surface_container_lowest.default.hex}}; - --surface-container-low: {{colors.surface_container_low.default.hex}}; - --surface-container: {{colors.surface_container.default.hex}}; - --surface-container-high: {{colors.surface_container_high.default.hex}}; - --surface-container-highest: {{colors.surface_container_highest.default.hex}}; - - /* Other Colors */ - --outline: {{colors.outline.default.hex}}; - --outline-variant: {{colors.outline_variant.default.hex}}; - --shadow: {{colors.shadow.default.hex}}; - --scrim: {{colors.scrim.default.hex}}; - --inverse-surface: {{colors.inverse_surface.default.hex}}; - --inverse-on-surface: {{colors.inverse_on_surface.default.hex}}; - --inverse-primary: {{colors.inverse_primary.default.hex}}; - --surface-tint: {{colors.surface_tint.default.hex}}; - - /* Fixed Colors */ - --primary-fixed: {{colors.primary_fixed.default.hex}}; - --primary-fixed-dim: {{colors.primary_fixed_dim.default.hex}}; - --on-primary-fixed: {{colors.on_primary_fixed.default.hex}}; - --on-primary-fixed-variant: {{colors.on_primary_fixed_variant.default.hex}}; - --secondary-fixed: {{colors.secondary_fixed.default.hex}}; - --secondary-fixed-dim: {{colors.secondary_fixed_dim.default.hex}}; - --on-secondary-fixed: {{colors.on_secondary_fixed.default.hex}}; - --on-secondary-fixed-variant: {{colors.on_secondary_fixed_variant.default.hex}}; - --tertiary-fixed: {{colors.tertiary_fixed.default.hex}}; - --tertiary-fixed-dim: {{colors.tertiary_fixed_dim.default.hex}}; - --on-tertiary-fixed: {{colors.on_tertiary_fixed.default.hex}}; - --on-tertiary-fixed-variant: {{colors.on_tertiary_fixed_variant.default.hex}}; - - /* Optional Colors */ - --success: {{colors.primary.default.hex}}; - --on-success: {{colors.on_primary.default.hex}}; - --success-container: {{colors.primary_container.default.hex}}; - --on-success-container: {{colors.on_primary_container.default.hex}}; - - /* Term Colors */ - --term0: var(--primary); - --term1: var(--on-primary); - --term2: var(--primary-container); - --term3: var(--on-primary-container); - --term4: var(--secondary); - --term5: var(--on-secondary); - --term6: var(--secondary-container); - --term7: var(--on-secondary-container); - --term8: var(--tertiary); - --term9: var(--on-tertiary); - --term10: var(--tertiary-container); - --term11: var(--on-tertiary-container); - --term12: var(--surface); - --term13: var(--on-surface); - --term14: var(--surface-variant); - --term15: var(--on-surface-variant); -} diff --git a/config/matugen/templates/ags.scss b/config/matugen/templates/ags.scss deleted file mode 100644 index eb96a6ad..00000000 --- a/config/matugen/templates/ags.scss +++ /dev/null @@ -1,15 +0,0 @@ -@use "sass:color"; -<* for name, value in colors *> -${{name}}: {{value.default.hex}}; -<* endfor *> - - -$theme: 'dark'; -$surface_transparent: color.scale($surface, $alpha: -20%); -$inverse_surface_transparent: color.scale($inverse_surface, $alpha: -92%); -$inverse_surface_transparent_variant: color.scale( - $inverse_surface, - $alpha: -82% -); -$inverse_surface_transparent_overlay: linear-gradient(0deg, $inverse_surface_transparent, $inverse_surface_transparent); -$inverse_surface_transparent_variant_overlay: linear-gradient(0deg, $inverse_surface_transparent_variant, $inverse_surface_transparent_variant); diff --git a/config/matugen/templates/base46.lua b/config/matugen/templates/base46.lua new file mode 100644 index 00000000..2999f52b --- /dev/null +++ b/config/matugen/templates/base46.lua @@ -0,0 +1,81 @@ +local M = {} + +local lighten = require("base46.colors").change_hex_lightness + +M.base_30 = { + white = "{{colors.on_background.default.hex}}", + black = "{{colors.background.default.hex}}", + darker_black = lighten("{{colors.background.default.hex}}", -3), + black2 = lighten("{{colors.background.default.hex}}", 6), + one_bg = lighten("{{colors.background.default.hex}}", 10), + one_bg2 = lighten("{{colors.background.default.hex}}", 16), + one_bg3 = lighten("{{colors.background.default.hex}}", 22), + grey = "{{colors.surface_variant.default.hex}}", + grey_fg = lighten("{{colors.surface_variant.default.hex}}", -10), + grey_fg2 = lighten("{{colors.surface_variant.default.hex}}", -20), + light_grey = "{{colors.outline.default.hex}}", + red = "{{colors.red.default.hex}}", + baby_pink = lighten("{{colors.red.default.hex}}", 10), + pink = "{{colors.tertiary.default.hex}}", -- conservado, no es rojo puro + line = "{{colors.outline.default.hex}}", + green = "{{colors.green.default.hex}}", + vibrant_green = lighten("{{colors.green.default.hex}}", 10), + blue = "{{colors.blue.default.hex}}", + nord_blue = lighten("{{colors.blue.default.hex}}", 10), + yellow = "{{colors.yellow.default.hex}}", + sun = lighten("{{colors.yellow.default.hex}}", 10), + purple = "{{colors.tertiary.default.hex}}", -- conservado + dark_purple = lighten("{{colors.tertiary.default.hex}}", -10), + teal = "{{colors.secondary_container.default.hex}}", + orange = "{{colors.red.default.hex}}", -- sigue dependiendo de error + cyan = "{{colors.cyan.default.hex}}", + statusline_bg = lighten("{{colors.background.default.hex}}", 6), + pmenu_bg = "{{colors.surface_variant.default.hex}}", + folder_bg = lighten("{{colors.primary_fixed_dim.default.hex}}", 0), + lightbg = lighten("{{colors.background.default.hex}}", 10), +} + +M.base_16 = { + base00 = "{{colors.surface.default.hex}}", + base01 = lighten("{{colors.surface_variant.default.hex}}", 0), + base02 = lighten("{{colors.surface_variant.default.hex}}", 3), + base03 = lighten("{{colors.outline.default.hex}}", 0), + base04 = lighten("{{colors.on_surface_variant.default.hex}}", 0), + base05 = "{{colors.on_surface.default.hex}}", + base06 = lighten("{{colors.on_surface.default.hex}}", 0), + base07 = "{{colors.surface.default.hex}}", + base08 = "{{colors.red.default.hex}}", + base09 = "{{colors.yellow.default.hex}}", + base0A = "{{colors.blue.default.hex}}", + base0B = "{{colors.green.default.hex}}", + base0C = "{{colors.cyan.default.hex}}", + base0D = lighten("{{colors.blue.default.hex}}", 20), + base0E = "{{colors.tertiary.default.hex}}", + base0F = "{{colors.inverse_surface.default.hex}}", +} + +M.type = "dark" + +M.polish_hl = { + defaults = { + Comment = { + italic = true, + fg = M.base_16.base03, + }, + }, + Syntax = { + String = { + fg = "{{colors.tertiary.default.hex}}", + }, + }, + treesitter = { + ["@comment"] = { + fg = M.base_16.base03, + }, + ["@string"] = { + fg = "{{colors.tertiary.default.hex}}", + }, + }, +} + +return M diff --git a/config/matugen/templates/kitty-colors.conf b/config/matugen/templates/kitty-colors.conf index cf25255d..b62c1f7c 100644 --- a/config/matugen/templates/kitty-colors.conf +++ b/config/matugen/templates/kitty-colors.conf @@ -2,7 +2,40 @@ cursor {{colors.on_surface.default.hex}} cursor_text_color {{colors.on_surface_variant.default.hex}} foreground {{colors.on_surface.default.hex}} -background {{colors.surface.default.hex}} +background {{colors.background.default.hex | set_lightness: 0.0}} selection_foreground {{colors.on_secondary.default.hex}} selection_background {{colors.secondary_fixed_dim.default.hex}} url_color {{colors.primary.default.hex}} + +# black +color0 {{colors.surface_container_low.default.hex}} +color8 {{colors.surface_bright.default.hex}} + +# red +color1 {{colors.red.default.hex}} +color9 {{colors.red.default.hex | set_lightness: 5.0}} + +# green +color2 {{colors.green.default.hex}} +color10 {{colors.green.default.hex | set_lightness: 5.0}} + +# yellow +color3 {{colors.yellow.default.hex}} +color11 {{colors.yellow.default.hex | set_lightness: 5.0}} + +# blue +# color4 {{colors.blue.default.hex}} +color4 {{colors.primary.default.hex}} +color12 {{colors.blue.default.hex | set_lightness: 5.0}} + +# magenta +color5 {{colors.magenta.default.hex}} +color13 {{colors.magenta.default.hex | set_lightness: 5.0}} + +# cyan +color6 {{colors.cyan.default.hex}} +color14 {{colors.cyan.default.hex | set_lightness: 5.0}} + +# white +color7 {{colors.outline.default.hex}} +color15 {{colors.on_surface.default.hex}} diff --git a/config/matugen/templates/pywal-colors b/config/matugen/templates/pywal-colors new file mode 100644 index 00000000..4777dff2 --- /dev/null +++ b/config/matugen/templates/pywal-colors @@ -0,0 +1,16 @@ +{{colors.background.default.hex | set_lightness: 0.0}} +{{colors.surface_variant.default.hex}} +{{colors.red.default.hex}} +{{colors.red.default.hex | set_lightness: 5.0}} +{{colors.green.default.hex}} +{{colors.green.default.hex | set_lightness: 5.0}} +{{colors.yellow.default.hex}} +{{colors.yellow.default.hex | set_lightness: 5.0}} +{{colors.primary.default.hex}} +{{colors.blue.default.hex | set_lightness: 5.0}} +{{colors.magenta.default.hex}} +{{colors.magenta.default.hex | set_lightness: 5.0}} +{{colors.cyan.default.hex}} +{{colors.cyan.default.hex | set_lightness: 5.0}} +{{colors.on_surface.default.hex}} +{{colors.on_surface.default.hex}} diff --git a/config/tmux/theme.conf b/config/tmux/theme.conf new file mode 100644 index 00000000..7c649170 --- /dev/null +++ b/config/tmux/theme.conf @@ -0,0 +1,32 @@ +set -g status-interval 1 +set -g status-left-length 100 + +set -g status-left "#{?pane_in_mode,#[bold fg=black]#[bg=yellow]  COPY #[fg=yellow bg=white],#{?window_zoomed_flag,#[bold fg=black]#[bg=cyan]  ZOOM #[fg=cyan bg=white],#{?client_prefix,#[bold fg=black]#[bg=red]  CMND #[fg=red bg=white],#[bold fg=black]#[bg=brightwhite]  TMUX #[fg=brightwhite bg=white]}}}" + +set -ag status-left "#[fg=white bg=brightblack]" + +# Agregar el nombre de la sesión +set -ag status-left "#[fg=brightwhite bg=brightblack]  #S " +set -ag status-left "#[fg=brightblack bg=black]" + +set -ag status-left "#[fg=white]  #{pane_current_command} · #{}" + +set -g status-right "#[fg=brightwhite] #(basename $SHELL) " +# CPU +set -ag status-right "#[fg=red]#[fg=black bg=red] #[fg=brightwhite bg=brightblack] #{cpu_percentage} " +# RAM +set -ag status-right "#[fg=green]#[fg=black bg=green]󰍛 #[fg=brightwhite bg=brightblack] #{ram} " +# TIME +set -ag status-right "#[fg=blue]#[fg=black bg=blue]󰥔 #[fg=blue bg=brightblack] %H:%M #{}" + +set -g status-bg black +set -g status-fg white + +set -g pane-active-border-style "fg=blue" +set -g pane-border-style "fg=black" + +# Ventanas inactivas +set -g window-status-format "#[fg=grey] #[default]#{b:pane_current_path}" + +# Ventana activa +set -g window-status-current-format "#[fg=brightwhite] #[bold]#{b:pane_current_path}" diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 34fe5410..9d5ec12b 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -1,3 +1,11 @@ +# ┌──────────────────────────┐ +# │ │ +# │ ░▀█▀░█▄█░█░█░█░█ │ +# │ ░░█░░█░█░█░█░▄▀▄ │ +# │ ░░▀░░▀░▀░▀▀▀░▀░▀ │ +# │ │ +# └──────────────────────────┘ + # Set default shell set-option -g default-shell $SHELL @@ -26,44 +34,9 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'tmux-plugins/tmux-yank' - -# # Status bar -# set -g @plugin 'Axenide/TmuxAxgruv' -# -# set -g @gruvbox "ax" -# -# set -g @gruvbox_window_right_separator "█" -# set -g @gruvbox_window_left_separator "█" -# # set -g @gruvbox_window_number_position "right" -# set -g @gruvbox_window_middle_separator "█ " -# -# # set -g @gruvbox_window_default_fill "none" -# -# # set -g @gruvbox_window_current_fill "all" -# -# set -g @gruvbox_status_modules "application user session" -# -# set -g @gruvbox_status_left_separator "" -# set -g @gruvbox_status_right_separator "█" -# -# set -g @gruvbox_date_time_text "%Y-%m-%d %H:%M:%S" - -# Theme: borders -set -g pane-border-lines single -set -g pane-border-style fg=brightblack -set -g pane-active-border-style fg=red - -# Theme: status -set -g status-style bg=default,fg=brightblack -set -g status-left "#[fg=brightblack,bright]#(basename \"#{pane_current_path}\")" -set -g status-right "#[fg=brightblack,bright]#S" - -# Theme: status (windows) -set -g window-status-format "●" -set -g window-status-current-format "●" -set -g window-status-current-style "#{?window_zoomed_flag,fg=yellow,fg=red,nobold}" -set -g window-status-bell-style "fg=red,nobold" -set -g status-justify absolute-centre +set -g @plugin 'tmux-plugins/tmux-cpu' +set -g @plugin 'pwittchen/tmux-plugin-ram' +source-file ~/.config/tmux/theme.conf # Set vi-mode set-window-option -g mode-keys vi diff --git a/config/yazi/keymap.toml b/config/yazi/keymap.toml new file mode 100644 index 00000000..a8b066f1 --- /dev/null +++ b/config/yazi/keymap.toml @@ -0,0 +1,309 @@ +# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. +# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. +"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" + +[mgr] + +keymap = [ + { on = [ "" ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, + { on = [ "" ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, + { on = [ "q" ], run = "quit", desc = "Exit the process" }, + { on = [ "Q" ], run = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" }, + { on = [ "" ], run = "close", desc = "Close the current tab, or quit if it is last tab" }, + { on = [ "" ], run = "suspend", desc = "Suspend the process" }, + + # Navigation + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "K" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "J" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -50%", desc = "Move cursor up half page" }, + { on = [ "" ], run = "arrow 50%", desc = "Move cursor down half page" }, + { on = [ "" ], run = "arrow -100%", desc = "Move cursor up one page" }, + { on = [ "" ], run = "arrow 100%", desc = "Move cursor down one page" }, + + { on = [ "" ], run = "arrow -50%", desc = "Move cursor up half page" }, + { on = [ "" ], run = "arrow 50%", desc = "Move cursor down half page" }, + { on = [ "" ], run = "arrow -100%", desc = "Move cursor up one page" }, + { on = [ "" ], run = "arrow 100%", desc = "Move cursor down one page" }, + + { on = [ "h" ], run = "leave", desc = "Go back to the parent directory" }, + { on = [ "l" ], run = "enter", desc = "Enter the child directory" }, + + { on = [ "H" ], run = "back", desc = "Go back to the previous directory" }, + { on = [ "L" ], run = "forward", desc = "Go forward to the next directory" }, + + { on = [ "" ], run = "seek -5", desc = "Seek up 5 units in the preview" }, + { on = [ "" ], run = "seek 5", desc = "Seek down 5 units in the preview" }, + { on = [ "" ], run = "seek -5", desc = "Seek up 5 units in the preview" }, + { on = [ "" ], run = "seek 5", desc = "Seek down 5 units in the preview" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + { on = [ "" ], run = "leave", desc = "Go back to the parent directory" }, + { on = [ "" ], run = "enter", desc = "Enter the child directory" }, + + { on = [ "g", "g" ], run = "arrow top", desc = "Move cursor to the top" }, + { on = [ "G" ], run = "arrow bot", desc = "Move cursor to the bottom" }, + + # Selection + { on = [ "" ], run = [ "select --state=none", "arrow 1" ], desc = "Toggle the current selection state" }, + { on = [ "v" ], run = "visual_mode", desc = "Enter visual mode (selection mode)" }, + { on = [ "V" ], run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" }, + { on = [ "" ], run = "select_all --state=true", desc = "Select all files" }, + { on = [ "" ], run = "select_all --state=none", desc = "Inverse selection of all files" }, + + # Operation + { on = [ "o" ], run = "open", desc = "Open the selected files" }, + { on = [ "O" ], run = "open --interactive", desc = "Open the selected files interactively" }, + { on = [ "" ], run = "open", desc = "Open the selected files" }, + { on = [ "" ], run = "open --interactive", desc = "Open the selected files interactively" }, + { on = [ "y" ], run = "yank", desc = "Copy the selected files" }, + { on = [ "Y" ], run = "unyank", desc = "Cancel the yank status of files" }, + { on = [ "x" ], run = "yank --cut", desc = "Cut the selected files" }, + { on = [ "X" ], run = "unyank", desc = "Cancel the yank status of files" }, + { on = [ "p" ], run = "paste", desc = "Paste the files" }, + { on = [ "P" ], run = "paste --force", desc = "Paste the files (overwrite if the destination exists)" }, + { on = [ "-" ], run = "link", desc = "Symlink the absolute path of files" }, + { on = [ "_" ], run = "link --relative", desc = "Symlink the relative path of files" }, + { on = [ "d" ], run = "remove", desc = "Move the files to the trash" }, + { on = [ "D" ], run = "remove --permanently", desc = "Permanently delete the files" }, + { on = [ "a" ], run = "create", desc = "Create a file or directory (ends with / for directories)" }, + { on = [ "r" ], run = "rename --cursor=before_ext", desc = "Rename a file or directory" }, + { on = [ ";" ], run = "shell --interactive", desc = "Run a shell command" }, + { on = [ ":" ], run = "shell --block --interactive", desc = "Run a shell command (block the UI until the command finishes)" }, + { on = [ "." ], run = "hidden toggle", desc = "Toggle the visibility of hidden files" }, + { on = [ "s" ], run = "search fd", desc = "Search files by name using fd" }, + { on = [ "S" ], run = "search rg", desc = "Search files by content using ripgrep" }, + { on = [ "" ], run = "search none", desc = "Cancel the ongoing search" }, + { on = [ "z" ], run = "jump zoxide", desc = "Jump to a directory using zoxide" }, + { on = [ "Z" ], run = "jump fzf", desc = "Jump to a directory, or reveal a file using fzf" }, + + # Linemode + { on = [ "m", "s" ], run = "linemode size", desc = "Set linemode to size" }, + { on = [ "m", "p" ], run = "linemode permissions", desc = "Set linemode to permissions" }, + { on = [ "m", "m" ], run = "linemode mtime", desc = "Set linemode to mtime" }, + { on = [ "m", "n" ], run = "linemode none", desc = "Set linemode to none" }, + + # Copy + { on = [ "c", "c" ], run = "copy path", desc = "Copy the absolute path" }, + { on = [ "c", "d" ], run = "copy dirname", desc = "Copy the path of the parent directory" }, + { on = [ "c", "f" ], run = "copy filename", desc = "Copy the name of the file" }, + { on = [ "c", "n" ], run = "copy name_without_ext", desc = "Copy the name of the file without the extension" }, + + # Filter + { on = [ "f" ], run = "filter --smart", desc = "Filter the files" }, + + # Find + { on = [ "/" ], run = "find --smart", desc = "Find next file" }, + { on = [ "?" ], run = "find --previous --smart", desc = "Find previous file" }, + { on = [ "n" ], run = "find_arrow", desc = "Go to next found file" }, + { on = [ "N" ], run = "find_arrow --previous", desc = "Go to previous found file" }, + + # Sorting + { on = [ ",", "m" ], run = "sort modified --dir-first", desc = "Sort by modified time" }, + { on = [ ",", "M" ], run = "sort modified --reverse --dir-first", desc = "Sort by modified time (reverse)" }, + { on = [ ",", "c" ], run = "sort created --dir-first", desc = "Sort by created time" }, + { on = [ ",", "C" ], run = "sort created --reverse --dir-first", desc = "Sort by created time (reverse)" }, + { on = [ ",", "e" ], run = "sort extension --dir-first", desc = "Sort by extension" }, + { on = [ ",", "E" ], run = "sort extension --reverse --dir-first", desc = "Sort by extension (reverse)" }, + { on = [ ",", "a" ], run = "sort alphabetical --dir-first", desc = "Sort alphabetically" }, + { on = [ ",", "A" ], run = "sort alphabetical --reverse --dir-first", desc = "Sort alphabetically (reverse)" }, + { on = [ ",", "n" ], run = "sort natural --dir-first", desc = "Sort naturally" }, + { on = [ ",", "N" ], run = "sort natural --reverse --dir-first", desc = "Sort naturally (reverse)" }, + { on = [ ",", "s" ], run = "sort size --dir-first", desc = "Sort by size" }, + { on = [ ",", "S" ], run = "sort size --reverse --dir-first", desc = "Sort by size (reverse)" }, + + # Tabs + { on = [ "t" ], run = "tab_create --current", desc = "Create a new tab using the current path" }, + + { on = [ "1" ], run = "tab_switch 0", desc = "Switch to the first tab" }, + { on = [ "2" ], run = "tab_switch 1", desc = "Switch to the second tab" }, + { on = [ "3" ], run = "tab_switch 2", desc = "Switch to the third tab" }, + { on = [ "4" ], run = "tab_switch 3", desc = "Switch to the fourth tab" }, + { on = [ "5" ], run = "tab_switch 4", desc = "Switch to the fifth tab" }, + { on = [ "6" ], run = "tab_switch 5", desc = "Switch to the sixth tab" }, + { on = [ "7" ], run = "tab_switch 6", desc = "Switch to the seventh tab" }, + { on = [ "8" ], run = "tab_switch 7", desc = "Switch to the eighth tab" }, + { on = [ "9" ], run = "tab_switch 8", desc = "Switch to the ninth tab" }, + + { on = [ "[" ], run = "tab_switch -1 --relative", desc = "Switch to the previous tab" }, + { on = [ "]" ], run = "tab_switch 1 --relative", desc = "Switch to the next tab" }, + + { on = [ "{" ], run = "tab_swap -1", desc = "Swap the current tab with the previous tab" }, + { on = [ "}" ], run = "tab_swap 1", desc = "Swap the current tab with the next tab" }, + + # Tasks + { on = [ "w" ], run = "tasks_show", desc = "Show the tasks manager" }, + + # Goto + { on = [ "g", "h" ], run = "cd ~", desc = "Go to the home directory" }, + { on = [ "g", "c" ], run = "cd ~/.config", desc = "Go to the config directory" }, + { on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Go to the downloads directory" }, + { on = [ "g", "t" ], run = "cd /tmp", desc = "Go to the temporary directory" }, + { on = [ "g", "" ], run = "cd --interactive", desc = "Go to a directory interactively" }, + + # Help + { on = [ "~" ], run = "help", desc = "Open help" }, +] + +[tasks] + +keymap = [ + { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "w" ], run = "close", desc = "Hide the task manager" }, + + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "inspect", desc = "Inspect the task" }, + { on = [ "x" ], run = "cancel", desc = "Cancel the task" }, + + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[select] + +keymap = [ + { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close --submit", desc = "Submit the selection" }, + + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "K" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "J" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[input] + +keymap = [ + { on = [ "" ], run = "close", desc = "Cancel input" }, + { on = [ "" ], run = "close --submit", desc = "Submit the input" }, + { on = [ "" ], run = "escape", desc = "Go back the normal mode, or cancel input" }, + { on = [ "" ], run = "escape", desc = "Go back the normal mode, or cancel input" }, + + # Mode + { on = [ "i" ], run = "insert", desc = "Enter insert mode" }, + { on = [ "a" ], run = "insert --append", desc = "Enter append mode" }, + { on = [ "I" ], run = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" }, + { on = [ "A" ], run = [ "move 999", "insert --append" ], desc = "Move to the EOL, and enter append mode" }, + { on = [ "v" ], run = "visual", desc = "Enter visual mode" }, + { on = [ "V" ], run = [ "move -999", "visual", "move 999" ], desc = "Enter visual mode and select all" }, + + # Character-wise movement + { on = [ "h" ], run = "move -1", desc = "Move back a character" }, + { on = [ "l" ], run = "move 1", desc = "Move forward a character" }, + { on = [ "" ], run = "move -1", desc = "Move back a character" }, + { on = [ "" ], run = "move 1", desc = "Move forward a character" }, + { on = [ "" ], run = "move -1", desc = "Move back a character" }, + { on = [ "" ], run = "move 1", desc = "Move forward a character" }, + + # Word-wise movement + { on = [ "b" ], run = "backward", desc = "Move back to the start of the current or previous word" }, + { on = [ "w" ], run = "forward", desc = "Move forward to the start of the next word" }, + { on = [ "e" ], run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, + { on = [ "" ], run = "backward", desc = "Move back to the start of the current or previous word" }, + { on = [ "" ], run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, + + # Line-wise movement + { on = [ "0" ], run = "move -999", desc = "Move to the BOL" }, + { on = [ "$" ], run = "move 999", desc = "Move to the EOL" }, + { on = [ "" ], run = "move -999", desc = "Move to the BOL" }, + { on = [ "" ], run = "move 999", desc = "Move to the EOL" }, + { on = [ "" ], run = "move -999", desc = "Move to the BOL" }, + { on = [ "" ], run = "move 999", desc = "Move to the EOL" }, + + # Delete + { on = [ "" ], run = "backspace", desc = "Delete the character before the cursor" }, + { on = [ "" ], run = "backspace --under", desc = "Delete the character under the cursor" }, + { on = [ "" ], run = "backspace", desc = "Delete the character before the cursor" }, + { on = [ "" ], run = "backspace --under", desc = "Delete the character under the cursor" }, + + # Kill + { on = [ "" ], run = "kill bol", desc = "Kill backwards to the BOL" }, + { on = [ "" ], run = "kill eol", desc = "Kill forwards to the EOL" }, + { on = [ "" ], run = "kill backward", desc = "Kill backwards to the start of the current word" }, + { on = [ "" ], run = "kill forward", desc = "Kill forwards to the end of the current word" }, + + # Cut/Yank/Paste + { on = [ "d" ], run = "delete --cut", desc = "Cut the selected characters" }, + { on = [ "D" ], run = [ "delete --cut", "move 999" ], desc = "Cut until the EOL" }, + { on = [ "c" ], run = "delete --cut --insert", desc = "Cut the selected characters, and enter insert mode" }, + { on = [ "C" ], run = [ "delete --cut --insert", "move 999" ], desc = "Cut until the EOL, and enter insert mode" }, + { on = [ "x" ], run = [ "delete --cut", "move 1 --in-operating" ], desc = "Cut the current character" }, + { on = [ "y" ], run = "yank", desc = "Copy the selected characters" }, + { on = [ "p" ], run = "paste", desc = "Paste the copied characters after the cursor" }, + { on = [ "P" ], run = "paste --before", desc = "Paste the copied characters before the cursor" }, + + # Undo/Redo + { on = [ "u" ], run = "undo", desc = "Undo the last operation" }, + { on = [ "" ], run = "redo", desc = "Redo the last operation" }, + + # Help + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[completion] + +keymap = [ + { on = [ "" ], run = "close", desc = "Cancel completion" }, + { on = [ "" ], run = "close --submit", desc = "Submit the completion" }, + { on = [ "" ], run = [ "close --submit", "close_input --submit" ], desc = "Submit the completion and input" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[help] + +keymap = [ + { on = [ "" ], run = "escape", desc = "Clear the filter, or hide the help" }, + { on = [ "" ], run = "escape", desc = "Clear the filter, or hide the help" }, + { on = [ "q" ], run = "close", desc = "Exit the process" }, + { on = [ "" ], run = "close", desc = "Hide the help" }, + + # Navigation + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "K" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "J" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + # Filtering + { on = [ "/" ], run = "filter", desc = "Apply a filter for the help items" }, +] diff --git a/config/yazi/keymap.toml-1750351002871381 b/config/yazi/keymap.toml-1750351002871381 new file mode 100644 index 00000000..d637a491 --- /dev/null +++ b/config/yazi/keymap.toml-1750351002871381 @@ -0,0 +1,309 @@ +# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. +# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. +"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" + +[manager] + +keymap = [ + { on = [ "" ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, + { on = [ "" ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, + { on = [ "q" ], run = "quit", desc = "Exit the process" }, + { on = [ "Q" ], run = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" }, + { on = [ "" ], run = "close", desc = "Close the current tab, or quit if it is last tab" }, + { on = [ "" ], run = "suspend", desc = "Suspend the process" }, + + # Navigation + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "K" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "J" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -50%", desc = "Move cursor up half page" }, + { on = [ "" ], run = "arrow 50%", desc = "Move cursor down half page" }, + { on = [ "" ], run = "arrow -100%", desc = "Move cursor up one page" }, + { on = [ "" ], run = "arrow 100%", desc = "Move cursor down one page" }, + + { on = [ "" ], run = "arrow -50%", desc = "Move cursor up half page" }, + { on = [ "" ], run = "arrow 50%", desc = "Move cursor down half page" }, + { on = [ "" ], run = "arrow -100%", desc = "Move cursor up one page" }, + { on = [ "" ], run = "arrow 100%", desc = "Move cursor down one page" }, + + { on = [ "h" ], run = "leave", desc = "Go back to the parent directory" }, + { on = [ "l" ], run = "enter", desc = "Enter the child directory" }, + + { on = [ "H" ], run = "back", desc = "Go back to the previous directory" }, + { on = [ "L" ], run = "forward", desc = "Go forward to the next directory" }, + + { on = [ "" ], run = "seek -5", desc = "Seek up 5 units in the preview" }, + { on = [ "" ], run = "seek 5", desc = "Seek down 5 units in the preview" }, + { on = [ "" ], run = "seek -5", desc = "Seek up 5 units in the preview" }, + { on = [ "" ], run = "seek 5", desc = "Seek down 5 units in the preview" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + { on = [ "" ], run = "leave", desc = "Go back to the parent directory" }, + { on = [ "" ], run = "enter", desc = "Enter the child directory" }, + + { on = [ "g", "g" ], run = "arrow top", desc = "Move cursor to the top" }, + { on = [ "G" ], run = "arrow bot", desc = "Move cursor to the bottom" }, + + # Selection + { on = [ "" ], run = [ "select --state=none", "arrow 1" ], desc = "Toggle the current selection state" }, + { on = [ "v" ], run = "visual_mode", desc = "Enter visual mode (selection mode)" }, + { on = [ "V" ], run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" }, + { on = [ "" ], run = "select_all --state=true", desc = "Select all files" }, + { on = [ "" ], run = "select_all --state=none", desc = "Inverse selection of all files" }, + + # Operation + { on = [ "o" ], run = "open", desc = "Open the selected files" }, + { on = [ "O" ], run = "open --interactive", desc = "Open the selected files interactively" }, + { on = [ "" ], run = "open", desc = "Open the selected files" }, + { on = [ "" ], run = "open --interactive", desc = "Open the selected files interactively" }, + { on = [ "y" ], run = "yank", desc = "Copy the selected files" }, + { on = [ "Y" ], run = "unyank", desc = "Cancel the yank status of files" }, + { on = [ "x" ], run = "yank --cut", desc = "Cut the selected files" }, + { on = [ "X" ], run = "unyank", desc = "Cancel the yank status of files" }, + { on = [ "p" ], run = "paste", desc = "Paste the files" }, + { on = [ "P" ], run = "paste --force", desc = "Paste the files (overwrite if the destination exists)" }, + { on = [ "-" ], run = "link", desc = "Symlink the absolute path of files" }, + { on = [ "_" ], run = "link --relative", desc = "Symlink the relative path of files" }, + { on = [ "d" ], run = "remove", desc = "Move the files to the trash" }, + { on = [ "D" ], run = "remove --permanently", desc = "Permanently delete the files" }, + { on = [ "a" ], run = "create", desc = "Create a file or directory (ends with / for directories)" }, + { on = [ "r" ], run = "rename --cursor=before_ext", desc = "Rename a file or directory" }, + { on = [ ";" ], run = "shell --interactive", desc = "Run a shell command" }, + { on = [ ":" ], run = "shell --block --interactive", desc = "Run a shell command (block the UI until the command finishes)" }, + { on = [ "." ], run = "hidden toggle", desc = "Toggle the visibility of hidden files" }, + { on = [ "s" ], run = "search fd", desc = "Search files by name using fd" }, + { on = [ "S" ], run = "search rg", desc = "Search files by content using ripgrep" }, + { on = [ "" ], run = "search none", desc = "Cancel the ongoing search" }, + { on = [ "z" ], run = "jump zoxide", desc = "Jump to a directory using zoxide" }, + { on = [ "Z" ], run = "jump fzf", desc = "Jump to a directory, or reveal a file using fzf" }, + + # Linemode + { on = [ "m", "s" ], run = "linemode size", desc = "Set linemode to size" }, + { on = [ "m", "p" ], run = "linemode permissions", desc = "Set linemode to permissions" }, + { on = [ "m", "m" ], run = "linemode mtime", desc = "Set linemode to mtime" }, + { on = [ "m", "n" ], run = "linemode none", desc = "Set linemode to none" }, + + # Copy + { on = [ "c", "c" ], run = "copy path", desc = "Copy the absolute path" }, + { on = [ "c", "d" ], run = "copy dirname", desc = "Copy the path of the parent directory" }, + { on = [ "c", "f" ], run = "copy filename", desc = "Copy the name of the file" }, + { on = [ "c", "n" ], run = "copy name_without_ext", desc = "Copy the name of the file without the extension" }, + + # Filter + { on = [ "f" ], run = "filter --smart", desc = "Filter the files" }, + + # Find + { on = [ "/" ], run = "find --smart", desc = "Find next file" }, + { on = [ "?" ], run = "find --previous --smart", desc = "Find previous file" }, + { on = [ "n" ], run = "find_arrow", desc = "Go to next found file" }, + { on = [ "N" ], run = "find_arrow --previous", desc = "Go to previous found file" }, + + # Sorting + { on = [ ",", "m" ], run = "sort modified --dir-first", desc = "Sort by modified time" }, + { on = [ ",", "M" ], run = "sort modified --reverse --dir-first", desc = "Sort by modified time (reverse)" }, + { on = [ ",", "c" ], run = "sort created --dir-first", desc = "Sort by created time" }, + { on = [ ",", "C" ], run = "sort created --reverse --dir-first", desc = "Sort by created time (reverse)" }, + { on = [ ",", "e" ], run = "sort extension --dir-first", desc = "Sort by extension" }, + { on = [ ",", "E" ], run = "sort extension --reverse --dir-first", desc = "Sort by extension (reverse)" }, + { on = [ ",", "a" ], run = "sort alphabetical --dir-first", desc = "Sort alphabetically" }, + { on = [ ",", "A" ], run = "sort alphabetical --reverse --dir-first", desc = "Sort alphabetically (reverse)" }, + { on = [ ",", "n" ], run = "sort natural --dir-first", desc = "Sort naturally" }, + { on = [ ",", "N" ], run = "sort natural --reverse --dir-first", desc = "Sort naturally (reverse)" }, + { on = [ ",", "s" ], run = "sort size --dir-first", desc = "Sort by size" }, + { on = [ ",", "S" ], run = "sort size --reverse --dir-first", desc = "Sort by size (reverse)" }, + + # Tabs + { on = [ "t" ], run = "tab_create --current", desc = "Create a new tab using the current path" }, + + { on = [ "1" ], run = "tab_switch 0", desc = "Switch to the first tab" }, + { on = [ "2" ], run = "tab_switch 1", desc = "Switch to the second tab" }, + { on = [ "3" ], run = "tab_switch 2", desc = "Switch to the third tab" }, + { on = [ "4" ], run = "tab_switch 3", desc = "Switch to the fourth tab" }, + { on = [ "5" ], run = "tab_switch 4", desc = "Switch to the fifth tab" }, + { on = [ "6" ], run = "tab_switch 5", desc = "Switch to the sixth tab" }, + { on = [ "7" ], run = "tab_switch 6", desc = "Switch to the seventh tab" }, + { on = [ "8" ], run = "tab_switch 7", desc = "Switch to the eighth tab" }, + { on = [ "9" ], run = "tab_switch 8", desc = "Switch to the ninth tab" }, + + { on = [ "[" ], run = "tab_switch -1 --relative", desc = "Switch to the previous tab" }, + { on = [ "]" ], run = "tab_switch 1 --relative", desc = "Switch to the next tab" }, + + { on = [ "{" ], run = "tab_swap -1", desc = "Swap the current tab with the previous tab" }, + { on = [ "}" ], run = "tab_swap 1", desc = "Swap the current tab with the next tab" }, + + # Tasks + { on = [ "w" ], run = "tasks_show", desc = "Show the tasks manager" }, + + # Goto + { on = [ "g", "h" ], run = "cd ~", desc = "Go to the home directory" }, + { on = [ "g", "c" ], run = "cd ~/.config", desc = "Go to the config directory" }, + { on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Go to the downloads directory" }, + { on = [ "g", "t" ], run = "cd /tmp", desc = "Go to the temporary directory" }, + { on = [ "g", "" ], run = "cd --interactive", desc = "Go to a directory interactively" }, + + # Help + { on = [ "~" ], run = "help", desc = "Open help" }, +] + +[tasks] + +keymap = [ + { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "w" ], run = "close", desc = "Hide the task manager" }, + + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "inspect", desc = "Inspect the task" }, + { on = [ "x" ], run = "cancel", desc = "Cancel the task" }, + + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[select] + +keymap = [ + { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close --submit", desc = "Submit the selection" }, + + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "K" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "J" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[input] + +keymap = [ + { on = [ "" ], run = "close", desc = "Cancel input" }, + { on = [ "" ], run = "close --submit", desc = "Submit the input" }, + { on = [ "" ], run = "escape", desc = "Go back the normal mode, or cancel input" }, + { on = [ "" ], run = "escape", desc = "Go back the normal mode, or cancel input" }, + + # Mode + { on = [ "i" ], run = "insert", desc = "Enter insert mode" }, + { on = [ "a" ], run = "insert --append", desc = "Enter append mode" }, + { on = [ "I" ], run = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" }, + { on = [ "A" ], run = [ "move 999", "insert --append" ], desc = "Move to the EOL, and enter append mode" }, + { on = [ "v" ], run = "visual", desc = "Enter visual mode" }, + { on = [ "V" ], run = [ "move -999", "visual", "move 999" ], desc = "Enter visual mode and select all" }, + + # Character-wise movement + { on = [ "h" ], run = "move -1", desc = "Move back a character" }, + { on = [ "l" ], run = "move 1", desc = "Move forward a character" }, + { on = [ "" ], run = "move -1", desc = "Move back a character" }, + { on = [ "" ], run = "move 1", desc = "Move forward a character" }, + { on = [ "" ], run = "move -1", desc = "Move back a character" }, + { on = [ "" ], run = "move 1", desc = "Move forward a character" }, + + # Word-wise movement + { on = [ "b" ], run = "backward", desc = "Move back to the start of the current or previous word" }, + { on = [ "w" ], run = "forward", desc = "Move forward to the start of the next word" }, + { on = [ "e" ], run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, + { on = [ "" ], run = "backward", desc = "Move back to the start of the current or previous word" }, + { on = [ "" ], run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, + + # Line-wise movement + { on = [ "0" ], run = "move -999", desc = "Move to the BOL" }, + { on = [ "$" ], run = "move 999", desc = "Move to the EOL" }, + { on = [ "" ], run = "move -999", desc = "Move to the BOL" }, + { on = [ "" ], run = "move 999", desc = "Move to the EOL" }, + { on = [ "" ], run = "move -999", desc = "Move to the BOL" }, + { on = [ "" ], run = "move 999", desc = "Move to the EOL" }, + + # Delete + { on = [ "" ], run = "backspace", desc = "Delete the character before the cursor" }, + { on = [ "" ], run = "backspace --under", desc = "Delete the character under the cursor" }, + { on = [ "" ], run = "backspace", desc = "Delete the character before the cursor" }, + { on = [ "" ], run = "backspace --under", desc = "Delete the character under the cursor" }, + + # Kill + { on = [ "" ], run = "kill bol", desc = "Kill backwards to the BOL" }, + { on = [ "" ], run = "kill eol", desc = "Kill forwards to the EOL" }, + { on = [ "" ], run = "kill backward", desc = "Kill backwards to the start of the current word" }, + { on = [ "" ], run = "kill forward", desc = "Kill forwards to the end of the current word" }, + + # Cut/Yank/Paste + { on = [ "d" ], run = "delete --cut", desc = "Cut the selected characters" }, + { on = [ "D" ], run = [ "delete --cut", "move 999" ], desc = "Cut until the EOL" }, + { on = [ "c" ], run = "delete --cut --insert", desc = "Cut the selected characters, and enter insert mode" }, + { on = [ "C" ], run = [ "delete --cut --insert", "move 999" ], desc = "Cut until the EOL, and enter insert mode" }, + { on = [ "x" ], run = [ "delete --cut", "move 1 --in-operating" ], desc = "Cut the current character" }, + { on = [ "y" ], run = "yank", desc = "Copy the selected characters" }, + { on = [ "p" ], run = "paste", desc = "Paste the copied characters after the cursor" }, + { on = [ "P" ], run = "paste --before", desc = "Paste the copied characters before the cursor" }, + + # Undo/Redo + { on = [ "u" ], run = "undo", desc = "Undo the last operation" }, + { on = [ "" ], run = "redo", desc = "Redo the last operation" }, + + # Help + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[completion] + +keymap = [ + { on = [ "" ], run = "close", desc = "Cancel completion" }, + { on = [ "" ], run = "close --submit", desc = "Submit the completion" }, + { on = [ "" ], run = [ "close --submit", "close_input --submit" ], desc = "Submit the completion and input" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "~" ], run = "help", desc = "Open help" } +] + +[help] + +keymap = [ + { on = [ "" ], run = "escape", desc = "Clear the filter, or hide the help" }, + { on = [ "" ], run = "escape", desc = "Clear the filter, or hide the help" }, + { on = [ "q" ], run = "close", desc = "Exit the process" }, + { on = [ "" ], run = "close", desc = "Hide the help" }, + + # Navigation + { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "j" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "K" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "J" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + { on = [ "" ], run = "arrow -1", desc = "Move cursor up" }, + { on = [ "" ], run = "arrow 1", desc = "Move cursor down" }, + + { on = [ "" ], run = "arrow -5", desc = "Move cursor up 5 lines" }, + { on = [ "" ], run = "arrow 5", desc = "Move cursor down 5 lines" }, + + # Filtering + { on = [ "/" ], run = "filter", desc = "Apply a filter for the help items" }, +] diff --git a/config/yazi/theme.toml-1750351002893514 b/config/yazi/theme.toml-1750351002893514 new file mode 100644 index 00000000..840601a6 --- /dev/null +++ b/config/yazi/theme.toml-1750351002893514 @@ -0,0 +1,46 @@ +[manager] +cwd = { fg = "#cdc2db", bold=true} + +hovered = { fg = "#ebdcff", bg = "#503c74" } +preview_hovered = { underline = true, bold=true } + + +[status] +separator_open = "" +separator_close = "" +separator_style = { fg = "#ebdcff", bg = "#503c74" } + +# Mode +mode_normal = { fg = "#39255c", bg = "#d4bbfc", bold = true } +mode_select = { fg = "#342d40", bg = "#cdc2db", bold = true } +mode_unset = { fg = "#4a252f", bg = "#f1b7c4", bold = true } + +[which] +mask = { bg = "#211f24" } +cand = { fg = "#d4bbfc" } +desc = { fg = "#cdc2db" } +separator = "  " +separator_style = { fg = "#f1b7c4" } + +[filetype] +rules = [ + # Images + { mime = "image/*", fg = "#cdc2db" }, + + # Videos + { mime = "video/*", fg = "#f1b7c4" }, + { mime = "audio/*", fg = "#f1b7c4" }, + + # Archives + { mime = "application/zip", fg = "#ffb4ab" }, + { mime = "application/gzip", fg = "#ffb4ab" }, + { mime = "application/x-tar", fg = "#ffb4ab" }, + { mime = "application/x-bzip", fg = "#ffb4ab" }, + { mime = "application/x-bzip2", fg = "#ffb4ab" }, + { mime = "application/x-7z-compressed", fg = "#ffb4ab" }, + { mime = "application/x-rar", fg = "#ffb4ab" }, + + # Fallback + { name = "*", fg = "#d4bbfc", bold=true }, + { name = "*/", fg = "#cdc2db", bold=true } +] diff --git a/config/yazi/theme.toml-1750868204236165 b/config/yazi/theme.toml-1750868204236165 new file mode 100644 index 00000000..982d8e02 --- /dev/null +++ b/config/yazi/theme.toml-1750868204236165 @@ -0,0 +1,46 @@ +[manager] +cwd = { fg = "#c8c3dc", bold=true} + +hovered = { fg = "#e4dfff", bg = "#454078" } +preview_hovered = { underline = true, bold=true } + + +[status] +separator_open = "" +separator_close = "" +separator_style = { fg = "#e4dfff", bg = "#454078" } + +# Mode +mode_normal = { fg = "#2e295f", bg = "#c6c0ff", bold = true } +mode_select = { fg = "#302e41", bg = "#c8c3dc", bold = true } +mode_unset = { fg = "#482537", bg = "#ebb8cf", bold = true } + +[which] +mask = { bg = "#201f25" } +cand = { fg = "#c6c0ff" } +desc = { fg = "#c8c3dc" } +separator = "  " +separator_style = { fg = "#ebb8cf" } + +[filetype] +rules = [ + # Images + { mime = "image/*", fg = "#c8c3dc" }, + + # Videos + { mime = "video/*", fg = "#ebb8cf" }, + { mime = "audio/*", fg = "#ebb8cf" }, + + # Archives + { mime = "application/zip", fg = "#ffb4ab" }, + { mime = "application/gzip", fg = "#ffb4ab" }, + { mime = "application/x-tar", fg = "#ffb4ab" }, + { mime = "application/x-bzip", fg = "#ffb4ab" }, + { mime = "application/x-bzip2", fg = "#ffb4ab" }, + { mime = "application/x-7z-compressed", fg = "#ffb4ab" }, + { mime = "application/x-rar", fg = "#ffb4ab" }, + + # Fallback + { name = "*", fg = "#c6c0ff", bold=true }, + { name = "*/", fg = "#c8c3dc", bold=true } +] diff --git a/config/yazi/theme.toml-1751663034128956 b/config/yazi/theme.toml-1751663034128956 new file mode 100644 index 00000000..ecab93ac --- /dev/null +++ b/config/yazi/theme.toml-1751663034128956 @@ -0,0 +1,46 @@ +[manager] +cwd = { fg = "#e7bdb6", bold=true} + +hovered = { fg = "#ffdad4", bg = "#73342a" } +preview_hovered = { underline = true, bold=true } + + +[status] +separator_open = "" +separator_close = "" +separator_style = { fg = "#ffdad4", bg = "#73342a" } + +# Mode +mode_normal = { fg = "#561e16", bg = "#ffb4a8", bold = true } +mode_select = { fg = "#442925", bg = "#e7bdb6", bold = true } +mode_unset = { fg = "#3e2e04", bg = "#dec48c", bold = true } + +[which] +mask = { bg = "#271d1c" } +cand = { fg = "#ffb4a8" } +desc = { fg = "#e7bdb6" } +separator = "  " +separator_style = { fg = "#dec48c" } + +[filetype] +rules = [ + # Images + { mime = "image/*", fg = "#e7bdb6" }, + + # Videos + { mime = "video/*", fg = "#dec48c" }, + { mime = "audio/*", fg = "#dec48c" }, + + # Archives + { mime = "application/zip", fg = "#ffb4ab" }, + { mime = "application/gzip", fg = "#ffb4ab" }, + { mime = "application/x-tar", fg = "#ffb4ab" }, + { mime = "application/x-bzip", fg = "#ffb4ab" }, + { mime = "application/x-bzip2", fg = "#ffb4ab" }, + { mime = "application/x-7z-compressed", fg = "#ffb4ab" }, + { mime = "application/x-rar", fg = "#ffb4ab" }, + + # Fallback + { name = "*", fg = "#ffb4a8", bold=true }, + { name = "*/", fg = "#e7bdb6", bold=true } +] diff --git a/config/yazi/theme.toml-1752017993615616 b/config/yazi/theme.toml-1752017993615616 new file mode 100644 index 00000000..36b643dc --- /dev/null +++ b/config/yazi/theme.toml-1752017993615616 @@ -0,0 +1,46 @@ +[manager] +cwd = { fg = "#e6bdbd", bold=true} + +hovered = { fg = "#ffdada", bg = "#723338" } +preview_hovered = { underline = true, bold=true } + + +[status] +separator_open = "" +separator_close = "" +separator_style = { fg = "#ffdada", bg = "#723338" } + +# Mode +mode_normal = { fg = "#561d23", bg = "#ffb3b5", bold = true } +mode_select = { fg = "#44292a", bg = "#e6bdbd", bold = true } +mode_unset = { fg = "#432c06", bg = "#e6c08d", bold = true } + +[which] +mask = { bg = "#271d1d" } +cand = { fg = "#ffb3b5" } +desc = { fg = "#e6bdbd" } +separator = "  " +separator_style = { fg = "#e6c08d" } + +[filetype] +rules = [ + # Images + { mime = "image/*", fg = "#e6bdbd" }, + + # Videos + { mime = "video/*", fg = "#e6c08d" }, + { mime = "audio/*", fg = "#e6c08d" }, + + # Archives + { mime = "application/zip", fg = "#ffb4ab" }, + { mime = "application/gzip", fg = "#ffb4ab" }, + { mime = "application/x-tar", fg = "#ffb4ab" }, + { mime = "application/x-bzip", fg = "#ffb4ab" }, + { mime = "application/x-bzip2", fg = "#ffb4ab" }, + { mime = "application/x-7z-compressed", fg = "#ffb4ab" }, + { mime = "application/x-rar", fg = "#ffb4ab" }, + + # Fallback + { name = "*", fg = "#ffb3b5", bold=true }, + { name = "*/", fg = "#e6bdbd", bold=true } +] diff --git a/config/yazi/yazi.toml b/config/yazi/yazi.toml new file mode 100644 index 00000000..ba2cc740 --- /dev/null +++ b/config/yazi/yazi.toml @@ -0,0 +1,195 @@ +# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. +# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. +"$schema" = "https://yazi-rs.github.io/schemas/yazi.json" + +[mgr] +ratio = [ 1, 2, 3 ] +sort_by = "natural" +sort_sensitive = false +sort_reverse = false +sort_dir_first = true +linemode = "none" +show_hidden = false +show_symlink = true +scrolloff = 5 + +[preview] +tab_size = 2 +max_width = 960 +# max_height = 900 +cache_dir = "" +image_filter = "triangle" +image_quality = 75 +sixel_fraction = 15 +ueberzug_scale = 1 +ueberzug_offset = [ 0, 0, 0, 0 ] + +[opener] +edit = [ + { run = '${EDITOR:=nvim} "$@"', desc = "$EDITOR", block = true, for = "unix" }, + { run = 'code "%*"', orphan = true, desc = "code", for = "windows" }, + { run = 'code -w "%*"', block = true, desc = "code (block)", for = "windows" }, +] +open = [ + { run = 'xdg-open "$@"', desc = "Open", for = "linux" }, + { run = 'open "$@"', desc = "Open", for = "macos" }, + { run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" }, +] +reveal = [ + { run = 'open -R "$1"', desc = "Reveal", for = "macos" }, + { run = 'explorer /select, "%1"', orphan = true, desc = "Reveal", for = "windows" }, + { run = '''exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" }, +] +extract = [ + { run = 'unar "$1"', desc = "Extract here", for = "unix" }, + { run = 'unar "%1"', desc = "Extract here", for = "windows" }, +] +play = [ + { run = 'mpv "$@" --player-operation-mode=pseudo-gui', orphan = true, for = "unix" }, + { run = 'mpv "%1" --player-operation-mode=pseudo-gui', orphan = true, for = "windows" }, + { run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" }, +] + +[open] +rules = [ + { name = "*/", use = [ "edit", "open", "reveal" ] }, + + { mime = "text/*", use = [ "edit", "reveal" ] }, + { mime = "image/*", use = [ "open", "reveal" ] }, + { mime = "video/*", use = [ "play", "reveal" ] }, + { mime = "audio/*", use = [ "play", "reveal" ] }, + { mime = "inode/x-empty", use = [ "edit", "reveal" ] }, + + { mime = "application/json", use = [ "edit", "reveal" ] }, + { mime = "*/javascript", use = [ "edit", "reveal" ] }, + + { mime = "application/zip", use = [ "extract", "reveal" ] }, + { mime = "application/gzip", use = [ "extract", "reveal" ] }, + { mime = "application/x-tar", use = [ "extract", "reveal" ] }, + { mime = "application/x-bzip", use = [ "extract", "reveal" ] }, + { mime = "application/x-bzip2", use = [ "extract", "reveal" ] }, + { mime = "application/x-7z-compressed", use = [ "extract", "reveal" ] }, + { mime = "application/x-rar", use = [ "extract", "reveal" ] }, + { mime = "application/xz", use = [ "extract", "reveal" ] }, + + { mime = "*", use = [ "open", "reveal" ] }, +] + +[tasks] +micro_workers = 10 +macro_workers = 25 +bizarre_retry = 5 +image_alloc = 536870912 # 512MB +image_bound = [ 0, 0 ] +suppress_preload = false + +[plugin] + +preloaders = [ + # Image + { mime = "image/vnd.djvu", run = "noop" }, + { mime = "image/*", run = "image" }, + # Video + { mime = "video/*", run = "video" }, + # PDF + { mime = "application/pdf", run = "pdf" }, +] +previewers = [ + { name = "*/", run = "folder", sync = true }, + # Code + { mime = "text/*", run = "code" }, + { mime = "*/xml", run = "code" }, + { mime = "*/javascript", run = "code" }, + { mime = "*/x-wine-extension-ini", run = "code" }, + # JSON + { mime = "application/json", run = "json" }, + # Image + { mime = "image/vnd.djvu", run = "noop" }, + { mime = "image/*", run = "image" }, + # Video + { mime = "video/*", run = "video" }, + # PDF + { mime = "application/pdf", run = "pdf" }, + # Archive + { mime = "application/zip", run = "archive" }, + { mime = "application/gzip", run = "archive" }, + { mime = "application/x-tar", run = "archive" }, + { mime = "application/x-bzip", run = "archive" }, + { mime = "application/x-bzip2", run = "archive" }, + { mime = "application/x-7z-compressed", run = "archive" }, + { mime = "application/x-rar", run = "archive" }, + { mime = "application/xz", run = "archive" }, + # Fallback + { name = "*", run = "file" }, +] + +[input] +# cd +cd_title = "Change directory:" +cd_origin = "top-center" +cd_offset = [ 0, 2, 50, 3 ] + +# create +create_title = ["Create", ":"] +create_origin = "top-center" +create_offset = [ 0, 2, 50, 3 ] + +# rename +rename_title = "Rename:" +rename_origin = "hovered" +rename_offset = [ 0, 1, 50, 3 ] + +# trash +trash_title = "Move {n} selected file{s} to trash? (y/N)" +trash_origin = "top-center" +trash_offset = [ 0, 2, 50, 3 ] + +# delete +delete_title = "Delete {n} selected file{s} permanently? (y/N)" +delete_origin = "top-center" +delete_offset = [ 0, 2, 50, 3 ] + +# filter +filter_title = "Filter:" +filter_origin = "top-center" +filter_offset = [ 0, 2, 50, 3 ] + +# find +find_title = [ "Find next:", "Find previous:" ] +find_origin = "top-center" +find_offset = [ 0, 2, 50, 3 ] + +# search +search_title = "Search via {n}:" +search_origin = "top-center" +search_offset = [ 0, 2, 50, 3 ] + +# shell +shell_title = [ "Shell:", "Shell (block):" ] +shell_origin = "top-center" +shell_offset = [ 0, 2, 50, 3 ] + +# overwrite +overwrite_title = "Overwrite an existing file? (y/N)" +overwrite_origin = "top-center" +overwrite_offset = [ 0, 2, 50, 3 ] + +# quit +quit_title = "{n} task{s} running, sure to quit? (y/N)" +quit_origin = "top-center" +quit_offset = [ 0, 2, 50, 3 ] + +[select] +open_title = "Open with:" +open_origin = "hovered" +open_offset = [ 0, 1, 50, 7 ] + +[which] +sort_by = "none" +sort_sensitive = false +sort_reverse = false + +[log] +enabled = false + +[headsup] diff --git a/config/yazi/yazi.toml-1750351002853868 b/config/yazi/yazi.toml-1750351002853868 new file mode 100644 index 00000000..7355e560 --- /dev/null +++ b/config/yazi/yazi.toml-1750351002853868 @@ -0,0 +1,195 @@ +# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. +# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. +"$schema" = "https://yazi-rs.github.io/schemas/yazi.json" + +[manager] +ratio = [ 1, 2, 3 ] +sort_by = "natural" +sort_sensitive = false +sort_reverse = false +sort_dir_first = true +linemode = "none" +show_hidden = false +show_symlink = true +scrolloff = 5 + +[preview] +tab_size = 2 +max_width = 960 +# max_height = 900 +cache_dir = "" +image_filter = "triangle" +image_quality = 75 +sixel_fraction = 15 +ueberzug_scale = 1 +ueberzug_offset = [ 0, 0, 0, 0 ] + +[opener] +edit = [ + { run = '${EDITOR:=nvim} "$@"', desc = "$EDITOR", block = true, for = "unix" }, + { run = 'code "%*"', orphan = true, desc = "code", for = "windows" }, + { run = 'code -w "%*"', block = true, desc = "code (block)", for = "windows" }, +] +open = [ + { run = 'xdg-open "$@"', desc = "Open", for = "linux" }, + { run = 'open "$@"', desc = "Open", for = "macos" }, + { run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" }, +] +reveal = [ + { run = 'open -R "$1"', desc = "Reveal", for = "macos" }, + { run = 'explorer /select, "%1"', orphan = true, desc = "Reveal", for = "windows" }, + { run = '''exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" }, +] +extract = [ + { run = 'unar "$1"', desc = "Extract here", for = "unix" }, + { run = 'unar "%1"', desc = "Extract here", for = "windows" }, +] +play = [ + { run = 'mpv "$@" --player-operation-mode=pseudo-gui', orphan = true, for = "unix" }, + { run = 'mpv "%1" --player-operation-mode=pseudo-gui', orphan = true, for = "windows" }, + { run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" }, +] + +[open] +rules = [ + { name = "*/", use = [ "edit", "open", "reveal" ] }, + + { mime = "text/*", use = [ "edit", "reveal" ] }, + { mime = "image/*", use = [ "open", "reveal" ] }, + { mime = "video/*", use = [ "play", "reveal" ] }, + { mime = "audio/*", use = [ "play", "reveal" ] }, + { mime = "inode/x-empty", use = [ "edit", "reveal" ] }, + + { mime = "application/json", use = [ "edit", "reveal" ] }, + { mime = "*/javascript", use = [ "edit", "reveal" ] }, + + { mime = "application/zip", use = [ "extract", "reveal" ] }, + { mime = "application/gzip", use = [ "extract", "reveal" ] }, + { mime = "application/x-tar", use = [ "extract", "reveal" ] }, + { mime = "application/x-bzip", use = [ "extract", "reveal" ] }, + { mime = "application/x-bzip2", use = [ "extract", "reveal" ] }, + { mime = "application/x-7z-compressed", use = [ "extract", "reveal" ] }, + { mime = "application/x-rar", use = [ "extract", "reveal" ] }, + { mime = "application/xz", use = [ "extract", "reveal" ] }, + + { mime = "*", use = [ "open", "reveal" ] }, +] + +[tasks] +micro_workers = 10 +macro_workers = 25 +bizarre_retry = 5 +image_alloc = 536870912 # 512MB +image_bound = [ 0, 0 ] +suppress_preload = false + +[plugin] + +preloaders = [ + # Image + { mime = "image/vnd.djvu", run = "noop" }, + { mime = "image/*", run = "image" }, + # Video + { mime = "video/*", run = "video" }, + # PDF + { mime = "application/pdf", run = "pdf" }, +] +previewers = [ + { name = "*/", run = "folder", sync = true }, + # Code + { mime = "text/*", run = "code" }, + { mime = "*/xml", run = "code" }, + { mime = "*/javascript", run = "code" }, + { mime = "*/x-wine-extension-ini", run = "code" }, + # JSON + { mime = "application/json", run = "json" }, + # Image + { mime = "image/vnd.djvu", run = "noop" }, + { mime = "image/*", run = "image" }, + # Video + { mime = "video/*", run = "video" }, + # PDF + { mime = "application/pdf", run = "pdf" }, + # Archive + { mime = "application/zip", run = "archive" }, + { mime = "application/gzip", run = "archive" }, + { mime = "application/x-tar", run = "archive" }, + { mime = "application/x-bzip", run = "archive" }, + { mime = "application/x-bzip2", run = "archive" }, + { mime = "application/x-7z-compressed", run = "archive" }, + { mime = "application/x-rar", run = "archive" }, + { mime = "application/xz", run = "archive" }, + # Fallback + { name = "*", run = "file" }, +] + +[input] +# cd +cd_title = "Change directory:" +cd_origin = "top-center" +cd_offset = [ 0, 2, 50, 3 ] + +# create +create_title = ["Create", ":"] +create_origin = "top-center" +create_offset = [ 0, 2, 50, 3 ] + +# rename +rename_title = "Rename:" +rename_origin = "hovered" +rename_offset = [ 0, 1, 50, 3 ] + +# trash +trash_title = "Move {n} selected file{s} to trash? (y/N)" +trash_origin = "top-center" +trash_offset = [ 0, 2, 50, 3 ] + +# delete +delete_title = "Delete {n} selected file{s} permanently? (y/N)" +delete_origin = "top-center" +delete_offset = [ 0, 2, 50, 3 ] + +# filter +filter_title = "Filter:" +filter_origin = "top-center" +filter_offset = [ 0, 2, 50, 3 ] + +# find +find_title = [ "Find next:", "Find previous:" ] +find_origin = "top-center" +find_offset = [ 0, 2, 50, 3 ] + +# search +search_title = "Search via {n}:" +search_origin = "top-center" +search_offset = [ 0, 2, 50, 3 ] + +# shell +shell_title = [ "Shell:", "Shell (block):" ] +shell_origin = "top-center" +shell_offset = [ 0, 2, 50, 3 ] + +# overwrite +overwrite_title = "Overwrite an existing file? (y/N)" +overwrite_origin = "top-center" +overwrite_offset = [ 0, 2, 50, 3 ] + +# quit +quit_title = "{n} task{s} running, sure to quit? (y/N)" +quit_origin = "top-center" +quit_offset = [ 0, 2, 50, 3 ] + +[select] +open_title = "Open with:" +open_origin = "hovered" +open_offset = [ 0, 1, 50, 7 ] + +[which] +sort_by = "none" +sort_sensitive = false +sort_reverse = false + +[log] +enabled = false + +[headsup] diff --git a/package b/package index b4aa4339..b9c58090 100644 --- a/package +++ b/package @@ -52,5 +52,6 @@ yazi zen-browser-bin firefox python-pipx +starsihp