aboutsummaryrefslogtreecommitdiffstats
path: root/config/yazi/plugins/yatline.yazi
diff options
context:
space:
mode:
authorDonald Williams <129223418+dwilliam62@users.noreply.github.com>2026-06-07 00:14:17 -0400
committerGitHub <noreply@github.com>2026-06-07 00:14:17 -0400
commit060b0c207ef327de6e1266841518fc3d2170dc96 (patch)
tree976f61d800122480d0fdfa3263d678dfa8a2d75f /config/yazi/plugins/yatline.yazi
parent5afca9c5fde66953a78d3548ec5ce74209c9b4b4 (diff)
Development to main -- massive update (#73)
* Added a check if awww cache has been cleared already Looks for ~/.cache/awww/.cache_cleared otherwise runs `awww clear-cache` On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/WallpaperCmd.sh * Fixed syntax errors On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/scripts/WallpaperCmd.sh * Fixed swww vs awww handling made WallpaperDaemon executable On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/UserScripts/WallpaperRandom.sh modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/scripts/WallpaperDaemon.sh * Fixed build-awww script On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: build-awww.sh * Fixed distro detection bug * Moved build-awww.sh to * WallpaperCmd.sh wasn't executable * build-awww wasn't added On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: scripts/build-awww.sh * Add ghostty/wezterm to terminal window WindowRules On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules-config-v3.conf modified: config/hypr/configs/WindowRules.conf * Crtical fix to restore polkit function This and addtional packages are needed to allow polit to elevate permission for GUI apps More updates likely but making sure these fixes are included On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit.sh * Fixing polkit startup for NixOS On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-NixOS.sh * resolving Polkit startup caused issue with arch On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit.sh * Added hyprpolkitagent override to archlinux installer On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: config/systemd/user/hyprpolkitagent.service.d/override.conf modified: copy.sh * Updated Window Rules for xfce polkit diaglog window On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserConfigs/WindowRules.conf modified: config/hypr/configs/WindowRules-config-v3.conf modified: config/hypr/configs/WindowRules.conf * xfce4-polkit not in debian repo adding mate-polkit as alternative On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules.conf modified: config/hypr/scripts/Polkit.sh * Added Window Rule for kwallet manager * Fixing calculator window rule * fix kitty font style mix-up of bold and regular (#38) * Updated CHANGELOG, kitty font fix * Added rofi-ssh-menu SUPER+S to pull .ssh/config entries On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/Keybinds.conf new file: config/hypr/scripts/rofi-ssh-menu.sh * Fixed duplicate keybind On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: Keybinds.conf * Added script to disable cpu turbo and set power settings CPU turbo will often spin up the fan, leave it high the slowly drop the fan speed. Very noisy. 11th/12th gen notorious for this Should be added to User Startup as needed On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: config/hypr/scripts/disable.cpu.turbo.sh * Updated dev branch version to v2.3.23 * Really updated the version this time * Trying to scale waybar * Updating waybar sizing to support waybar 14+ font-size: 99% is no longer supported On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/waybar/style/0-VERTICAL-Catpuccin-Mocha.css modified: config/waybar/style/0-VERTICAL-Golden-Noir.css modified: config/waybar/style/0-VERTICAL-Oglo-Chicklets.css modified: config/waybar/style/Black-&-White-Monochrome.css modified: config/waybar/style/Catppuccin-Frappe.css modified: config/waybar/style/Catppuccin-Latte.css modified: config/waybar/style/Catppuccin-Mocha.css modified: config/waybar/style/Colored-Chroma-Glow.css modified: config/waybar/style/Colored-Translucent.css modified: config/waybar/style/Colorful-Aurora-Blossom.css modified: config/waybar/style/Colorful-Aurora.css modified: config/waybar/style/Colorful-Oglo-Chicklets.css modified: config/waybar/style/Colorful-Rainbow-Spectrum.css modified: config/waybar/style/Colorful-stolen-style.css modified: config/waybar/style/Crystal-Clear-Glass.css modified: config/waybar/style/Dark-Golden-Eclipse.css modified: config/waybar/style/Dark-Golden-Noir.css modified: config/waybar/style/Dark-Half-Moon.css modified: config/waybar/style/Dark-Latte-Wallust-combined-v2.css modified: config/waybar/style/Dark-Latte-Wallust-combined.css modified: config/waybar/style/Dark-Purpl.css modified: config/waybar/style/Dark-Wallust-Obsidian-Edge.css modified: config/waybar/style/Extra-Arrow.css modified: config/waybar/style/Extra-Crimson.css modified: config/waybar/style/Extra-EverForest.css modified: config/waybar/style/Extra-ML4W-starter.css modified: config/waybar/style/Extra-Mauve.css modified: config/waybar/style/Extra-Modern-Combined-Transparent.css modified: config/waybar/style/Extra-Modern-Combined.css modified: config/waybar/style/Extra-Neon-Circuit.css modified: config/waybar/style/Extra-Prismatic-Glow.css modified: config/waybar/style/Extra-Rose-Pine.css modified: config/waybar/style/Extra-Simple-Pink.css modified: config/waybar/style/Light-Monochrome-Contrast.css modified: config/waybar/style/Light-Obsidian-Glow.css modified: config/waybar/style/ML4W-Glass-3d.css modified: config/waybar/style/ML4W-Glass.css modified: config/waybar/style/Rainbow-RGB-Bordered.css modified: config/waybar/style/Retro-Simple-Style.css modified: config/waybar/style/Transparent-Crystal-Clear.css modified: config/waybar/style/VERTICAL-Catpuccin-Mocha.css modified: config/waybar/style/Wallust-Bordered-Chroma-Fusion-Edge.css modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css modified: config/waybar/style/Wallust-Box-type.css modified: config/waybar/style/Wallust-Chroma-Edge.css modified: config/waybar/style/Wallust-Chroma-Fusion.css modified: config/waybar/style/Wallust-Chroma-Tally-V2.css modified: config/waybar/style/Wallust-Chroma-Tally.css modified: config/waybar/style/Wallust-Colored.css modified: config/waybar/style/Wallust-ML4W-modern-mixed.css modified: config/waybar/style/Wallust-ML4W-modern.css modified: config/waybar/style/Wallust-Simple.css modified: config/waybar/style/Wallust-Transparent-Crystal-Clear.css * Updated waybar style sheets to use `font-size: 14px` vs. `font-size: 99%` (#43) * Trying to scale waybar * Updating waybar sizing to support waybar 14+ font-size: 99% is no longer supported On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/waybar/style/0-VERTICAL-Catpuccin-Mocha.css modified: config/waybar/style/0-VERTICAL-Golden-Noir.css modified: config/waybar/style/0-VERTICAL-Oglo-Chicklets.css modified: config/waybar/style/Black-&-White-Monochrome.css modified: config/waybar/style/Catppuccin-Frappe.css modified: config/waybar/style/Catppuccin-Latte.css modified: config/waybar/style/Catppuccin-Mocha.css modified: config/waybar/style/Colored-Chroma-Glow.css modified: config/waybar/style/Colored-Translucent.css modified: config/waybar/style/Colorful-Aurora-Blossom.css modified: config/waybar/style/Colorful-Aurora.css modified: config/waybar/style/Colorful-Oglo-Chicklets.css modified: config/waybar/style/Colorful-Rainbow-Spectrum.css modified: config/waybar/style/Colorful-stolen-style.css modified: config/waybar/style/Crystal-Clear-Glass.css modified: config/waybar/style/Dark-Golden-Eclipse.css modified: config/waybar/style/Dark-Golden-Noir.css modified: config/waybar/style/Dark-Half-Moon.css modified: config/waybar/style/Dark-Latte-Wallust-combined-v2.css modified: config/waybar/style/Dark-Latte-Wallust-combined.css modified: config/waybar/style/Dark-Purpl.css modified: config/waybar/style/Dark-Wallust-Obsidian-Edge.css modified: config/waybar/style/Extra-Arrow.css modified: config/waybar/style/Extra-Crimson.css modified: config/waybar/style/Extra-EverForest.css modified: config/waybar/style/Extra-ML4W-starter.css modified: config/waybar/style/Extra-Mauve.css modified: config/waybar/style/Extra-Modern-Combined-Transparent.css modified: config/waybar/style/Extra-Modern-Combined.css modified: config/waybar/style/Extra-Neon-Circuit.css modified: config/waybar/style/Extra-Prismatic-Glow.css modified: config/waybar/style/Extra-Rose-Pine.css modified: config/waybar/style/Extra-Simple-Pink.css modified: config/waybar/style/Light-Monochrome-Contrast.css modified: config/waybar/style/Light-Obsidian-Glow.css modified: config/waybar/style/ML4W-Glass-3d.css modified: config/waybar/style/ML4W-Glass.css modified: config/waybar/style/Rainbow-RGB-Bordered.css modified: config/waybar/style/Retro-Simple-Style.css modified: config/waybar/style/Transparent-Crystal-Clear.css modified: config/waybar/style/VERTICAL-Catpuccin-Mocha.css modified: config/waybar/style/Wallust-Bordered-Chroma-Fusion-Edge.css modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css modified: config/waybar/style/Wallust-Box-type.css modified: config/waybar/style/Wallust-Chroma-Edge.css modified: config/waybar/style/Wallust-Chroma-Fusion.css modified: config/waybar/style/Wallust-Chroma-Tally-V2.css modified: config/waybar/style/Wallust-Chroma-Tally.css modified: config/waybar/style/Wallust-Colored.css modified: config/waybar/style/Wallust-ML4W-modern-mixed.css modified: config/waybar/style/Wallust-ML4W-modern.css modified: config/waybar/style/Wallust-Simple.css modified: config/waybar/style/Wallust-Transparent-Crystal-Clear.css * Started plannikng for LUA cfg file migraiton On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: LUA-files/Lua-migration-plan.md new file: LUA-files/hyprland.entry.lua new file: LUA-files/lua-gh.txt new file: LUA-files/lua/env.lua new file: LUA-files/lua/startup.lua * Initial conversion to LUA started On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: LUA-files/hyprland-default-cfg.lua modified: LUA-files/hyprland.lua new file: config/hypr/hyprland.lua new file: config/hypr/lua/animations.lua new file: config/hypr/lua/decorations.lua new file: config/hypr/lua/env.lua new file: config/hypr/lua/keybinds.lua new file: config/hypr/lua/laptops.lua new file: config/hypr/lua/monitors.lua new file: config/hypr/lua/settings.lua new file: config/hypr/lua/startup.lua new file: config/hypr/lua/user_defaults.lua new file: config/hypr/lua/user_overrides.lua new file: config/hypr/lua/window_rules.lua new file: config/hypr/lua/workspaces.lua * Added summary of first steps in LUA conversion On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: LUA-Conversion-Phase1-02-Apr-26.md * Slowing fixing LUA errors * Slowing fixing LUA errors x2 * LUA keybinds cfg totally broken Calling it for now. LUA_KEYBINDS_STATUS has what's been done the errors and possible next steps On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: LUA_KEYBINDS_STATUS.txt modified: config/hypr/lua/keybinds.lua * Added window rule for hyprwcenter * Added Window Rule for hyprwcenter Hyprland built audio control panel On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: WindowRules-config-v3.conf modified: WindowRules.conf * Fixed rule for hyprpwcenter On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: WindowRules-config-v3.conf modified: WindowRules.conf * Added WindowRule for shelly app and waybar icon On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules.conf modified: config/waybar/ModulesWorkspaces * Udpated reference WindowRules-v3 * Removing Jakoolit references On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: 0-shared-fonts.rasi modified: config.rasi * Added support for awww transition effects On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserScripts/WallpaperAutoChange.sh modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/UserScripts/WallpaperRandom.sh modified: config/hypr/UserScripts/WallpaperSelect.sh * Fixed wallpaper per monitor restore failed On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/scripts/WallpaperDaemon.sh * Fixed WallpaperSelect to create restore file per monitor On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserScripts/WallpaperSelect.sh * Added Garuda assistant WindowRule * Adj: Setting for hyprpolkitagent startup Now setting depdendencies to after graphical target and part of graphical target On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/systemd/user/hyprpolkitagent.service.d/override.conf * Updated WindowRules added HyprMod GUI rule On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules-config-v3.conf modified: config/hypr/configs/WindowRules.conf * Added icon for HyprMod in ModulesWorkspaces On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/waybar/ModulesWorkspaces * Added window rule for easy effects * Added musical note icon for easy effects * Added doc on how to fix ventoyGUI not starting * Added doc on HOW to fix Ventoy GUI On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: docs/HOWTO-fix-ventoy-GUI.md * Fixed: Hyprlock grace and parser errors On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/hyprlock-1080p.conf modified: config/hypr/hyprlock-2k.conf modified: config/hypr/hyprlock.conf * Updated hints.sh for new layouts * Fixing KeyHints.sh * Updated keyhints.sh removed extra row and text cleanup * Creating workaround to polkit crash on missing QML * Changed error to note on fresh install when bkup dir not there * Fixed hang issue with lockscreen and WeatherWrap the weather cache check now runs in the background Shortend curl and ping timeouts in network connectivity check On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserScripts/WeatherWrap.sh modified: config/hypr/scripts/LockScreen.sh * Added script to triage polkit issues Phase 1 Just supports Arch Assuming this works will add support for the other distros Current issue seems to be affect Arch the most On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: config/hypr/scripts/Polkit-Diag.sh * Removed bad pkg name On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Fixing diag script to check xfce-polkit from AUR On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Added confirmation / status for --install-override On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Fixing polkit (again) changed order so hyprtoolkit 1st On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit.sh * Fixed Wallust-Chroma-Edge.css had \tcolor * Fixed \tcolor changed to spaces + color Fixes waybar crashing On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/waybar/style/Extra-Modern-Combined-Transparent.css modified: config/waybar/style/Extra-Modern-Combined.css * Added Fedora to the Polkit-Diag script On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Added debian/ubuntu to Polkit-Diag On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Fixed pkg name and made lxqt-polkit optional If installed it brings in many packages to support it On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Added check for kde-polkit & conflicting kits On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Polkit-Diag.sh * Added icon for vswaybar-studio On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/waybar/ModulesWorkspaces * waybar: Add icon for hyprland polkit * Updated min version supported msg to 0.54.x * waybar: timeshift icon for waybar * waybar: btrfs-assistant icon * OverViewToggle.sh was check for quickshell not qs - Found by `@TeaJhay` - Changed script to look for `qs` not `quickshell` On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md * Fixed overviewtoggle.sh * Added window rule and module for mousam weather app It's commented out in the waybar/ModulesCustom file On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: hypr/configs/WindowRules-config-v3.conf modified: hypr/configs/WindowRules.conf modified: waybar/ModulesCustom * Disable VFR, not supported post v0.54.3 * Updated whiptail to dark colors for readability On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: copy.sh modified: scripts/copy_menu.sh * Fixed highlight on OK/CANCEL buttons * Disable dwindle psuedotile not supported v0.55+ * Phase2 of LUA conversion working keybinds (mostly) On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md modified: config/hypr/hyprland.lua modified: config/hypr/lua/animations.lua modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/settings.lua modified: config/hypr/lua/startup.lua new file: scripts/migrate-hypr-to-lua.sh * Fixing Keybinds updated status doc On branch LUA-conversion Your branch is ahead of 'origin/LUA-conversion' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md modified: config/hypr/lua/keybinds.lua * Fixing more binds - mouse resize inop Keyboard resize working SUPERSHIFT L/R/U/D On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/startup.lua * Fixing bindings and waybar workspace slect inop The code in waybar 0.15 is hard coded clicking on WS will not move you there anymore Waybar needs to fix or a major workaround would be needed On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md modified: config/waybar/ModulesWorkspaces * working on UserConfigs migration keybind remap inop rn On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md modified: scripts/migrate-hypr-to-lua.sh * fixed LuaFullscreenMaximized issue On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: config/hypr/scripts/LuaFullscreenMaximized.sh modified: scripts/migrate-hypr-to-lua.sh * Fixed waybar startup and upd LUA-Conversion-Phase2-26-Apr-26 On branch LUA-conversion Your branch is ahead of 'origin/LUA-conversion' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md modified: config/hypr/lua/startup.lua * Fixed waybar startup with LUA-conversion branch On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/configs/Startup_Apps.conf * Fixed waybar, Dropterminal. lua runtime errors On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: LUA-files/Lua-migration-plan.md modified: config/hypr/configs/SystemSettings.conf modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/startup.lua modified: config/hypr/lua/window_rules.lua modified: config/hypr/scripts/Dropterminal.sh modified: config/waybar/ModulesWorkspaces * Fixing startup issues w/waybar and wallpaper On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/startup.lua modified: config/hypr/scripts/WallpaperCmd.sh modified: config/hypr/scripts/WallpaperDaemon.sh * Fixing binmdings, and startup issues (still) On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/startup.lua * Fixed issues blocking startup On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/startup.lua * Fixed Dropdown terminal to not activate at startup On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/lua/startup.lua * Fixed SUPERALT L/R arrow when only one WS exists With one occupied WS SUPERALT L/R arrow would generate invalid workspace runtime error On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua * Ported existing WindowRules.conf to window_rules.lua On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/window_rules.lua * Added update fixes so far today On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: LUA-files/LUA-Conversion-Phase3-27-Apr-26.md * Fixed SUPERCTRL R/L arrows to change workspaces On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua new file: config/hypr/scripts/LuaFocusWorkspaceRelative.sh new file: config/hypr/scripts/LuaMoveWindowDirectional.sh * Fixing all change workspaces bindings to work with LUA On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua new file: config/hypr/scripts/LuaMoveWindowWorkspaceRelative.sh * Fixed keybinds for next/prv workspace and cycle next/prev Added notes on the waybar workspace select issue also filed issued with GH https://github.com/Alexays/Waybar/issues/5008 On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/configs/Keybinds.conf modified: config/hypr/lua/keybinds.lua modified: config/hypr/scripts/ChangeLayout.sh modified: config/hypr/scripts/KeybindsLayoutInit.sh modified: config/waybar/ModulesWorkspaces new file: waybar-workspace-click-issue-notes.txt * Fixed SUPER J/K - ALT-TAB cycle next/prev Fixed for real this time. Not like that other fake dev posting that he fixed it. but what does he know. he's an idiot. (says the other voice in my head) ;) On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua new file: config/hypr/scripts/LuaCycleWindow.sh * Fixed ChangeLayout script validates layout change On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/scripts/ChangeLayout.sh * Added waybar module to show current layout/select/scroll them On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: new file: config/hypr/scripts/HyprLayoutModule.sh modified: config/waybar/ModulesCustom modified: config/waybar/configs/TOP-ddubs-simple-bar modified: config/waybar/style/Wallust-Box-type.css * Fixed LuaSwapWindow when only 1 window or go past last Was causing LUA runtime errors On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua new file: config/hypr/scripts/LuaSwapWindow.sh * Add: Layout module to all config files On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/waybar/configs/BOT-&-Left-SouthWest modified: config/waybar/configs/BOT-&-Right-SouthEast modified: config/waybar/configs/BOT-Camellia modified: config/waybar/configs/BOT-Chrysanthemum modified: config/waybar/configs/BOT-Default modified: config/waybar/configs/BOT-Default-Laptop modified: config/waybar/configs/BOT-Gardenia modified: config/waybar/configs/BOT-Peony modified: config/waybar/configs/BOT-Simple modified: config/waybar/configs/BOT-Sleek modified: config/waybar/configs/LEFT-WestWing modified: config/waybar/configs/LEFT-WestWing-v2 modified: config/waybar/configs/RIGHT-EastWing modified: config/waybar/configs/RIGHT-EastWing-v2 modified: config/waybar/configs/TOP-&-BOT-SummitSplit modified: config/waybar/configs/TOP-&-BOT-SummitSplit-glass modified: config/waybar/configs/TOP-&-BOT-SummitSplit-v2 modified: config/waybar/configs/TOP-&-BOT-SummitSplit-v3 modified: config/waybar/configs/TOP-&-Left-NorthWest modified: config/waybar/configs/TOP-&-Right-NorthEast modified: config/waybar/configs/TOP-0-Ja-0 modified: config/waybar/configs/TOP-Arrow modified: config/waybar/configs/TOP-Camellia modified: config/waybar/configs/TOP-Chrysanthemum modified: config/waybar/configs/TOP-Default modified: config/waybar/configs/TOP-Default-Laptop modified: config/waybar/configs/TOP-Default-Laptop-glass modified: config/waybar/configs/TOP-Default-Laptop-old-v1 modified: config/waybar/configs/TOP-Default-Laptop-old-v2 modified: config/waybar/configs/TOP-Default-Laptop-old-v3 modified: config/waybar/configs/TOP-Default-Laptop-old-v4 modified: config/waybar/configs/TOP-Default-Laptop-old-v5 modified: config/waybar/configs/TOP-Default-old-v1 modified: config/waybar/configs/TOP-Default-old-v2 modified: config/waybar/configs/TOP-Default-old-v3 modified: config/waybar/configs/TOP-Default-old-v4 modified: config/waybar/configs/TOP-Everforest modified: config/waybar/configs/TOP-Everforest-glass modified: config/waybar/configs/TOP-Gardenia modified: config/waybar/configs/TOP-Minimal-Long modified: config/waybar/configs/TOP-Minimal-Short modified: config/waybar/configs/TOP-Peony modified: config/waybar/configs/TOP-Simple modified: config/waybar/configs/TOP-Simpliest modified: config/waybar/configs/TOP-Sleek modified: config/waybar/configs/[TOP & BOT] SummitSplit v3 * Added image of better method for keybinds * migrating to better method for keybinds - Thx Dizzie * added luarc.json file for nvim * Added comments about the example keybinds They include keybinds that conflict with existing They are just meant as examples for launching TUI apps and webapps On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua * Fixed logout error, switched to hyprshutdown On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: .gitignore modified: config/hypr/lua/keybinds.lua modified: config/wlogout/layout * Fixed migration tool to process UserConfigs/UserKebinds.conf On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: scripts/migrate-hypr-to-lua.sh * Added fluxer icon to ModulesWorkspaces On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/waybar/ModulesWorkspaces * Removed psuedotile and vfr - not support 0.55+ * Upd CHANGELOG remove LUA-files dir moved to new branch On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md deleted: LUA-files/hyprland.lua * upd migrate script to save files in proper directories Now UseConfigs will have the .lua files and .conf files backed up On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: CHANGELOG.md modified: scripts/migrate-hypr-to-lua.sh * Making Quick settingds menu LUA/HyprLANG aware On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Kool_Quick_Settings.sh * migration creates LUA files for configs/UserConfigs On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/lua/user_overrides.lua modified: config/hypr/scripts/Kool_Quick_Settings.sh modified: scripts/migrate-hypr-to-lua.sh * Fixed Quicksettings and default editor On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/user_defaults.lua modified: scripts/migrate-hypr-to-lua.sh * Updated keybind parser to support LUA On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/scripts/KeyBinds.sh modified: config/hypr/scripts/keybinds_parser.py * Added proj info to LUA files The generated LUA files from migrate-hypr-to-lua script will also get Project headers Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: CHANGELOG.md modified: LUA-files/hyprland-default-cfg.lua modified: LUA-files/hyprland-key-bindings-example.lua modified: LUA-files/hyprland.entry.lua modified: LUA-files/hyprland.lua modified: LUA-files/lua/env.lua modified: LUA-files/lua/startup.lua modified: config/hypr/hyprland.lua modified: config/hypr/lua/animations.lua modified: config/hypr/lua/decorations.lua modified: config/hypr/lua/env.lua modified: config/hypr/lua/keybinds.lua deleted: config/hypr/lua/keybinds.lua.backup.b4.updating modified: config/hypr/lua/laptops.lua modified: config/hypr/lua/monitors.lua modified: config/hypr/lua/settings.lua modified: config/hypr/lua/startup.lua modified: config/hypr/lua/user_defaults.lua modified: config/hypr/lua/user_overrides.lua modified: config/hypr/lua/window_rules.lua modified: config/hypr/lua/workspaces.lua modified: config/wezterm/wezterm.lua modified: scripts/migrate-hypr-to-lua.sh new file: v2.3.24 * Updated versoin to v2.3.24 * Updated versoin to v2.3.24 * Removed defined terminal in rofi files Thanks to Teajhay for finding this On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/rofi/dwm-config-horiz.rasi modified: config/rofi/dwm-config-vert.rasi modified: config/rofi/themes/KooL_dwm.rasi * Added script for resize by keybinds On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua new file: config/hypr/scripts/ResizeActive.sh * Fixed mouse resize!! On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua * Updated CHANGELOG * Added JavaManager.sh from jmhorcas His script only supported Arch I have added preliminary support for: - debian - ubuntu - fedora - OpenSuse On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: config/hypr/scripts/JavaManager.sh * Addeer JavaManager.sh On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/scripts/JavaManager.sh * Cleaning up old LUA files getting ready to merge to development before branches diverge any more need to integarte LUA to development On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: deleted: LUA-files/LUA-Conversion-Phase1-02-Apr-26.md deleted: LUA-files/LUA-Conversion-Phase2-26-Apr-26.md deleted: LUA-files/LUA-Conversion-Phase3-27-Apr-26.md deleted: LUA-files/Lua-migration-plan.md deleted: LUA-files/hyprland-default-cfg.lua deleted: LUA-files/hyprland-key-bindings-example.lua deleted: LUA-files/hyprland.entry.lua deleted: LUA-files/hyprland.lua deleted: LUA-files/lua-gh.txt deleted: LUA-files/lua-mappings-keybinds.png deleted: LUA-files/lua/env.lua deleted: LUA-files/lua/startup.lua deleted: LUA_KEYBINDS_STATUS.txt deleted: waybar-workspace-click-issue-notes.txt * Using Ahum.rs resize binding code Thx * Borrowing more code from Ahum.rs https://github.com/TheAhumMaitra/Aurora/blob/hyprland-git-lua/dotfiles/.config/hypr/configs/keybinds.lua https://github.com/TheAhumMaitra/Aurora https://github.com/TheAhumMaitra On branch LUA-conversion Your branch is up to date with 'origin/LUA-conversion'. Changes to be committed: modified: config/hypr/lua/keybinds.lua * Updated CHANGELOG * Re-added dots version file * Re-added dots version file * Removed wrong verstion file * Merge retained development notes into changelog Preserves development branch release notes for v2.3.24 and v2.3.23 alongside Lua conversion details. Co-Authored-By: Oz <oz-agent@warp.dev> * Borrowed startup function from ahum.rs but I kept my defensive code also, merged the two On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/startup.lua * Renamed hyprland.lua When I merged LUA-conversion this came over I don't want someone with LUA capable build to get forced to lua hyprland.lua would get copied on install and force LUA use On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: renamed: hyprland.lua -> hyprland.lua.disable * Broke out layer rules to its own file Updated Kool_Quick_Settings menu Updated both .config and .lua workflows Deleted old WindowRules-pre-53 and WindowRules-config-v3 files They are no longer needed as we are well past 0.53 being the min revision I renamed `hyprland.lua` to `hyprland.lua.disable` When 0.55 is released (soon) it will support LUA and that file is the entry point. The migrate-hypr-to-lua script will handle that On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/UserConfigs/LayerRules.conf modified: config/hypr/UserConfigs/WindowRules.conf new file: config/hypr/configs/LayerRules.conf deleted: config/hypr/configs/WindowRules-config-v3.conf deleted: config/hypr/configs/WindowRules-pre-53.conf modified: config/hypr/configs/WindowRules.conf modified: config/hypr/hyprland.conf modified: config/hypr/hyprland.lua.disable new file: config/hypr/lua/layer_rules.lua modified: config/hypr/lua/user_overrides.lua modified: config/hypr/lua/window_rules.lua modified: config/hypr/scripts/Kool_Quick_Settings.sh modified: config/hypr/scripts/update_WindowRules.sh modified: scripts/migrate-hypr-to-lua.sh * Added helper script to call hyprshutdown for logout On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/scripts/Logout.sh modified: config/wlogout/layout * Added pkill waybar awww-daemon swww-daemon otherwise they shows as running apps you have to force kill on logout On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Logout.sh * Updating kill process before logout On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Logout.sh * Fixed typo in CHANGELOG.md * Fixed LayerRules rofi menus were transparent w/o blur On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/configs/LayerRules-config-v3.conf modified: config/hypr/configs/LayerRules.conf modified: config/hypr/lua/layer_rules.lua modified: config/hypr/lua/user_overrides.lua modified: config/hypr/scripts/update_WindowRules.sh modified: scripts/migrate-hypr-to-lua.sh * Fixed issue with keybinds_parser not showing binds On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/keybinds_parser.py * Fixed Toggle-Active-Window-Audio script On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/ResizeActive.sh modified: config/hypr/scripts/Toggle-Active-Window-Audio.sh * Breaking out LUA cfg files into helper/user code On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/lua/keybind_helpers.lua modified: config/hypr/lua/keybinds.lua * Fixed import pathhing On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/keybinds.lua * Fixing keybind imports and updating On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/user_overrides.lua * Fixed import issue on legacy UserKeybinds.conf On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/UserConfigs/user_keybinds.lua * Fixed parsers to remove "CODE:" references On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/user_overrides.lua modified: config/hypr/scripts/keybinds_parser.py * Set vrr to 0, issues with MPV/VLC * Set vrr to 0, issues with MPV/VLC in LUA cfg * Found screenshot region lua function need test * Deleted empty tile On branch development Your branch is up to date with 'origin/development'. Changes to be committed: deleted: hypr/configs/LayerRules-config-v3.conf * Added a couple more default wallpapers On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: wallpapers/3d-door.jpg new file: wallpapers/Catppuccin-pond-bridge.jpg new file: wallpapers/a_black_sand_beach_with_waves_and_clouds_above.jpg new file: wallpapers/a_group_of_wooden_posts_in_water.jpg new file: wallpapers/astralbed.png * Added sample Montior Profiles On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: Monitor_Profiles/HDMI-A-1-HighRefreshRate.conf new file: Monitor_Profiles/Virtual-1-1920x1080.conf new file: Monitor_Profiles/Virtual-1-2560x1080.conf * Added LUA monitor profiles and eDP-1-disable On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: hypr/Monitor_Profiles/HDMI-A-1-HighRefreshRate.lua new file: hypr/Monitor_Profiles/Virtual-1-1920x1080.lua new file: hypr/Monitor_Profiles/Virtual-1-2560x1080.lua new file: hypr/Monitor_Profiles/default.lua new file: hypr/Monitor_Profiles/eDP-1-disable.conf new file: hypr/Monitor_Profiles/eDP-1-disable.lua modified: hypr/scripts/MonitorProfiles.sh * Updated MonitorProfiles script to support LUA or HYPRLANG On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: MonitorProfiles.sh * Updated CHANGELOG * Updated README for ubuntu 25.10 deprecated On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: README.md * Enhanced OverViewToggle.sh handling of quickshell vs.AGS * Corrected ENV Dotfiles version * Started work to support wallust v4.0 Some repos like chaotic are push v4.0.0-alpha of wallust wallust v4.0 is not backward compatible with v3.5.x Also the color pallettes aren't as good IMO Suggest to users to pin or downgrade to v3.5.2 for now Will be considering moving to matugen if I can't fix the colors On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/initial-boot.sh modified: config/hypr/scripts/ThemeChanger.sh new file: config/hypr/scripts/WallustConfig.sh modified: config/hypr/scripts/WallustSwww.sh new file: config/wallust/wallust-kitty-v4.toml new file: config/wallust/wallust-v4.toml modified: copy.sh * Fixed Float-all-Windows script to support LUA On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Float-all-Windows.sh * Fixed GameMode.sh to support HYPRLANG and LUA Need to test with HYPRLANG config Works with LUA On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/GameMode.sh * Updated description for hyprsunset keybind easier to find On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserConfigs/UserKeybinds.conf modified: config/hypr/configs/Keybinds.conf modified: config/hypr/lua/keybinds.lua * Fixed XDGDATA_DIRS being overwritten in UserConfigs * Fixed Tak0-Per-Window-Switch script Fixed syntax error Added support for LUA On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Tak0-Per-Window-Switch.sh * Fixed Tak0-Autodispatch to support LUA Key Changes: 1. Lua Workflow Detection: The script now checks for the existence of hyprland.lua to determine if it should use Lua-compatible commands. 2. hyprctl eval Integration: In Lua mode, the script uses hyprctl eval to call hl.window_rule for early window capture. This bypasses the "keyword" restriction in Lua sessions. 3. Adaptive Rule Application: * Nuclear Option: Uses a generic class match in Lua to force early windows to the target workspace. * Class-based Pre-capture: Parses class rules into Lua-friendly formats for precision. 4. Refined Cleanup: Since Lua rules applied via eval are transient but don't have a direct unset command like legacy keywords, the cleanup routine now triggers a hyprctl reload in Lua mode to ensure a clean state after the application is fully deployed. 5. Main Loop Compatibility: The core supervision loop (Phase 5) remains fully functional as hyprctl dispatch movetoworkspacesilent is supported across both legacy and Lua workflows. These updates ensure that application launches (like Steam, Discord, or Electron apps) remain controlled and contained to their designated workspaces regardless of your configuration mode. On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Tak0-Autodispatch.sh * Increased field with for JDK version On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/JavaManager.sh * Enhancing ExternalBrightness.sh * ENVvariable for XDG_DATA_DIRS errors * Made small adjustment width On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/fastfetch/config.jsonc * Added support for $VISUAL editor setting On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserConfigs/01-UserDefaults.conf modified: config/hypr/lua/user_defaults.lua modified: config/hypr/scripts/Kool_Quick_Settings.sh modified: scripts/lib_apps.sh * Added hl.meta.lua - thx Tony,btw * Wired hl.meta.lua to .luarc.json * Moved luarc.jsonc hl.meta.lua to config/hypr * Testing upd window_rules.lua file On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: window_rules.lua * Upd WindowRules w/names migration script follows format Previously WindowsRules were named Windowrule-001,etc Now they are based off the function of the rule Also found code for handling lip open/closure to enable/disable eDP-1 Thank you @star. Code currently not tested or added to project Saved in config/hypr/lua directory On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules.conf new file: config/hypr/lua/laptop-lid.lua modified: config/hypr/lua/window_rules.lua modified: scripts/migrate-hypr-to-lua.sh * Updated CHANGELOG * Move old .config to backup Dirs On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: migrate-hypr-to-lua.sh * Updted migration to use configs and UserConfigs directories Now they will be converted and saved to their normal dirs As they are today On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/lua/user_defaults.lua modified: config/hypr/lua/user_overrides.lua modified: config/hypr/scripts/KeyBinds.sh modified: config/hypr/scripts/Kool_Quick_Settings.sh modified: config/hypr/scripts/Tak0-Per-Window-Switch.sh modified: scripts/lib_copy.sh modified: scripts/migrate-hypr-to-lua.sh * Updated migration to use hyprland.lua.disable 2 enable/disable Currently the hyprland.lua file is named hyprland.lua.disable To prevent it from loading the lua config until we're ready The migration script now renames it properly and on a reverty back to .conf / hyprlang will also change it back to .disable On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: scripts/migrate-hypr-to-lua.sh * Fixed logout via keybind and powermenu Supports legacy and LUA config workflows now On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/Keybinds.conf modified: config/hypr/lua/keybinds.lua modified: config/hypr/scripts/Logout.sh * Fixed Dropterminal to support hyprlang and lua I broke it when adding in lua support On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Dropterminal.sh * Well maybe I didn't fix dropterminal - #2 * Fixed one dropterm issue made two new ones! yeah me * Added Window Rule for megasync app On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules.conf modified: config/hypr/lua/window_rules.lua * Fixed Dropterminal script to work in LUA mode On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Dropterminal.sh * Once more into the breech - fix#3 on Dropterminal Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Dropterminal.sh * Fixed migrate-hypr-to-lua script monitors/workspaces not ported Also improved summary output On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: scripts/migrate-hypr-to-lua.sh * Fixed Dropterminal was exiting on rehide It's back to being persistent On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserConfigs/UserKeybinds.conf modified: config/hypr/UserConfigs/user_keybinds.lua modified: config/hypr/configs/Keybinds.conf modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/lua/keybinds.lua modified: config/hypr/lua/startup.lua modified: config/hypr/scripts/Dropterminal.sh * Updated / redid CHANGELOG Broke it out by sections FIXED, CHANGED, ETC On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: CHANGELOG.md * Fixed/broke/re-fixed/re-broke Dropterminal script Now works in both hyprlang, lua On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/window_rules.lua modified: config/hypr/scripts/Dropterminal.sh * Dropterminal is the biggest PITA You get one thing working and 3 other break. BUT Finally it works smoothly in both LUA and Hyprlang On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/Dropterminal.sh * Fixed copy.sh not handling hyprland.lua Fixed user monitor configs MonitorProfiles is now lua aware On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/Monitor_Profiles/README modified: config/hypr/UserConfigs/01-UserDefaults.conf new file: config/hypr/UserConfigs/monitors.lua modified: config/hypr/configs/Startup_Apps.conf deleted: config/hypr/hyprlock-1080p.conf modified: config/hypr/hyprlock.conf modified: config/hypr/lua/monitors.lua modified: config/hypr/scripts/MonitorProfiles.sh modified: config/kitty/kitty.conf modified: config/rofi/0-shared-fonts.rasi modified: config/waybar/Modules modified: scripts/lib_copy.sh * Fixed Monitor_Profiles eDP-1-disable was incorrect On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/Monitor_Profiles/eDP-1-disable.lua modified: config/hypr/hyprlock-2k.conf deleted: config/hypr/hyprlock.conf * Fixed duplicate keybinds Now properly reads configs/Keybinds.lua and UserConfigs/user_keybinds.lua On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/hyprland.lua.disable modified: config/hypr/lua/user_overrides.lua modified: config/hypr/scripts/Kool_Quick_Settings.sh * Fixed keybind sourcing Added ghostty theme sel keybind SUPERALT + G On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/Keybinds.conf modified: config/hypr/lua/keybinds.lua modified: scripts/migrate-hypr-to-lua.sh * Fixed another issue with startup apps On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/migrate-hypr-to-lua.sh * Re-fixed startup code when using migrate-hypr-to-lua script On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/migrate-hypr-to-lua.sh * Fixed more migration issues with keybinds On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/hyprland.lua.disable modified: scripts/migrate-hypr-to-lua.sh * Fixed border colors and gaps at zero and delay On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/WallustSwww.sh modified: scripts/migrate-hypr-to-lua.sh * Made LuaAutoReload executable so editing lua cfgs reload On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/Startup_Apps.conf new file: config/hypr/scripts/LuaAutoReload.sh * Fixed theme by wallpaper for kitty/ghostty ghostty one still needs some work On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/ghostty/config modified: config/hypr/scripts/Ghostty_themes.sh modified: config/hypr/scripts/Kitty_themes.sh modified: config/hypr/scripts/WallustSwww.sh modified: config/wallust/templates/colors-ghostty.conf * Improving theme switch logic and added logging On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/Kitty_themes.sh * Fixed long 10-15 delay in set by wallpaper On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/Kitty_themes.sh * Set fixed, matching radius values for Extra-Neon-Circuit The random values before were not pleasing IMO Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/waybar/style/Extra-Neon-Circuit.css * Fixed regression in window resize in lua configs On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: config/hypr/lua/keybind_helpers.lua modified: config/hypr/lua/keybinds.lua modified: scripts/migrate-hypr-to-lua.sh * Fixed issue were re-running migrate script nuked env files On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/migrate-hypr-to-lua.sh * Remvoed version from compact fastfetch output On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/fastfetch/config-compact.jsonc * Now Dropterminal goes directly to special workspace at startup before it would appear briefly then hide On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/Dropterminal.sh * Created helper code modules for User Keybinds On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserConfigs/user_keybinds.lua new file: config/hypr/lua/user_keybinds_helper.lua modified: scripts/migrate-hypr-to-lua.sh * Added helper files for UserConfigs lua files Now updates to the LUA code can be done and preserve modified UserConfigs files. On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/lua/user_decorations_helper.lua new file: config/hypr/lua/user_layer_rules_helper.lua new file: config/hypr/lua/user_startup_helper.lua new file: config/hypr/lua/user_window_rules_helper.lua modified: scripts/migrate-hypr-to-lua.sh * Fixed resize issue (again) user_keybinds_helper match system On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/keybind_helpers.lua modified: config/hypr/lua/user_keybinds_helper.lua * Fix: Global and wallpaper theme broken Fixed: Wallust-Chroma-Fusion.css selected workspace was a single color blob On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/UserConfigs/user_decorations.lua modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/UserScripts/WallpaperRandom.sh modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/scripts/ThemeChanger.sh modified: config/hypr/scripts/WallustSwww.sh modified: config/waybar/style/Wallust-Chroma-Fusion.css * Another color adjustment Wallust-Chroma-Fusion.css On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/waybar/style/Wallust-Chroma-Fusion.css * Fixed kitty by wallpaper slow and no color updates On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/scripts/WallustSwww.sh * Removed my custom keybinds from default cnfg files On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserConfigs/UserKeybinds.conf modified: config/hypr/UserConfigs/user_keybinds.lua * Migrate script wasn't parsing current decorations It now properly parses current user decorations On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/migrate-hypr-to-lua.sh * Fixed user_decorations parser error i& import pathing On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/hypr/configs/Startup_Apps.disable modified: scripts/migrate-hypr-to-lua.sh * Fixed waybar issues with NixOS handles systemctl user waybar service NixOS wraps waybar refresh.sh handles that and systemctl No more duplicate, inop waybars On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/lua/startup.lua modified: config/hypr/scripts/Refresh.sh * Improved visibility of network applet it's better but should be revisited On branch development Your branch is up to date with 'origin/development'. Changes to be committed: * Improved logout with fallbacks for hyprshutdown removed sleep statements from startup to trim login time On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/initial-boot.sh modified: config/hypr/lua/startup.lua modified: config/hypr/scripts/Logout.sh modified: config/swaync/config.json modified: config/waybar/ModulesCustom * Fixed system settings lua not enabled by migration On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/SystemSettings.conf modified: config/hypr/lua/settings.lua new file: scripts/fix-systemsettings-lua.sh modified: scripts/migrate-hypr-to-lua.sh * Moved Waybar startup to dedicated script The startup command was getting complex and unmamageable I.e. check for user systemctl or wrapped waybar service, etc. On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/lua/startup.lua new file: config/hypr/scripts/WaybarStartup.sh * Add css formatting for `custom/hypr_layout` widget On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/waybar/style/0-VERTICAL-Catpuccin-Mocha.css modified: config/waybar/style/0-VERTICAL-Golden-Noir.css modified: config/waybar/style/0-VERTICAL-Oglo-Chicklets.css modified: config/waybar/style/Black-&-White-Monochrome.css modified: config/waybar/style/Catppuccin-Frappe.css modified: config/waybar/style/Catppuccin-Latte.css modified: config/waybar/style/Catppuccin-Mocha.css modified: config/waybar/style/Colored-Chroma-Glow.css modified: config/waybar/style/Colored-Translucent.css modified: config/waybar/style/Colorful-Aurora-Blossom.css modified: config/waybar/style/Colorful-Aurora.css modified: config/waybar/style/Colorful-Oglo-Chicklets.css modified: config/waybar/style/Colorful-Rainbow-Spectrum.css modified: config/waybar/style/Colorful-stolen-style.css modified: config/waybar/style/Crystal-Clear-Glass.css modified: config/waybar/style/Dark-Golden-Eclipse.css modified: config/waybar/style/Dark-Golden-Noir.css modified: config/waybar/style/Dark-Half-Moon.css modified: config/waybar/style/Dark-Latte-Wallust-combined-v2.css modified: config/waybar/style/Dark-Latte-Wallust-combined.css modified: config/waybar/style/Dark-Purpl.css modified: config/waybar/style/Dark-Wallust-Obsidian-Edge.css modified: config/waybar/style/Extra-Arrow.css modified: config/waybar/style/Extra-Crimson.css modified: config/waybar/style/Extra-EverForest.css modified: config/waybar/style/Extra-ML4W-starter.css modified: config/waybar/style/Extra-Mauve.css modified: config/waybar/style/Extra-Modern-Combined-Transparent.css modified: config/waybar/style/Extra-Modern-Combined.css modified: config/waybar/style/Extra-Neon-Circuit.css modified: config/waybar/style/Extra-Prismatic-Glow.css modified: config/waybar/style/Extra-Rose-Pine.css modified: config/waybar/style/Extra-Simple-Pink.css modified: config/waybar/style/Light-Monochrome-Contrast.css modified: config/waybar/style/Light-Obsidian-Glow.css modified: config/waybar/style/ML4W-Glass-3d.css modified: config/waybar/style/ML4W-Glass.css modified: config/waybar/style/Rainbow-RGB-Bordered.css modified: config/waybar/style/Retro-Simple-Style.css modified: config/waybar/style/Transparent-Crystal-Clear.css modified: config/waybar/style/VERTICAL-Catpuccin-Mocha.css modified: config/waybar/style/Wallust-Bordered-Chroma-Fusion-Edge.css modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css modified: config/waybar/style/Wallust-Chroma-Edge.css modified: config/waybar/style/Wallust-Chroma-Fusion.css modified: config/waybar/style/Wallust-Chroma-Tally-V2.css modified: config/waybar/style/Wallust-Chroma-Tally.css modified: config/waybar/style/Wallust-Colored.css modified: config/waybar/style/Wallust-ML4W-modern-mixed.css modified: config/waybar/style/Wallust-ML4W-modern.css modified: config/waybar/style/Wallust-Simple.css modified: config/waybar/style/Wallust-Transparent-Crystal-Clear.css * Fixed bad import path in ML4W glass.css file On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/waybar/style/ML4W/glass.css * Fix: lib_copy.sh was overwritting UserConfigs On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: ../CHANGELOG.md modified: lib_copy.sh * Added waybar.service disable script Some distros have this service and it breaks our GUI/theming On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: CHANGELOG.md new file: config/hypr/scripts/DisableWaybarService.sh * Added rule for OBS to WS 10 On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/WindowRules.conf * Added yazi config On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: config/yazi/flavors/catppuccin-macchiato.yazi/flavor.toml new file: config/yazi/init.lua new file: config/yazi/keymap.toml new file: config/yazi/package.toml new file: config/yazi/plugins/compress.yazi/LICENSE new file: config/yazi/plugins/compress.yazi/README.md new file: config/yazi/plugins/compress.yazi/main.lua new file: config/yazi/plugins/full-border.yazi/LICENSE new file: config/yazi/plugins/full-border.yazi/README.md new file: config/yazi/plugins/full-border.yazi/main.lua new file: config/yazi/plugins/git.yazi/LICENSE new file: config/yazi/plugins/git.yazi/README.md new file: config/yazi/plugins/git.yazi/main.lua new file: config/yazi/plugins/git.yazi/types.lua new file: config/yazi/plugins/smart-filter.yazi/LICENSE new file: config/yazi/plugins/smart-filter.yazi/README.md new file: config/yazi/plugins/smart-filter.yazi/main.lua new file: config/yazi/plugins/yatline-githead.yazi/LICENSE new file: config/yazi/plugins/yatline-githead.yazi/README.md new file: config/yazi/plugins/yatline-githead.yazi/main.lua new file: config/yazi/plugins/yatline.yazi/LICENSE new file: config/yazi/plugins/yatline.yazi/README.md new file: config/yazi/plugins/yatline.yazi/main.lua new file: config/yazi/theme.toml new file: config/yazi/yazi.toml * Fix: flatpack dark colors / PortalHyprland PortalHyprland now has the ubunmtu code check Flatpack and other apps should now start in dark mode On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/initial-boot.sh modified: config/hypr/lua/startup.lua modified: config/hypr/scripts/PortalHyprland.sh * Small adjustment to defaults On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: UserDecorations.conf * Cava colors upd dynamically with wallpaper On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/ThemeChanger.sh modified: config/hypr/scripts/WallustSwww.sh modified: config/wallust/templates/colors-cava * Fix: after lua logout failed, duplicate keybinds On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/lua/user_keybinds_helper.lua modified: config/hypr/scripts/Logout.sh * FIX: LUA cfg didn't maintain layout w/theme change On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/ChangeLayout.sh modified: config/hypr/scripts/ThemeChanger.sh modified: config/hypr/scripts/WallustSwww.sh * FIX: awww uses --resize crop def chg --resize fit This resolves wide aspect high res monitors getting zoomed images when image scale not same as monitor Thanks to @CateDesu for finding this and providing fix On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserScripts/WallpaperRandom.sh modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/scripts/WallpaperDaemon.sh * FIX: Screens now determine if --fit or --crop is best On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/UserScripts/WallpaperAutoChange.sh modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/UserScripts/WallpaperRandom.sh modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/scripts/WallpaperCmd.sh modified: config/hypr/scripts/WallpaperDaemon.sh * copy.sh now copies yazi cfg files On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: scripts/lib_copy.sh * Fixing sizing logic for wallpapers Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/WallpaperCmd.sh * Set pref to crop with large mismatch image Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/WallpaperCmd.sh * Upd README to post Opensuse no longer supported Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: README.md * Small updates to desc to improve search results Some like oh-my-zsh were not found using ZSH Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/configs/Keybinds.conf * Capitilzied 1st letter keybinds.conf descripton Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: Keybinds.conf * Small updates to README.md Corrections and noting PRs must be against development branch Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: README.md --------- Co-authored-by: Jason Schuehlein <34405484+JasonNero@users.noreply.github.com> Co-authored-by: Don Williams <don.e.williamw@gmail.com> Co-authored-by: brockar <martin@mguz.dev> Co-authored-by: Oz <oz-agent@warp.dev> Co-authored-by: Don Williams <don.e.williams@gmal.com>
Diffstat (limited to 'config/yazi/plugins/yatline.yazi')
-rw-r--r--config/yazi/plugins/yatline.yazi/LICENSE23
-rw-r--r--config/yazi/plugins/yatline.yazi/README.md23
-rw-r--r--config/yazi/plugins/yatline.yazi/main.lua1464
3 files changed, 1510 insertions, 0 deletions
diff --git a/config/yazi/plugins/yatline.yazi/LICENSE b/config/yazi/plugins/yatline.yazi/LICENSE
new file mode 100644
index 00000000..6374a660
--- /dev/null
+++ b/config/yazi/plugins/yatline.yazi/LICENSE
@@ -0,0 +1,23 @@
+MIT License
+
+Copyright (c) 2024 imsi32
+Copyright (c) 2023 - sxyazi
+Copyright (c) 2023 yazi-rs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/config/yazi/plugins/yatline.yazi/README.md b/config/yazi/plugins/yatline.yazi/README.md
new file mode 100644
index 00000000..1ee9c1eb
--- /dev/null
+++ b/config/yazi/plugins/yatline.yazi/README.md
@@ -0,0 +1,23 @@
+# yatline.yazi
+
+The first Yazi plugin for customizing both header-line and status-line.
+
+![yatline](https://github.com/user-attachments/assets/61013ec8-7fd9-42df-a9f4-f254663871fe)
+
+> [!NOTE]
+> Check out [wiki](https://github.com/imsi32/yatline.yazi/wiki) for installation steps, configuration and further information.
+
+## Features
+
+- Lualine-like Design
+- Flexible
+- Simple
+- Automatic Configuration
+- Support for Yazi Plugins
+- Themes (See: [yatline-themes](https://github.com/imsi32/yatline-themes))
+- Add-ons (See: [yatline-addons](https://github.com/imsi32/yatline-addons))
+
+## Credits
+
+- [Lualine](https://github.com/nvim-lualine/lualine.nvim)
+- [Yazi](https://github.com/sxyazi/yazi)
diff --git a/config/yazi/plugins/yatline.yazi/main.lua b/config/yazi/plugins/yatline.yazi/main.lua
new file mode 100644
index 00000000..eda7213b
--- /dev/null
+++ b/config/yazi/plugins/yatline.yazi/main.lua
@@ -0,0 +1,1464 @@
+--- @since 25.12.29
+--- @diagnostic disable: undefined-global, undefined-field
+--- @alias Mode Mode Comes from Yazi.
+--- @alias Rect Rect Comes from Yazi.
+--- @alias Paragraph Paragraph Comes from Yazi.
+--- @alias Line Line Comes from Yazi.
+--- @alias Span Span Comes from Yazi.
+--- @alias Color Color Comes from Yazi.
+
+--==================--
+-- Type Declaration --
+--==================--
+
+--- @enum Side
+local Side = {
+ LEFT = 0, -- The left side of either the header-line or status-line. [ LEFT ... ]
+ RIGHT = 1, -- The right side of either the header-line or status-line. [ ... RIGHT]
+}
+
+--- @enum SeparatorType
+local SeparatorType = {
+ OUTER = 0, -- Separators on the outer side of sections. [ c o | c o | c o ... ] or [ ... o c | o c | o c ]
+ INNER = 1, -- Separators on the inner side of sections. [ c i c | c i c | c i c ... ] or [ ... c i c | c i c | c i c ]
+}
+
+--- @enum ComponentType
+local ComponentType = {
+ A = 0, -- Components on the first section. [ A | | ... ] or [ ... | | A ]
+ B = 1, -- Components on the second section. [ | B | ... ] or [ ... | B | ]
+ C = 2, -- Components on the third section. [ | | C ... ] or [ ... C | | ]
+}
+
+--- @alias Colored [string, Color] Stores text and its foreground color.
+--- @alias Coloreds Colored[] The array of Coloreds.
+
+--- @generic T
+--- @alias T T Type of the component.
+
+--- @class Yatline
+--- @field config YatlineConfig Configuration of Yatline.
+--- @field string? {} Table that stores string components.
+--- @field line? {} Table that stores Line components.
+--- @field coloreds? {} Table that stores Coloreds components.
+Yatline = {}
+
+--- @class (exact) ComponentConfig
+--- @field type string Defines the type of the component (T).
+--- @field custom? boolean Toggles the usage of a function defined or name field.
+--- @field name string | T Either defined function name or variable of defined type T.
+--- @field params? {} Contains the parameters that can be used by the function called.
+
+--- @class (exact) SideConfig
+--- @field section_a ComponentConfig[] Array of configuration of components in the first section.
+--- @field section_b ComponentConfig[] Array of configuration of components in the second section.
+--- @field section_c ComponentConfig[] Array of configuration of components in the third section.
+
+--- @class (exact) LineConfig
+--- @field left SideConfig Configuration of the left side of the line.
+--- @field right SideConfig Configuration of the right side of the line.
+
+--- @class (exact) YatlineConfig
+--- @field section_separator {open: string, close: string} Separators that are between sections.
+--- @field part_separator {open: string, close: string} Separators that are between components.
+--- @field inverse_separator {open: string, close: string} Separators that are used when foreground color of separator is reset.
+--- @field padding {inner: integer, outer: integer} Number of space padding surronding the component.
+--- @field style_a {bg: Color, fg: Color, bg_mode: {normal: Color, select: Color, un_set: Color}} Style of the first section.
+--- @field style_b {bg: Color, fg: Color} Style of the second section.
+--- @field style_c {bg: Color, fg: Color} Style of the third section.
+--- @field permissions_t_fg Color Foreground color of the type of permission.
+--- @field permissions_r_fg Color Foreground color of the read permission.
+--- @field permissions_w_fg Color Foreground color of the write permission.
+--- @field permissions_x_fg Color Foreground color of the execute permission.
+--- @field permissions_s_fg Color Foreground color of the separators between permission.
+--- @field tab_width integer Maximum tab width of the tabs component.
+--- @field selected {icon: string, fg: Color} Configuration for the count of files that selected.
+--- @field copied {icon: string, fg: Color} Configuration for the count of files that copied.
+--- @field cut {icon: string, fg: Color} Configuration for the count of files that cut.
+--- @field files {icon: string, fg: Color} Configuration for the count of files in the active tab.
+--- @field filtereds {icon: string, fg: Color} Configuration for the count of files in the active tab that are filtered.
+--- @field total {icon: string, fg: Color} Configuration for the count of progress tasks that finished.
+--- @field success {icon: string, fg: Color} Configuration for the count of progress tasks that successed.
+--- @field failed {icon: string, fg: Color} Configuration for the count of progress tasks that failed.
+--- @field show_background boolean Toggle the visibility of the background where no component exists.
+--- @field display_header_line boolean Toggle the visibility of the header-line.
+--- @field display_status_line boolean Toggle the visibility of the status-line.
+--- @field component_positions string[] Arrange positions of the Yazi sections.
+--- @field header_line LineConfig Configuration of header-line components.
+--- @field status_line LineConfig Configuration of status-line components.
+Yatline.config = {
+ section_separator = { open = "", close = "" },
+ part_separator = { open = "", close = "" },
+ inverse_separator = { open = "", close = "" },
+
+ padding = { inner = 1, outer = 1 },
+
+ style_a = {
+ bg = "white",
+ fg = "black",
+ bg_mode = {
+ normal = "white",
+ select = "brightyellow",
+ un_set = "brightred",
+ },
+ },
+ style_b = { bg = "brightblack", fg = "brightwhite" },
+ style_c = { bg = "black", fg = "brightwhite" },
+
+ permissions_t_fg = "green",
+ permissions_r_fg = "yellow",
+ permissions_w_fg = "red",
+ permissions_x_fg = "cyan",
+ permissions_s_fg = "white",
+
+ tab_width = 20,
+
+ selected = { icon = "󰻭", fg = "yellow" },
+ copied = { icon = "", fg = "green" },
+ cut = { icon = "", fg = "red" },
+
+ files = { icon = "", fg = "blue" },
+ filtereds = { icon = "", fg = "magenta" },
+
+ total = { icon = "󰮍", fg = "yellow" },
+ success = { icon = "", fg = "green" },
+ failed = { icon = "", fg = "red" },
+
+ show_background = true,
+
+ display_header_line = true,
+ display_status_line = true,
+
+ component_positions = { "header", "tab", "status" },
+
+ header_line = {
+ left = {
+ section_a = {
+ { type = "line", name = "tabs" },
+ },
+ section_b = {},
+ section_c = {},
+ },
+ right = {
+ section_a = {
+ { type = "string", name = "date", params = { "%A, %d %B %Y" } },
+ },
+ section_b = {
+ { type = "string", name = "date", params = { "%X" } },
+ },
+ section_c = {},
+ },
+ },
+
+ status_line = {
+ left = {
+ section_a = {
+ { type = "string", name = "tab_mode" },
+ },
+ section_b = {
+ { type = "string", name = "hovered_size" },
+ },
+ section_c = {
+ { type = "string", name = "hovered_path" },
+ { type = "coloreds", name = "count" },
+ },
+ },
+ right = {
+ section_a = {
+ { type = "string", name = "cursor_position" },
+ },
+ section_b = {
+ { type = "string", name = "cursor_percentage" },
+ },
+ section_c = {
+ { type = "string", name = "hovered_file_extension", params = { true } },
+ { type = "coloreds", name = "permissions" },
+ },
+ },
+ },
+}
+
+--=================--
+-- Component Setup --
+--=================--
+
+--- Sets the background of style_a according to the tab's mode.
+--- @param mode Mode The mode of the active tab.
+--- @see cx.active.mode To get the active tab's mode.
+local function set_mode_style(mode)
+ if mode.is_select then
+ Yatline.config.style_a.bg = Yatline.config.style_a.bg_mode.select
+ elseif mode.is_unset then
+ Yatline.config.style_a.bg = Yatline.config.style_a.bg_mode.un_set
+ else
+ Yatline.config.style_a.bg = Yatline.config.style_a.bg_mode.normal
+ end
+end
+
+--- Helper function to apply style table to a component
+--- @param component Span The component to style
+--- @param style table The style table with fg and/or bg fields
+local function apply_style_table(component, style)
+ if not style then
+ return component
+ end
+ -- Apply manually
+ if style.fg then
+ component:fg(style.fg)
+ end
+ if style.bg then
+ component:bg(style.bg)
+ end
+ if style.bold then
+ component:bold()
+ end
+ if style.dim then
+ component:dim()
+ end
+ if style.italic then
+ component:italic()
+ end
+ if style.underline then
+ component:underline()
+ end
+ if style.blink then
+ component:blink()
+ end
+ if style.blink_rapid then
+ component:blink_rapid()
+ end
+ if style.reverse then
+ component:reverse()
+ end
+ if style.hidden then
+ component:hidden()
+ end
+ if style.crossed then
+ component:crossed()
+ end
+
+ return component
+end
+
+--- Helper function to apply style table to a component
+--- @param component Span The component to style
+--- @param style table The style table with fg and/or bg fields
+local function apply_style_table(component, style)
+ if not style then
+ return component
+ end
+ -- Apply manually
+ if style.fg then component:fg(style.fg) end
+ if style.bg then component:bg(style.bg) end
+ if style.bold then component:bold() end
+ if style.dim then component:dim() end
+ if style.italic then component:italic() end
+ if style.underline then component:underline() end
+ if style.blink then component:blink() end
+ if style.blink_rapid then component:blink_rapid() end
+ if style.reverse then component:reverse() end
+ if style.hidden then component:hidden() end
+ if style.crossed then component:crossed() end
+ return component
+end
+
+--- Sets the style of the component according to the its type.
+--- @param component Span Component that will be styled.
+--- @param component_type ComponentType Which section component will be in [ a | b | c ].
+--- @see Style To see how to style, in Yazi's documentation.
+local function set_component_style(component, component_type)
+ if component_type == ComponentType.A then
+ apply_style_table(component, Yatline.config.style_a):bold()
+ elseif component_type == ComponentType.B then
+ apply_style_table(component, Yatline.config.style_b)
+ else
+ apply_style_table(component, Yatline.config.style_c)
+ end
+end
+
+--- Surronds component with paddings.
+--- @param component string | Span | Line Component that will be connected to paddings.
+--- @param component_type ComponentType Which section component will be in [ a | b | c ].
+--- @param in_side Side Left or right side of the either header-line or status-line.
+--- @return Line line A Line which is a component that has padding.
+local function connect_padding(component, component_type, in_side)
+ local inner = ui.Span(string.rep(" ", Yatline.config.padding.inner))
+ local outer = ui.Span(string.rep(" ", Yatline.config.padding.outer))
+
+ set_mode_style(cx.active.mode)
+ set_component_style(inner, component_type)
+ set_component_style(outer, component_type)
+
+ if in_side == Side.LEFT then
+ return ui.Line({ outer, component, inner })
+ else
+ return ui.Line({ inner, component, outer })
+ end
+end
+
+--- Connects component to a separator.
+--- @param component Span Component that will be connected to separator.
+--- @param in_side Side Left or right side of the either header-line or status-line.
+--- @param separator_type SeparatorType Where will there be a separator in the section.
+--- @param separator_style {bg: string?, fg: string?} Holds the style of the separator.
+--- @return Line line A Line which may have either both component and separator, or component.
+local function connect_separator(component, in_side, separator_type, separator_style)
+ local open, close
+ if
+ separator_type == SeparatorType.OUTER and not (separator_style.bg == "reset" and separator_style.fg == "reset")
+ then
+ open = ui.Span(Yatline.config.section_separator.open)
+ close = ui.Span(Yatline.config.section_separator.close)
+
+ if separator_style.fg == "reset" then
+ if separator_style.bg ~= "" then
+ open = ui.Span(Yatline.config.inverse_separator.open)
+ close = ui.Span(Yatline.config.inverse_separator.close)
+
+ separator_style.fg, separator_style.bg = separator_style.bg, separator_style.fg
+ else
+ return ui.Line({ component })
+ end
+ end
+ else
+ open = ui.Span(Yatline.config.part_separator.open)
+ close = ui.Span(Yatline.config.part_separator.close)
+ end
+
+ apply_style_table(open, separator_style)
+ apply_style_table(close, separator_style)
+
+ if in_side == Side.LEFT then
+ return ui.Line({ component, close })
+ else
+ return ui.Line({ open, component })
+ end
+end
+
+--==================--
+-- Helper Functions --
+--==================--
+
+--- Gets the file name from given file extension.
+--- @param file_name string The name of a file whose extension will be taken.
+--- @return string file_extension Extension of a file.
+local function get_file_extension(file_name)
+ local extension = file_name:match("^.+%.(.+)$")
+
+ if extension == nil or extension == "" then
+ return "null"
+ else
+ return extension
+ end
+end
+
+--- Reverse the order of given array
+--- @param array Line Array which wants to be reversed.
+--- @return table reversed Reversed ordered given array.
+local function reverse_order(array)
+ local reversed = {}
+ for i = #array, 1, -1 do
+ table.insert(reversed, array[i])
+ end
+
+ return reversed
+end
+
+--- the number of characters in a UTF-8 string
+--- @param s string The string to process.
+--- @return integer The number of characters in the string.
+local function utf8len(s)
+ -- count the number of non-continuing bytes
+ return select(2, s:gsub("[^\128-\193]", ""))
+end
+
+--- like string.sub() but i, j are utf8 strings
+--- a utf8-safe string.sub()
+--- @param s string The string to process.
+--- @param i integer The start position.
+--- @param j integer The end position.
+--- @return string The substring.
+local function utf8sub(s, i, j)
+ -- pattern for matching UTF-8 characters
+ local pattern = "[%z\1-\127\194-\244][\128-\191]*"
+
+ -- helper function for position calculation
+ --- @param pos integer The position of the character.
+ --- @param len integer The length of the string.
+ --- @return integer The relative position of the character.
+ local function posrelat(pos, len)
+ if pos < 0 then
+ pos = len + pos + 1
+ end
+ return pos
+ end
+
+ -- helper function to iterate over UTF-8 chars
+ local function chars(_s, no_subs)
+ local function map(f)
+ local _i = 0
+ if no_subs then
+ for b, e in _s:gmatch("()" .. pattern .. "()") do
+ _i = _i + 1
+ local c = e - b
+ f(_i, c, b)
+ end
+ else
+ for b, c in _s:gmatch("()(" .. pattern .. ")") do
+ _i = _i + 1
+ f(_i, c, b)
+ end
+ end
+ end
+ return coroutine.wrap(function()
+ return map(coroutine.yield)
+ end)
+ end
+
+ local l = utf8len(s)
+
+ i = posrelat(i, l)
+ j = j and posrelat(j, l) or l
+
+ if i < 1 then
+ i = 1
+ end
+ if j > l then
+ j = l
+ end
+
+ if i > j then
+ return ""
+ end
+
+ local diff = j - i
+ local iter = chars(s, true)
+
+ -- advance up to i
+ for _ = 1, i - 1 do
+ iter()
+ end
+
+ local c, b = select(2, iter())
+
+ -- becareful with the edge case of empty string
+ if not b then
+ return ""
+ end
+
+ -- i and j are the same, single-character sub
+ if diff == 0 then
+ return string.sub(s, b, b + c - 1)
+ end
+
+ i = b
+
+ -- advance up to j
+ for _ = 1, diff - 1 do
+ iter()
+ end
+
+ c, b = select(2, iter())
+
+ return string.sub(s, i, b + c - 1)
+end
+
+--- Trims the filename if it is longer than the max_length.
+--- @param filename string The name of a file which will be trimmed.
+--- @param max_length integer Maximum length of the filename.
+--- @param trim_length integer Length of the trimmed filename.
+--- @return string trimmed_filename Trimmed filename.
+local function trim_filename(filename, max_length, trim_length)
+ if not max_length or not trim_length then
+ return filename
+ end
+
+ -- Count UTF-8 characters
+ local len = utf8len(filename)
+
+ if len <= max_length then
+ return filename
+ end
+
+ if len <= trim_length * 2 then
+ return filename
+ end
+
+ return utf8sub(filename, 1, trim_length) .. "..." .. utf8sub(filename, len - trim_length + 1, len)
+end
+
+--========================--
+-- Component String Group --
+--========================--
+
+Yatline.string = {}
+Yatline.string.get = {}
+Yatline.string.has_separator = true
+
+--- Creates a component from given string according to other parameters.
+--- @param string string The text which will be shown inside of the component.
+--- @param component_type ComponentType Which section component will be in [ a | b | c ].
+--- @return Line line Customized Line which follows desired style of the parameters.
+--- @see set_mode_style To know how mode style selected.
+--- @see set_component_style To know how component style applied.
+function Yatline.string.create(string, component_type)
+ local span = ui.Span(string)
+ set_mode_style(cx.active.mode)
+ set_component_style(span, component_type)
+
+ return ui.Line({ span })
+end
+
+--- Gets the hovered file's name of the current active tab.
+--- @param trimmed? boolean Whether to trim the filename if it's too long (default: false)
+--- @param max_length? integer Maximum length of the filename (default: 24)
+--- @param trim_length? integer Length of each end when trimming (default: 10)
+--- @param show_symlink? boolean Whether to show symlink target (default: false)
+--- @return string name Current active tab's hovered file's name
+function Yatline.string.get:hovered_name(trimmed, max_length, trim_length, show_symlink)
+ trimmed = trimmed or false
+ max_length = max_length or 24
+ trim_length = trim_length or 10
+ show_symlink = show_symlink or false
+
+ local hovered = cx.active.current.hovered
+ if not hovered then
+ return ""
+ end
+
+ local link_delimiter = " -> "
+ local linked = (show_symlink and hovered.link_to ~= nil) and (link_delimiter .. tostring(hovered.link_to)) or ""
+
+ if trimmed then
+ local trimmed_name = trim_filename(hovered.name, max_length, trim_length)
+ local trimmed_linked = #linked ~= 0
+ and link_delimiter .. trim_filename(
+ string.sub(linked, #link_delimiter + 1, -1),
+ max_length,
+ trim_length
+ )
+ or ""
+ return trimmed_name .. trimmed_linked
+ else
+ return hovered.name .. linked
+ end
+end
+
+--- Gets the hovered file's path of the current active tab.
+--- @param trimmed? boolean Whether to trim the file path if it's too long (default: false)
+--- @param max_length? integer Maximum length of the file path (default: 24)
+--- @param trim_length? integer Length of each end when trimming (default: 10)
+--- @return string path Current active tab's hovered file's path.
+function Yatline.string.get:hovered_path(trimmed, max_length, trim_length)
+ trimmed = trimmed or false
+ max_length = max_length or 24
+ trim_length = trim_length or 10
+
+ local hovered = cx.active.current.hovered
+ if not hovered then
+ return ""
+ end
+
+ if trimmed then
+ return trim_filename(ya.readable_path(tostring(hovered.url)), max_length, trim_length)
+ else
+ return ya.readable_path(tostring(hovered.url))
+ end
+end
+
+--- Gets the hovered file's size of the current active tab.
+--- @return string size Current active tab's hovered file's size.
+function Yatline.string.get:hovered_size()
+ local hovered = cx.active.current.hovered
+ if hovered then
+ return ya.readable_size(hovered:size() or hovered.cha.len)
+ else
+ return ""
+ end
+end
+
+--- Gets the hovered file's path of the current active tab.
+--- @return string mime Current active tab's hovered file's mime.
+function Yatline.string.get:hovered_mime()
+ local hovered = cx.active.current.hovered
+ if hovered then
+ return hovered:mime()
+ else
+ return ""
+ end
+end
+
+--- Gets the hovered file's user and group ownership of the current active tab.
+--- Unix-like systems only.
+--- @return string ownership Current active tab's hovered file's user and group ownership.
+function Yatline.string.get:hovered_ownership()
+ local hovered = cx.active.current.hovered
+
+ if hovered then
+ if not hovered.cha.uid or not hovered.cha.gid then
+ return ""
+ end
+
+ local username = ya.user_name(hovered.cha.uid) or tostring(hovered.cha.uid)
+ local groupname = ya.group_name(hovered.cha.gid) or tostring(hovered.cha.gid)
+
+ return username .. ":" .. groupname
+ else
+ return ""
+ end
+end
+
+--- Gets the hovered file's extension of the current active tab.
+--- @param show_icon boolean Whether or not an icon will be shown.
+--- @return string file_extension Current active tab's hovered file's extension.
+function Yatline.string.get:hovered_file_extension(show_icon)
+ local hovered = cx.active.current.hovered
+
+ if hovered then
+ local cha = hovered.cha
+
+ local name
+ if cha.is_dir then
+ name = "dir"
+ else
+ name = get_file_extension(hovered.url.name)
+ end
+
+ if show_icon then
+ local icon = hovered:icon().text
+ return icon .. " " .. name
+ else
+ return name
+ end
+ else
+ return ""
+ end
+end
+
+--- Gets the path of the current active tab.
+--- @param trimmed? boolean Whether to trim the current active tab's path if it's too long (default: false)
+--- @param max_length? integer Maximum length of the current active tab's path (default: 24)
+--- @param trim_length? integer Length of each end when trimming (default: 10)
+--- @return string path Current active tab's path.
+function Yatline.string.get:tab_path(trimmed, max_length, trim_length)
+ trimmed = trimmed or false
+ max_length = max_length or 24
+ trim_length = trim_length or 10
+
+ local cwd = cx.active.current.cwd
+ local filter = cx.active.current.files.filter
+ local finder = cx.active.finder
+
+ local t = {}
+ if cwd.is_search then
+ t[#t + 1] = string.format("search: %s", cwd.domain)
+ end
+ if filter then
+ t[#t + 1] = string.format("filter: %s", filter)
+ end
+ if finder then
+ t[#t + 1] = string.format("find: %s", finder)
+ end
+
+ local suffix
+ if #t ~= 0 then
+ suffix = " (" .. table.concat(t, ", ") .. ")"
+ else
+ suffix = ""
+ end
+
+ if trimmed then
+ return trim_filename(ya.readable_path(tostring(cwd)), max_length, trim_length) .. suffix
+ else
+ return ya.readable_path(tostring(cwd)) .. suffix
+ end
+end
+
+--- Gets the filtered query.
+--- @param key? string Key value that indicates filtered query (default: "filter:")
+--- @return string query Filtered query.
+function Yatline.string.get:filter_query(key)
+ key = key or "filter:"
+
+ local filter = cx.active.current.files.filter
+
+ if filter then
+ return string.format("%s %s", key, tostring(filter))
+ else
+ return ""
+ end
+end
+
+--- Gets the searched query.
+--- @param key? string Key value that indicates searched query (default: "search:")
+--- @return string query Searched query.
+function Yatline.string.get:search_query(key)
+ key = key or "search:"
+
+ local cwd = cx.active.current.cwd
+
+ if cwd.is_search then
+ return string.format("%s %s", key, cwd.domain)
+ else
+ return ""
+ end
+end
+
+--- Gets the finded query.
+--- @param key? string Key value that indicates finded query (default: "find:")
+--- @return string query Finded query.
+function Yatline.string.get:finder_query(key)
+ key = key or "find:"
+
+ local finder = cx.active.finder
+
+ if finder then
+ return string.format("%s %s", key, tostring(finder))
+ else
+ return ""
+ end
+end
+
+--- Gets the mode of active tab.
+--- @return string mode Active tab's mode.
+function Yatline.string.get:tab_mode()
+ local mode = tostring(cx.active.mode):upper()
+ if mode == "UNSET" then
+ mode = "UN-SET"
+ end
+
+ return mode
+end
+
+--- Gets the number of files in the current active tab.
+--- @return string num_files Number of files in the current active tab.
+function Yatline.string.get:tab_num_files()
+ return tostring(#cx.active.current.files)
+end
+
+--- Gets the cursor position in the current active tab.
+--- @return string cursor_position Current active tab's cursor position.
+function Yatline.string.get:cursor_position()
+ local cursor = cx.active.current.cursor
+ local length = #cx.active.current.files
+
+ if length ~= 0 then
+ return string.format("%d/%d", cursor + 1, length)
+ else
+ return "0"
+ end
+end
+
+--- Gets the cursor position as percentage which is according to the number of files inside of current active tab.
+--- @return string percentage Percentage of current active tab's cursor position and number of percentages.
+function Yatline.string.get:cursor_percentage()
+ local percentage = 0
+ local cursor = cx.active.current.cursor
+ local length = #cx.active.current.files
+ if cursor ~= 0 and length ~= 0 then
+ percentage = math.floor((cursor + 1) * 100 / length)
+ end
+
+ if percentage == 0 then
+ return "Top"
+ elseif percentage == 100 then
+ return "Bot"
+ else
+ return string.format("%d%%", percentage)
+ end
+end
+
+--- Gets the local date or time values.
+--- @param format string Format for giving desired date or time values.
+--- @return string date Date or time values.
+--- @see os.date To see how format works.
+function Yatline.string.get:date(format)
+ return tostring(os.date(format))
+end
+
+--======================--
+-- Component Line Group --
+--======================--
+
+Yatline.line = {}
+Yatline.line.get = {}
+Yatline.line.has_separator = false
+
+--- To follow component group naming and functions, returns the given line without any changes.
+--- @param line Line The line already pre-defined.
+--- @param component_type ComponentType Which section component will be in [ a | b | c ]. Will not be used.
+--- @return Line line The given line as an input.
+function Yatline.line.create(line, component_type)
+ return line
+end
+
+--- Creates and returns line component for tabs.
+--- @param side? string Left or right side of the either header-line or status-line.
+--- @return Line line Customized Line which contains tabs.
+--- @see set_mode_style To know how mode style selected.
+--- @see set_component_style To know how component style applied.
+--- @see connect_padding To know how components have paddings.
+--- @see connect_separator To know how component and separator connected.
+function Yatline.line.get:tabs(side)
+ side = side or "left"
+
+ local tabs = #cx.tabs
+ local lines = {}
+
+ local in_side
+ if side == "left" then
+ in_side = Side.LEFT
+ else
+ in_side = Side.RIGHT
+ end
+
+ for i = 1, tabs do
+ local text = tostring(i)
+ if Yatline.config.tab_width > 2 then
+ text = ui.truncate(text .. " " .. cx.tabs[i].name, { max = Yatline.config.tab_width })
+ end
+
+ local separator_style = { bg = nil, fg = nil }
+ if i == cx.tabs.idx then
+ local tab = connect_padding(text, ComponentType.A, in_side)
+ set_mode_style(cx.tabs[i].mode)
+ set_component_style(tab, ComponentType.A)
+
+ if Yatline.config.style_a.bg ~= "reset" or Yatline.config.show_background then
+ separator_style.fg = Yatline.config.style_a.bg
+ if Yatline.config.show_background then
+ separator_style.bg = Yatline.config.style_c.bg
+ end
+
+ lines[#lines + 1] = connect_separator(tab, in_side, SeparatorType.OUTER, separator_style)
+ else
+ separator_style.fg = Yatline.config.style_a.fg
+
+ lines[#lines + 1] = connect_separator(tab, in_side, SeparatorType.INNER, separator_style)
+ end
+ else
+ local tab = ui.Span(text)
+ local inner = ui.Span(string.rep(" ", Yatline.config.padding.inner))
+ local outer = ui.Span(string.rep(" ", Yatline.config.padding.outer))
+
+ if Yatline.config.show_background then
+ set_component_style(inner, ComponentType.C)
+ set_component_style(outer, ComponentType.C)
+ set_component_style(tab, ComponentType.C)
+ else
+ apply_style_table(tab, { fg = Yatline.config.style_c.fg })
+ end
+
+ if in_side == Side.LEFT then
+ tab = ui.Line({ outer, tab, inner })
+ else
+ tab = ui.Line({ inner, tab, outer })
+ end
+
+ if i == cx.tabs.idx - 1 then
+ set_mode_style(cx.tabs[i + 1].mode)
+
+ local open, close
+ if
+ Yatline.config.style_a.bg ~= "reset"
+ or (Yatline.config.show_background and Yatline.config.style_c.bg ~= "reset")
+ then
+ if
+ not Yatline.config.show_background
+ or (Yatline.config.show_background and Yatline.config.style_c.bg == "reset")
+ then
+ separator_style.fg = Yatline.config.style_a.bg
+ if Yatline.config.show_background then
+ separator_style.bg = Yatline.config.style_c.bg
+ end
+
+ open = ui.Span(Yatline.config.inverse_separator.open)
+ close = ui.Span(Yatline.config.inverse_separator.close)
+ else
+ separator_style.bg = Yatline.config.style_a.bg
+ if Yatline.config.show_background then
+ separator_style.fg = Yatline.config.style_c.bg
+ end
+
+ open = ui.Span(Yatline.config.section_separator.open)
+ close = ui.Span(Yatline.config.section_separator.close)
+ end
+ else
+ separator_style.fg = Yatline.config.style_c.fg
+
+ open = ui.Span(Yatline.config.part_separator.open)
+ close = ui.Span(Yatline.config.part_separator.close)
+ end
+
+ apply_style_table(open, separator_style)
+ apply_style_table(close, separator_style)
+
+ if in_side == Side.LEFT then
+ lines[#lines + 1] = ui.Line({ tab, close })
+ else
+ lines[#lines + 1] = ui.Line({ open, tab })
+ end
+ else
+ separator_style.fg = Yatline.config.style_c.fg
+ if Yatline.config.show_background then
+ separator_style.bg = Yatline.config.style_c.bg
+ end
+
+ lines[#lines + 1] = connect_separator(tab, in_side, SeparatorType.INNER, separator_style)
+ end
+ end
+ end
+
+ if in_side == Side.RIGHT then
+ return ui.Line(reverse_order(lines))
+ else
+ return ui.Line(lines)
+ end
+end
+
+--==========================--
+-- Component Coloreds Group --
+--==========================--
+
+Yatline.coloreds = {}
+Yatline.coloreds.get = {}
+Yatline.coloreds.has_separator = true
+
+--- Creates a component from given Coloreds according to other parameters.
+--- The component it created, can contain multiple strings with different foreground color.
+--- @param coloreds Coloreds The array which contains an array which contains text which will be shown inside of the component and its foreground color.
+--- @param component_type ComponentType Which section component will be in [ a | b | c ].
+--- @return Line line Customized Line which follows desired style of the parameters.
+--- @see set_mode_style To know how mode style selected.
+--- @see set_component_style To know how component style applied.
+function Yatline.coloreds.create(coloreds, component_type)
+ set_mode_style(cx.active.mode)
+
+ local spans = {}
+ for i, colored in ipairs(coloreds) do
+ local span = ui.Span(colored[1])
+ set_component_style(span, component_type)
+ span:fg(colored[2])
+
+ spans[i] = span
+ end
+
+ return ui.Line(spans)
+end
+
+--- Gets the hovered file's permissions of the current active tab.
+--- Unix-like systems only.
+--- @return Coloreds? coloreds Current active tab's hovered file's permissions
+function Yatline.coloreds.get:permissions()
+ local hovered = cx.active.current.hovered
+
+ if hovered then
+ local perm = hovered.cha:perm()
+
+ if perm then
+ local coloreds = {}
+
+ for i = 1, #perm do
+ local c = perm:sub(i, i)
+
+ local fg = Yatline.config.permissions_t_fg
+ if c == "-" then
+ fg = Yatline.config.permissions_s_fg
+ elseif c == "r" then
+ fg = Yatline.config.permissions_r_fg
+ elseif c == "w" then
+ fg = Yatline.config.permissions_w_fg
+ elseif c == "x" or c == "s" or c == "S" or c == "t" or c == "T" then
+ fg = Yatline.config.permissions_x_fg
+ end
+
+ table.insert(coloreds, { c, fg })
+ end
+
+ return coloreds
+ else
+ return nil
+ end
+ else
+ return nil
+ end
+end
+
+--- Gets the number of selected and yanked files and also number of files or filtered files of the active tab.
+--- @param filter? boolean Whether or not number of files (or filtered files) will be shown.
+--- @param zero_check? boolean Whether or not counts will be shown if count is zero.
+--- @return Coloreds? coloreds Active tab's number of selected and yanked files and also number of files or filtered files
+function Yatline.coloreds.get:count(filter, zero_check)
+ filter = filter or false
+ zero_check = zero_check or false
+
+ local num_yanked = #cx.yanked
+ local num_selected = #cx.active.selected
+ local num_files = #cx.active.current.files
+
+ local coloreds = {}
+
+ if filter then
+ local files_count_fg, files_count_icon
+ if cx.active.current.files.filter or cx.active.current.cwd.is_search then
+ files_count_fg = Yatline.config.filtereds.fg
+ files_count_icon = Yatline.config.filtereds.icon
+ else
+ files_count_fg = Yatline.config.files.fg
+ files_count_icon = Yatline.config.files.icon
+ end
+
+ if (zero_check and num_files > 0) or not zero_check then
+ table.insert(coloreds, { string.format("%s %d", files_count_icon, num_files), files_count_fg })
+ end
+ end
+
+ if (zero_check and num_selected > 0) or not zero_check then
+ if #coloreds > 0 then
+ table.insert(coloreds, { " ", Yatline.config.selected.fg })
+ end
+
+ table.insert(
+ coloreds,
+ { string.format("%s %d", Yatline.config.selected.icon, num_selected), Yatline.config.selected.fg }
+ )
+ end
+
+ if (zero_check and num_yanked > 0) or not zero_check then
+ local yanked_fg, yanked_icon
+ if cx.yanked.is_cut then
+ yanked_fg = Yatline.config.cut.fg
+ yanked_icon = Yatline.config.cut.icon
+ else
+ yanked_fg = Yatline.config.copied.fg
+ yanked_icon = Yatline.config.copied.icon
+ end
+
+ if #coloreds > 0 then
+ table.insert(coloreds, { " ", yanked_fg })
+ end
+
+ table.insert(coloreds, { string.format("%s %d", yanked_icon, num_yanked), yanked_fg })
+ end
+
+ if #coloreds > 0 then
+ return coloreds
+ else
+ return nil
+ end
+end
+
+--- Gets the number of task states.
+--- @param zero_check? boolean Whether or not counts will be shown if count is zero.
+--- @return Coloreds? coloreds Number of task states.
+function Yatline.coloreds.get:task_states(zero_check)
+ zero_check = zero_check or false
+
+ local summary = cx.tasks.summary
+ local coloreds = {}
+
+ if (zero_check and summary.total > 0) or not zero_check then
+ table.insert(
+ coloreds,
+ { string.format("%s %d", Yatline.config.total.icon, summary.total), Yatline.config.total.fg }
+ )
+ end
+
+ if (zero_check and summary.success > 0) or not zero_check then
+ if #coloreds > 0 then
+ table.insert(coloreds, { " ", Yatline.config.success.fg })
+ end
+
+ table.insert(
+ coloreds,
+ { string.format("%s %d", Yatline.config.success.icon, summary.success), Yatline.config.success.fg }
+ )
+ end
+
+ if (zero_check and summary.failed > 0) or not zero_check then
+ if #coloreds > 0 then
+ table.insert(coloreds, { " ", Yatline.config.failed.fg })
+ end
+
+ table.insert(
+ coloreds,
+ { string.format("%s %d", Yatline.config.failed.icon, summary.failed), Yatline.config.failed.fg }
+ )
+ end
+
+ if #coloreds > 0 then
+ return coloreds
+ else
+ return nil
+ end
+end
+
+--- Gets colored which contains string based component's string and desired foreground color.
+--- @param component_name string String based component's name.
+--- @param fg Color Desired foreground color.
+--- @param params? table Array of parameters of string based component. It is optional.
+--- @return Coloreds? coloreds Array of solely array of string based component's string and desired foreground color.
+function Yatline.coloreds.get:string_based_component(component_name, fg, params)
+ local getter = Yatline.string.get[component_name]
+
+ if getter then
+ local output
+ if params then
+ output = getter(Yatline.string.get, table.unpack(params))
+ else
+ output = getter()
+ end
+
+ if output ~= nil and output ~= "" then
+ return { { output, fg } }
+ end
+ end
+
+ return nil
+end
+
+--===============--
+-- Configuration --
+--===============--
+
+--- Configure separators if it is need to be added to the components.
+--- Connects them with each component.
+--- @param section_components [Line, boolean][] Array of components in one of the sections.
+--- @param component_type ComponentType Which section component will be in [ a | b | c ].
+--- @param in_side Side Left or right side of the either header-line or status-line.
+--- @param num_section_b_components integer Number of components in section-b.
+--- @param num_section_c_components integer Number of components in section-c.
+--- @return table section_line_components Array of line components whether or not connected with separators.
+--- @see connect_padding To know how components have paddings.
+--- @see connect_separator To know how component and separator connected.
+local function config_components_separators(
+ section_components,
+ component_type,
+ in_side,
+ num_section_b_components,
+ num_section_c_components
+)
+ local num_section_components = #section_components
+ local section_line_components = {}
+ for i, component in ipairs(section_components) do
+ if component[2] == true then -- Does component have separator?
+ local separator_style = { bg = nil, fg = nil }
+
+ local separator_type
+ if i ~= num_section_components then -- Does component is not at the end of the section?
+ separator_type = SeparatorType.INNER
+
+ if component_type == ComponentType.A then
+ separator_style = Yatline.config.style_a
+ elseif component_type == ComponentType.B then
+ separator_style = Yatline.config.style_b
+ else
+ separator_style = Yatline.config.style_c
+ end
+ else -- Does component is at the end of the section?
+ separator_type = SeparatorType.OUTER
+
+ if component_type == ComponentType.A then
+ separator_style.fg = Yatline.config.style_a.bg
+ elseif component_type == ComponentType.B then
+ separator_style.fg = Yatline.config.style_b.bg
+ else
+ separator_style.fg = Yatline.config.style_c.bg
+ end
+
+ if component_type == ComponentType.A and num_section_b_components ~= 0 then
+ separator_style.bg = Yatline.config.style_b.bg
+ elseif num_section_c_components == 0 or component_type == ComponentType.C then
+ if Yatline.config.show_background then
+ separator_style.bg = Yatline.config.style_c.bg
+ end
+ else
+ separator_style.bg = Yatline.config.style_c.bg
+ end
+ end
+
+ component[1] = connect_padding(component[1], component_type, in_side)
+ section_line_components[i] = connect_separator(component[1], in_side, separator_type, separator_style)
+ else
+ section_line_components[i] = component[1]
+ end
+ end
+
+ return section_line_components
+end
+
+--- Creates configured section according to its components' config.
+--- @param section ComponentConfig[] Array of components' config in a section.
+--- @param component_type ComponentType Which section that components will be.
+--- @return [Line, boolean][] section_components Configured components array whose components are in section.
+local function config_section(section, component_type)
+ --- @type [Line, boolean][]
+ local section_components = {}
+
+ for _, component in ipairs(section) do
+ local component_group = Yatline[component.type]
+
+ if component_group then -- Does component group exist?
+ if component.custom then -- Does component is custom?
+ if component.name ~= nil and component.name ~= "" and #component.name ~= 0 then -- Does component name is valid?
+ section_components[#section_components + 1] = -- Insert component to the table.
+ { component_group.create(component.name, component_type), component_group.has_separator }
+ end
+ else
+ local getter = component_group.get[component.name] -- Get component function that will be called.
+
+ if getter then -- Does function exist?
+ local output -- Output of the function.
+ if component.params then -- Does component function has parameters?
+ output = getter(component_group.get, table.unpack(component.params))
+ else
+ output = getter()
+ end
+
+ if output ~= nil and output ~= "" then -- Does component is not empty?
+ section_components[#section_components + 1] = -- Insert component to the table.
+ { component_group.create(output, component_type), component_group.has_separator }
+ end
+ end
+ end
+ end
+ end
+
+ return section_components
+end
+
+--- Automatically creates and configures either header-line or status-line.
+--- @param side SideConfig Configuration of either left or right side.
+--- @param in_side Side Which side components will be.
+--- @return Line left_line Consist of components that are in left side of the line.
+--- @return Line right_line Consist of components that are in right side of the line.
+--- @see config_section To know how components are gotten from sections' config.
+--- @see config_components_separators To know how components are connected with separators.
+local function config_line(side, in_side)
+ -- Configures components of sections.
+ local section_a_components = config_section(side.section_a, ComponentType.A)
+ local section_b_components = config_section(side.section_b, ComponentType.B)
+ local section_c_components = config_section(side.section_c, ComponentType.C)
+
+ local num_section_b_components = #section_b_components
+ local num_section_c_components = #section_c_components
+
+ -- Connects components of section by separators.
+ local section_a_line_components = config_components_separators(
+ section_a_components,
+ ComponentType.A,
+ in_side,
+ num_section_b_components,
+ num_section_c_components
+ )
+ local section_b_line_components = config_components_separators(
+ section_b_components,
+ ComponentType.B,
+ in_side,
+ num_section_b_components,
+ num_section_c_components
+ )
+ local section_c_line_components = config_components_separators(
+ section_c_components,
+ ComponentType.C,
+ in_side,
+ num_section_b_components,
+ num_section_c_components
+ )
+
+ if in_side == Side.RIGHT then -- Reverse the order of the components if it is in the right side.
+ section_a_line_components = reverse_order(section_a_line_components)
+ section_b_line_components = reverse_order(section_b_line_components)
+ section_c_line_components = reverse_order(section_c_line_components)
+ end
+
+ -- Combines components of section into single components.
+ local section_a_line = ui.Line(section_a_line_components)
+ local section_b_line = ui.Line(section_b_line_components)
+ local section_c_line = ui.Line(section_c_line_components)
+
+ if in_side == Side.LEFT then
+ return ui.Line({ section_a_line, section_b_line, section_c_line })
+ else
+ return ui.Line({ section_c_line, section_b_line, section_a_line })
+ end
+end
+
+--- Checks if either header-line or status-line contains components.
+--- @param line LineConfig Configuration of either header-line or status-line.
+--- @return boolean show_line Returns yes if it contains components, otherwise returns no.
+local function show_line(line)
+ for _, side in pairs(line) do
+ for _, section in pairs(side) do
+ if #section ~= 0 then
+ return true
+ end
+ end
+ end
+
+ return false
+end
+
+--- Creates and configures paragraph which is used as left or right of either
+--- header-line or status-line.
+--- @param area Rect The area where paragraph will be placed in.
+--- @param line? Line The line which used in paragraph. It is optional.
+--- @return Paragraph paragraph Configured parapgraph.
+local function config_paragraph(area, line)
+ local line_array = { line } or {}
+ if Yatline.config.show_background then
+ return apply_style_table(ui.Text(line_array):area(area), Yatline.config.style_c)
+ else
+ return ui.Text(line_array):area(area)
+ end
+end
+
+return {
+ setup = function(_, config, pre_theme)
+ if config then
+ -- Fills the sections that are not given if the line exists.
+ for _, line in ipairs({ "header_line", "status_line" }) do
+ if config[line] then
+ for _, side in ipairs({ "left", "right" }) do
+ if config[line][side] then
+ for _, section in ipairs({ "section_a", "section_b", "section_c" }) do
+ config[line][side][section] = config[line][side][section] or {}
+ end
+ else
+ config[line][side] = {}
+ for _, section in ipairs({ "section_a", "section_b", "section_c" }) do
+ config[line][side][section] = {}
+ end
+ end
+ end
+ end
+ end
+
+ -- Get the current theme according to the light/dark mode. (default: config.theme)
+ config.theme = (not rt.term.light and config.theme_dark)
+ or (rt.term.light and config.theme_light)
+ or config.theme
+
+ -- Extracts theme fields to the config unless that fields does not exists.
+ if config.theme then
+ for key, value in pairs(config.theme) do
+ if not config[key] then
+ config[key] = value
+ end
+ end
+ end
+
+ -- Extracts config fields to the YatlineConfig if that fields exists.
+ for key, value in pairs(config) do
+ if Yatline.config[key] then
+ Yatline.config[key] = value
+ end
+ end
+ end
+
+ -- Extracts pre_theme fields to the YatlineConfig if that fields exists.
+ if pre_theme then
+ for key, value in pairs(pre_theme) do
+ if Yatline.config[key] then
+ Yatline.config[key] = value
+ end
+ end
+ end
+
+ if Yatline.config.display_header_line then -- Controls displaying header-line.
+ if show_line(Yatline.config.header_line) then -- Controls recoding of header-line.
+ -- Empties default Yazi header-line.
+ Header._left = {}
+ Header._right = {}
+
+ Header.redraw = function(self)
+ -- Gets Yazi components.
+ local right = self:children_redraw(self.RIGHT)
+ self._right_width = right:width()
+ local left = self:children_redraw(self.LEFT)
+
+ -- Gets Yatline components.
+ local left_line = config_line(Yatline.config.header_line.left, Side.LEFT)
+ local right_line = config_line(Yatline.config.header_line.right, Side.RIGHT)
+
+ return {
+ config_paragraph(self._area, ui.Line({ left_line, left })), -- Styles left_line if show_background set.
+ ui.Line({ right, right_line }):area(self._area):align(ui.Align.RIGHT),
+ }
+ end
+ end
+ else
+ Header.redraw = function()
+ return {}
+ end
+ end
+
+ if Yatline.config.display_status_line then -- Controls displaying status-line.
+ if show_line(Yatline.config.status_line) then -- Controls recoding of status-line.
+ -- Empties default Yazi status-line.
+ Status._left = {}
+ Status._right = {}
+
+ Status.redraw = function(self)
+ -- Gets Yazi components.
+ local left = self:children_redraw(self.LEFT)
+ local right = self:children_redraw(self.RIGHT)
+
+ -- Gets Yatline components.
+ local left_line = config_line(Yatline.config.status_line.left, Side.LEFT)
+ local right_line = config_line(Yatline.config.status_line.right, Side.RIGHT)
+
+ local sum_right = ui.Line({ right, right_line }) -- Needed for error prevention.
+ return {
+ config_paragraph(self._area, ui.Line({ left_line, left })), -- Styles left_line if show_background set.
+ sum_right:area(self._area):align(ui.Align.RIGHT),
+ table.unpack(ui.redraw(Progress:new(self._area, sum_right:width()))), -- Inserts Progress bar.
+ }
+ end
+ end
+ else
+ Status.redraw = function()
+ return {}
+ end
+ end
+
+ Root.layout = function(self)
+ local constraints = {}
+ -- Sets Yazi layout according to the given positions.
+ for _, component in ipairs(Yatline.config.component_positions) do
+ if
+ (component == "header" and Yatline.config.display_header_line)
+ or (component == "status" and Yatline.config.display_status_line)
+ then
+ table.insert(constraints, ui.Constraint.Length(1))
+ elseif component == "tab" then
+ table.insert(constraints, ui.Constraint.Fill(1))
+ end
+ end
+
+ self._chunks = ui.Layout():direction(ui.Layout.VERTICAL):constraints(constraints):split(self._area)
+ end
+
+ Root.build = function(self)
+ local childrens = {}
+ -- Fills the layout according to the given positions.
+ local i = 1
+ for _, component in ipairs(Yatline.config.component_positions) do
+ if component == "header" and Yatline.config.display_header_line then
+ table.insert(childrens, Header:new(self._chunks[i], cx.active))
+ i = i + 1
+ elseif component == "tab" then
+ table.insert(childrens, Tab:new(self._chunks[i], cx.active))
+ i = i + 1
+ elseif component == "status" and Yatline.config.display_status_line then
+ table.insert(childrens, Status:new(self._chunks[i], cx.active))
+ i = i + 1
+ end
+ end
+
+ table.insert(childrens, Modal:new(self._area))
+
+ self._children = childrens
+ end
+ end,
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage