diff --git a/README.md b/README.md index b68a9a8..0222410 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ Each directory in this repository corresponds to a specific application or tool, > Example usage (from the repository root): > > ```bash -> stow nvim -> stow zsh +> stow bash +> stow i3 +> stow polybar > ``` ### ๐Ÿงฉ Included Tools & Configurations @@ -20,35 +21,25 @@ Each directory in this repository corresponds to a specific application or tool, This repository contains my configuration files for the following tools: - **Shells & Prompt** - - `zsh` + `starship` + - `bash` (Oh My Bash) - **Terminal Emulators & Multiplexer** - `alacritty` - - `foot` - `tmux` - **Editors & CLI Tools** - - `neovim` (with LazyVim) - - `doom emacs` + - `emacs` - `git` - - `lazygit` - **X11 Environment** - - `rofi` (launcher) - - `polybar` (status bar) - - `dunst` (notification daemon) - `i3` (window manager) - `picom` (X11 compositor) -- **Wayland Environment** - - `fuzzel` (launcher) - - `waybar` (status bar) + - `polybar` (status bar) + - `rofi` (launcher) - `dunst` (notification daemon) - - `sway` (window manager) - **Utilities** - `fastfetch` - `zoxide` - - `mpv` - `yt-dlp` - `flameshot` - - `newsboat` - + --- Feel free to explore, reuse, or adapt any part of this setup. diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el deleted file mode 100644 index 2c9138f..0000000 --- a/doom/.config/doom/config.el +++ /dev/null @@ -1,76 +0,0 @@ -;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- - -;; Place your private configuration here! Remember, you do not need to run 'doom -;; sync' after modifying this file! - - -;; Some functionality uses this to identify you, e.g. GPG configuration, email -;; clients, file templates and snippets. It is optional. -;; (setq user-full-name "John Doe" -;; user-mail-address "john@doe.com") - -;; Doom exposes five (optional) variables for controlling fonts in Doom: -;; -;; - `doom-font' -- the primary font to use -;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable) -;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for -;; presentations or streaming. -;; - `doom-symbol-font' -- for symbols -;; - `doom-serif-font' -- for the `fixed-pitch-serif' face -;; -;; See 'C-h v doom-font' for documentation and more examples of what they -;; accept. For example: -;; -(setq doom-font (font-spec :family "0xProto Nerd Font" :size 18 :weight 'regular)) - -;; If you or Emacs can't find your font, use 'M-x describe-font' to look them -;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to -;; refresh your font settings. If Emacs still can't find your font, it likely -;; wasn't installed correctly. Font issues are rarely Doom issues! - -;; There are two ways to load a theme. Both assume the theme is installed and -;; available. You can either set `doom-theme' or manually load a theme with the -;; `load-theme' function. This is the default: -(setq doom-theme 'catppuccin) -(setq catppuccin-flavor 'mocha) ;; or 'latte, 'macchiato, or 'mocha - -;; This determines the style of line numbers in effect. If set to `nil', line -;; numbers are disabled. For relative line numbers, set this to `relative'. -(setq display-line-numbers-type t) - -;; If you use `org' and don't want your org files in the default location below, -;; change `org-directory'. It must be set before org loads! -(setq org-directory "~/Documents") - - -;; Whenever you reconfigure a package, make sure to wrap your config in an -;; `after!' block, otherwise Doom's defaults may override your settings. E.g. -;; -;; (after! PACKAGE -;; (setq x y)) -;; -;; The exceptions to this rule: -;; -;; - Setting file/directory variables (like `org-directory') -;; - Setting variables which explicitly tell you to set them before their -;; package is loaded (see 'C-h v VARIABLE' to look up their documentation). -;; - Setting doom variables (which start with 'doom-' or '+'). -;; -;; Here are some additional functions/macros that will help you configure Doom. -;; -;; - `load!' for loading external *.el files relative to this one -;; - `use-package!' for configuring packages -;; - `after!' for running code after a package has loaded -;; - `add-load-path!' for adding directories to the `load-path', relative to -;; this file. Emacs searches the `load-path' when you load packages with -;; `require' or `use-package'. -;; - `map!' for binding new keys -;; -;; To get information about any of these functions/macros, move the cursor over -;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k'). -;; This will open documentation for it, including demos of how they are used. -;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces, -;; etc). -;; -;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how -;; they are implemented. diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el deleted file mode 100644 index 51b5df3..0000000 --- a/doom/.config/doom/init.el +++ /dev/null @@ -1,195 +0,0 @@ -;;; init.el -*- lexical-binding: t; -*- - -;; This file controls what Doom modules are enabled and what order they load -;; in. Remember to run 'doom sync' after modifying it! - -;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's -;; documentation. There you'll find a link to Doom's Module Index where all -;; of our modules are listed, including what flags they support. - -;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or -;; 'C-c c k' for non-vim users) to view its documentation. This works on -;; flags as well (those symbols that start with a plus). -;; -;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its -;; directory (for easy access to its source code). - -(doom! :input - ;;bidi ; (tfel ot) thgir etirw uoy gnipleh - ;;chinese - ;;japanese - ;;layout ; auie,ctsrnm is the superior home row - - :completion - company ; the ultimate code completion backend - (corfu +orderless) ; complete with cap(f), cape and a flying feather! - ;;helm ; the *other* search engine for love and life - ;;ido ; the other *other* search engine... - ;;ivy ; a search engine for love and life - vertico ; the search engine of the future - - :ui - ;;deft ; notational velocity for Emacs - doom ; what makes DOOM look the way it does - doom-dashboard ; a nifty splash screen for Emacs - ;;doom-quit ; DOOM quit-message prompts when you quit Emacs - ;;(emoji +unicode) ; ๐Ÿ™‚ - hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW - ;;indent-guides ; highlighted indent columns - ligatures ; ligatures and symbols to make your code pretty again - ;;minimap ; show a map of the code on the side - modeline ; snazzy, Atom-inspired modeline, plus API - ;;nav-flash ; blink cursor line after big motions - ;;neotree ; a project drawer, like NERDTree for vim - ophints ; highlight the region an operation acts on - (popup +defaults) ; tame sudden yet inevitable temporary windows - ;;smooth-scroll ; So smooth you won't believe it's not butter - ;;tabs ; a tab bar for Emacs - treemacs ; a project drawer, like neotree but cooler - unicode ; extended unicode support for various languages - (vc-gutter +pretty) ; vcs diff in the fringe - vi-tilde-fringe ; fringe tildes to mark beyond EOB - ;;window-select ; visually switch windows - workspaces ; tab emulation, persistence & separate workspaces - ;;zen ; distraction-free coding or writing - - :editor - (evil +everywhere); come to the dark side, we have cookies - file-templates ; auto-snippets for empty files - fold ; (nigh) universal code folding - ;;(format +onsave) ; automated prettiness - ;;god ; run Emacs commands without modifier keys - ;;lispy ; vim for lisp, for people who don't like vim - ;;multiple-cursors ; editing in many places at once - ;;objed ; text object editing for the innocent - ;;parinfer ; turn lisp into python, sort of - ;;rotate-text ; cycle region at point between text candidates - snippets ; my elves. They type so I don't have to - ;;word-wrap ; soft wrapping with language-aware indent - - :emacs - dired ; making dired pretty [functional] - electric ; smarter, keyword-based electric-indent - ;;eww ; the internet is gross - ;;ibuffer ; interactive buffer management - undo ; persistent, smarter undo for your inevitable mistakes - vc ; version-control and Emacs, sitting in a tree - - :term - ;;eshell ; the elisp shell that works everywhere - ;;shell ; simple shell REPL for Emacs - ;;term ; basic terminal emulator for Emacs - vterm ; the best terminal emulation in Emacs - - :checkers - syntax ; tasing you for every semicolon you forget - ;;(spell +flyspell) ; tasing you for misspelling mispelling - ;;grammar ; tasing grammar mistake every you make - - :tools - ansible - ;;biblio ; Writes a PhD for you (citation needed) - ;;collab ; buffers with friends - debugger ; FIXME stepping through code, to help you add bugs - ;;direnv - docker - editorconfig ; let someone else argue about tabs vs spaces - ;;ein ; tame Jupyter notebooks with emacs - (eval +overlay) ; run code, run (also, repls) - lookup ; navigate your code and its documentation - ;;llm ; when I said you needed friends, I didn't mean... - lsp ; M-x vscode - magit ; a git porcelain for Emacs - make ; run make tasks from Emacs - ;;pass ; password manager for nerds - pdf ; pdf enhancements - ;;terraform ; infrastructure as code - ;;tmux ; an API for interacting with tmux - tree-sitter ; syntax and parsing, sitting in a tree... - ;;upload ; map local to remote projects via ssh/ftp - - :os - (:if (featurep :system 'macos) macos) ; improve compatibility with macOS - ;;tty ; improve the terminal Emacs experience - - :lang - ;;agda ; types of types of types of types... - ;;beancount ; mind the GAAP - (cc +lsp) ; C > C++ == 1 - ;;clojure ; java with a lisp - ;;common-lisp ; if you've seen one lisp, you've seen them all - ;;coq ; proofs-as-programs - ;;crystal ; ruby at the speed of c - ;;csharp ; unity, .NET, and mono shenanigans - data ; config/data formats - ;;(dart +flutter) ; paint ui and not much else - ;;dhall - ;;elixir ; erlang done right - ;;elm ; care for a cup of TEA? - emacs-lisp ; drown in parentheses - ;;erlang ; an elegant language for a more civilized age - ;;ess ; emacs speaks statistics - ;;factor - ;;faust ; dsp, but you get to keep your soul - ;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER) - ;;fsharp ; ML stands for Microsoft's Language - ;;fstar ; (dependent) types and (monadic) effects and Z3 - ;;gdscript ; the language you waited for - (go +lsp) ; the hipster dialect - ;;(graphql +lsp) ; Give queries a REST - ;;(haskell +lsp) ; a language that's lazier than I am - ;;hy ; readability of scheme w/ speed of python - ;;idris ; a language you can depend on - json ; At least it ain't XML - ;;janet ; Fun fact: Janet is me! - ;;(java +lsp) ; the poster child for carpal tunnel syndrome - ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) - ;;julia ; a better, faster MATLAB - ;;kotlin ; a better, slicker Java(Script) - ;;latex ; writing papers in Emacs has never been so fun - ;;lean ; for folks with too much to prove - ;;ledger ; be audit you can be - ;;lua ; one-based indices? one-based indices - markdown ; writing docs for people to ignore - ;;nim ; python + lisp at the speed of c - ;;nix ; I hereby declare "nix geht mehr!" - ;;ocaml ; an objective camel - org ; organize your plain life in plain text - ;;php ; perl's insecure younger brother - ;;plantuml ; diagrams for confusing people more - ;;graphviz ; diagrams for confusing yourself even more - ;;purescript ; javascript, but functional - python ; beautiful is better than ugly - ;;qt ; the 'cutest' gui framework ever - ;;racket ; a DSL for DSLs - ;;raku ; the artist formerly known as perl6 - ;;rest ; Emacs as a REST client - ;;rst ; ReST in peace - ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - ;;(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() - ;;scala ; java, but good - ;;(scheme +guile) ; a fully conniving family of lisps - sh ; she sells {ba,z,fi}sh shells on the C xor - ;;sml - ;;solidity ; do you need a blockchain? No. - ;;swift ; who asked for emoji variables? - ;;terra ; Earth and Moon in alignment for performance. - ;;web ; the tubes - yaml ; JSON, but readable - zig ; C, but simpler - - :email - ;;(mu4e +org +gmail) - ;;notmuch - ;;(wanderlust +gmail) - - :app - ;;calendar - ;;emms - ;;everywhere ; *leave* Emacs!? You must be joking - ;;irc ; how neckbeards socialize - ;;(rss +org) ; emacs as an RSS reader - - :config - ;; literate - (default +bindings +smartparens)) diff --git a/doom/.config/doom/packages.el b/doom/.config/doom/packages.el deleted file mode 100644 index 1c29c3a..0000000 --- a/doom/.config/doom/packages.el +++ /dev/null @@ -1,52 +0,0 @@ -;; -*- no-byte-compile: t; -*- -;;; $DOOMDIR/packages.el - -;; To install a package with Doom you must declare them here and run 'doom sync' -;; on the command line, then restart Emacs for the changes to take effect -- or - - -;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: -;; (package! some-package) - -;; To install a package directly from a remote git repo, you must specify a -;; `:recipe'. You'll find documentation on what `:recipe' accepts here: -;; https://github.com/radian-software/straight.el#the-recipe-format -;; (package! another-package -;; :recipe (:host github :repo "username/repo")) - -;; If the package you are trying to install does not contain a PACKAGENAME.el -;; file, or is located in a subdirectory of the repo, you'll need to specify -;; `:files' in the `:recipe': -;; (package! this-package -;; :recipe (:host github :repo "username/repo" -;; :files ("some-file.el" "src/lisp/*.el"))) - -;; If you'd like to disable a package included with Doom, you can do so here -;; with the `:disable' property: -;; (package! builtin-package :disable t) - -;; You can override the recipe of a built in package without having to specify -;; all the properties for `:recipe'. These will inherit the rest of its recipe -;; from Doom or MELPA/ELPA/Emacsmirror: -;; (package! builtin-package :recipe (:nonrecursive t)) -;; (package! builtin-package-2 :recipe (:repo "myfork/package")) - -;; Specify a `:branch' to install a package from a particular branch or tag. -;; This is required for some packages whose default branch isn't 'master' (which -;; our package manager can't deal with; see radian-software/straight.el#279) -;; (package! builtin-package :recipe (:branch "develop")) - -;; Use `:pin' to specify a particular commit to install. -;; (package! builtin-package :pin "1a2b3c4d5e") - - -;; Doom's packages are pinned to a specific commit and updated from release to -;; release. The `unpin!' macro allows you to unpin single packages... -;; (unpin! pinned-package) -;; ...or multiple packages -;; (unpin! pinned-package another-pinned-package) -;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) -;; (unpin! t) - -(package! catppuccin-theme) -(package! go-mode) diff --git a/imv/.config/imv/config b/imv/.config/imv/config deleted file mode 100644 index 8f8afd5..0000000 --- a/imv/.config/imv/config +++ /dev/null @@ -1,4 +0,0 @@ -[options] -background=1e1e2e -overlay_text_color=cdd6f4 -overlay_background_color=11111b diff --git a/lazygit/.config/lazygit/config.yml b/lazygit/.config/lazygit/config.yml deleted file mode 100644 index d099cbd..0000000 --- a/lazygit/.config/lazygit/config.yml +++ /dev/null @@ -1,468 +0,0 @@ -# Config relating to the Lazygit UI -gui: - # The number of lines you scroll by when scrolling the main window - scrollHeight: 2 - # If true, allow scrolling past the bottom of the content in the main window - scrollPastBottom: true - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#scroll-off-margin - scrollOffMargin: 2 - # One of: 'margin' (default) | 'jump' - scrollOffBehavior: margin - # If true, capture mouse events. - # When mouse events are captured, it's a little harder to select text: e.g. requiring you to hold the option key when on macOS. - mouseEvents: true - # If true, do not show a warning when discarding changes in the staging view. - skipDiscardChangeWarning: false - # If true, do not show warning when applying/popping the stash - skipStashWarning: false - # If true, do not show a warning when attempting to commit without any staged files; instead stage all unstaged files. - skipNoStagedFilesWarning: false - # If true, do not show a warning when rewording a commit via an external editor - skipRewordInEditorWarning: false - # Fraction of the total screen width to use for the left side section. You may want to pick a small number (e.g. 0.2) if you're using a narrow screen, so that you can see more of the main section. - # Number from 0 to 1.0. - sidePanelWidth: 0.3333 - # If true, increase the height of the focused side window; creating an accordion effect. - expandFocusedSidePanel: false - # The weight of the expanded side panel, relative to the other panels. 2 means - # twice as tall as the other panels. Only relevant if `expandFocusedSidePanel` is true. - expandedSidePanelWeight: 2 - # Sometimes the main window is split in two (e.g. when the selected file has both staged and unstaged changes). This setting controls how the two sections are split. - # Options are: - # - 'horizontal': split the window horizontally - # - 'vertical': split the window vertically - # - 'flexible': (default) split the window horizontally if the window is wide enough, otherwise split vertically - mainPanelSplitMode: flexible - # How the window is split when in half screen mode (i.e. after hitting '+' once). - # Possible values: - # - 'left': split the window horizontally (side panel on the left, main view on the right) - # - 'top': split the window vertically (side panel on top, main view below) - enlargedSideViewLocation: left - # One of 'auto' (default) | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko' | 'ru' - language: auto - # Format used when displaying time e.g. commit time. - # Uses Go's time format syntax: https://pkg.go.dev/time#Time.Format - timeFormat: 02 Jan 06 - # Format used when displaying time if the time is less than 24 hours ago. - # Uses Go's time format syntax: https://pkg.go.dev/time#Time.Format - shortTimeFormat: 3:04PM - # Config relating to colors and styles. - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#color-attributes - theme: - # Border color of focused window - activeBorderColor: - - "#8caaee" - - bold - # Border color of non-focused windows - inactiveBorderColor: - - "#a5adce" - # Border color of focused window when searching in that window - searchingActiveBorderColor: - - "#e5c890" - # Color of keybindings help text in the bottom line - optionsTextColor: - - "#8caaee" - # Background color of selected line. - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#highlighting-the-selected-line - selectedLineBgColor: - - "#414559" - # Foreground color of copied commit - cherryPickedCommitFgColor: - - "#8caaee" - # Background color of copied commit - cherryPickedCommitBgColor: - - "#51576d" - # Color for file with unstaged changes - unstagedChangesColor: - - "#e78284" - # Default text color - defaultFgColor: - - "#c6d0f5" - authorColors: - "Fabio Scotto di Santolo": "#babbf1" - branchColors: - develop: yellow - feature: blue - fix: red - hotfix: red - # Config relating to the commit length indicator - commitLength: - # If true, show an indicator of commit message length - show: true - # If true, show the '5 of 20' footer at the bottom of list views - showListFooter: true - # If true, display the files in the file views as a tree. If false, display the files as a flat list. - # This can be toggled from within Lazygit with the '~' key, but that will not change the default. - showFileTree: true - # If true, show a random tip in the command log when Lazygit starts - showRandomTip: true - # If true, show the command log - showCommandLog: true - # If true, show the bottom line that contains keybinding info and useful buttons. If false, this line will be hidden except to display a loader for an in-progress action. - showBottomLine: true - # If true, show jump-to-window keybindings in window titles. - showPanelJumps: true - # Deprecated: use nerdFontsVersion instead - showIcons: false - # Nerd fonts version to use. - # One of: '2' | '3' | empty string (default) - # If empty, do not show icons. - nerdFontsVersion: "3" - # If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty. - showFileIcons: true - # Length of author name in (non-expanded) commits view. 2 means show initials only. - commitAuthorShortLength: 2 - # Length of author name in expanded commits view. 2 means show initials only. - commitAuthorLongLength: 17 - # Length of commit hash in commits view. 0 shows '*' if NF icons aren't on. - commitHashLength: 8 - # If true, show commit hashes alongside branch names in the branches view. - showBranchCommitHash: false - # Whether to show the divergence from the base branch in the branches view. - # One of: 'none' | 'onlyArrow' | 'arrowAndNumber' - showDivergenceFromBaseBranch: none - # Height of the command log view - commandLogSize: 8 - # Whether to split the main window when viewing file changes. - # One of: 'auto' | 'always' - # If 'auto', only split the main window when a file has both staged and unstaged changes - splitDiff: auto - # Default size for focused window. Window size can be changed from within Lazygit with '+' and '_' (but this won't change the default). - # One of: 'normal' (default) | 'half' | 'full' - screenMode: normal - # Window border style. - # One of 'rounded' (default) | 'single' | 'double' | 'hidden' - border: rounded - # If true, show a seriously epic explosion animation when nuking the working tree. - animateExplosion: true - # Whether to stack UI components on top of each other. - # One of 'auto' (default) | 'always' | 'never' - portraitMode: auto - # How things are filtered when typing '/'. - # One of 'substring' (default) | 'fuzzy' - filterMode: substring - # Config relating to the spinner. - spinner: - # The frames of the spinner animation. - frames: - - "|" - - / - - "-" - - \ - # The "speed" of the spinner in milliseconds. - rate: 50 - # Status panel view. - # One of 'dashboard' (default) | 'allBranchesLog' - statusPanelView: dashboard -# Config relating to git -git: - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md - paging: - # Value of the --color arg in the git diff command. Some pagers want this to be set to 'always' and some want it set to 'never' - colorArg: always - # e.g. - # diff-so-fancy - # delta --dark --paging=never - # ydiff -p cat -s --wrap --width={{columnWidth}} - pager: "delta --paging=never" - # If true, Lazygit will use whatever pager is specified in `$GIT_PAGER`, `$PAGER`, or your *git config*. If the pager ends with something like ` | less` we will strip that part out, because less doesn't play nice with our rendering approach. If the custom pager uses less under the hood, that will also break rendering (hence the `--paging=never` flag for the `delta` pager). - useConfig: false - # e.g. 'difft --color=always' - externalDiffCommand: "" - # Config relating to committing - commit: - # If true, pass '--signoff' flag when committing - signOff: false - # Automatic WYSIWYG wrapping of the commit message as you type - autoWrapCommitMessage: true - # If autoWrapCommitMessage is true, the width to wrap to - autoWrapWidth: 72 - # Config relating to merging - merging: - # If true, run merges in a subprocess so that if a commit message is required, Lazygit will not hang - # Only applicable to unix users. - manualCommit: false - # Extra args passed to `git merge`, e.g. --no-ff - args: "--no-ff" - # The commit message to use for a squash merge commit. Can contain "{{selectedRef}}" and "{{currentBranch}}" placeholders. - squashMergeMessage: Squash merge {{selectedRef}} into {{currentBranch}} - # list of branches that are considered 'main' branches, used when displaying commits - mainBranches: - - master - - main - # Prefix to use when skipping hooks. E.g. if set to 'WIP', then pre-commit hooks will be skipped when the commit message starts with 'WIP' - skipHookPrefix: WIP - # If true, periodically fetch from remote - autoFetch: true - # If true, periodically refresh files and submodules - autoRefresh: true - # If true, pass the --all arg to git fetch - fetchAll: true - # Command used when displaying the current branch git log in the main window - branchLogCmd: git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} -- - # If true, do not spawn a separate process when using GPG - overrideGpg: false - # If true, do not allow force pushes - disableForcePushing: false - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#predefined-commit-message-prefix - commitPrefix: - - # pattern to match on. E.g. for 'feature/AB-123' to match on the AB-123 use "^\\w+\\/(\\w+-\\w+).*" - pattern: "" - # Replace directive. E.g. for 'feature/AB-123' to start the commit message with 'AB-123 ' use "[$1] " - replace: "" - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#predefined-branch-name-prefix - branchPrefix: "" - # If true, parse emoji strings in commit messages e.g. render :rocket: as ๐Ÿš€ - # (This should really be under 'gui', not 'git') - parseEmoji: true - # Config for showing the log in the commits view - log: - # One of: 'date-order' | 'author-date-order' | 'topo-order' | 'default' - # 'topo-order' makes it easier to read the git log graph, but commits may not - # appear chronologically. See https://git-scm.com/docs/ - # - # Deprecated: Configure this with `Log menu -> Commit sort order` ( in the commits window by default). - order: topo-order - # This determines whether the git graph is rendered in the commits panel - # One of 'always' | 'never' | 'when-maximised' - # - # Deprecated: Configure this with `Log menu -> Show git graph` ( in the commits window by default). - showGraph: always - # displays the whole git graph by default in the commits view (equivalent to passing the `--all` argument to `git log`) - showWholeGraph: false - # When copying commit hashes to the clipboard, truncate them to this - # length. Set to 40 to disable truncation. - truncateCopiedCommitHashesTo: 12 - allBranchesLogCmds: - - git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium -# Periodic update checks -update: - # One of: 'prompt' (default) | 'background' | 'never' - method: prompt - # Period in days between update checks - days: 14 -# Background refreshes -refresher: - # File/submodule refresh interval in seconds. - # Auto-refresh can be disabled via option 'git.autoRefresh'. - refreshInterval: 10 - # Re-fetch interval in seconds. - # Auto-fetch can be disabled via option 'git.autoFetch'. - fetchInterval: 60 -# If true, show a confirmation popup before quitting Lazygit -confirmOnQuit: false -# If true, exit Lazygit when the user presses escape in a context where there is nothing to cancel/close -quitOnTopLevelReturn: false -# Config relating to things outside of Lazygit like how files are opened, copying to clipboard, etc -os: - # Command for editing a file. Should contain "{{filename}}". - edit: "" - # Command for editing a file at a given line number. Should contain - # "{{filename}}", and may optionally contain "{{line}}". - editAtLine: "" - # Same as EditAtLine, except that the command needs to wait until the - # window is closed. - editAtLineAndWait: "" - # For opening a directory in an editor - openDirInEditor: "" - # A built-in preset that sets all of the above settings. Supported presets - # are defined in the getPreset function in editor_presets.go. - editPreset: "" - # Command for opening a file, as if the file is double-clicked. Should - # contain "{{filename}}", but doesn't support "{{line}}". - open: "" - # Command for opening a link. Should contain "{{link}}". - openLink: "" - # EditCommand is the command for editing a file. - # Deprecated: use Edit instead. Note that semantics are different: - # EditCommand is just the command itself, whereas Edit contains a - # "{{filename}}" variable. - editCommand: "" - # EditCommandTemplate is the command template for editing a file - # Deprecated: use EditAtLine instead. - editCommandTemplate: "" - # OpenCommand is the command for opening a file - # Deprecated: use Open instead. - openCommand: "" - # OpenLinkCommand is the command for opening a link - # Deprecated: use OpenLink instead. - openLinkCommand: "" - # CopyToClipboardCmd is the command for copying to clipboard. - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-and-pasting-from-clipboard - copyToClipboardCmd: "" - # ReadFromClipboardCmd is the command for reading the clipboard. - # See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-and-pasting-from-clipboard - readFromClipboardCmd: "" -# If true, don't display introductory popups upon opening Lazygit. -disableStartupPopups: true -# What to do when opening Lazygit outside of a git repo. -# - 'prompt': (default) ask whether to initialize a new repo or open in the most recent repo -# - 'create': initialize a new repo -# - 'skip': open most recent repo -# - 'quit': exit Lazygit -notARepository: prompt -# If true, display a confirmation when subprocess terminates. This allows you to view the output of the subprocess before returning to Lazygit. -promptToReturnFromSubprocess: true -# Keybindings -keybinding: - universal: - quit: q - quit-alt1: - return: - quitWithoutChangingDirectory: Q - togglePanel: - prevItem: - nextItem: - prevItem-alt: k - nextItem-alt: j - prevPage: "," - nextPage: . - scrollLeft: H - scrollRight: L - gotoTop: < - gotoBottom: ">" - toggleRangeSelect: v - rangeSelectDown: - rangeSelectUp: - prevBlock: - nextBlock: - prevBlock-alt: h - nextBlock-alt: l - nextBlock-alt2: - prevBlock-alt2: - jumpToBlock: - - "1" - - "2" - - "3" - - "4" - - "5" - nextMatch: "n" - prevMatch: "N" - startSearch: / - optionMenu: - optionMenu-alt1: "?" - select: - goInto: - confirm: - confirmInEditor: - remove: d - new: "n" - edit: e - openFile: o - scrollUpMain: - scrollDownMain: - scrollUpMain-alt1: K - scrollDownMain-alt1: J - scrollUpMain-alt2: - scrollDownMain-alt2: - executeShellCommand: ":" - createRebaseOptionsMenu: m - # 'Files' appended for legacy reasons - pushFiles: P - # 'Files' appended for legacy reasons - pullFiles: p - refresh: R - createPatchOptionsMenu: - nextTab: "]" - prevTab: "[" - nextScreenMode: + - prevScreenMode: _ - undo: z - redo: - filteringMenu: - diffingMenu: W - diffingMenu-alt: - copyToClipboard: - openRecentRepos: - submitEditorText: - extrasMenu: "@" - toggleWhitespaceInDiffView: - increaseContextInDiffView: "}" - decreaseContextInDiffView: "{" - increaseRenameSimilarityThreshold: ) - decreaseRenameSimilarityThreshold: ( - openDiffTool: - status: - checkForUpdate: u - recentRepos: - allBranchesLogGraph: a - files: - commitChanges: c - commitChangesWithoutHook: w - amendLastCommit: A - commitChangesWithEditor: C - findBaseCommitForFixup: - confirmDiscard: x - ignoreFile: i - refreshFiles: r - stashAllChanges: s - viewStashOptions: S - toggleStagedAll: a - viewResetOptions: D - fetch: f - toggleTreeView: "`" - openMergeTool: M - openStatusFilter: - copyFileInfoToClipboard: "y" - branches: - createPullRequest: o - viewPullRequestOptions: O - copyPullRequestURL: - checkoutBranchByName: c - forceCheckoutBranch: F - rebaseBranch: r - renameBranch: R - mergeIntoCurrentBranch: M - viewGitFlowOptions: i - fastForward: f - createTag: T - pushTag: P - setUpstream: u - fetchRemote: f - sortOrder: s - worktrees: - viewWorktreeOptions: w - commits: - squashDown: s - renameCommit: r - renameCommitWithEditor: R - viewResetOptions: g - markCommitAsFixup: f - createFixupCommit: F - squashAboveCommits: S - moveDownCommit: - moveUpCommit: - amendToCommit: A - resetCommitAuthor: a - pickCommit: p - revertCommit: t - cherryPickCopy: C - pasteCommits: V - markCommitAsBaseForRebase: B - tagCommit: T - checkoutCommit: - resetCherryPick: - copyCommitAttributeToClipboard: "y" - openLogMenu: - openInBrowser: o - viewBisectOptions: b - startInteractiveRebase: i - amendAttribute: - resetAuthor: a - setAuthor: A - addCoAuthor: c - stash: - popStash: g - renameStash: r - commitFiles: - checkoutCommitFile: c - main: - toggleSelectHunk: a - pickBothHunks: b - editSelectHunk: E - submodules: - init: i - update: u - bulkMenu: b - commitMessage: - commitMenu: diff --git a/lazyvim/.config/nvim/.gitignore b/lazyvim/.config/nvim/.gitignore deleted file mode 100644 index cc5457a..0000000 --- a/lazyvim/.config/nvim/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -tt.* -.tests -doc/tags -debug -.repro -foo.* -*.log -data diff --git a/lazyvim/.config/nvim/.neoconf.json b/lazyvim/.config/nvim/.neoconf.json deleted file mode 100644 index 7c48087..0000000 --- a/lazyvim/.config/nvim/.neoconf.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "neodev": { - "library": { - "enabled": true, - "plugins": true - } - }, - "neoconf": { - "plugins": { - "lua_ls": { - "enabled": true - } - } - } -} diff --git a/lazyvim/.config/nvim/LICENSE b/lazyvim/.config/nvim/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/lazyvim/.config/nvim/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/lazyvim/.config/nvim/init.lua b/lazyvim/.config/nvim/init.lua deleted file mode 100644 index 27d6b7c..0000000 --- a/lazyvim/.config/nvim/init.lua +++ /dev/null @@ -1,3 +0,0 @@ --- bootstrap lazy.nvim, LazyVim and your plugins -require("config.lazy") -require("user.utils") diff --git a/lazyvim/.config/nvim/lazy-lock.json b/lazyvim/.config/nvim/lazy-lock.json deleted file mode 100644 index e9f9b8a..0000000 --- a/lazyvim/.config/nvim/lazy-lock.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "LazyVim": { "branch": "main", "commit": "25abbf546d564dc484cf903804661ba12de45507" }, - "SchemaStore.nvim": { "branch": "main", "commit": "8e74c08998fd786239caba373344f4e4601e21fe" }, - "alpha-nvim": { "branch": "main", "commit": "2b3cbcdd980cae1e022409289245053f62fb50f6" }, - "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" }, - "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, - "catppuccin": { "branch": "main", "commit": "30fa4d122d9b22ad8b2e0ab1b533c8c26c4dde86" }, - "clangd_extensions.nvim": { "branch": "main", "commit": "b67cc417d9020fb4b83d46662351b4d16894905e" }, - "conform.nvim": { "branch": "master", "commit": "b4aab989db276993ea5dcb78872be494ce546521" }, - "dial.nvim": { "branch": "master", "commit": "7c8baea9f058c6ab25381b731baba7f7d8a34cef" }, - "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" }, - "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, - "fzf-lua": { "branch": "main", "commit": "c045825f99a2618ee7453d46dd6e84a61ee53a56" }, - "gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" }, - "grug-far.nvim": { "branch": "main", "commit": "385d1949dc21d0c39e7a74b4f4a25da18817bc86" }, - "hardtime.nvim": { "branch": "main", "commit": "6d7664d5bdfaea44c5f50b29f5239fab7b00c273" }, - "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, - "hydra.nvim": { "branch": "main", "commit": "8c4a9f621ec7cdc30411a1f3b6d5eebb12b469dc" }, - "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, - "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, - "lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" }, - "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" }, - "mason-nvim-dap.nvim": { "branch": "main", "commit": "86389a3dd687cfaa647b6f44731e492970034baa" }, - "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, - "mini.ai": { "branch": "main", "commit": "45a26d032d8703f280c69c2ed9fb4e1bfc8f24f9" }, - "mini.icons": { "branch": "main", "commit": "f9a177c11daa7829389b7b6eaaec8b8a5c47052d" }, - "mini.nvim": { "branch": "main", "commit": "ddb70da6ec6aa896cfde87350d1e8dffb57ddef0" }, - "mini.pairs": { "branch": "main", "commit": "6e1cc569130f25b2c6fa16d8b21b31ddb1420a4a" }, - "multicursors.nvim": { "branch": "main", "commit": "72225ea9e4443c3f4b9df91d0193e07c4ee8d382" }, - "neo-tree.nvim": { "branch": "main", "commit": "46fa0c22ca39e05fe15744102d21feb07fe9a94a" }, - "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, - "none-ls.nvim": { "branch": "main", "commit": "53ec77181d96494b9dc9457110dd62dc623cc78d" }, - "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, - "nvim-dap": { "branch": "master", "commit": "7891b01beedc37cef4eaf2e92563bd0a5b6e9c58" }, - "nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" }, - "nvim-dap-python": { "branch": "master", "commit": "030385d03363988370adaa5cf21fa465daddb088" }, - "nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" }, - "nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" }, - "nvim-lint": { "branch": "master", "commit": "f126af5345c7472e9a0cdbe1d1a29209be72c4c4" }, - "nvim-lspconfig": { "branch": "master", "commit": "408cf07b97535825cca6f1afa908d98348712ba6" }, - "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, - "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" }, - "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, - "nvim-web-devicons": { "branch": "master", "commit": "f66cdfef5e84112045b9ebc3119fee9bddb3c687" }, - "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, - "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, - "refactoring.nvim": { "branch": "master", "commit": "74b608dfee827c2372250519d433cc21cb083407" }, - "render-markdown.nvim": { "branch": "main", "commit": "e76eb2e4262f0f0a1a7bd7a454dd7d44f1299afd" }, - "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, - "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, - "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, - "tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" }, - "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, - "ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" }, - "venv-selector.nvim": { "branch": "regexp", "commit": "d2326e7433fdeb10f7d0d1237c18b91b353f9f8b" }, - "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }, - "yazi.nvim": { "branch": "main", "commit": "8ce0abb50c30fdc486c465ddfab28510346e6bd7" } -} diff --git a/lazyvim/.config/nvim/lazyvim.json b/lazyvim/.config/nvim/lazyvim.json deleted file mode 100644 index 52e4551..0000000 --- a/lazyvim/.config/nvim/lazyvim.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extras": [ - "lazyvim.plugins.extras.dap.core", - "lazyvim.plugins.extras.editor.dial", - "lazyvim.plugins.extras.editor.fzf", - "lazyvim.plugins.extras.editor.refactoring", - "lazyvim.plugins.extras.editor.telescope", - "lazyvim.plugins.extras.lang.clangd", - "lazyvim.plugins.extras.lang.git", - "lazyvim.plugins.extras.lang.go", - "lazyvim.plugins.extras.lang.json", - "lazyvim.plugins.extras.lang.markdown", - "lazyvim.plugins.extras.lang.python", - "lazyvim.plugins.extras.lang.toml", - "lazyvim.plugins.extras.lang.yaml", - "lazyvim.plugins.extras.lang.zig", - "lazyvim.plugins.extras.lsp.none-ls", - "lazyvim.plugins.extras.ui.alpha" - ], - "install_version": 7, - "news": { - "NEWS.md": "10960" - }, - "version": 8 -} \ No newline at end of file diff --git a/lazyvim/.config/nvim/lua/config/autocmds.lua b/lazyvim/.config/nvim/lua/config/autocmds.lua deleted file mode 100644 index 1930c44..0000000 --- a/lazyvim/.config/nvim/lua/config/autocmds.lua +++ /dev/null @@ -1,33 +0,0 @@ --- Autocmds are automatically loaded on the VeryLazy event --- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua --- Add any additional autocmds here - -local augroup = vim.api.nvim_create_augroup -local autocmd = vim.api.nvim_create_autocmd -local view_group = augroup("auto_view", { clear = true }) - -autocmd({ "BufWinLeave", "BufWritePost", "WinLeave" }, { - desc = "Save view with mkview for real files", - group = view_group, - callback = function(args) - if vim.b[args.buf].view_activated then - vim.cmd.mkview({ mods = { emsg_silent = true } }) - end - end, -}) - -autocmd("BufWinEnter", { - desc = "Try to load file view if available and enable view saving for real files", - group = view_group, - callback = function(args) - if not vim.b[args.buf].view_activated then - local filetype = vim.api.nvim_get_option_value("filetype", { buf = args.buf }) - local buftype = vim.api.nvim_get_option_value("buftype", { buf = args.buf }) - local ignore_filetypes = { "gitcommit", "gitrebase", "svg", "hgcommit" } - if buftype == "" and filetype and filetype ~= "" and not vim.tbl_contains(ignore_filetypes, filetype) then - vim.b[args.buf].view_activated = true - vim.cmd.loadview({ mods = { emsg_silent = true } }) - end - end - end, -}) diff --git a/lazyvim/.config/nvim/lua/config/keymaps.lua b/lazyvim/.config/nvim/lua/config/keymaps.lua deleted file mode 100644 index 8719320..0000000 --- a/lazyvim/.config/nvim/lua/config/keymaps.lua +++ /dev/null @@ -1,42 +0,0 @@ --- Keymaps are automatically loaded on the VeryLazy event --- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua --- Add any additional keymaps here - -local map = vim.keymap.set - --- Buffer management -map("n", "bn", ":bnext", { noremap = true, silent = true, desc = "Next buffer" }) -map("n", "bp", ":bprevious", { noremap = true, silent = true, desc = "Previous buffer" }) -map("n", "bd", ":bdelete", { noremap = true, silent = true, desc = "Delete buffer" }) - --- Copy to system clipboard (if not already mapped) -map({ "n", "v" }, "y", [["+y]], { noremap = true, silent = true, desc = "Copy to system clipboard" }) - --- Paste from system clipboard -map("n", "p", [["+p]], { noremap = true, silent = true, desc = "Paste from system clipboard" }) - -vim.keymap.set("n", "cc", function() - local file1 = vim.fn.expand("%") - - local project_root = vim.fn.systemlist("git rev-parse --show-toplevel")[1] - if project_root == "" then - project_root = vim.fn.getcwd() - end - - require("telescope.builtin").find_files({ - prompt_title = "Compare with...", - cwd = project_root, - hidden = true, - follow = true, - attach_mappings = function(_, map) - map("i", "", function(prompt_bufnr) - local actions = require("telescope.actions") - local action_state = require("telescope.actions.state") - local file2 = action_state.get_selected_entry().path - actions.close(prompt_bufnr) - require("user.utils").meld_diff(file1, file2) - end) - return true - end, - }) -end, { desc = "Compare with" }) diff --git a/lazyvim/.config/nvim/lua/config/lazy.lua b/lazyvim/.config/nvim/lua/config/lazy.lua deleted file mode 100644 index cf896bb..0000000 --- a/lazyvim/.config/nvim/lua/config/lazy.lua +++ /dev/null @@ -1,170 +0,0 @@ -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not (vim.uv or vim.loop).fs_stat(lazypath) then - local lazyrepo = "https://github.com/folke/lazy.nvim.git" - local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) - if vim.v.shell_error ~= 0 then - vim.api.nvim_echo({ - { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, - { out, "WarningMsg" }, - { "\nPress any key to exit..." }, - }, true, {}) - vim.fn.getchar() - os.exit(1) - end -end - -vim.opt.rtp:prepend(lazypath) - --- Start LazyVim plugins -require("lazy").setup({ - spec = { - -- add LazyVim and import its plugins - { "LazyVim/LazyVim", import = "lazyvim.plugins" }, - -- import/override with your plugins - { import = "plugins" }, - }, - defaults = { - -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. - -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default. - lazy = false, - -- It's recommended to leave version=false for now, since a lot the plugin that support versioning, - -- have outdated releases, which may break your Neovim install. - version = false, -- always use the latest git commit - -- version = "*", -- try installing the latest stable version for plugins that support semver - }, - checker = { enabled = true }, -- automatically check for plugin updates - performance = { - rtp = { - -- disable some rtp plugins - disabled_plugins = { - "gzip", - "matchit", - "matchparen", - "netrwPlugin", - "tarPlugin", - "tohtml", - "tutor", - "zipPlugin", - }, - }, - }, - cache = true, -}) - --- Configure status bar -require("config.statusline") - --- Configure Markdown rendering rules -require("render-markdown").setup({ - heading = { position = "inline" }, - quote = { repeat_linebreak = true }, - win_options = { - showbreak = { - default = "", - rendered = " ", - }, - breakindent = { - default = false, - rendered = true, - }, - breakindentopt = { - default = "", - rendered = "", - }, - }, - checkbox = { - unchecked = { icon = "โœ˜ " }, - checked = { icon = "โœ” " }, - }, - code = { - position = "right", - width = "block", - right_pad = 10, - }, - latex = { - enabled = false, - }, - link = { - custom = { - c = { - pattern = "%.[ch]$", - icon = "๎˜ž ", - }, - golang = { - pattern = "%.go$", - icon = "๎˜ง ", - }, - python = { - pattern = "%.py$", - icon = "๓ฐŒ  ", - }, - lua = { - pattern = "%.lua$", - icon = "๎ ฆ ", - }, - -- shell = { - -- pattern = "%.[sh|zsh]$", - -- icon = "๎ฏŠ ", - -- }, - }, - }, -}) - --- Configure TreeSitter syntax parsers -require("nvim-treesitter.configs").setup({ - -- A list of parser names, or "all" (the listed parsers MUST always be installed) - ensure_installed = { - "c", - "lua", - "bash", - "go", - "gomod", - "gowork", - "gosum", - "json", - "markdown", - "markdown_inline", - "python", - "zig", - }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally - auto_install = true, - - -- List of parsers to ignore installing (or "all") - ignore_install = { "javascript" }, - - ---- If you need to change the installation directory of the parsers (see -> Advanced Setup) - -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")! - - highlight = { - enable = true, - - -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to - -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is - -- the name of the parser) - -- list of language that will be disabled - disable = {}, - -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files - disable = function(lang, buf) - local max_filesize = 100 * 1024 -- 100 KB - local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) - if ok and stats and stats.size > max_filesize then - return true - end - end, - - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, - }, -}) - --- Configure Mini.AI for textobjects command -require("mini.ai").setup() diff --git a/lazyvim/.config/nvim/lua/config/options.lua b/lazyvim/.config/nvim/lua/config/options.lua deleted file mode 100644 index e35ddd5..0000000 --- a/lazyvim/.config/nvim/lua/config/options.lua +++ /dev/null @@ -1,57 +0,0 @@ --- Options are automatically loaded before lazy.nvim startup --- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua --- Add any additional options here - -local opt = vim.opt - --- Encoding -opt.encoding = "utf-8" -opt.fileencoding = "utf-8" - --- Line numbers -opt.number = true -opt.relativenumber = true - --- Enable mouse in all modes -opt.mouse = "a" - --- Better searching -opt.ignorecase = true -opt.smartcase = true - --- Highlight current line -opt.cursorline = true -opt.cursorlineopt = "number" - --- Enable true color support -opt.termguicolors = true - --- Enable system clipboard -opt.clipboard = "unnamedplus" - --- Indentation --- opt.softtabstop = 8 --- opt.shiftwidth = 8 --- opt.tabstop = 8 -opt.expandtab = true -opt.smartindent = true - --- Split behavior -opt.splitright = true -opt.splitbelow = true - --- Enable undo file to persist undo history -opt.undofile = true - --- Set upbar similar to statusline (optional) -opt.statusline = "%f %m %r %=%-14.(%l,%c%V%) %P" - --- Persistent signcolumn to avoid text shifting -opt.signcolumn = "yes" - --- Show file name and modified flag in the window bar -opt.winbar = "%=%m %f" - --- Backup files -opt.swapfile = false -opt.backup = false diff --git a/lazyvim/.config/nvim/lua/config/statusline.lua b/lazyvim/.config/nvim/lua/config/statusline.lua deleted file mode 100644 index c94c565..0000000 --- a/lazyvim/.config/nvim/lua/config/statusline.lua +++ /dev/null @@ -1,219 +0,0 @@ --- Eviline config for lualine --- Author: shadmansaleh --- Credit: glepnir -local lualine = require("lualine") - --- Color table for highlights --- stylua: ignore -local colors = { - bg = '#202328', - fg = '#bbc2cf', - yellow = '#ECBE7B', - cyan = '#008080', - darkblue = '#081633', - green = '#98be65', - orange = '#FF8800', - violet = '#a9a1e1', - magenta = '#c678dd', - blue = '#51afef', - red = '#ec5f67', -} - -local conditions = { - buffer_not_empty = function() - return vim.fn.empty(vim.fn.expand("%:t")) ~= 1 - end, - hide_in_width = function() - return vim.fn.winwidth(0) > 80 - end, - check_git_workspace = function() - local filepath = vim.fn.expand("%:p:h") - local gitdir = vim.fn.finddir(".git", filepath .. ";") - return gitdir and #gitdir > 0 and #gitdir < #filepath - end, -} - --- Config -local config = { - options = { - -- Disable sections and component separators - component_separators = "", - section_separators = "", - theme = "catppuccin", - }, - sections = { - -- these are to remove the defaults - lualine_a = {}, - lualine_b = {}, - lualine_y = {}, - lualine_z = {}, - -- These will be filled later - lualine_c = {}, - lualine_x = {}, - }, - inactive_sections = { - -- these are to remove the defaults - lualine_a = {}, - lualine_b = {}, - lualine_y = {}, - lualine_z = {}, - lualine_c = {}, - lualine_x = {}, - }, -} - --- Inserts a component in lualine_c at left section -local function ins_left(component) - table.insert(config.sections.lualine_c, component) -end - --- Inserts a component in lualine_x at right section -local function ins_right(component) - table.insert(config.sections.lualine_x, component) -end - -ins_left({ - function() - return "โ–Š" - end, - color = { fg = colors.blue }, -- Sets highlighting of component - padding = { left = 0, right = 1 }, -- We don't need space before this -}) - --- -- Function to get the current mode indicator as a single character -local function mode() - -- Map of modes to their respective shorthand indicators - local mode_map = { - n = "NORMAL", -- Normal mode - v = "VISUAL", -- Visual mode - [""] = "VISUAL BLOCK", -- Visual block mode - V = "VISUAL LINE", -- Visual line mode - c = "COMMAND", -- Command-line mode - no = "N-INSERT", -- NInsert mode - s = "SELECT", -- Select mode - S = "SELECT-LINE", -- Select line mode - ic = "INSERT", -- Insert mode (completion) - R = "REPLACE", -- Replace mode - Rv = "VISUAL REPLACE", -- Virtual Replace mode - cv = "COMMAND-LINE", -- Command-line mode - ce = "C", -- Ex mode - r = "R", -- Prompt mode - rm = "M", -- More mode - ["r?"] = "?", -- Confirm mode - ["!"] = "!", -- Shell mode - t = "TERMINAL", -- Terminal mode - } - -- Return the mode shorthand or [UNKNOWN] if no match - return mode_map[vim.fn.mode()] or "[UNKNOWN]" -end - -ins_left({ - -- mode component - mode, - color = function() - -- auto change color according to neovims mode - local mode_color = { - n = colors.red, - i = colors.green, - v = colors.blue, - [""] = colors.blue, - V = colors.blue, - c = colors.magenta, - no = colors.red, - s = colors.orange, - S = colors.orange, - [""] = colors.orange, - ic = colors.yellow, - R = colors.violet, - Rv = colors.violet, - cv = colors.red, - ce = colors.red, - r = colors.cyan, - rm = colors.cyan, - ["r?"] = colors.cyan, - ["!"] = colors.red, - t = colors.red, - } - return { fg = mode_color[vim.fn.mode()] } - end, - padding = { right = 1 }, -}) - -ins_left({ - -- filesize component - "filesize", - cond = conditions.buffer_not_empty, -}) - -ins_left({ - "filename", - cond = conditions.buffer_not_empty, - color = { fg = colors.magenta, gui = "bold" }, -}) - -ins_left({ "location" }) - -ins_left({ "progress", color = { fg = colors.fg, gui = "bold" } }) - -ins_left({ - "diagnostics", - sources = { "nvim_diagnostic" }, - symbols = { error = "๏— ", warn = "๏ฑ ", info = "๏ช " }, - diagnostics_color = { - error = { fg = colors.red }, - warn = { fg = colors.yellow }, - info = { fg = colors.cyan }, - }, -}) - --- Insert mid section. You can make any number of sections in neovim :) --- for lualine it's any number greater then 2 -ins_left({ - function() - return "%=" - end, -}) - --- Add components to right sections -ins_right({ - "o:encoding", -- option component same as &encoding in viml - fmt = string.upper, -- I'm not sure why it's upper case either ;) - cond = conditions.hide_in_width, - color = { fg = colors.green, gui = "bold" }, -}) - -ins_right({ - "fileformat", - fmt = string.upper, - icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh - color = { fg = colors.green, gui = "bold" }, -}) - -ins_right({ - "branch", - icon = "๏‘ฟ", - color = { fg = colors.violet, gui = "bold" }, -}) - -ins_right({ - "diff", - -- Is it me or the symbol for modified us really weird - symbols = { added = "๏ƒพ ", modified = "๓ฐค ", removed = "๏…† " }, - diff_color = { - added = { fg = colors.green }, - modified = { fg = colors.orange }, - removed = { fg = colors.red }, - }, - cond = conditions.hide_in_width, -}) - -ins_right({ - function() - return "โ–Š" - end, - color = { fg = colors.blue }, - padding = { left = 1 }, -}) - --- Now don't forget to initialize lualine -lualine.setup(config) diff --git a/lazyvim/.config/nvim/lua/plugins/alpha.lua b/lazyvim/.config/nvim/lua/plugins/alpha.lua deleted file mode 100644 index 055a3b8..0000000 --- a/lazyvim/.config/nvim/lua/plugins/alpha.lua +++ /dev/null @@ -1,16 +0,0 @@ -return { - "goolord/alpha-nvim", - opts = function(_, opts) - local logo = [[ - โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— - โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘ - โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘ - โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ - โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘ - โ•šโ•โ• โ•šโ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ• - - [ @elijahmanor ] - ]] - opts.section.header.val = vim.split(logo, "\n", { trimempty = true }) - end, -} diff --git a/lazyvim/.config/nvim/lua/plugins/cmp.lua b/lazyvim/.config/nvim/lua/plugins/cmp.lua deleted file mode 100644 index f786926..0000000 --- a/lazyvim/.config/nvim/lua/plugins/cmp.lua +++ /dev/null @@ -1,96 +0,0 @@ -return { - { - "mason-org/mason.nvim", - opts = { - ui = { - icons = { - package_installed = "โœ“", - package_pending = "โžœ", - package_uninstalled = "โœ—", - }, - }, - ensure_installed = { - -- LSP servers - "clangd", -- C / C++ - "gopls", -- Go - "python-lsp-server", -- Python - "bash-language-server", -- Bash - "zls", -- Zig - "lua-language-server", -- Lua - -- Formatters / Linters - "stylua", -- Lua formatter - "shfmt", -- Shell formatter - "black", -- Python formatter - "clang-format", -- C/C++ formatter - "goimports", -- Go formatter - }, - }, - }, - { - "hrsh7th/nvim-cmp", - dependencies = { - "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - "hrsh7th/cmp-nvim-lua", - "saadparwaiz1/cmp_luasnip", - "L3MON4D3/LuaSnip", - "onsails/lspkind.nvim", -- icone carine nel completamento - }, - opts = function(_, opts) - local cmp = require("cmp") - local luasnip = require("luasnip") - local lspkind = require("lspkind") - - -- Carica snippet - require("luasnip.loaders.from_vscode").lazy_load() - - opts.snippet = { - expand = function(args) - luasnip.lsp_expand(args.body) - end, - } - - opts.mapping = vim.tbl_extend("force", opts.mapping, { - [""] = cmp.mapping.complete(), - [""] = cmp.mapping.confirm({ select = true }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - }) - - opts.sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "luasnip" }, - { name = "nvim_lua" }, - { name = "buffer" }, - { name = "path" }, - }) - - opts.formatting = { - format = lspkind.cmp_format({ - mode = "symbol_text", - maxwidth = 50, - ellipsis_char = "...", - }), - } - - return opts - end, - }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/colorscheme.lua b/lazyvim/.config/nvim/lua/plugins/colorscheme.lua deleted file mode 100644 index d6c8b3a..0000000 --- a/lazyvim/.config/nvim/lua/plugins/colorscheme.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "catppuccin/nvim", - name = "catppuccin", - lazy = false, - priority = 1000, - opts = { - flavour = "mocha", - transparent_background = false, - }, - config = function(_, opts) - require("catppuccin").setup(opts) - -- vim.cmd.colorscheme("catppuccin-mocha") - vim.cmd.colorscheme("tokyonight-night") - end, -} diff --git a/lazyvim/.config/nvim/lua/plugins/dap.lua b/lazyvim/.config/nvim/lua/plugins/dap.lua deleted file mode 100644 index 0a1991e..0000000 --- a/lazyvim/.config/nvim/lua/plugins/dap.lua +++ /dev/null @@ -1,108 +0,0 @@ -return { - { - "mfussenegger/nvim-dap", - dependencies = { - "leoluz/nvim-dap-go", - "rcarriga/nvim-dap-ui", - "theHamsta/nvim-dap-virtual-text", - "nvim-neotest/nvim-nio", - "williamboman/mason.nvim", - "jay-babu/mason-nvim-dap.nvim", -- Dependency for managing DAP adapters with Mason - "mfussenegger/nvim-dap-python", -- Dependency for Python debugging - }, - config = function() - local dap = require("dap") - local dapui = require("dapui") - local mason_dap = require("mason-nvim-dap") - - -- Configure mason-nvim-dap to automatically install DAP adapters - mason_dap.setup({ - ensure_installed = { - "delve", -- Go Debugger Adapter - "codelldb", -- C/C++ Debugger Adapter - "debugpy", -- Python Debugger Adapter - }, - handlers = {}, - }) - - -- Set up the DAP UI - dapui.setup() - - -- Set up the Go debugging configurations - require("dap-go").setup() - - -- Set up the Python debugging configurations - require("dap-python").setup() - - -- Configure nvim-dap-virtual-text - require("nvim-dap-virtual-text").setup({ - display_callback = function(variable) - local name = string.lower(variable.name) - local value = string.lower(variable.value) - if name:match("secret") or name:match("api") or value:match("secret") or value:match("api") then - return "*****" - end - - if #variable.value > 15 then - return " " .. string.sub(variable.value, 1, 15) .. "... " - end - - return " " .. variable.value - end, - }) - - -- Configure the CodeLLDB adapter for C/C++ - dap.adapters.codelldb = { - type = "server", - port = "${port}", - executable = { - command = vim.fn.stdpath("data") .. "/mason/bin/codelldb", - args = { "--port", "${port}" }, - }, - } - - -- Define launch configurations for C/C++ - dap.configurations.c = { - { - name = "Launch C", - type = "codelldb", - request = "launch", - program = function() - return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") - end, - cwd = "${workspaceFolder}", - stopOnEntry = false, - }, - } - - dap.configurations.cpp = dap.configurations.c - - -- Your keyboard shortcuts for debugging - vim.keymap.set("n", "b", dap.toggle_breakpoint) - vim.keymap.set("n", "gb", dap.run_to_cursor) - vim.keymap.set("n", "?", function() - dapui.eval(nil, { enter = true }) - end) - vim.keymap.set("n", "", dap.continue) - vim.keymap.set("n", "", dap.step_into) - vim.keymap.set("n", "", dap.step_over) - vim.keymap.set("n", "", dap.step_out) - vim.keymap.set("n", "", dap.step_back) - vim.keymap.set("n", "", dap.restart) - - -- Listeners to open and close the DAP UI automatically - dap.listeners.before.attach.dapui_config = function() - dapui.open() - end - dap.listeners.before.launch.dapui_config = function() - dapui.open() - end - dap.listeners.before.event_terminated.dapui_config = function() - dapui.close() - end - dap.listeners.before.event_exited.dapui_config = function() - dapui.close() - end - end, - }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/disabled.lua b/lazyvim/.config/nvim/lua/plugins/disabled.lua deleted file mode 100644 index cabc4f0..0000000 --- a/lazyvim/.config/nvim/lua/plugins/disabled.lua +++ /dev/null @@ -1,3 +0,0 @@ -return { - { "windwp/nvim-spectre", enabled = false }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/formatter.lua b/lazyvim/.config/nvim/lua/plugins/formatter.lua deleted file mode 100644 index 31a676e..0000000 --- a/lazyvim/.config/nvim/lua/plugins/formatter.lua +++ /dev/null @@ -1,57 +0,0 @@ -return { - "nvimtools/none-ls.nvim", - config = function() - local null_ls = require("null-ls") - - null_ls.setup({ - sources = { - -- C - null_ls.builtins.formatting.clang_format.with({ - extra_args = { - "--style={BasedOnStyle: LLVM, IndentWidth: 8, TabWith: 8, UseTab: Always, BreakBeforeBraces: Linux, AllowShortIfStatementsOnASingleLine: false, AllowShortLoopsOnASingleLine: false, AllowShortFunctionsOnASingleLine: InlineOnly, ColumnLimit: 80, AlignConsecutiveDeclarations: false, AlignConsecutiveAssignments: false, AlignEscapedNewlines: Left, AlignOperands: false, IndentCaseLabels: false, SpaceBeforeParens: ControlStatements }", - }, - }), - - -- Go - null_ls.builtins.formatting.goimports, - - -- Zig - -- null_ls.builtins.formatting.zigfmt, - - -- Lua - null_ls.builtins.formatting.stylua.with({ - extra_args = { - "--indent-type", - "Spaces", - "--indent-width", - "2", - "--column-width", - "120", - }, - }), - - -- Python - null_ls.builtins.formatting.black.with({ - extra_args = { "--line-length", "79" }, - }), - - -- Shell - null_ls.builtins.formatting.shfmt.with({ - extra_args = { "-i", "2", "-ci", "-bn", "-sr", "-p" }, - }), - }, - - -- Auto-format on save - on_attach = function(client, bufnr) - if client.supports_method("textDocument/formatting") then - vim.api.nvim_create_autocmd("BufWritePre", { - buffer = bufnr, - callback = function() - vim.lsp.buf.format({ async = false }) - end, - }) - end - end, - }) - end, -} diff --git a/lazyvim/.config/nvim/lua/plugins/hardtime.lua b/lazyvim/.config/nvim/lua/plugins/hardtime.lua deleted file mode 100644 index dae4cbe..0000000 --- a/lazyvim/.config/nvim/lua/plugins/hardtime.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - "m4xshen/hardtime.nvim", - lazy = false, - dependencies = { "MunifTanjim/nui.nvim" }, - enabled = false, - opts = {}, -} diff --git a/lazyvim/.config/nvim/lua/plugins/harpoon.lua b/lazyvim/.config/nvim/lua/plugins/harpoon.lua deleted file mode 100644 index e4d1233..0000000 --- a/lazyvim/.config/nvim/lua/plugins/harpoon.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "ThePrimeagen/harpoon", - branch = "harpoon2", - dependencies = { "nvim-lua/plenary.nvim" }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/lsp.lua b/lazyvim/.config/nvim/lua/plugins/lsp.lua deleted file mode 100644 index 9877c1a..0000000 --- a/lazyvim/.config/nvim/lua/plugins/lsp.lua +++ /dev/null @@ -1,58 +0,0 @@ -return { - "neovim/nvim-lspconfig", - - -- How to add an LSP for a specific programming language? - -- 1. Use `:Mason` to install the corresponding LSP. - -- 2. Add the configuration below. The syntax is `lspconfig..setup(...)` - -- Hint (find here): https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md - config = function() - -- Set different settings for different languages' LSP. - -- Support List: https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md - local lspconfig = require("lspconfig") - - -- Case 1. For CMake Users - -- $ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON . - -- Case 2. For Bazel Users, use https://github.com/hedronvision/bazel-compile-commands-extractor - -- Case 3. If you don't use any build tool and all files in a project use the same build flags - -- Place your compiler flags in the compile_flags.txt file, located in the root directory - -- of your project. Each line in the file should contain a single compiler flag. - -- src: https://clangd.llvm.org/installation#compile_commandsjson - lspconfig.clangd.setup({}) - lspconfig.gopls.setup({}) - lspconfig.bashls.setup({}) - lspconfig.zls.setup({}) - lspconfig.pylsp.setup({ - settings = { - -- configure plugins in pylsp - pylsp = { - plugins = { - pyflakes = { enabled = false }, - pycodestyle = { enabled = false }, - }, - }, - }, - }) - lspconfig.lua_ls.setup({ - settings = { - Lua = { - runtime = { - -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim). - version = "LuaJIT", - }, - diagnostics = { - -- Get the language server to recognize the `vim` global. - globals = { "vim" }, - }, - workspace = { - -- Make the server aware of Neovim runtime files. - library = vim.api.nvim_get_runtime_file("", true), - }, - -- Do not send telemetry data containing a randomized but unique identifier. - telemetry = { - enable = false, - }, - }, - }, - }) - end, -} diff --git a/lazyvim/.config/nvim/lua/plugins/lualine.lua b/lazyvim/.config/nvim/lua/plugins/lualine.lua deleted file mode 100644 index 4a641db..0000000 --- a/lazyvim/.config/nvim/lua/plugins/lualine.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - "nvim-lualine/lualine.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/markdown-preview.lua b/lazyvim/.config/nvim/lua/plugins/markdown-preview.lua deleted file mode 100644 index 533b6a4..0000000 --- a/lazyvim/.config/nvim/lua/plugins/markdown-preview.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - "MeanderingProgrammer/render-markdown.nvim", - dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" }, -- if you use the mini.nvim suite - -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins - -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons - ---@module 'render-markdown' - ---@type render.md.UserConfig - opts = {}, -} diff --git a/lazyvim/.config/nvim/lua/plugins/multicursors.lua b/lazyvim/.config/nvim/lua/plugins/multicursors.lua deleted file mode 100644 index 80183e6..0000000 --- a/lazyvim/.config/nvim/lua/plugins/multicursors.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - "smoka7/multicursors.nvim", - event = "VeryLazy", - dependencies = { - "nvimtools/hydra.nvim", - }, - opts = {}, - cmd = { "MCstart", "MCvisual", "MCclear", "MCpattern", "MCvisualPattern", "MCunderCursor" }, - keys = { - { - mode = { "v", "n" }, - "m", - "MCstart", - desc = "Create a selection for selected text or word under the cursor", - }, - }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/neo-tree.lua b/lazyvim/.config/nvim/lua/plugins/neo-tree.lua deleted file mode 100644 index 3ce0ca2..0000000 --- a/lazyvim/.config/nvim/lua/plugins/neo-tree.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - "nvim-neo-tree/neo-tree.nvim", - enabled = false, -} diff --git a/lazyvim/.config/nvim/lua/plugins/snacks.lua b/lazyvim/.config/nvim/lua/plugins/snacks.lua deleted file mode 100644 index 113b0d8..0000000 --- a/lazyvim/.config/nvim/lua/plugins/snacks.lua +++ /dev/null @@ -1,522 +0,0 @@ -return { - "folke/snacks.nvim", - priority = 1000, - lazy = false, - ---@type snacks.Config - opts = { - bigfile = { enabled = true }, - dashboard = { enabled = false }, - explorer = { enabled = false }, - indent = { enabled = true }, - input = { enabled = true }, - notifier = { - enabled = true, - timeout = 3000, - }, - picker = { enabled = true }, - quickfile = { enabled = true }, - scope = { enabled = true }, - scroll = { enabled = true }, - statuscolumn = { enabled = true }, - words = { enabled = true }, - styles = { - notification = { - -- wo = { wrap = true } -- Wrap notifications - }, - }, - }, - keys = { - -- Top Pickers & Explorer - { - "", - function() - Snacks.picker.smart() - end, - desc = "Smart Find Files", - }, - { - ",", - function() - Snacks.picker.buffers() - end, - desc = "Buffers", - }, - { - "/", - function() - Snacks.picker.grep() - end, - desc = "Grep", - }, - { - ":", - function() - Snacks.picker.command_history() - end, - desc = "Command History", - }, - { - "n", - function() - Snacks.picker.notifications() - end, - desc = "Notification History", - }, - { - "fb", - function() - Snacks.picker.buffers() - end, - desc = "Buffers", - }, - { - "fc", - function() - Snacks.picker.files({ cwd = vim.fn.stdpath("config") }) - end, - desc = "Find Config File", - }, - { - "ff", - function() - Snacks.picker.files() - end, - desc = "Find Files", - }, - { - "fg", - function() - Snacks.picker.git_files() - end, - desc = "Find Git Files", - }, - { - "fp", - function() - Snacks.picker.projects() - end, - desc = "Projects", - }, - { - "fr", - function() - Snacks.picker.recent() - end, - desc = "Recent", - }, - -- git - { - "gb", - function() - Snacks.picker.git_branches() - end, - desc = "Git Branches", - }, - { - "gl", - function() - Snacks.picker.git_log() - end, - desc = "Git Log", - }, - { - "gL", - function() - Snacks.picker.git_log_line() - end, - desc = "Git Log Line", - }, - { - "gs", - function() - Snacks.picker.git_status() - end, - desc = "Git Status", - }, - { - "gS", - function() - Snacks.picker.git_stash() - end, - desc = "Git Stash", - }, - { - "gd", - function() - Snacks.picker.git_diff() - end, - desc = "Git Diff (Hunks)", - }, - { - "gf", - function() - Snacks.picker.git_log_file() - end, - desc = "Git Log File", - }, - -- Grep - { - "sb", - function() - Snacks.picker.lines() - end, - desc = "Buffer Lines", - }, - { - "sB", - function() - Snacks.picker.grep_buffers() - end, - desc = "Grep Open Buffers", - }, - { - "sg", - function() - Snacks.picker.grep() - end, - desc = "Grep", - }, - { - "sw", - function() - Snacks.picker.grep_word() - end, - desc = "Visual selection or word", - mode = { "n", "x" }, - }, - -- search - { - 's"', - function() - Snacks.picker.registers() - end, - desc = "Registers", - }, - { - "s/", - function() - Snacks.picker.search_history() - end, - desc = "Search History", - }, - { - "sa", - function() - Snacks.picker.autocmds() - end, - desc = "Autocmds", - }, - { - "sb", - function() - Snacks.picker.lines() - end, - desc = "Buffer Lines", - }, - { - "sc", - function() - Snacks.picker.command_history() - end, - desc = "Command History", - }, - { - "sC", - function() - Snacks.picker.commands() - end, - desc = "Commands", - }, - { - "sd", - function() - Snacks.picker.diagnostics() - end, - desc = "Diagnostics", - }, - { - "sD", - function() - Snacks.picker.diagnostics_buffer() - end, - desc = "Buffer Diagnostics", - }, - { - "sh", - function() - Snacks.picker.help() - end, - desc = "Help Pages", - }, - { - "sH", - function() - Snacks.picker.highlights() - end, - desc = "Highlights", - }, - { - "si", - function() - Snacks.picker.icons() - end, - desc = "Icons", - }, - { - "sj", - function() - Snacks.picker.jumps() - end, - desc = "Jumps", - }, - { - "sk", - function() - Snacks.picker.keymaps() - end, - desc = "Keymaps", - }, - { - "sl", - function() - Snacks.picker.loclist() - end, - desc = "Location List", - }, - { - "sm", - function() - Snacks.picker.marks() - end, - desc = "Marks", - }, - { - "sM", - function() - Snacks.picker.man() - end, - desc = "Man Pages", - }, - { - "sp", - function() - Snacks.picker.lazy() - end, - desc = "Search for Plugin Spec", - }, - { - "sq", - function() - Snacks.picker.qflist() - end, - desc = "Quickfix List", - }, - { - "sR", - function() - Snacks.picker.resume() - end, - desc = "Resume", - }, - { - "su", - function() - Snacks.picker.undo() - end, - desc = "Undo History", - }, - { - "uC", - function() - Snacks.picker.colorschemes() - end, - desc = "Colorschemes", - }, - -- LSP - { - "gd", - function() - Snacks.picker.lsp_definitions() - end, - desc = "Goto Definition", - }, - { - "gD", - function() - Snacks.picker.lsp_declarations() - end, - desc = "Goto Declaration", - }, - { - "gr", - function() - Snacks.picker.lsp_references() - end, - nowait = true, - desc = "References", - }, - { - "gI", - function() - Snacks.picker.lsp_implementations() - end, - desc = "Goto Implementation", - }, - { - "gy", - function() - Snacks.picker.lsp_type_definitions() - end, - desc = "Goto T[y]pe Definition", - }, - { - "ss", - function() - Snacks.picker.lsp_symbols() - end, - desc = "LSP Symbols", - }, - { - "sS", - function() - Snacks.picker.lsp_workspace_symbols() - end, - desc = "LSP Workspace Symbols", - }, - -- Other - { - "z", - function() - Snacks.zen() - end, - desc = "Toggle Zen Mode", - }, - { - "Z", - function() - Snacks.zen.zoom() - end, - desc = "Toggle Zoom", - }, - { - ".", - function() - Snacks.scratch() - end, - desc = "Toggle Scratch Buffer", - }, - { - "S", - function() - Snacks.scratch.select() - end, - desc = "Select Scratch Buffer", - }, - { - "n", - function() - Snacks.notifier.show_history() - end, - desc = "Notification History", - }, - { - "bd", - function() - Snacks.bufdelete() - end, - desc = "Delete Buffer", - }, - { - "cR", - function() - Snacks.rename.rename_file() - end, - desc = "Rename File", - }, - { - "gB", - function() - Snacks.gitbrowse() - end, - desc = "Git Browse", - mode = { "n", "v" }, - }, - { - "gg", - function() - Snacks.lazygit() - end, - desc = "Lazygit", - }, - { - "un", - function() - Snacks.notifier.hide() - end, - desc = "Dismiss All Notifications", - }, - { - "", - function() - Snacks.terminal() - end, - desc = "Toggle Terminal", - }, - { - "", - function() - Snacks.terminal() - end, - desc = "which_key_ignore", - }, - { - "]]", - function() - Snacks.words.jump(vim.v.count1) - end, - desc = "Next Reference", - mode = { "n", "t" }, - }, - { - "[[", - function() - Snacks.words.jump(-vim.v.count1) - end, - desc = "Prev Reference", - mode = { "n", "t" }, - }, - { - "N", - desc = "Neovim News", - function() - Snacks.win({ - file = vim.api.nvim_get_runtime_file("doc/news.txt", false)[1], - width = 0.6, - height = 0.6, - wo = { - spell = false, - wrap = false, - signcolumn = "yes", - statuscolumn = " ", - conceallevel = 3, - }, - }) - end, - }, - }, - init = function() - vim.api.nvim_create_autocmd("User", { - pattern = "VeryLazy", - callback = function() - -- Setup some globals for debugging (lazy-loaded) - _G.dd = function(...) - Snacks.debug.inspect(...) - end - _G.bt = function() - Snacks.debug.backtrace() - end - vim.print = _G.dd -- Override print to use snacks for `:=` command - end, - }) - end, -} diff --git a/lazyvim/.config/nvim/lua/plugins/telescope.lua b/lazyvim/.config/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 5ca85ed..0000000 --- a/lazyvim/.config/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "nvim-telescope/telescope.nvim", - tag = "0.1.8", - dependencies = { "nvim-lua/plenary.nvim" }, -} diff --git a/lazyvim/.config/nvim/lua/plugins/yazi.lua b/lazyvim/.config/nvim/lua/plugins/yazi.lua deleted file mode 100644 index 04891a0..0000000 --- a/lazyvim/.config/nvim/lua/plugins/yazi.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "mikavilpas/yazi.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - opts = {}, - keys = { - { "e", "Yazi", desc = "Open Yazi" }, - }, -} diff --git a/lazyvim/.config/nvim/lua/scripts/meld_diff_fzf.sh b/lazyvim/.config/nvim/lua/scripts/meld_diff_fzf.sh deleted file mode 100755 index b57ece2..0000000 --- a/lazyvim/.config/nvim/lua/scripts/meld_diff_fzf.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -file1=$(fzf --prompt="Select first file: " < <(find . -type f)) -[ -z "$file1" ] && echo "Aborted." && exit 1 - -file2=$(fzf --prompt="Select second file: " < <(find . -type f)) -[ -z "$file2" ] && echo "Aborted." && exit 1 - -echo "๐Ÿ” Comparing:" -echo " 1: $file1" -echo " 2: $file2" - -meld "$file1" "$file2" & diff --git a/lazyvim/.config/nvim/lua/user/utils.lua b/lazyvim/.config/nvim/lua/user/utils.lua deleted file mode 100644 index 205792a..0000000 --- a/lazyvim/.config/nvim/lua/user/utils.lua +++ /dev/null @@ -1,15 +0,0 @@ --- This file contains all custom functions for integrate external tools. - --- Meld for comparing and merging files -local M = {} - -function M.meld_diff(file1, file2) - if not file1 or not file2 then - print("Usage: :lua require'user.utils'.meld_diff('file1', 'file2')") - return - end - local cmd = string.format("meld '%s' '%s' &", file1, file2) - os.execute(cmd) -end - -return M diff --git a/lazyvim/.config/nvim/stylua.toml b/lazyvim/.config/nvim/stylua.toml deleted file mode 100644 index 4524aeb..0000000 --- a/lazyvim/.config/nvim/stylua.toml +++ /dev/null @@ -1,4 +0,0 @@ -indent_type = "Spaces" -indent_width = 2 -column_width = 120 - diff --git a/mpd/.config/mpd/database b/mpd/.config/mpd/database deleted file mode 100644 index b2e593e..0000000 Binary files a/mpd/.config/mpd/database and /dev/null differ diff --git a/mpd/.config/mpd/mpd.conf b/mpd/.config/mpd/mpd.conf deleted file mode 100644 index 06f5d8d..0000000 --- a/mpd/.config/mpd/mpd.conf +++ /dev/null @@ -1,435 +0,0 @@ - -# An example configuration file for MPD. -# Read the user manual for documentation: http://www.musicpd.org/doc/user/ - - -# Files and directories ####################################################### -# -# This setting controls the top directory which MPD will search to discover the -# available audio files and add them to the daemon's online database. This -# setting defaults to the XDG directory, otherwise the music directory will be -# be disabled and audio files will only be accepted over ipc socket (using -# file:// protocol) or streaming files over an accepted protocol. -# -#music_directory "~/music" -music_directory "~/Music" -# -# This setting sets the MPD internal playlist directory. The purpose of this -# directory is storage for playlists created by MPD. The server will use -# playlist files not created by the server but only if they are in the MPD -# format. This setting defaults to playlist saving being disabled. -# -#playlist_directory "~/.mpd/playlists" -playlist_directory "~/.config/mpd/playlists" -# -# This setting sets the location of the MPD database. This file is used to -# load the database at server start up and store the database while the -# server is not up. This setting defaults to disabled which will allow -# MPD to accept files over ipc socket (using file:// protocol) or streaming -# files over an accepted protocol. -# -db_file "~/.config/mpd/database" -#db_file "~/.mpd/database" - -# These settings are the locations for the daemon log files for the daemon. -# -# The special value "syslog" makes MPD use the local syslog daemon. This -# setting defaults to logging to syslog. -# -# If you use systemd, do not configure a log_file. With systemd, MPD -# defaults to the systemd journal, which is fine. -# -#log_file "~/.mpd/log" - -# This setting sets the location of the file which stores the process ID -# for use of mpd --kill and some init scripts. This setting is disabled by -# default and the pid file will not be stored. -# -# If you use systemd, do not configure a pid_file. -# -#pid_file "~/.mpd/pid" -pid_file "~/.config/mpd/pid" - -# This setting sets the location of the file which contains information about -# most variables to get MPD back into the same general shape it was in before -# it was brought down. This setting is disabled by default and the server -# state will be reset on server start up. -# -#state_file "~/.mpd/state" -state_file "~/.config/mpd/state" -# -# The location of the sticker database. This is a database which -# manages dynamic information attached to songs. -# -#sticker_file "~/.mpd/sticker.sql" -sticker_file "~/.config/mpd/sticker.sql" -# -############################################################################### - - -# General music daemon options ################################################ -# -# This setting specifies the user that MPD will run as. MPD should never run as -# root and you may use this setting to make MPD change its user ID after -# initialization. This setting is disabled by default and MPD is run as the -# current user. -# -#user "nobody" -# -# This setting specifies the group that MPD will run as. If not specified -# primary group of user specified with "user" setting will be used (if set). -# This is useful if MPD needs to be a member of group such as "audio" to -# have permission to use sound card. -# -#group "nogroup" -# -# This setting sets the address for the daemon to listen on. Careful attention -# should be paid if this is assigned to anything other than the default, any. -# This setting can deny access to control of the daemon. Not effective if -# systemd socket activation is in use. -# -# For network -#bind_to_address "any" -# -# And for Unix Socket -#bind_to_address "~/.mpd/socket" -# -# This setting is the TCP port that is desired for the daemon to get assigned -# to. -# -#port "6600" -# -# Suppress all messages below the given threshold. Use "verbose" for -# troubleshooting. Available setting arguments are "notice", "info", "verbose", -# "warning" and "error". -# -#log_level "notice" -# -# Setting "restore_paused" to "yes" puts MPD into pause mode instead -# of starting playback after startup. -# -#restore_paused "no" -# -# This setting enables MPD to create playlists in a format usable by other -# music players. -# -#save_absolute_paths_in_playlists "no" -# -# This setting defines a list of tag types that will be extracted during the -# audio file discovery process. The complete list of possible values can be -# found in the user manual. -#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" -# -# This example just enables the "comment" tag without disabling all -# the other supported tags: -#metadata_to_use "+comment" -# -# This setting enables automatic update of MPD's database when files in -# music_directory are changed. -# -auto_update "yes" -# -# Limit the depth of the directories being watched, 0 means only watch -# the music directory itself. There is no limit by default. -# -#auto_update_depth "3" -# -############################################################################### - - -# Symbolic link behavior ###################################################### -# -# If this setting is set to "yes", MPD will discover audio files by following -# symbolic links outside of the configured music_directory. -# -#follow_outside_symlinks "yes" -# -# If this setting is set to "yes", MPD will discover audio files by following -# symbolic links inside of the configured music_directory. -# -#follow_inside_symlinks "yes" -# -############################################################################### - - -# Zeroconf / Avahi Service Discovery ########################################## -# -# If this setting is set to "yes", service information will be published with -# Zeroconf / Avahi. -# -#zeroconf_enabled "yes" -# -# The argument to this setting will be the Zeroconf / Avahi unique name for -# this MPD server on the network. %h will be replaced with the hostname. -# -#zeroconf_name "Music Player @ %h" -# -############################################################################### - - -# Permissions ################################################################# -# -# If this setting is set, MPD will require password authorization. The password -# setting can be specified multiple times for different password profiles. -# -#password "password@read,add,control,admin" -# -# This setting specifies the permissions a user has who has not yet logged in. -# -#default_permissions "read,add,control,admin" -# -############################################################################### - - -# Database ####################################################################### -# -# An example of a database section instead of the old 'db_file' setting. -# It enables mounting other storages into the music directory. -# -#database { -# plugin "simple" -# path "~/.local/share/mpd/db -# cache_directory "~/.local/share/mpd/cache" -#} -# -# An example of database config for a satellite setup -# -#music_directory "nfs://fileserver.local/srv/mp3" -#database { -# plugin "proxy" -# host "other.mpd.host" -# port "6600" -#} - -# Input ####################################################################### -# -input { - plugin "curl" -# proxy "proxy.isp.com:8080" -# proxy_user "user" -# proxy_password "password" -} - -# -############################################################################### - -# Audio Output ################################################################ -# -# MPD supports various audio output types, as well as playing through multiple -# audio outputs at the same time, through multiple audio_output settings -# blocks. Setting this block is optional, though the server will only attempt -# autodetection for one sound card. -# -# An example of an ALSA output: -# -audio_output { - type "pulse" - name "pulse audio" -} - -# audio_output { -# type "pipewire" -# name "PipeWire Sound Server" -# } - -#audio_output { -# type "alsa" -# name "My ALSA Device" -## device "hw:0,0" # optional -## mixer_type "hardware" # optional -## mixer_device "default" # optional -## mixer_control "PCM" # optional -## mixer_index "0" # optional -#} -# -# An example of an OSS output: -# -#audio_output { -# type "oss" -# name "My OSS Device" -## device "/dev/dsp" # optional -## mixer_type "hardware" # optional -## mixer_device "/dev/mixer" # optional -## mixer_control "PCM" # optional -#} -# -# An example of a shout output (for streaming to Icecast): -# -#audio_output { -# type "shout" -# encoder "vorbis" # optional -# name "My Shout Stream" -# host "localhost" -# port "8000" -# mount "/mpd.ogg" -# password "hackme" -# quality "5.0" -# bitrate "128" -# format "44100:16:1" -## protocol "icecast2" # optional -## user "source" # optional -## description "My Stream Description" # optional -## url "http://example.com" # optional -## genre "jazz" # optional -## public "no" # optional -## timeout "2" # optional -## mixer_type "software" # optional -#} -# -# An example of a recorder output: -# -#audio_output { -# type "recorder" -# name "My recorder" -# encoder "vorbis" # optional, vorbis or lame -# path "/var/lib/mpd/recorder/mpd.ogg" -## quality "5.0" # do not define if bitrate is defined -# bitrate "128" # do not define if quality is defined -# format "44100:16:1" -#} -# -# An example of a httpd output (built-in HTTP streaming server): -# -#audio_output { -# type "httpd" -# name "My HTTP Stream" -# encoder "vorbis" # optional, vorbis or lame -# port "8000" -# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6 -## quality "5.0" # do not define if bitrate is defined -# bitrate "128" # do not define if quality is defined -# format "44100:16:1" -# max_clients "0" # optional 0=no limit -#} -# -# An example of a pulseaudio output (streaming to a remote pulseaudio server) -# -#audio_output { -# type "pulse" -# name "My Pulse Output" -## server "remote_server" # optional -## sink "remote_server_sink" # optional -## media_role "media_role" #optional -#} -# -# An example of a winmm output (Windows multimedia API). -# -#audio_output { -# type "winmm" -# name "My WinMM output" -## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional -# or -## device "0" # optional -## mixer_type "hardware" # optional -#} -# -# An example of a wasapi output (Windows multimedia API). -# -#audio_output { -# type "wasapi" -# name "My WASAPI output" -## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional -# or -## device "0" # optional -## Exclusive mode blocks all other audio source, and get best audio quality without resampling. -## exclusive "no" # optional -## Enumerate all devices in log. -## enumerate "no" # optional -#} -# -# An example of an openal output. -# -#audio_output { -# type "openal" -# name "My OpenAL output" -## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional -#} -# -# An example of an sndio output. -# -#audio_output { -# type "sndio" -# name "sndio output" -# mixer_type "hardware" -#} -# -# An example of an OS X output: -# -#audio_output { -# type "osx" -# name "My OS X Device" -## device "Built-in Output" # optional -## channel_map "-1,-1,0,1" # optional -#} -# -## Example "pipe" output: -# -#audio_output { -# type "pipe" -# name "my pipe" -# command "aplay -f cd 2>/dev/null" -## Or if you're want to use AudioCompress -# command "AudioCompress -m | aplay -f cd 2>/dev/null" -## Or to send raw PCM stream through PCM: -# command "nc example.org 8765" -# format "44100:16:2" -#} -# -## An example of a null output (for no audio output): -# -#audio_output { -# type "null" -# name "My Null Output" -# mixer_type "none" # optional -#} -# -############################################################################### - - -# Normalization automatic volume adjustments ################################## -# -# This setting specifies the type of ReplayGain to use. This setting can have -# the argument "off", "album", "track" or "auto". "auto" is a special mode that -# chooses between "track" and "album" depending on the current state of -# random playback. If random playback is enabled then "track" mode is used. -# See for -# more details about ReplayGain. -# This setting is off by default. -# -#replaygain "album" -# -# This setting sets the pre-amp used for files that have ReplayGain tags. By -# default this setting is disabled. -# -#replaygain_preamp "0" -# -# This setting sets the pre-amp used for files that do NOT have ReplayGain tags. -# By default this setting is disabled. -# -#replaygain_missing_preamp "0" -# -# This setting enables or disables ReplayGain limiting. -# MPD calculates actual amplification based on the ReplayGain tags -# and replaygain_preamp / replaygain_missing_preamp setting. -# If replaygain_limit is enabled MPD will never amplify audio signal -# above its original level. If replaygain_limit is disabled such amplification -# might occur. By default this setting is enabled. -# -#replaygain_limit "yes" -# -# This setting enables on-the-fly normalization volume adjustment. This will -# result in the volume of all playing audio to be adjusted so the output has -# equal "loudness". This setting is disabled by default. -# -#volume_normalization "no" -# -############################################################################### - -# Character Encoding ########################################################## -# -# If file or directory names do not display correctly for your locale then you -# may need to modify this setting. -# -#filesystem_charset "UTF-8" -# -############################################################################### diff --git a/mpd/.config/mpd/state b/mpd/.config/mpd/state deleted file mode 100644 index d052502..0000000 --- a/mpd/.config/mpd/state +++ /dev/null @@ -1,27 +0,0 @@ -sw_volume: 100 -audio_device_state:1:pulse audio -state: play -current: 11 -time: 15.469000 -random: 1 -repeat: 0 -single: 0 -consume: 0 -crossfade: 0 -mixrampdb: 0.000000 -mixrampdelay: -1.000000 -playlist_begin -0:ไฝใ€…ๆœจๆตๆขจ - Ring of Fortune.mp3 -1:ๆ”พ่ชฒๅพŒใƒ†ใ‚ฃใƒผใ‚ฟใ‚คใƒ  - ใ‚ใŸใ—ใฎๆ‹ใฏใƒ›ใƒƒใƒใ‚ญใ‚น.mp3 -2:ๆ—ฉ่ฆ‹ๆฒ™็น” - ใ“ใ“ใ‹ใ‚‰ใ€ใ“ใ“ใ‹ใ‚‰ -็™ฝ็Ÿณ็ตๆœˆ ใ‚ฝใƒญver.-.mp3 -3:็€ฌๆˆธ้บปๆฒ™็พŽ,้ป’ๆฒขใจใ‚‚ใ‚ˆ,ๅฐๆพคไบœๆŽ - ใ•ใ‚ˆใชใ‚‰ใ€‚ใ‚ใ‚ŠใŒใจใ†ใ€‚.mp3 -4:ใ‚ณใ‚ขใƒฉใƒขใƒผใƒ‰. - ไธƒ่‰ฒใ‚ทใƒณใƒ•ใ‚ฉใƒ‹ใƒผ.mp3 -5:ๆณ ้ธขyousa - ๅ‰ๅ‰ๅ‰ไธ–๏ผˆSlowย Ver.๏ผ‰.mp3 -6:ๆ”พ่ชฒๅพŒใƒ†ใ‚ฃใƒผใ‚ฟใ‚คใƒ  - ใ‚ใŸใ—ใฎๆ‹ใฏใƒ›ใƒƒใƒใ‚ญใ‚น.mp3 -7:ไฝใ€…ๆœจๆตๆขจ - Ring of Fortune.mp3 -8:ๆ”พ่ชฒๅพŒใƒ†ใ‚ฃใƒผใ‚ฟใ‚คใƒ  - ใ‚ใŸใ—ใฎๆ‹ใฏใƒ›ใƒƒใƒใ‚ญใ‚น.mp3 -9:ๆ—ฉ่ฆ‹ๆฒ™็น” - ใ“ใ“ใ‹ใ‚‰ใ€ใ“ใ“ใ‹ใ‚‰ -็™ฝ็Ÿณ็ตๆœˆ ใ‚ฝใƒญver.-.mp3 -10:็€ฌๆˆธ้บปๆฒ™็พŽ,้ป’ๆฒขใจใ‚‚ใ‚ˆ,ๅฐๆพคไบœๆŽ - ใ•ใ‚ˆใชใ‚‰ใ€‚ใ‚ใ‚ŠใŒใจใ†ใ€‚.mp3 -11:ใ‚ณใ‚ขใƒฉใƒขใƒผใƒ‰. - ไธƒ่‰ฒใ‚ทใƒณใƒ•ใ‚ฉใƒ‹ใƒผ.mp3 -12:ๆณ ้ธขyousa - ๅ‰ๅ‰ๅ‰ไธ–๏ผˆSlowย Ver.๏ผ‰.mp3 -playlist_end diff --git a/mpv/.config/mpv/input.conf b/mpv/.config/mpv/input.conf deleted file mode 100755 index 26646bd..0000000 --- a/mpv/.config/mpv/input.conf +++ /dev/null @@ -1,8 +0,0 @@ -CTRL+1 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A (HQ)" -CTRL+2 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Soft_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B (HQ)" -CTRL+3 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode C (HQ)" -CTRL+4 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_Restore_CNN_M.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A+A (HQ)" -CTRL+5 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Soft_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Restore_CNN_Soft_M.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B+B (HQ)" -CTRL+6 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Restore_CNN_M.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode C+A (HQ)" - -CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared" diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf deleted file mode 100755 index 5b01362..0000000 --- a/mpv/.config/mpv/mpv.conf +++ /dev/null @@ -1,26 +0,0 @@ -hwdec=auto -# vo=gpu-next #This will break Anime4K -gpu-api=opengl -script-opts=ytdl_hook-ytdl_path=yt-dlp - -# Main mpv options -background-color='#1e1e2e' -osd-back-color='#11111b' -osd-border-color='#11111b' -osd-color='#cdd6f4' -osd-shadow-color='#1e1e2e' - -# Stats script options -# Options are on separate lines for clarity -# Colors are in #BBGGRR format -script-opts-append=stats-border_color=251818 -script-opts-append=stats-font_color=f4d6cd -script-opts-append=stats-plot_bg_border_color=afe2f9 -script-opts-append=stats-plot_bg_color=251818 -script-opts-append=stats-plot_color=afe2f9 - -# External script options -# It is fine to leave these here even if one does not use these scripts because they are just ignored unless a script uses them - -# UOSC options -script-opts-append=uosc-color=foreground=f9e2af,foreground_text=313244,background=1e1e2e,background_text=cdd6f4,curtain=181825,success=a6e3a1,error=f38ba8 diff --git a/mpv/.config/mpv/scripts/file-browser.lua b/mpv/.config/mpv/scripts/file-browser.lua deleted file mode 100644 index 803a5b6..0000000 --- a/mpv/.config/mpv/scripts/file-browser.lua +++ /dev/null @@ -1,2593 +0,0 @@ ---[[ - mpv-file-browser - This script allows users to browse and open files and folders entirely from within mpv. - The script uses nothing outside the mpv API, so should work identically on all platforms. - The browser can move up and down directories, start playing files and folders, or add them to the queue. - For full documentation see: https://github.com/CogentRedTester/mpv-file-browser -]] --- - -local mp = require("mp") -local msg = require("mp.msg") -local utils = require("mp.utils") -local opt = require("mp.options") - -local o = { - --root directories - root = "~/Videos/", - - --characters to use as separators - root_separators = ",;", - - --number of entries to show on the screen at once - num_entries = 20, - - --wrap the cursor around the top and bottom of the list - wrap = false, - - --only show files compatible with mpv - filter_files = true, - - --experimental feature that recurses directories concurrently when - --appending items to the playlist - concurrent_recursion = false, - - --maximum number of recursions that can run concurrently - max_concurrency = 16, - - --enable custom keybinds - custom_keybinds = false, - - --blacklist compatible files, it's recommended to use this rather than to edit the - --compatible list directly. A semicolon separated list of extensions without spaces - extension_blacklist = "", - - --add extra file extensions - extension_whitelist = "", - - --files with these extensions will be added as additional audio tracks for the current file instead of appended to the playlist - audio_extensions = "mka,dts,dtshd,dts-hd,truehd,true-hd", - - --files with these extensions will be added as additional subtitle tracks instead of appended to the playlist - subtitle_extensions = "etf,etf8,utf-8,idx,sub,srt,rt,ssa,ass,mks,vtt,sup,scc,smi,lrc,pgs", - - --filter dot directories like .config - --most useful on linux systems - filter_dot_dirs = false, - filter_dot_files = false, - - --substitude forward slashes for backslashes when appending a local file to the playlist - --potentially useful on windows systems - substitute_backslash = false, - - --this option reverses the behaviour of the alt+ENTER keybind - --when disabled the keybind is required to enable autoload for the file - --when enabled the keybind disables autoload for the file - autoload = false, - - --if autoload is triggered by selecting the currently playing file, then - --the current file will have it's watch-later config saved before being closed - --essentially the current file will not be restarted - autoload_save_current = true, - - --when opening the browser in idle mode prefer the current working directory over the root - --note that the working directory is set as the 'current' directory regardless, so `home` will - --move the browser there even if this option is set to false - default_to_working_directory = false, - - --allows custom icons be set to fix incompatabilities with some fonts - --the `\h` character is a hard space to add padding between the symbol and the text - folder_icon = "๐Ÿ–ฟ", - cursor_icon = "โžค", - indent_icon = [[\h\h\h]], - - --enable addons - addons = false, - addon_directory = "~~/script-modules/file-browser-addons", - - --directory to load external modules - currently just user-input-module - module_directory = "~~/script-modules", - - --force file-browser to use a specific text alignment (default: top-left) - --uses ass tag alignment numbers: https://aegi.vmoe.info/docs/3.0/ASS_Tags/#index23h3 - --set to 0 to use the default mpv osd-align options - alignment = 7, - - --style settings - font_bold_header = true, - - font_size_header = 35, - font_size_body = 25, - font_size_wrappers = 16, - - font_name_header = "", - font_name_body = "", - font_name_wrappers = "", - font_name_folder = "", - font_name_cursor = "", - - font_colour_header = "00ccff", - font_colour_body = "ffffff", - font_colour_wrappers = "00ccff", - font_colour_cursor = "00ccff", - - font_colour_multiselect = "fcad88", - font_colour_selected = "fce788", - font_colour_playing = "33ff66", - font_colour_playing_multiselected = "22b547", -} - -opt.read_options(o, "file_browser") -utils.shared_script_property_set("file_browser-open", "no") - --------------------------------------------------------------------------------------------------------- ------------------------------------------Environment Setup---------------------------------------------- --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---sets the version for the file-browser API -API_VERSION = "1.3.0" - ---switch the main script to a different environment so that the ---executed lua code cannot access our global variales -if setfenv then - setfenv(1, setmetatable({}, { __index = _G })) -else - _ENV = setmetatable({}, { __index = _G }) -end - ---creates a table for the API functions ---adds one metatable redirect to prevent addon authors from accidentally breaking file-browser -local API = { API_VERSION = API_VERSION } -package.loaded["file-browser"] = setmetatable({}, { __index = API }) - -local parser_API = setmetatable({}, { __index = package.loaded["file-browser"] }) -local parse_state_API = {} - --------------------------------------------------------------------------------------------------------- -------------------------------------------Variable Setup------------------------------------------------ --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---the osd_overlay API was not added until v0.31. The expand-path command was not added until 0.30 -local ass = mp.create_osd_overlay("ass-events") -if not ass then - return msg.error("Script requires minimum mpv version 0.31") -end - -package.path = mp.command_native({ "expand-path", o.module_directory }) .. "/?.lua;" .. package.path - -local style = { - global = o.alignment == 0 and "" or ([[{\an%d}]]):format(o.alignment), - - -- full line styles - header = ([[{\r\q2\b%s\fs%d\fn%s\c&H%s&}]]):format( - (o.font_bold_header and "1" or "0"), - o.font_size_header, - o.font_name_header, - o.font_colour_header - ), - body = ([[{\r\q2\fs%d\fn%s\c&H%s&}]]):format(o.font_size_body, o.font_name_body, o.font_colour_body), - footer_header = ([[{\r\q2\fs%d\fn%s\c&H%s&}]]):format( - o.font_size_wrappers, - o.font_name_wrappers, - o.font_colour_wrappers - ), - - --small section styles (for colours) - multiselect = ([[{\c&H%s&}]]):format(o.font_colour_multiselect), - selected = ([[{\c&H%s&}]]):format(o.font_colour_selected), - playing = ([[{\c&H%s&}]]):format(o.font_colour_playing), - playing_selected = ([[{\c&H%s&}]]):format(o.font_colour_playing_multiselected), - - --icon styles - cursor = ([[{\fn%s\c&H%s&}]]):format(o.font_name_cursor, o.font_colour_cursor), - folder = ([[{\fn%s}]]):format(o.font_name_folder), -} - -local state = { - list = {}, - selected = 1, - hidden = true, - flag_update = false, - keybinds = nil, - - parser = nil, - directory = nil, - directory_label = nil, - prev_directory = "", - co = nil, - - multiselect_start = nil, - initial_selection = nil, - selection = {}, -} - ---the parser table actually contains 3 entries for each parser ---a numeric entry which represents the priority of the parsers and has the parser object as the value ---a string entry representing the id of each parser and with the parser object as the value ---and a table entry with the parser itself as the key and a table value in the form { id = %s, index = %d } -local parsers = {} - ---this table contains the parse_state tables for every parse operation indexed with the coroutine used for the parse ---this table has weakly referenced keys, meaning that once the coroutine for a parse is no-longer used by anything that ---field in the table will be removed by the garbage collector -local parse_states = setmetatable({}, { __mode = "k" }) - -local extensions = {} -local sub_extensions = {} -local audio_extensions = {} -local parseable_extensions = {} - -local dvd_device = nil -local current_file = { - directory = nil, - name = nil, - path = nil, -} - -local root = nil - ---default list of compatible file extensions ---adding an item to this list is a valid request on github -local compatible_file_extensions = { - "264", - "265", - "3g2", - "3ga", - "3ga2", - "3gp", - "3gp2", - "3gpp", - "3iv", - "a52", - "aac", - "adt", - "adts", - "ahn", - "aif", - "aifc", - "aiff", - "amr", - "ape", - "asf", - "au", - "avc", - "avi", - "awb", - "ay", - "bmp", - "cue", - "divx", - "dts", - "dtshd", - "dts-hd", - "dv", - "dvr", - "dvr-ms", - "eac3", - "evo", - "evob", - "f4a", - "flac", - "flc", - "fli", - "flic", - "flv", - "gbs", - "gif", - "gxf", - "gym", - "h264", - "h265", - "hdmov", - "hdv", - "hes", - "hevc", - "jpeg", - "jpg", - "kss", - "lpcm", - "m1a", - "m1v", - "m2a", - "m2t", - "m2ts", - "m2v", - "m3u", - "m3u8", - "m4a", - "m4v", - "mk3d", - "mka", - "mkv", - "mlp", - "mod", - "mov", - "mp1", - "mp2", - "mp2v", - "mp3", - "mp4", - "mp4v", - "mp4v", - "mpa", - "mpe", - "mpeg", - "mpeg2", - "mpeg4", - "mpg", - "mpg4", - "mpv", - "mpv2", - "mts", - "mtv", - "mxf", - "nsf", - "nsfe", - "nsv", - "nut", - "oga", - "ogg", - "ogm", - "ogv", - "ogx", - "opus", - "pcm", - "pls", - "png", - "qt", - "ra", - "ram", - "rm", - "rmvb", - "sap", - "snd", - "spc", - "spx", - "svg", - "thd", - "thd+ac3", - "tif", - "tiff", - "tod", - "trp", - "truehd", - "true-hd", - "ts", - "tsa", - "tsv", - "tta", - "tts", - "vfw", - "vgm", - "vgz", - "vob", - "vro", - "wav", - "weba", - "webm", - "webp", - "wm", - "wma", - "wmv", - "wtv", - "wv", - "x264", - "x265", - "xvid", - "y4m", - "yuv", -} - --------------------------------------------------------------------------------------------------------- ---------------------------------------Cache Implementation---------------------------------------------- --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---metatable of methods to manage the cache -local __cache = {} - -__cache.cached_values = { - "directory", - "directory_label", - "list", - "selected", - "selection", - "parser", - "empty_text", - "co", -} - ---inserts latest state values onto the cache stack -function __cache:push() - local t = {} - for _, value in ipairs(self.cached_values) do - t[value] = state[value] - end - table.insert(self, t) -end - -function __cache:pop() - table.remove(self) -end - -function __cache:apply() - local t = self[#self] - for _, value in ipairs(self.cached_values) do - state[value] = t[value] - end -end - -function __cache:clear() - for i = 1, #self do - self[i] = nil - end -end - -local cache = setmetatable({}, { __index = __cache }) - --------------------------------------------------------------------------------------------------------- ------------------------------------------Utility Functions---------------------------------------------- ----------------------------------------Part of the addon API-------------------------------------------- --------------------------------------------------------------------------------------------------------- - -API.coroutine = {} -local ABORT_ERROR = { - msg = "browser is no longer waiting for list - aborting parse", -} - ---implements table.pack if on lua 5.1 -if not table.pack then - table.unpack = unpack - function table.pack(...) - local t = { ... } - t.n = select("#", ...) - return t - end -end - ---prints an error message and a stack trace ---accepts an error object and optionally a coroutine ---can be passed directly to xpcall -function API.traceback(errmsg, co) - if co then - msg.warn(debug.traceback(co)) - else - msg.warn(debug.traceback("", 2)) - end - msg.error(errmsg) -end - ---prints an error if a coroutine returns an error ---unlike the next function this one still returns the results of coroutine.resume() -function API.coroutine.resume_catch(...) - local returns = table.pack(coroutine.resume(...)) - if not returns[1] and returns[2] ~= ABORT_ERROR then - API.traceback(returns[2], select(1, ...)) - end - return table.unpack(returns, 1, returns.n) -end - ---resumes a coroutine and prints an error if it was not sucessful -function API.coroutine.resume_err(...) - local success, err = coroutine.resume(...) - if not success and err ~= ABORT_ERROR then - API.traceback(err, select(1, ...)) - end - return success -end - ---in lua 5.1 there is only one return value which will be nil if run from the main thread ---in lua 5.2 main will be true if running from the main thread -function API.coroutine.assert(err) - local co, main = coroutine.running() - assert(not main and co, err or "error - function must be executed from within a coroutine") - return co -end - ---creates a callback fuction to resume the current coroutine -function API.coroutine.callback() - local co = API.coroutine.assert("cannot create a coroutine callback for the main thread") - return function(...) - return API.coroutine.resume_err(co, ...) - end -end - ---puts the current coroutine to sleep for the given number of seconds -function API.coroutine.sleep(n) - mp.add_timeout(n, API.coroutine.callback()) - coroutine.yield() -end - ---runs the given function in a coroutine, passing through any additional arguments ---this is for triggering an event in a coroutine -function API.coroutine.run(fn, ...) - local co = coroutine.create(fn) - API.coroutine.resume_err(co, ...) -end - ---get the full path for the current file -function API.get_full_path(item, dir) - if item.path then - return item.path - end - return (dir or state.directory) .. item.name -end - ---gets the path for a new subdirectory, redirects if the path field is set ---returns the new directory path and a boolean specifying if a redirect happened -function API.get_new_directory(item, directory) - if item.path and item.redirect ~= false then - return item.path, true - end - if directory == "" then - return item.name - end - if string.sub(directory, -1) == "/" then - return directory .. item.name - end - return directory .. "/" .. item.name -end - ---returns the file extension of the given file -function API.get_extension(filename, def) - return string.lower(filename):match("%.([^%./]+)$") or def -end - ---returns the protocol scheme of the given url, or nil if there is none -function API.get_protocol(filename, def) - return string.lower(filename):match("^(%a[%w+-.]*)://") or def -end - ---formats strings for ass handling ---this function is based on a similar function from https://github.com/mpv-player/mpv/blob/master/player/lua/console.lua#L110 -function API.ass_escape(str, replace_newline) - if replace_newline == true then - replace_newline = "\\\239\187\191n" - end - - --escape the invalid single characters - str = string.gsub(str, "[\\{}\n]", { - -- There is no escape for '\' in ASS (I think?) but '\' is used verbatim if - -- it isn't followed by a recognised character, so add a zero-width - -- non-breaking space - ["\\"] = "\\\239\187\191", - ["{"] = "\\{", - ["}"] = "\\}", - -- Precede newlines with a ZWNBSP to prevent ASS's weird collapsing of - -- consecutive newlines - ["\n"] = "\239\187\191\\N", - }) - - -- Turn leading spaces into hard spaces to prevent ASS from stripping them - str = str:gsub("\\N ", "\\N\\h") - str = str:gsub("^ ", "\\h") - - if replace_newline then - str = str:gsub("\\N", replace_newline) - end - return str -end - ---escape lua pattern characters -function API.pattern_escape(str) - return string.gsub(str, "([%^%$%(%)%%%.%[%]%*%+%-])", "%%%1") -end - ---standardises filepaths across systems -function API.fix_path(str, is_directory) - str = string.gsub(str, [[\]], [[/]]) - str = str:gsub([[/./]], [[/]]) - if is_directory and str:sub(-1) ~= "/" then - str = str .. "/" - end - return str -end - ---wrapper for utils.join_path to handle protocols -function API.join_path(working, relative) - return API.get_protocol(relative) and relative or utils.join_path(working, relative) -end - ---sorts the table lexicographically ignoring case and accounting for leading/non-leading zeroes ---the number format functionality was proposed by github user twophyro, and was presumably taken ---from here: http://notebook.kulchenko.com/algorithms/alphanumeric-natural-sorting-for-humans-in-lua -function API.sort(t) - local function padnum(d) - local r = string.match(d, "0*(.+)") - return ("%03d%s"):format(#r, r) - end - - --appends the letter d or f to the start of the comparison to sort directories and folders as well - table.sort(t, function(a, b) - return a.type:sub(1, 1) .. (a.label or a.name):lower():gsub("%d+", padnum) - < b.type:sub(1, 1) .. (b.label or b.name):lower():gsub("%d+", padnum) - end) - return t -end - -function API.valid_dir(dir) - if o.filter_dot_dirs and string.sub(dir, 1, 1) == "." then - return false - end - return true -end - -function API.valid_file(file) - if o.filter_dot_files and (string.sub(file, 1, 1) == ".") then - return false - end - if o.filter_files and not extensions[API.get_extension(file, "")] then - return false - end - return true -end - ---returns whether or not the item can be parsed -function API.parseable_item(item) - return item.type == "dir" or parseable_extensions[API.get_extension(item.name, "")] -end - ---removes items and folders from the list ---this is for addons which can't filter things during their normal processing -function API.filter(t) - local max = #t - local top = 1 - for i = 1, max do - local temp = t[i] - t[i] = nil - - if - (temp.type == "dir" and API.valid_dir(temp.label or temp.name)) - or (temp.type == "file" and API.valid_file(temp.label or temp.name)) - then - t[top] = temp - top = top + 1 - end - end - return t -end - ---returns a string iterator that uses the root separators -function API.iterate_opt(str) - return string.gmatch(str, "([^" .. API.pattern_escape(o.root_separators) .. "]+)") -end - ---sorts a table into an array of selected items in the correct order ---if a predicate function is passed, then the item will only be added to ---the table if the function returns true -function API.sort_keys(t, include_item) - local keys = {} - for k in pairs(t) do - local item = state.list[k] - if not include_item or include_item(item) then - item.index = k - keys[#keys + 1] = item - end - end - - table.sort(keys, function(a, b) - return a.index < b.index - end) - return keys -end - -local invalid_types = { - userdata = true, - thread = true, - ["function"] = true, -} - -local invalid_key_types = { - boolean = true, - table = true, - ["nil"] = true, -} -setmetatable(invalid_key_types, { __index = invalid_types }) - ---recursively removes elements of the table which would cause ---utils.format_json to throw an error -local function json_safe_recursive(t) - if type(t) ~= "table" then - return t - end - - local invalid_ktypes = setmetatable({}, { __index = invalid_key_types }) - local arr_length = #t - if arr_length > 0 then - invalid_ktypes.string = true - setmetatable(t, { type = "ARRAY" }) - else - invalid_ktypes.number = true - setmetatable(t, { type = "MAP" }) - end - - for key, value in pairs(t) do - local ktype = type(key) - local vtype = type(value) - - if invalid_ktypes[ktype] or invalid_types[vtype] then - t[key] = nil - elseif ktype == "number" and key > arr_length then - t[key] = nil - else - t[key] = json_safe_recursive(t[key]) - end - end - return t -end - ---formats a table into a json string but ensures there are no invalid datatypes inside the table first -function API.format_json_safe(t) - --operate on a copy of the table to prevent any data loss in the original table - t = json_safe_recursive(API.copy_table(t)) - local success, result, err = pcall(utils.format_json, t) - if success then - return result, err - else - return nil, result - end -end - ---copies a table without leaving any references to the original ---uses a structured clone algorithm to maintain cyclic references -local function copy_table_recursive(t, references) - if type(t) ~= "table" then - return t - end - if references[t] then - return references[t] - end - - local mt = { - __original = t, - __index = getmetatable(t), - } - local copy = setmetatable({}, mt) - references[t] = copy - - for key, value in pairs(t) do - key = copy_table_recursive(key, references) - copy[key] = copy_table_recursive(value, references) - end - return copy -end - ---a wrapper around copy_table to provide the reference table -function API.copy_table(t) - --this is to handle cyclic table references - return copy_table_recursive(t, {}) -end - --------------------------------------------------------------------------------------------------------- -------------------------------------Parser Object Implementation---------------------------------------- --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---parser object for the root ---this object is not added to the parsers table so that scripts cannot get access to ---the root table, which is returned directly by parse() -local root_parser = { - name = "root", - priority = math.huge, - - --if this is being called then all other parsers have failed and we've fallen back to root - can_parse = function() - return true - end, - - --we return the root directory exactly as setup - parse = function(self) - return root, { - sorted = true, - filtered = true, - escaped = true, - parser = self, - directory = "", - } - end, -} - ---parser ofject for native filesystems -local file_parser = { - name = "file", - priority = 110, - - --as the default parser we'll always attempt to use it if all others fail - can_parse = function(_, directory) - return true - end, - - --scans the given directory using the mp.utils.readdir function - parse = function(self, directory) - local new_list = {} - local list1 = utils.readdir(directory, "dirs") - if list1 == nil then - return nil - end - - --sorts folders and formats them into the list of directories - for i = 1, #list1 do - local item = list1[i] - - --filters hidden dot directories for linux - if self.valid_dir(item) then - msg.trace(item .. "/") - table.insert(new_list, { name = item .. "/", type = "dir" }) - end - end - - --appends files to the list of directory items - local list2 = utils.readdir(directory, "files") - for i = 1, #list2 do - local item = list2[i] - - --only adds whitelisted files to the browser - if self.valid_file(item) then - msg.trace(item) - table.insert(new_list, { name = item, type = "file" }) - end - end - return API.sort(new_list), { filtered = true, sorted = true } - end, -} - --------------------------------------------------------------------------------------------------------- ------------------------------------------List Formatting------------------------------------------------ --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---appends the entered text to the overlay -local function append(text) - if text == nil then - return - end - ass.data = ass.data .. text -end - ---appends a newline character to the osd -local function newline() - ass.data = ass.data .. "\\N" -end - ---detects whether or not to highlight the given entry as being played -local function highlight_entry(v) - if current_file.name == nil then - return false - end - if API.parseable_item(v) then - return current_file.directory:find(API.get_full_path(v), 1, true) - else - return current_file.path == API.get_full_path(v) - end -end - ---saves the directory and name of the currently playing file -local function update_current_directory(_, filepath) - --if we're in idle mode then we want to open the working directory - if filepath == nil then - current_file.directory = API.fix_path(mp.get_property("working-directory", ""), true) - current_file.name = nil - current_file.path = nil - return - elseif filepath:find("dvd://") == 1 then - filepath = dvd_device .. filepath:match("dvd://(.*)") - end - - local workingDirectory = mp.get_property("working-directory", "") - local exact_path = API.join_path(workingDirectory, filepath) - exact_path = API.fix_path(exact_path, false) - current_file.directory, current_file.name = utils.split_path(exact_path) - current_file.path = exact_path -end - ---refreshes the ass text using the contents of the list -local function update_ass() - if state.hidden then - state.flag_update = true - return - end - - ass.data = style.global - - local dir_name = state.directory_label or state.directory - if dir_name == "" then - dir_name = "ROOT" - end - append(style.header) - append(API.ass_escape(dir_name, style.cursor .. "\\\239\187\191n" .. style.header)) - append("\\N ----------------------------------------------------") - newline() - - if #state.list < 1 then - append(state.empty_text) - ass:update() - return - end - - local start = 1 - local finish = start + o.num_entries - 1 - - --handling cursor positioning - local mid = math.ceil(o.num_entries / 2) + 1 - if state.selected + mid > finish then - local offset = state.selected - finish + mid - - --if we've overshot the end of the list then undo some of the offset - if finish + offset > #state.list then - offset = offset - ((finish + offset) - #state.list) - end - - start = start + offset - finish = finish + offset - end - - --making sure that we don't overstep the boundaries - if start < 1 then - start = 1 - end - local overflow = finish < #state.list - --this is necessary when the number of items in the dir is less than the max - if not overflow then - finish = #state.list - end - - --adding a header to show there are items above in the list - if start > 1 then - append(style.footer_header .. (start - 1) .. " item(s) above\\N\\N") - end - - for i = start, finish do - local v = state.list[i] - local playing_file = highlight_entry(v) - append(style.body) - - --handles custom styles for different entries - if i == state.selected then - append(style.cursor) - append((state.multiselect_start and style.multiselect or "") .. o.cursor_icon) - append("\\h" .. style.body) - else - append(o.indent_icon .. "\\h" .. style.body) - end - - --sets the selection colour scheme - local multiselected = state.selection[i] - if multiselected then - append(style.multiselect) - elseif i == state.selected then - append(style.selected) - end - - --prints the currently-playing icon and style - if playing_file and multiselected then - append(style.playing_selected) - elseif playing_file then - append(style.playing) - end - - --sets the folder icon - if v.type == "dir" then - append(style.folder .. o.folder_icon .. "\\h" .. "{\\fn" .. o.font_name_body .. "}") - end - - --adds the actual name of the item - append(v.ass or API.ass_escape(v.label or v.name, true)) - newline() - end - - if overflow then - append("\\N" .. style.footer_header .. #state.list - finish .. " item(s) remaining") - end - ass:update() -end - --------------------------------------------------------------------------------------------------------- ---------------------------------Scroll/Select Implementation-------------------------------------------- --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---disables multiselect -local function disable_select_mode() - state.multiselect_start = nil - state.initial_selection = nil -end - ---enables multiselect -local function enable_select_mode() - state.multiselect_start = state.selected - state.initial_selection = API.copy_table(state.selection) -end - ---calculates what drag behaviour is required for that specific movement -local function drag_select(original_pos, new_pos) - if original_pos == new_pos then - return - end - - local setting = state.selection[state.multiselect_start] - for i = original_pos, new_pos, (new_pos > original_pos and 1 or -1) do - --if we're moving the cursor away from the starting point then set the selection - --otherwise restore the original selection - if i > state.multiselect_start then - if new_pos > original_pos then - state.selection[i] = setting - elseif i ~= new_pos then - state.selection[i] = state.initial_selection[i] - end - elseif i < state.multiselect_start then - if new_pos < original_pos then - state.selection[i] = setting - elseif i ~= new_pos then - state.selection[i] = state.initial_selection[i] - end - end - end -end - ---moves the selector up and down the list by the entered amount -local function scroll(n, wrap) - local num_items = #state.list - if num_items == 0 then - return - end - - local original_pos = state.selected - - if original_pos + n > num_items then - state.selected = wrap and 1 or num_items - elseif original_pos + n < 1 then - state.selected = wrap and num_items or 1 - else - state.selected = original_pos + n - end - - if state.multiselect_start then - drag_select(original_pos, state.selected) - end - update_ass() -end - ---toggles the selection -local function toggle_selection() - if not state.list[state.selected] then - return - end - state.selection[state.selected] = not state.selection[state.selected] or nil - update_ass() -end - ---select all items in the list -local function select_all() - for i, _ in ipairs(state.list) do - state.selection[i] = true - end - update_ass() -end - ---toggles select mode -local function toggle_select_mode() - if state.multiselect_start == nil then - enable_select_mode() - toggle_selection() - else - disable_select_mode() - update_ass() - end -end - --------------------------------------------------------------------------------------------------------- ------------------------------------------Directory Movement--------------------------------------------- --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---scans the list for which item to select by default ---chooses the folder that the script just moved out of ---or, otherwise, the item highlighted as currently playing -local function select_prev_directory() - if state.prev_directory:find(state.directory, 1, true) == 1 then - local i = 1 - while state.list[i] and API.parseable_item(state.list[i]) do - if state.prev_directory:find(API.get_full_path(state.list[i]), 1, true) then - state.selected = i - return - end - i = i + 1 - end - end - - for i, item in ipairs(state.list) do - if highlight_entry(item) then - state.selected = i - return - end - end -end - ---parses the given directory or defers to the next parser if nil is returned -local function choose_and_parse(directory, index) - msg.debug("finding parser for", directory) - local parser, list, opts - local parse_state = API.get_parse_state() - while list == nil and not parse_state.already_deferred and index <= #parsers do - parser = parsers[index] - if parser:can_parse(directory, parse_state) then - msg.debug("attempting parser:", parser:get_id()) - list, opts = parser:parse(directory, parse_state) - end - index = index + 1 - end - if not list then - return nil, {} - end - - msg.debug("list returned from:", parser:get_id()) - opts = opts or {} - if list then - opts.id = opts.id or parser:get_id() - end - return list, opts -end - ---sets up the parse_state table and runs the parse operation -local function run_parse(directory, parse_state) - msg.verbose("scanning files in", directory) - parse_state.directory = directory - local co = coroutine.running() - - setmetatable(parse_state, { __index = parse_state_API }) - if directory == "" then - return root_parser:parse() - end - - parse_states[co] = parse_state - local list, opts = choose_and_parse(directory, 1) - - if list == nil then - return msg.debug("no successful parsers found") - end - opts.parser = parsers[opts.id] - - if not opts.filtered then - API.filter(list) - end - if not opts.sorted then - API.sort(list) - end - return list, opts -end - ---returns the contents of the given directory using the given parse state ---if a coroutine has already been used for a parse then create a new coroutine so that ---the every parse operation has a unique thread ID -local function parse_directory(directory, parse_state) - local co = API.coroutine.assert( - "scan_directory must be executed from within a coroutine - aborting scan " .. utils.to_string(parse_state) - ) - if not parse_states[co] then - return run_parse(directory, parse_state) - end - - --if this coroutine is already is use by another parse operation then we create a new - --one and hand execution over to that - local new_co = coroutine.create(function() - API.coroutine.resume_err(co, run_parse(directory, parse_state)) - end) - - --queue the new coroutine on the mpv event queue - mp.add_timeout(0, function() - local success, err = coroutine.resume(new_co) - if not success then - API.traceback(err, new_co) - API.coroutine.resume_err(co) - end - end) - return parse_states[co]:yield() -end - ---sends update requests to the different parsers -local function update_list() - msg.verbose("opening directory: " .. state.directory) - - state.selected = 1 - state.selection = {} - - --loads the current directry from the cache to save loading time - --there will be a way to forcibly reload the current directory at some point - --the cache is in the form of a stack, items are taken off the stack when the dir moves up - if cache[1] and cache[#cache].directory == state.directory then - msg.verbose("found directory in cache") - cache:apply() - state.prev_directory = state.directory - return - end - local directory = state.directory - local list, opts = parse_directory(state.directory, { source = "browser" }) - - --if the running coroutine isn't the one stored in the state variable, then the user - --changed directories while the coroutine was paused, and this operation should be aborted - if coroutine.running() ~= state.co then - msg.verbose(ABORT_ERROR.msg) - msg.debug("expected:", state.directory, "received:", directory) - return - end - - --apply fallbacks if the scan failed - if not list and cache[1] then - --switches settings back to the previously opened directory - --to the user it will be like the directory never changed - msg.warn("could not read directory", state.directory) - cache:apply() - return - elseif not list then - msg.warn("could not read directory", state.directory) - list, opts = root_parser:parse() - end - - state.list = list - state.parser = opts.parser - - --this only matters when displaying the list on the screen, so it doesn't need to be in the scan function - if not opts.escaped then - for i = 1, #list do - list[i].ass = list[i].ass or API.ass_escape(list[i].label or list[i].name, true) - end - end - - --setting custom options from parsers - state.directory_label = opts.directory_label - state.empty_text = opts.empty_text or state.empty_text - - --we assume that directory is only changed when redirecting to a different location - --therefore, the cache should be wiped - if opts.directory then - state.directory = opts.directory - cache:clear() - end - - if opts.selected_index then - state.selected = opts.selected_index or state.selected - if state.selected > #state.list then - state.selected = #state.list - elseif state.selected < 1 then - state.selected = 1 - end - end - - select_prev_directory() - state.prev_directory = state.directory -end - ---rescans the folder and updates the list -local function update(moving_adjacent) - --we can only make assumptions about the directory label when moving from adjacent directories - if not moving_adjacent then - state.directory_label = nil - cache:clear() - end - - state.empty_text = "~" - state.list = {} - disable_select_mode() - update_ass() - state.empty_text = "empty directory" - - --the directory is always handled within a coroutine to allow addons to - --pause execution for asynchronous operations - state.co = coroutine.create(function() - update_list() - update_ass() - end) - API.coroutine.resume_err(state.co) -end - ---the base function for moving to a directory -local function goto_directory(directory) - state.directory = directory - update() -end - ---loads the root list -local function goto_root() - msg.verbose("jumping to root") - goto_directory("") -end - ---switches to the directory of the currently playing file -local function goto_current_dir() - msg.verbose("jumping to current directory") - goto_directory(current_file.directory) -end - ---moves up a directory -local function up_dir() - local dir = state.directory:reverse() - local index = dir:find("[/\\]") - - while index == 1 do - dir = dir:sub(2) - index = dir:find("[/\\]") - end - - if index == nil then - state.directory = "" - else - state.directory = dir:sub(index):reverse() - end - - --we can make some assumptions about the next directory label when moving up or down - if state.directory_label then - state.directory_label = state.directory_label:match("^(.+/)[^/]+/$") - end - - update(true) - cache:pop() -end - ---moves down a directory -local function down_dir() - local current = state.list[state.selected] - if not current or not API.parseable_item(current) then - return - end - - cache:push() - local directory, redirected = API.get_new_directory(current, state.directory) - state.directory = directory - - --we can make some assumptions about the next directory label when moving up or down - if state.directory_label then - state.directory_label = state.directory_label .. (current.label or current.name) - end - update(not redirected) -end - ------------------------------------------------------------------------------------------- -------------------------------------Browser Controls-------------------------------------- ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- - ---opens the browser -local function open() - for _, v in ipairs(state.keybinds) do - mp.add_forced_key_binding(v[1], "dynamic/" .. v[2], v[3], v[4]) - end - - utils.shared_script_property_set("file_browser-open", "yes") - state.hidden = false - if state.directory == nil then - local path = mp.get_property("path") - update_current_directory(nil, path) - if path or o.default_to_working_directory then - goto_current_dir() - else - goto_root() - end - return - end - - if state.flag_update then - update_current_directory(nil, mp.get_property("path")) - end - if not state.flag_update then - ass:update() - else - state.flag_update = false - update_ass() - end -end - ---closes the list and sets the hidden flag -local function close() - for _, v in ipairs(state.keybinds) do - mp.remove_key_binding("dynamic/" .. v[2]) - end - - utils.shared_script_property_set("file_browser-open", "no") - state.hidden = true - ass:remove() -end - ---toggles the list -local function toggle() - if state.hidden then - open() - else - close() - end -end - ---run when the escape key is used -local function escape() - --if multiple items are selection cancel the - --selection instead of closing the browser - if next(state.selection) or state.multiselect_start then - state.selection = {} - disable_select_mode() - update_ass() - return - end - close() -end - ---opens a specific directory -local function browse_directory(directory) - if not directory then - return - end - directory = mp.command_native({ "expand-path", directory }, "") - -- directory = join_path( mp.get_property("working-directory", ""), directory ) - - if directory ~= "" then - directory = API.fix_path(directory, true) - end - msg.verbose("recieved directory from script message: " .. directory) - - if directory == "dvd://" then - directory = dvd_device - end - goto_directory(directory) - open() -end - ------------------------------------------------------------------------------------------- ----------------------------------File/Playlist Opening------------------------------------ ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- - ---adds a file to the playlist and changes the flag to `append-play` in preparation ---for future items -local function loadfile(file, opts) - if o.substitute_backslash and not API.get_protocol(file) then - file = file:gsub("/", "\\") - end - - if opts.flag == "replace" then - msg.verbose("Playling file", file) - else - msg.verbose("Appending", file, "to the playlist") - end - - if not mp.commandv("loadfile", file, opts.flag) then - msg.warn(file) - end - opts.flag = "append-play" - opts.items_appended = opts.items_appended + 1 -end - ---this function recursively loads directories concurrently in separate coroutines ---results are saved in a tree of tables that allows asynchronous access -local function concurrent_loadlist_parse(directory, load_opts, prev_dirs, item_t) - --prevents infinite recursion from the item.path or opts.directory fields - if prev_dirs[directory] then - return - end - prev_dirs[directory] = true - - local list, list_opts = parse_directory(directory, { source = "loadlist" }) - if list == root then - return - end - - --if we can't parse the directory then append it and hope mpv fares better - if list == nil then - msg.warn("Could not parse", directory, "appending to playlist anyway") - item_t.type = "file" - return - end - - directory = list_opts.directory or directory - if directory == "" then - return - end - - --we must declare these before we start loading sublists otherwise the append thread will - --need to wait until the whole list is loaded (when synchronous IO is used) - item_t._sublist = list or {} - list._directory = directory - - --launches new parse operations for directories, each in a different coroutine - for _, item in ipairs(list) do - if API.parseable_item(item) then - API.coroutine.run( - concurrent_loadlist_wrapper, - API.get_new_directory(item, directory), - load_opts, - prev_dirs, - item - ) - end - end - return true -end - ---a wrapper function that ensures the concurrent_loadlist_parse is run correctly -function concurrent_loadlist_wrapper(directory, opts, prev_dirs, item) - --ensures that only a set number of concurrent parses are operating at any one time. - --the mpv event queue is seemingly limited to 1000 items, but only async mpv actions like - --command_native_async should use that, events like mp.add_timeout (which coroutine.sleep() uses) should - --be handled enturely on the Lua side with a table, which has a significantly larger maximum size. - while opts.concurrency > o.max_concurrency do - API.coroutine.sleep(0.1) - end - opts.concurrency = opts.concurrency + 1 - - local success = concurrent_loadlist_parse(directory, opts, prev_dirs, item) - opts.concurrency = opts.concurrency - 1 - if not success then - item._sublist = {} - end - if coroutine.status(opts.co) == "suspended" then - API.coroutine.resume_err(opts.co) - end -end - ---recursively appends items to the playlist, acts as a consumer to the previous functions producer; ---if the next directory has not been parsed this function will yield until the parse has completed -local function concurrent_loadlist_append(list, load_opts) - local directory = list._directory - - for _, item in ipairs(list) do - if - not sub_extensions[API.get_extension(item.name, "")] - and not audio_extensions[API.get_extension(item.name, "")] - then - while not item._sublist and API.parseable_item(item) do - coroutine.yield() - end - - if API.parseable_item(item) then - concurrent_loadlist_append(item._sublist, load_opts) - else - loadfile(API.get_full_path(item, directory), load_opts) - end - end - end -end - ---recursive function to load directories using the script custom parsers ---returns true if any items were appended to the playlist -local function custom_loadlist_recursive(directory, load_opts, prev_dirs) - --prevents infinite recursion from the item.path or opts.directory fields - if prev_dirs[directory] then - return - end - prev_dirs[directory] = true - - local list, opts = parse_directory(directory, { source = "loadlist" }) - if list == root then - return - end - - --if we can't parse the directory then append it and hope mpv fares better - if list == nil then - msg.warn("Could not parse", directory, "appending to playlist anyway") - loadfile(directory, load_opts.flag) - return true - end - - directory = opts.directory or directory - if directory == "" then - return - end - - for _, item in ipairs(list) do - if - not sub_extensions[API.get_extension(item.name, "")] - and not audio_extensions[API.get_extension(item.name, "")] - then - if API.parseable_item(item) then - custom_loadlist_recursive(API.get_new_directory(item, directory), load_opts, prev_dirs) - else - local path = API.get_full_path(item, directory) - loadfile(path, load_opts) - end - end - end -end - ---a wrapper for the custom_loadlist_recursive function -local function loadlist(item, opts) - local dir = API.get_full_path(item, opts.directory) - local num_items = opts.items_appended - - if o.concurrent_recursion then - item = API.copy_table(item) - opts.co = API.coroutine.assert() - opts.concurrency = 0 - - --we need the current coroutine to suspend before we run the first parse operation, so - --we schedule the coroutine to run on the mpv event queue - mp.add_timeout(0, function() - API.coroutine.run(concurrent_loadlist_wrapper, dir, opts, {}, item) - end) - concurrent_loadlist_append({ item, _directory = opts.directory }, opts) - else - custom_loadlist_recursive(dir, opts, {}) - end - - if opts.items_appended == num_items then - msg.warn(dir, "contained no valid files") - end -end - ---load playlist entries before and after the currently playing file -local function autoload_dir(path, opts) - if o.autoload_save_current and path == current_file.path then - mp.commandv("write-watch-later-config") - end - - --loads the currently selected file, clearing the playlist in the process - loadfile(path, opts) - - local pos = 1 - local file_count = 0 - for _, item in ipairs(state.list) do - if - item.type == "file" - and not sub_extensions[API.get_extension(item.name, "")] - and not audio_extensions[API.get_extension(item.name, "")] - then - local p = API.get_full_path(item) - - if p == path then - pos = file_count - else - loadfile(p, opts) - end - - file_count = file_count + 1 - end - end - mp.commandv("playlist-move", 0, pos + 1) -end - ---runs the loadfile or loadlist command -local function open_item(item, opts) - if API.parseable_item(item) then - return loadlist(item, opts) - end - - local path = API.get_full_path(item, opts.directory) - if sub_extensions[API.get_extension(item.name, "")] then - mp.commandv("sub-add", path, opts.flag == "replace" and "select" or "auto") - elseif audio_extensions[API.get_extension(item.name, "")] then - mp.commandv("audio-add", path, opts.flag == "replace" and "select" or "auto") - else - if opts.autoload then - autoload_dir(path, opts) - else - loadfile(path, opts) - end - end -end - ---handles the open options as a coroutine ---once loadfile has been run we can no-longer guarantee synchronous execution - the state values may change ---therefore, we must ensure that any state values that could be used after a loadfile call are saved beforehand -local function open_file_coroutine(opts) - if not state.list[state.selected] then - return - end - if opts.flag == "replace" then - close() - end - - --we want to set the idle option to yes to ensure that if the first item - --fails to load then the player has a chance to attempt to load further items (for async append operations) - local idle = mp.get_property("idle", "once") - mp.set_property("idle", "yes") - - --handles multi-selection behaviour - if next(state.selection) then - local selection = API.sort_keys(state.selection) - --reset the selection after - state.selection = {} - - disable_select_mode() - update_ass() - - --the currently selected file will be loaded according to the flag - --the flag variable will be switched to append once a file is loaded - for i = 1, #selection do - open_item(selection[i], opts) - end - else - local item = state.list[state.selected] - if opts.flag == "replace" then - down_dir() - end - open_item(item, opts) - end - - if mp.get_property("idle") == "yes" then - mp.set_property("idle", idle) - end -end - ---opens the selelected file(s) -local function open_file(flag, autoload) - API.coroutine.run(open_file_coroutine, { - flag = flag, - autoload = (autoload ~= o.autoload and flag == "replace"), - directory = state.directory, - items_appended = 0, - }) -end - ------------------------------------------------------------------------------------------- -----------------------------------Keybind Implementation---------------------------------- ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- - -state.keybinds = { - { - "ENTER", - "play", - function() - open_file("replace", false) - end, - }, - { - "Shift+ENTER", - "play_append", - function() - open_file("append-play", false) - end, - }, - { - "Alt+ENTER", - "play_autoload", - function() - open_file("replace", true) - end, - }, - { "ESC", "close", escape }, - { "RIGHT", "down_dir", down_dir }, - { "LEFT", "up_dir", up_dir }, - { - "DOWN", - "scroll_down", - function() - scroll(1, o.wrap) - end, - { repeatable = true }, - }, - { - "UP", - "scroll_up", - function() - scroll(-1, o.wrap) - end, - { repeatable = true }, - }, - { - "PGDWN", - "page_down", - function() - scroll(o.num_entries) - end, - { repeatable = true }, - }, - { - "PGUP", - "page_up", - function() - scroll(-o.num_entries) - end, - { repeatable = true }, - }, - { - "Shift+PGDWN", - "list_bottom", - function() - scroll(math.huge) - end, - }, - { - "Shift+PGUP", - "list_top", - function() - scroll(-math.huge) - end, - }, - { "HOME", "goto_current", goto_current_dir }, - { "Shift+HOME", "goto_root", goto_root }, - { - "Ctrl+r", - "reload", - function() - cache:clear() - update() - end, - }, - { "s", "select_mode", toggle_select_mode }, - { "S", "select_item", toggle_selection }, - { "Ctrl+a", "select_all", select_all }, -} - ---characters used for custom keybind codes -local CUSTOM_KEYBIND_CODES = "%fFnNpPdDrR" - ---a map of key-keybinds - only saves the latest keybind if multiple have the same key code -local top_level_keys = {} - ---format the item string for either single or multiple items -local function create_item_string(cmd, items, funct) - if not items[1] then - return - end - - local str = funct(items[1]) - for i = 2, #items do - str = str .. (cmd["concat-string"] or " ") .. funct(items[i]) - end - return str -end - ---iterates through the command table and substitutes special ---character codes for the correct strings used for custom functions -local function format_command_table(cmd, items, state) - local copy = {} - for i = 1, #cmd.command do - copy[i] = {} - - for j = 1, #cmd.command[i] do - copy[i][j] = cmd.command[i][j]:gsub("%%[" .. CUSTOM_KEYBIND_CODES .. "]", { - ["%%"] = "%", - ["%f"] = create_item_string(cmd, items, function(item) - return item and API.get_full_path(item, state.directory) or "" - end), - ["%F"] = create_item_string(cmd, items, function(item) - return string.format("%q", item and API.get_full_path(item, state.directory) or "") - end), - ["%n"] = create_item_string(cmd, items, function(item) - return item and (item.label or item.name) or "" - end), - ["%N"] = create_item_string(cmd, items, function(item) - return string.format("%q", item and (item.label or item.name) or "") - end), - ["%p"] = state.directory or "", - ["%P"] = string.format("%q", state.directory or ""), - ["%d"] = (state.directory_label or state.directory):match("([^/]+)/?$") or "", - ["%D"] = string.format("%q", (state.directory_label or state.directory):match("([^/]+)/$") or ""), - ["%r"] = state.parser.keybind_name or state.parser.name or "", - ["%R"] = string.format("%q", state.parser.keybind_name or state.parser.name or ""), - }) - end - end - return copy -end - ---runs all of the commands in the command table ---key.command must be an array of command tables compatible with mp.command_native ---items must be an array of multiple items (when multi-type ~= concat the array will be 1 long) -local function run_custom_command(cmd, items, state) - local custom_cmds = cmd.codes and format_command_table(cmd, items, state) or cmd.command - - for _, cmd in ipairs(custom_cmds) do - msg.debug("running command:", utils.to_string(cmd)) - mp.command_native(cmd) - end -end - ---runs one of the custom commands -local function custom_command(cmd, state, co) - if cmd.parser and cmd.parser ~= (state.parser.keybind_name or state.parser.name) then - return false - end - - --the function terminates here if we are running the command on a single item - if not (cmd.multiselect and next(state.selection)) then - if cmd.filter then - if not state.list[state.selected] then - return false - end - if state.list[state.selected].type ~= cmd.filter then - return false - end - end - - --if the directory is empty, and this command needs to work on an item, then abort and fallback to the next command - if cmd.codes and not state.list[state.selected] then - if cmd.codes["%f"] or cmd.codes["%F"] or cmd.codes["%n"] or cmd.codes["%N"] then - return false - end - end - - run_custom_command(cmd, { state.list[state.selected] }, state) - return true - end - - --runs the command on all multi-selected items - local selection = API.sort_keys(state.selection, function(item) - return not cmd.filter or item.type == cmd.filter - end) - if not next(selection) then - return false - end - - if cmd["multi-type"] == "concat" then - run_custom_command(cmd, selection, state) - elseif cmd["multi-type"] == "repeat" then - for i, _ in ipairs(selection) do - run_custom_command(cmd, { selection[i] }, state) - - if cmd.delay then - mp.add_timeout(cmd.delay, function() - API.coroutine.resume_err(co) - end) - coroutine.yield() - end - end - end - - --we passthrough by default if the command is not run on every selected item - if cmd.passthrough ~= nil then - return - end - - local num_selection = 0 - for _ in pairs(state.selection) do - num_selection = num_selection + 1 - end - return #selection == num_selection -end - ---recursively runs the keybind functions, passing down through the chain ---of keybinds with the same key value -local function run_keybind_recursive(keybind, state, co) - msg.trace("Attempting custom command:", utils.to_string(keybind)) - - --these are for the default keybinds, or from addons which use direct functions - local addon_fn = type(keybind.command) == "function" - local fn = addon_fn and keybind.command or custom_command - - if keybind.passthrough ~= nil then - fn(keybind, addon_fn and API.copy_table(state) or state, co) - if keybind.passthrough == true and keybind.prev_key then - run_keybind_recursive(keybind.prev_key, state, co) - end - else - if fn(keybind, state, co) == false and keybind.prev_key then - run_keybind_recursive(keybind.prev_key, state, co) - end - end -end - ---a wrapper to run a custom keybind as a lua coroutine -local function run_keybind_coroutine(key) - msg.debug("Received custom keybind " .. key.key) - local co = coroutine.create(run_keybind_recursive) - - local state_copy = { - directory = state.directory, - directory_label = state.directory_label, - list = state.list, --the list should remain unchanged once it has been saved to the global state, new directories get new tables - selected = state.selected, - selection = API.copy_table(state.selection), - parser = state.parser, - } - local success, err = coroutine.resume(co, key, state_copy, co) - if not success then - msg.error("error running keybind:", utils.to_string(key)) - API.traceback(err, co) - end -end - ---scans the given command table to identify if they contain any custom keybind codes -local function scan_for_codes(command_table, codes) - if type(command_table) ~= "table" then - return codes - end - for _, value in pairs(command_table) do - local type = type(value) - if type == "table" then - scan_for_codes(value, codes) - elseif type == "string" then - value:gsub("%%[" .. CUSTOM_KEYBIND_CODES .. "]", function(code) - codes[code] = true - end) - end - end - return codes -end - ---inserting the custom keybind into the keybind array for declaration when file-browser is opened ---custom keybinds with matching names will overwrite eachother -local function insert_custom_keybind(keybind) - --we'll always save the keybinds as either an array of command arrays or a function - if type(keybind.command) == "table" and type(keybind.command[1]) ~= "table" then - keybind.command = { keybind.command } - end - - keybind.codes = scan_for_codes(keybind.command, {}) - if not next(keybind.codes) then - keybind.codes = nil - end - keybind.prev_key = top_level_keys[keybind.key] - - table.insert(state.keybinds, { - keybind.key, - keybind.name, - function() - run_keybind_coroutine(keybind) - end, - keybind.flags or {}, - }) - top_level_keys[keybind.key] = keybind -end - ---loading the custom keybinds ---can either load keybinds from the config file, from addons, or from both -local function setup_keybinds() - if not o.custom_keybinds and not o.addons then - return - end - - --this is to make the default keybinds compatible with passthrough from custom keybinds - for _, keybind in ipairs(state.keybinds) do - top_level_keys[keybind[1]] = { key = keybind[1], name = keybind[2], command = keybind[3], flags = keybind[4] } - end - - --this loads keybinds from addons - if o.addons then - for i = #parsers, 1, -1 do - local parser = parsers[i] - if parser.keybinds then - for i, keybind in ipairs(parser.keybinds) do - --if addons use the native array command format, then we need to convert them over to the custom command format - if not keybind.key then - keybind = { key = keybind[1], name = keybind[2], command = keybind[3], flags = keybind[4] } - else - keybind = API.copy_table(keybind) - end - - keybind.name = parsers[parser].id .. "/" .. (keybind.name or tostring(i)) - insert_custom_keybind(keybind) - end - end - end - end - - --loads custom keybinds from file-browser-keybinds.json - if o.custom_keybinds then - local path = mp.command_native({ "expand-path", "~~/script-opts" }) .. "/file-browser-keybinds.json" - local custom_keybinds, err = io.open(path) - if not custom_keybinds then - return error(err) - end - - local json = custom_keybinds:read("*a") - custom_keybinds:close() - - json = utils.parse_json(json) - if not json then - return error("invalid json syntax for " .. path) - end - - for i, keybind in ipairs(json) do - keybind.name = "custom/" .. (keybind.name or tostring(i)) - insert_custom_keybind(keybind) - end - end -end - --------------------------------------------------------------------------------------------------------- --------------------------------------------API Functions------------------------------------------------ --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - ---these functions we'll provide as-is -API.redraw = update_ass -API.rescan = update -API.browse_directory = browse_directory - -function API.clear_cache() - cache:clear() -end - ---a wrapper around scan_directory for addon API -function API.parse_directory(directory, parse_state) - if not parse_state then - parse_state = { source = "addon" } - elseif not parse_state.source then - parse_state.source = "addon" - end - return parse_directory(directory, parse_state) -end - ---register file extensions which can be opened by the browser -function API.register_parseable_extension(ext) - parseable_extensions[string.lower(ext)] = true -end -function API.remove_parseable_extension(ext) - parseable_extensions[string.lower(ext)] = nil -end - ---add a compatible extension to show through the filter, only applies if run during the setup() method -function API.add_default_extension(ext) - table.insert(compatible_file_extensions, ext) -end - ---add item to root at position pos -function API.insert_root_item(item, pos) - msg.verbose("adding item to root", item.label or item.name) - item.ass = item.ass or API.ass_escape(item.label or item.name) - item.type = "dir" - table.insert(root, pos or (#root + 1), item) -end - ---providing getter and setter functions so that addons can't modify things directly -function API.get_script_opts() - return API.copy_table(o) -end -function API.get_opt(key) - return o[key] -end -function API.get_extensions() - return API.copy_table(extensions) -end -function API.get_sub_extensions() - return API.copy_table(sub_extensions) -end -function API.get_audio_extensions() - return API.copy_table(audio_extensions) -end -function API.get_parseable_extensions() - return API.copy_table(parseable_extensions) -end -function API.get_state() - return API.copy_table(state) -end -function API.get_dvd_device() - return dvd_device -end -function API.get_parsers() - return API.copy_table(parsers) -end -function API.get_root() - return API.copy_table(root) -end -function API.get_directory() - return state.directory -end -function API.get_list() - return API.copy_table(state.list) -end -function API.get_current_file() - return API.copy_table(current_file) -end -function API.get_current_parser() - return state.parser:get_id() -end -function API.get_current_parser_keyname() - return state.parser.keybind_name or state.parser.name -end -function API.get_selected_index() - return state.selected -end -function API.get_selected_item() - return API.copy_table(state.list[state.selected]) -end -function API.get_open_status() - return not state.hidden -end -function API.get_parse_state(co) - return parse_states[co or coroutine.running() or ""] -end - -function API.set_empty_text(str) - state.empty_text = str - API.redraw() -end - -function API.set_selected_index(index) - if type(index) ~= "number" then - return false - end - if index < 1 then - index = 1 - end - if index > #state.list then - index = #state.list - end - state.selected = index - API.redraw() - return index -end - -function parser_API:get_index() - return parsers[self].index -end -function parser_API:get_id() - return parsers[self].id -end - ---runs choose_and_parse starting from the next parser -function parser_API:defer(directory) - msg.trace("deferring to other parsers...") - local list, opts = choose_and_parse(directory, self:get_index() + 1) - API.get_parse_state().already_deferred = true - return list, opts -end - ---a wrapper around coroutine.yield that aborts the coroutine if ---the parse request was cancelled by the user ---the coroutine is -function parse_state_API:yield(...) - local co = coroutine.running() - local is_browser = co == state.co - if self.source == "browser" and not is_browser then - msg.error("current coroutine does not match browser's expected coroutine - did you unsafely yield before this?") - error("current coroutine does not match browser's expected coroutine - aborting the parse") - end - - local result = table.pack(coroutine.yield(...)) - if is_browser and co ~= state.co then - msg.verbose("browser no longer waiting for list - aborting parse for", self.directory) - error(ABORT_ERROR) - end - return unpack(result, 1, result.n) -end - ---checks if the current coroutine is the one handling the browser's request -function parse_state_API:is_coroutine_current() - return coroutine.running() == state.co -end - --------------------------------------------------------------------------------------------------------- ------------------------------------------Setup Functions------------------------------------------------ --------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------- - -local API_MAJOR, API_MINOR, API_PATCH = API_VERSION:match("(%d+)%.(%d+)%.(%d+)") - ---checks if the given parser has a valid version number -local function check_api_version(parser) - local version = parser.version or "1.0.0" - - local major, minor = version:match("(%d+)%.(%d+)") - - if not major or not minor then - return msg.error("Invalid version number") - elseif major ~= API_MAJOR then - return msg.error( - "parser", - parser.name, - "has wrong major version number, expected", - ("v%d.x.x"):format(API_MAJOR), - "got", - "v" .. version - ) - elseif minor > API_MINOR then - msg.warn( - "parser", - parser.name, - "has newer minor version number than API, expected", - ("v%d.%d.x"):format(API_MAJOR, API_MINOR), - "got", - "v" .. version - ) - end - return true -end - ---create a unique id for the given parser -local function set_parser_id(parser) - local name = parser.name - if parsers[name] then - local n = 2 - name = parser.name .. "_" .. n - while parsers[name] do - n = n + 1 - name = parser.name .. "_" .. n - end - end - - parsers[name] = parser - parsers[parser] = { id = name } -end - -local function redirect_table(t) - return setmetatable({}, { __index = t }) -end - ---loads an addon in a separate environment -local function load_addon(path) - local name_sqbr = string.format("[%s]", path:match("/([^/]*)%.lua$")) - local addon_environment = redirect_table(_G) - addon_environment._G = addon_environment - - --gives each addon custom debug messages - addon_environment.package = redirect_table(addon_environment.package) - addon_environment.package.loaded = redirect_table(addon_environment.package.loaded) - local msg_module = { - log = function(level, ...) - msg.log(level, name_sqbr, ...) - end, - fatal = function(...) - return msg.fatal(name_sqbr, ...) - end, - error = function(...) - return msg.error(name_sqbr, ...) - end, - warn = function(...) - return msg.warn(name_sqbr, ...) - end, - info = function(...) - return msg.info(name_sqbr, ...) - end, - verbose = function(...) - return msg.verbose(name_sqbr, ...) - end, - debug = function(...) - return msg.debug(name_sqbr, ...) - end, - trace = function(...) - return msg.trace(name_sqbr, ...) - end, - } - addon_environment.print = msg_module.info - - addon_environment.require = function(module) - if module == "mp.msg" then - return msg_module - end - return require(module) - end - - local chunk, err - if setfenv then - --since I stupidly named a function loadfile I need to specify the global one - --I've been using the name too long to want to change it now - chunk, err = _G.loadfile(path) - if not chunk then - return msg.error(err) - end - setfenv(chunk, addon_environment) - else - chunk, err = _G.loadfile(path, "bt", addon_environment) - if not chunk then - return msg.error(err) - end - end - - local success, result = xpcall(chunk, API.traceback) - return success and result or nil -end - ---setup an internal or external parser -local function setup_parser(parser, file) - parser = setmetatable(parser, { __index = parser_API }) - parser.name = parser.name or file:gsub("%-browser%.lua$", ""):gsub("%.lua$", "") - - set_parser_id(parser) - if not check_api_version(parser) then - return msg.error("aborting load of parser", parser:get_id(), "from", file) - end - - msg.verbose("imported parser", parser:get_id(), "from", file) - - --sets missing functions - if not parser.can_parse then - if parser.parse then - parser.can_parse = function() - return true - end - else - parser.can_parse = function() - return false - end - end - end - - if parser.priority == nil then - parser.priority = 0 - end - if type(parser.priority) ~= "number" then - return msg.error("parser", parser:get_id(), "needs a numeric priority") - end - - table.insert(parsers, parser) -end - ---load an external addon -local function setup_addon(file, path) - if file:sub(-4) ~= ".lua" then - return msg.verbose(path, "is not a lua file - aborting addon setup") - end - - local addon_parsers = load_addon(path) - if not addon_parsers or type(addon_parsers) ~= "table" then - return msg.error("addon", path, "did not return a table") - end - - --if the table contains a priority key then we assume it isn't an array of parsers - if not addon_parsers[1] then - addon_parsers = { addon_parsers } - end - - for _, parser in ipairs(addon_parsers) do - setup_parser(parser, file) - end -end - ---loading external addons -local function setup_addons() - local addon_dir = mp.command_native({ "expand-path", o.addon_directory .. "/" }) - local files = utils.readdir(addon_dir) - if not files then - error("could not read addon directory") - end - - for _, file in ipairs(files) do - setup_addon(file, addon_dir .. file) - end - table.sort(parsers, function(a, b) - return a.priority < b.priority - end) - - --we want to store the indexes of the parsers - for i = #parsers, 1, -1 do - parsers[parsers[i]].index = i - end - - --we want to run the setup functions for each addon - for index, parser in ipairs(parsers) do - if parser.setup then - local success = xpcall(function() - parser:setup() - end, API.traceback) - if not success then - msg.error( - "parser", - parser:get_id(), - "threw an error in the setup method - removing from list of parsers" - ) - table.remove(parsers, index) - end - end - end -end - ---sets up the compatible extensions list -local function setup_extensions_list() - --setting up subtitle extensions - for ext in API.iterate_opt(o.subtitle_extensions:lower()) do - sub_extensions[ext] = true - extensions[ext] = true - end - - --setting up audio extensions - for ext in API.iterate_opt(o.audio_extensions:lower()) do - audio_extensions[ext] = true - extensions[ext] = true - end - - --adding file extensions to the set - for _, ext in ipairs(compatible_file_extensions) do - extensions[ext] = true - end - - --adding extra extensions on the whitelist - for str in API.iterate_opt(o.extension_whitelist:lower()) do - extensions[str] = true - end - - --removing extensions that are in the blacklist - for str in API.iterate_opt(o.extension_blacklist:lower()) do - extensions[str] = nil - end -end - ---splits the string into a table on the semicolons -local function setup_root() - root = {} - for str in API.iterate_opt(o.root) do - local path = mp.command_native({ "expand-path", str }) - path = API.fix_path(path, true) - - local temp = { name = path, type = "dir", label = str, ass = API.ass_escape(str, true) } - - root[#root + 1] = temp - end -end - -setup_root() - -setup_parser(file_parser, "file-browser.lua") -if o.addons then - --all of the API functions need to be defined before this point for the addons to be able to access them safely - setup_addons() -end - ---these need to be below the addon setup in case any parsers add custom entries -setup_extensions_list() -setup_keybinds() - ------------------------------------------------------------------------------------------- -------------------------------Other Script Compatability---------------------------------- ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- - -local function scan_directory_json(directory, response_str) - if not directory then - msg.error("did not receive a directory string") - return - end - if not response_str then - msg.error("did not receive a response string") - return - end - - directory = mp.command_native({ "expand-path", directory }, "") - if directory ~= "" then - directory = API.fix_path(directory, true) - end - msg.verbose( - ("recieved %q from 'get-directory-contents' script message - returning result to %q"):format( - directory, - response_str - ) - ) - - local list, opts = parse_directory(directory, { source = "script-message" }) - opts.API_VERSION = API_VERSION - - local err - list, err = API.format_json_safe(list) - if not list then - msg.error(err) - end - - opts, err = API.format_json_safe(opts) - if not opts then - msg.error(err) - end - - mp.commandv("script-message", response_str, list or "", opts or "") -end - -pcall(function() - local input = require("user-input-module") - mp.add_key_binding("Alt+o", "browse-directory/get-user-input", function() - input.get_user_input(browse_directory, { request_text = "open directory:" }) - end) -end) - ------------------------------------------------------------------------------------------- ---------------------------------mpv API Callbacks----------------------------------------- ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- - ---we don't want to add any overhead when the browser isn't open -mp.observe_property("path", "string", function(_, path) - if not state.hidden then - update_current_directory(_, path) - update_ass() - else - state.flag_update = true - end -end) - ---updates the dvd_device -mp.observe_property("dvd-device", "string", function(_, device) - if not device or device == "" then - device = "/dev/dvd/" - end - dvd_device = API.fix_path(device, true) -end) - ---declares the keybind to open the browser -mp.add_key_binding("MENU", "browse-files", toggle) -mp.add_key_binding("Ctrl+o", "open-browser", open) - ---allows keybinds/other scripts to auto-open specific directories -mp.register_script_message("browse-directory", browse_directory) - ---allows other scripts to request directory contents from file-browser -mp.register_script_message("get-directory-contents", function(directory, response_str) - API.coroutine.run(scan_directory_json, directory, response_str) -end) diff --git a/newsboat/.newsboat/cache.db b/newsboat/.newsboat/cache.db deleted file mode 100644 index c73fff5..0000000 Binary files a/newsboat/.newsboat/cache.db and /dev/null differ diff --git a/newsboat/.newsboat/cache.db.lock b/newsboat/.newsboat/cache.db.lock deleted file mode 100644 index 4e50ff2..0000000 --- a/newsboat/.newsboat/cache.db.lock +++ /dev/null @@ -1 +0,0 @@ -249598 \ No newline at end of file diff --git a/newsboat/.newsboat/config b/newsboat/.newsboat/config deleted file mode 100644 index f55b4ab..0000000 --- a/newsboat/.newsboat/config +++ /dev/null @@ -1,7 +0,0 @@ -include ~/.newsboat/dark - -auto-reload yes # fetch new content when starting program -reload-time 10 # fetch new content every 10 minutes -notify-always yes # update tmux counters after every fetch -notify-format "%d %n %f" -notify-program "~/.tmux/plugins/tmux-newsboat/bin/tmux-newsboat" diff --git a/newsboat/.newsboat/dark b/newsboat/.newsboat/dark deleted file mode 100644 index ac57e94..0000000 --- a/newsboat/.newsboat/dark +++ /dev/null @@ -1,18 +0,0 @@ -color listnormal color15 default -color listnormal_unread color2 default -color listfocus_unread color2 color0 -color listfocus default color0 -color background default default -color article default default -color end-of-text-marker color8 default -color info color4 color8 -color hint-separator default color8 -color hint-description default color8 -color title color14 color8 - -highlight article "^(Feed|Title|Author|Link|Date): .+" color4 default bold -highlight article "^(Feed|Title|Author|Link|Date):" color14 default bold - -highlight article "\\((link|image|video)\\)" color8 default -highlight article "https?://[^ ]+" color4 default -highlight article "\[[0-9]+\]" color6 default bold diff --git a/newsboat/.newsboat/urls b/newsboat/.newsboat/urls deleted file mode 100644 index c26db49..0000000 --- a/newsboat/.newsboat/urls +++ /dev/null @@ -1,8 +0,0 @@ -###################################################################### -###################################################################### -####### FEEDS RSS ###### -###################################################################### -###################################################################### - -# Archlinux updates -https://archlinux.org/feeds/packages/ diff --git a/starship/.config/starship.toml b/starship/.config/starship.toml deleted file mode 100644 index e667550..0000000 --- a/starship/.config/starship.toml +++ /dev/null @@ -1,392 +0,0 @@ -format = """ -$username\ -$directory\ -$vcsh\ -$git_branch\ -$git_commit\ -$git_state\ -$git_metrics\ -$git_status\ -$hg_branch\ -$package\ -$bun\ -$c\ -$cmake\ -$elixir\ -$erlang\ -$gleam\ -$golang\ -$gradle\ -$haskell\ -$haxe\ -$helm\ -$java\ -$kotlin\ -$lua\ -$nodejs\ -$ocaml\ -$perl\ -$php\ -$python\ -$ruby\ -$rust\ -$scala\ -$swift\ -$terraform\ -$vagrant\ -$zig\ -$docker_context\ -$buf\ -$guix_shell\ -$nix_shell\ -$conda\ -$meson\ -$spack\ -$memory_usage\ -$direnv\ -$env_var\ -$custom\ -$sudo\ -$cmd_duration\ -$line_break\ -$jobs\ -$time\ -$status\ -$container\ -$os\ -$shell\ -$character -""" - -right_format = """ -$localip\ -$shlvl\ -$kubernetes\ -$aws\ -$gcloud\ -$openstack\ -$azure -""" - -# Sets user-defined palette -palette = "catppuccin_mocha" - -# palette tables should be last in the config โš“๏ธ -[palettes.catppuccin_macchiato] -rosewater = "#f4dbd6" -flamingo = "#f0c6c6" -pink = "#f5bde6" -mauve = "#c6a0f6" -red = "#ed8796" -maroon = "#ee99a0" -peach = "#f5a97f" -yellow = "#eed49f" -green = "#a6da95" -teal = "#8bd5ca" -sky = "#91d7e3" -sapphire = "#7dc4e4" -blue = "#8aadf4" -lavender = "#b7bdf8" -text = "#cad3f5" -subtext1 = "#b8c0e0" -subtext0 = "#a5adcb" -overlay2 = "#939ab7" -overlay1 = "#8087a2" -overlay0 = "#6e738d" -surface2 = "#5b6078" -surface1 = "#494d64" -surface0 = "#363a4f" -base = "#24273a" -mantle = "#1e2030" -crust = "#181926" - -[palettes.catppuccin_frappe] -rosewater = "#f2d5cf" -flamingo = "#eebebe" -pink = "#f4b8e4" -mauve = "#ca9ee6" -red = "#e78284" -maroon = "#ea999c" -peach = "#ef9f76" -yellow = "#e5c890" -green = "#a6d189" -teal = "#81c8be" -sky = "#99d1db" -sapphire = "#85c1dc" -blue = "#8caaee" -lavender = "#babbf1" -text = "#c6d0f5" -subtext1 = "#b5bfe2" -subtext0 = "#a5adce" -overlay2 = "#949cbb" -overlay1 = "#838ba7" -overlay0 = "#737994" -surface2 = "#626880" -surface1 = "#51576d" -surface0 = "#414559" -base = "#303446" -mantle = "#292c3c" -crust = "#232634" - -[palettes.catppuccin_latte] -rosewater = "#dc8a78" -flamingo = "#dd7878" -pink = "#ea76cb" -mauve = "#8839ef" -red = "#d20f39" -maroon = "#e64553" -peach = "#fe640b" -yellow = "#df8e1d" -green = "#40a02b" -teal = "#179299" -sky = "#04a5e5" -sapphire = "#209fb5" -blue = "#1e66f5" -lavender = "#7287fd" -text = "#4c4f69" -subtext1 = "#5c5f77" -subtext0 = "#6c6f85" -overlay2 = "#7c7f93" -overlay1 = "#8c8fa1" -overlay0 = "#9ca0b0" -surface2 = "#acb0be" -surface1 = "#bcc0cc" -surface0 = "#ccd0da" -base = "#eff1f5" -mantle = "#e6e9ef" -crust = "#dce0e8" - -[palettes.catppuccin_mocha] -rosewater = "#f5e0dc" -flamingo = "#f2cdcd" -pink = "#f5c2e7" -mauve = "#cba6f7" -red = "#f38ba8" -maroon = "#eba0ac" -peach = "#fab387" -yellow = "#f9e2af" -green = "#a6e3a1" -teal = "#94e2d5" -sky = "#89dceb" -sapphire = "#74c7ec" -blue = "#89b4fa" -lavender = "#b4befe" -text = "#cdd6f4" -subtext1 = "#bac2de" -subtext0 = "#a6adc8" -overlay2 = "#9399b2" -overlay1 = "#7f849c" -overlay0 = "#6c7086" -surface2 = "#585b70" -surface1 = "#45475a" -surface0 = "#313244" -base = "#1e1e2e" -mantle = "#181825" -crust = "#11111b" - -[character] -# Note the use of Catppuccin color 'maroon' -success_symbol = "[[โ™ฅ](peach) โฏ](maroon)" -error_symbol = "[โฏ](red)" -vimcmd_symbol = "[โฎ](green)" - -[aws] -symbol = "๎Œฝ " - -[azure] -disabled = false - -[buf] -symbol = "๏’ " - -[c] -symbol = "๎˜ž " - -[conda] -symbol = "๏„Œ " - -[crystal] -symbol = "๎˜ฏ " - -[dart] -symbol = "๎ž˜ " - -[directory] -read_only = " ๓ฐŒพ" -truncate_to_repo = false -truncation_length = 4 -style = "bold lavender" - -[directory.substitutions] -"Documents" = "๓ฐˆ™ " -"Downloads" = "๏€™ " -"Music" = "๓ฐš " -"Pictures" = "๏€พ " -"Projects" = "๓ฐฒ‹ " -"Videos" = "๏€ฝ " - -[docker_context] -symbol = "๏Œˆ " - -[elixir] -symbol = "๎˜ญ " - -[elm] -symbol = "๎˜ฌ " - -[env_var.VIMSHELL] # vim subshell -format = "[$env_value]($style)" -style = 'green italic' - -[fennel] -symbol = "๎šฏ " - -[fossil_branch] -symbol = "๏˜ " - -[git_branch] -symbol = "๏˜ " - -[git_status] -ahead = "โ‡ก${count}" -behind = "โ‡ฃ${count}" -deleted = "x" -diverged = "โ‡•โ‡ก${ahead_count}โ‡ฃ${behind_count}" -style = "bold yellow" - -[golang] -symbol = "๎˜ง " - -[guix_shell] -symbol = "๏Œฅ " - -[haskell] -symbol = "๎ท " - -[haxe] -symbol = "๎™ฆ " - -[hg_branch] -symbol = "๏˜ " - -[hostname] -ssh_symbol = "๎ฌ " - -[kubernetes] -format = "on [$symbol$context( \\($namespace\\))]($style) " -disabled = false - -[java] -symbol = "๎‰– " - -[julia] -symbol = "๎˜ค " - -[kotlin] -symbol = "๎˜ด " - -[lua] -symbol = "๎˜  " - -[memory_usage] -symbol = "๓ฐ› " - -[meson] -symbol = "๓ฐ”ท " - -[nim] -symbol = "๓ฐ†ฅ " - -[nix_shell] -symbol = "๏Œ“ " - -[nodejs] -symbol = "๎œ˜ " - -[ocaml] -symbol = "๎™บ " - -[os] -disabled = false -format = "[$symbol ]($style)" - -[os.symbols] -Alpaquita = "๎ชข " -Alpine = "๏Œ€ " -AlmaLinux = "๏Œ " -Amazon = "๏‰ฐ " -Android = "๏…ป " -Arch = "๏Œƒ " -Artix = "๏ŒŸ " -CentOS = "๏Œ„ " -Debian = "๏Œ† " -DragonFly = "๎ŠŽ " -Emscripten = "๏ˆ… " -EndeavourOS = "๏†— " -Fedora = "๏ŒŠ " -FreeBSD = "๏ŒŒ " -Garuda = "๓ฐ›“ " -Gentoo = "๏Œ " -HardenedBSD = "๓ฐžŒ " -Illumos = "๓ฐˆธ " -Kali = "๏Œง " -Linux = "๏Œš " -Mabox = "๎ฌฉ " -Macos = "๏Œ‚ " -Manjaro = "๏Œ’ " -Mariner = "๏‡ " -MidnightBSD = "๏†† " -Mint = "๏ŒŽ " -NetBSD = "๏€ค " -NixOS = "๏Œ“ " -OpenBSD = "๓ฐˆบ " -openSUSE = "๏Œ” " -OracleLinux = "๓ฐŒท " -Pop = "๏Œช " -Raspbian = "๏Œ• " -Redhat = "๏Œ– " -RedHatEnterprise = "๏Œ– " -RockyLinux = "๏Œซ " -Redox = "๓ฐ€˜ " -Solus = "๓ฐ ณ " -SUSE = "๏Œ” " -Ubuntu = "๏Œ› " -Unknown = "๏ˆญ " -Void = "๏Œฎ " -Windows = "๓ฐฒ " - -[package] -symbol = "๓ฐ— " - -[perl] -symbol = "๎™พ " - -[php] -symbol = "๎˜ˆ " - -[pijul_channel] -symbol = "๏˜ " - -[python] -symbol = "๎ˆต " - -[rlang] -symbol = "๓ฐŸ” " - -[ruby] -symbol = "๎ž‘ " - -[rust] -symbol = "๎žจ " - -[scala] -symbol = "๎œท " - -[swift] -symbol = "๎• " - -[username] -show_always = true - -[zig] -symbol = "๎šฉ " diff --git a/sway/.config/foot/foot.ini b/sway/.config/foot/foot.ini deleted file mode 100644 index e5f341d..0000000 --- a/sway/.config/foot/foot.ini +++ /dev/null @@ -1,69 +0,0 @@ -# === General settings === -[main] -shell=/bin/zsh -c "exec ~/.profile.d/tmux.sh" # Default shell to launch in the terminal -font=0xProto Nerd Font:size=14 # Font family and size used in the terminal -initial-window-size-chars=160x45 # Initial size in character columns x rows -selection-target=clipboard # Copy selected text directly to system clipboard -term=foot # Terminal type identifier (useful for compatibility) -pad=8x8 # Adds 8-pixel padding around the content (horizontal x vertical) - -# === Mouse settings === -[mouse] -hide-when-typing=yes # Automatically hide the mouse cursor while typing -alternate-scroll-mode=no # Preserves scrollback history when applications exit (does not use alternate screen buffer) - -# === Scrollback bar indicator settings === -[scrollback] -lines=10000 # Number of scrollback lines to keep in history -indicator-format=percentage # Format of scroll indicator (e.g., "50%") - -# === Key bindings === -[key-bindings] -scrollback-up-page=Shift+Page_Up # Scroll up one page -scrollback-down-page=Shift+Page_Down # Scroll down one page -clipboard-copy=Control+Shift+c # Copy selected text to clipboard -clipboard-paste=Control+Shift+v # Paste from clipboard -show-urls-launch=Control+Shift+o # Detects and allows launching URLs found in the terminal output - -# === Cursor appearance === -[cursor] -style=beam # Beam-style (vertical bar) cursor -blink=true # Cursor should blink -beam-thickness=3 # Thickness of the beam cursor - -# === Catppuccin Mocha color scheme === -[colors] -alpha=0.9 -cursor=11111b f5e0dc # Cursor color (background and foreground) -foreground=cdd6f4 # Default text color -background=1e1e2e # Main terminal background color - -regular0=45475a # ANSI Black/Grey -regular1=f38ba8 # ANSI Red -regular2=a6e3a1 # ANSI Green -regular3=f9e2af # ANSI Yellow -regular4=89b4fa # ANSI Blue -regular5=f5c2e7 # ANSI Magenta -regular6=94e2d5 # ANSI Cyan -regular7=bac2de # ANSI White/Light Grey - -bright0=585b70 # Bright ANSI Black/Grey -bright1=f38ba8 # Bright ANSI Red -bright2=a6e3a1 # Bright ANSI Green -bright3=f9e2af # Bright ANSI Yellow -bright4=89b4fa # Bright ANSI Blue -bright5=f5c2e7 # Bright ANSI Magenta -bright6=94e2d5 # Bright ANSI Cyan -bright7=a6adc8 # Bright ANSI White/Light Grey - -16=fab387 # Extended color 16 (Orange-like) -17=f5e0dc # Extended color 17 (Pink/Cream-like) - -selection-foreground=cdd6f4 # Color of selected text -selection-background=414356 # Background color of selected text - -search-box-no-match=11111b f38ba8 # Colors for search box when no match is found -search-box-match=cdd6f0 313244 # Colors for search box when a match is found - -jump-labels=11111b fab387 # Colors for jump labels (e.g., in URL launcher) -urls=89b4fa # Color for detected URLs diff --git a/sway/.config/fuzzel/fuzzel.ini b/sway/.config/fuzzel/fuzzel.ini deleted file mode 100644 index c7a29c9..0000000 --- a/sway/.config/fuzzel/fuzzel.ini +++ /dev/null @@ -1,21 +0,0 @@ -[main] -font=Noto Sans Regular:size=10 -icon-theme=Papirus -include=~/.config/fuzzel/themes/catppuccin-mocha/blue.ini -hide-before-typing=no -fields=filename,name,generic -match-mode=fzf -sort-result=yes -match-counter=yes -show-actions=no -anchor = center -x-margin=0 -y-margin=0 -lines=10 -width=70 -tabs=4 -horizontal-pad=40 -vertical-pad=8 -inner-pad=0 -layer=overlay # values (top, overlay) - diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/blue.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/blue.ini deleted file mode 100644 index ed78ea1..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/blue.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=8caaeeff -selection=626880ff -selection-text=c6d0f5ff -selection-match=8caaeeff -counter=838ba7ff -border=8caaeeff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/flamingo.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/flamingo.ini deleted file mode 100644 index a9b606c..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/flamingo.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=eebebeff -selection=626880ff -selection-text=c6d0f5ff -selection-match=eebebeff -counter=838ba7ff -border=eebebeff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/green.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/green.ini deleted file mode 100644 index e36fbf6..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/green.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=a6d189ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=a6d189ff -counter=838ba7ff -border=a6d189ff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/lavender.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/lavender.ini deleted file mode 100644 index 6cdaea4..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/lavender.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=babbf1ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=babbf1ff -counter=838ba7ff -border=babbf1ff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/maroon.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/maroon.ini deleted file mode 100644 index 9910976..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/maroon.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=ea999cff -selection=626880ff -selection-text=c6d0f5ff -selection-match=ea999cff -counter=838ba7ff -border=ea999cff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/mauve.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/mauve.ini deleted file mode 100644 index 56ef194..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/mauve.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=ca9ee6ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=ca9ee6ff -counter=838ba7ff -border=ca9ee6ff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/peach.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/peach.ini deleted file mode 100644 index c05d46b..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/peach.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=ef9f76ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=ef9f76ff -counter=838ba7ff -border=ef9f76ff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/pink.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/pink.ini deleted file mode 100644 index 86613ce..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/pink.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=f4b8e4ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=f4b8e4ff -counter=838ba7ff -border=f4b8e4ff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/red.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/red.ini deleted file mode 100644 index d7f150b..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/red.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=e78284ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=e78284ff -counter=838ba7ff -border=e78284ff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/rosewater.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/rosewater.ini deleted file mode 100644 index 562fc4b..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/rosewater.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=f2d5cfff -selection=626880ff -selection-text=c6d0f5ff -selection-match=f2d5cfff -counter=838ba7ff -border=f2d5cfff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/sapphire.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/sapphire.ini deleted file mode 100644 index 7afb2bb..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/sapphire.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=85c1dcff -selection=626880ff -selection-text=c6d0f5ff -selection-match=85c1dcff -counter=838ba7ff -border=85c1dcff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/sky.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/sky.ini deleted file mode 100644 index 4717d7b..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/sky.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=99d1dbff -selection=626880ff -selection-text=c6d0f5ff -selection-match=99d1dbff -counter=838ba7ff -border=99d1dbff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/teal.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/teal.ini deleted file mode 100644 index 785b17d..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/teal.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=81c8beff -selection=626880ff -selection-text=c6d0f5ff -selection-match=81c8beff -counter=838ba7ff -border=81c8beff diff --git a/sway/.config/fuzzel/themes/catppuccin-frappe/yellow.ini b/sway/.config/fuzzel/themes/catppuccin-frappe/yellow.ini deleted file mode 100644 index a2eae4c..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-frappe/yellow.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=303446dd -text=c6d0f5ff -prompt=b5bfe2ff -placeholder=838ba7ff -input=c6d0f5ff -match=e5c890ff -selection=626880ff -selection-text=c6d0f5ff -selection-match=e5c890ff -counter=838ba7ff -border=e5c890ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/blue.ini b/sway/.config/fuzzel/themes/catppuccin-latte/blue.ini deleted file mode 100644 index c1ad804..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/blue.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=1e66f5ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=1e66f5ff -counter=8c8fa1ff -border=1e66f5ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/flamingo.ini b/sway/.config/fuzzel/themes/catppuccin-latte/flamingo.ini deleted file mode 100644 index 027f212..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/flamingo.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=dd7878ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=dd7878ff -counter=8c8fa1ff -border=dd7878ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/green.ini b/sway/.config/fuzzel/themes/catppuccin-latte/green.ini deleted file mode 100644 index 4065e87..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/green.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=40a02bff -selection=acb0beff -selection-text=4c4f69ff -selection-match=40a02bff -counter=8c8fa1ff -border=40a02bff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/lavender.ini b/sway/.config/fuzzel/themes/catppuccin-latte/lavender.ini deleted file mode 100644 index 3c92b88..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/lavender.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=7287fdff -selection=acb0beff -selection-text=4c4f69ff -selection-match=7287fdff -counter=8c8fa1ff -border=7287fdff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/maroon.ini b/sway/.config/fuzzel/themes/catppuccin-latte/maroon.ini deleted file mode 100644 index c8dae37..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/maroon.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=e64553ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=e64553ff -counter=8c8fa1ff -border=e64553ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/mauve.ini b/sway/.config/fuzzel/themes/catppuccin-latte/mauve.ini deleted file mode 100644 index 249ab46..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/mauve.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=8839efff -selection=acb0beff -selection-text=4c4f69ff -selection-match=8839efff -counter=8c8fa1ff -border=8839efff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/peach.ini b/sway/.config/fuzzel/themes/catppuccin-latte/peach.ini deleted file mode 100644 index c45981d..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/peach.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=fe640bff -selection=acb0beff -selection-text=4c4f69ff -selection-match=fe640bff -counter=8c8fa1ff -border=fe640bff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/pink.ini b/sway/.config/fuzzel/themes/catppuccin-latte/pink.ini deleted file mode 100644 index 38c04ee..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/pink.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=ea76cbff -selection=acb0beff -selection-text=4c4f69ff -selection-match=ea76cbff -counter=8c8fa1ff -border=ea76cbff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/red.ini b/sway/.config/fuzzel/themes/catppuccin-latte/red.ini deleted file mode 100644 index 36fb973..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/red.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=d20f39ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=d20f39ff -counter=8c8fa1ff -border=d20f39ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/rosewater.ini b/sway/.config/fuzzel/themes/catppuccin-latte/rosewater.ini deleted file mode 100644 index 25a53ef..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/rosewater.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=dc8a78ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=dc8a78ff -counter=8c8fa1ff -border=dc8a78ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/sapphire.ini b/sway/.config/fuzzel/themes/catppuccin-latte/sapphire.ini deleted file mode 100644 index be92da0..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/sapphire.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=209fb5ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=209fb5ff -counter=8c8fa1ff -border=209fb5ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/sky.ini b/sway/.config/fuzzel/themes/catppuccin-latte/sky.ini deleted file mode 100644 index 4d0fa89..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/sky.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=04a5e5ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=04a5e5ff -counter=8c8fa1ff -border=04a5e5ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/teal.ini b/sway/.config/fuzzel/themes/catppuccin-latte/teal.ini deleted file mode 100644 index 59e1c4b..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/teal.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=179299ff -selection=acb0beff -selection-text=4c4f69ff -selection-match=179299ff -counter=8c8fa1ff -border=179299ff diff --git a/sway/.config/fuzzel/themes/catppuccin-latte/yellow.ini b/sway/.config/fuzzel/themes/catppuccin-latte/yellow.ini deleted file mode 100644 index 8c5d300..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-latte/yellow.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=eff1f5dd -text=4c4f69ff -prompt=5c5f77ff -placeholder=8c8fa1ff -input=4c4f69ff -match=df8e1dff -selection=acb0beff -selection-text=4c4f69ff -selection-match=df8e1dff -counter=8c8fa1ff -border=df8e1dff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/blue.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/blue.ini deleted file mode 100644 index 20c6dec..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/blue.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=8aadf4ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=8aadf4ff -counter=8087a2ff -border=8aadf4ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/flamingo.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/flamingo.ini deleted file mode 100644 index 104e37f..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/flamingo.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=f0c6c6ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=f0c6c6ff -counter=8087a2ff -border=f0c6c6ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/green.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/green.ini deleted file mode 100644 index 859bd9e..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/green.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=a6da95ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=a6da95ff -counter=8087a2ff -border=a6da95ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/lavender.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/lavender.ini deleted file mode 100644 index 2959faa..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/lavender.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=b7bdf8ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=b7bdf8ff -counter=8087a2ff -border=b7bdf8ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/maroon.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/maroon.ini deleted file mode 100644 index 9332140..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/maroon.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=ee99a0ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=ee99a0ff -counter=8087a2ff -border=ee99a0ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/mauve.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/mauve.ini deleted file mode 100644 index b465c83..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/mauve.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=c6a0f6ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=c6a0f6ff -counter=8087a2ff -border=c6a0f6ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/peach.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/peach.ini deleted file mode 100644 index 08068f8..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/peach.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=f5a97fff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=f5a97fff -counter=8087a2ff -border=f5a97fff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/pink.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/pink.ini deleted file mode 100644 index 061066e..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/pink.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=f5bde6ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=f5bde6ff -counter=8087a2ff -border=f5bde6ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/red.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/red.ini deleted file mode 100644 index 0bf6a7d..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/red.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=ed8796ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=ed8796ff -counter=8087a2ff -border=ed8796ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/rosewater.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/rosewater.ini deleted file mode 100644 index f31584d..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/rosewater.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=f4dbd6ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=f4dbd6ff -counter=8087a2ff -border=f4dbd6ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/sapphire.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/sapphire.ini deleted file mode 100644 index c057cea..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/sapphire.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=7dc4e4ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=7dc4e4ff -counter=8087a2ff -border=7dc4e4ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/sky.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/sky.ini deleted file mode 100644 index 28f2241..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/sky.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=91d7e3ff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=91d7e3ff -counter=8087a2ff -border=91d7e3ff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/teal.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/teal.ini deleted file mode 100644 index a58a6fe..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/teal.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=8bd5caff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=8bd5caff -counter=8087a2ff -border=8bd5caff diff --git a/sway/.config/fuzzel/themes/catppuccin-macchiato/yellow.ini b/sway/.config/fuzzel/themes/catppuccin-macchiato/yellow.ini deleted file mode 100644 index a980df8..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-macchiato/yellow.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=24273add -text=cad3f5ff -prompt=b8c0e0ff -placeholder=8087a2ff -input=cad3f5ff -match=eed49fff -selection=5b6078ff -selection-text=cad3f5ff -selection-match=eed49fff -counter=8087a2ff -border=eed49fff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/blue.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/blue.ini deleted file mode 100644 index f6ce89a..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/blue.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=89b4faff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=89b4faff -counter=7f849cff -border=89b4faff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/flamingo.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/flamingo.ini deleted file mode 100644 index 95670c5..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/flamingo.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=f2cdcdff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=f2cdcdff -counter=7f849cff -border=f2cdcdff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/green.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/green.ini deleted file mode 100644 index e66672e..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/green.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=a6e3a1ff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=a6e3a1ff -counter=7f849cff -border=a6e3a1ff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/lavender.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/lavender.ini deleted file mode 100644 index 2070fc5..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/lavender.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=b4befeff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=b4befeff -counter=7f849cff -border=b4befeff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/maroon.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/maroon.ini deleted file mode 100644 index 0fb3c40..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/maroon.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=eba0acff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=eba0acff -counter=7f849cff -border=eba0acff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/mauve.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/mauve.ini deleted file mode 100644 index f4749a8..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/mauve.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=cba6f7ff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=cba6f7ff -counter=7f849cff -border=cba6f7ff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/peach.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/peach.ini deleted file mode 100644 index 7ed3f73..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/peach.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=fab387ff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=fab387ff -counter=7f849cff -border=fab387ff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/pink.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/pink.ini deleted file mode 100644 index fb30292..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/pink.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=f5c2e7ff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=f5c2e7ff -counter=7f849cff -border=f5c2e7ff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/red.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/red.ini deleted file mode 100644 index fcea05d..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/red.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=f38ba8ff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=f38ba8ff -counter=7f849cff -border=f38ba8ff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/rosewater.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/rosewater.ini deleted file mode 100644 index e79bfdb..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/rosewater.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=f5e0dcff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=f5e0dcff -counter=7f849cff -border=f5e0dcff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/sapphire.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/sapphire.ini deleted file mode 100644 index 2d7ab23..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/sapphire.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=74c7ecff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=74c7ecff -counter=7f849cff -border=74c7ecff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/sky.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/sky.ini deleted file mode 100644 index 101d896..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/sky.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=89dcebff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=89dcebff -counter=7f849cff -border=89dcebff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/teal.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/teal.ini deleted file mode 100644 index 4fb9507..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/teal.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=94e2d5ff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=94e2d5ff -counter=7f849cff -border=94e2d5ff diff --git a/sway/.config/fuzzel/themes/catppuccin-mocha/yellow.ini b/sway/.config/fuzzel/themes/catppuccin-mocha/yellow.ini deleted file mode 100644 index a9959a1..0000000 --- a/sway/.config/fuzzel/themes/catppuccin-mocha/yellow.ini +++ /dev/null @@ -1,12 +0,0 @@ -[colors] -background=1e1e2edd -text=cdd6f4ff -prompt=bac2deff -placeholder=7f849cff -input=cdd6f4ff -match=f9e2afff -selection=585b70ff -selection-text=cdd6f4ff -selection-match=f9e2afff -counter=7f849cff -border=f9e2afff diff --git a/sway/.config/sway/conf.d/window.conf b/sway/.config/sway/conf.d/window.conf deleted file mode 100644 index e4b1ec5..0000000 --- a/sway/.config/sway/conf.d/window.conf +++ /dev/null @@ -1,66 +0,0 @@ -#-----------------------# -# Windows configuration # -# ----------------------# - bindsym $mod+shift+g exec swaymsg gaps outer all set 0 && swaymsg gaps inner all set 5 - bindsym $mod+g exec swaymsg gaps outer all set 0 && swaymsg gaps inner all set 0 - - # No gaps when there is a single window - #smart_gaps on - - # Activate smart borders (always) - #smart_borders on - - default_border pixel 3 - default_floating_border pixel 3 - gaps inner 5 - gaps outer 5 - -#------------------------------# -# Always float certain windows # -#------------------------------# - for_window [app_id="pop-up"] floating enable - for_window [app_id="bubble"] floating enable - for_window [app_id="task_dialog"] floating enable - for_window [app_id="Preferences"] floating enable - for_window [app_id="dialog"] floating enable - for_window [app_id="menu"] floating enable - for_window [app_id="Organizer"] floating enable - for_window [app_id="About"] floating enable - for_window [app_id="toolbox"] floating enable - for_window [app_id="page-info"] floating enable - for_window [app_id="webconsole"] floating enable - for_window [app_id="Authy"] floating enable - for_window [app_id="termfloat"] floating enable - for_window [app_id="termfloat"] resize set height 540 - for_window [app_id="termfloat"] resize set width 960 - for_window [app_id="mpv"] floating enable - for_window [app_id="mpv"] resize set height 540 - for_window [app_id="mpv"] resize set width 960 - -#-------------------------------------------------------# -# Sticky floating windows(sticky enable|disable|toggle) # -#-------------------------------------------------------# - for_window [app_id="nwg-clipman"] floating enable - for_window [app_id="nwg-clipman"] sticky enable - for_window [app_id="nwg-clipman"] resize set height 540 - for_window [app_id="nwg-clipman"] resize set width 960 - -#-----------------# -# Program Opacity # -#-----------------# - for_window [app_id="telegram"] opacity 1.00 - -#------------------------------------------# -# Placing software in a specific workspace # -#------------------------------------------# - assign [app_id="emacs"]: workspace number 1 - for_window [app_id="emacs"]: focus - assign [app_id="firefox"]: workspace number 2 - for_window [app_id="firefox"] focus - assign [app_id="telegram"]: workspace number 3 - for_window [app_id="telegram"] focus - -#---------------------# -# Focus follows mouse # -#---------------------# - focus_follows_mouse no diff --git a/sway/.config/sway/config b/sway/.config/sway/config deleted file mode 100644 index 90d3cad..0000000 --- a/sway/.config/sway/config +++ /dev/null @@ -1,341 +0,0 @@ -### Variables -# -# Logo key. Use Mod1 for Alt. -set $mod Mod4 - -# Home row direction keys, like vim -set $left h -set $down j -set $up k -set $right l - -# Your preferred terminal emulator -set $term 'foot' - -# Your preferred application launcher -set $menu 'fuzzel' - -# Your preferred browser -set $browser 'firefox' - -# Your preferred notification daemon -set $notification 'dunst' - -# Your preferred clipboard manager -set $clipboard 'cliphist list | fuzzel --dmenu | cliphist decode | wl-copy' - -# Your preferred file manager -set $filemanager 'foot yazi' - -# Your prefered editor -set $editor 'emacs' - -# Import Catppuccin theme defined colors -include themes/catppuccin-mocha - -# target title bg text indicator border -client.focused $lavender $base $text $rosewater $lavender -client.focused_inactive $overlay0 $base $text $rosewater $overlay0 -client.unfocused $overlay0 $base $text $rosewater $overlay0 -client.urgent $peach $base $peach $overlay0 $peach -client.placeholder $overlay0 $base $text $overlay0 $overlay0 -client.background $base - -# Setting cursor -seat seat0 xcursor_theme catppuccin-mocha-lavender-cursors 25 - -### Output configuration -# -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -# output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill -output * bg ~/.config/sway/wallpaper.jpg fill - -# Setting default font -font pango:Noto Sans Regular 10 - -# -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 -# -# You can get the names of your outputs by running: swaymsg -t get_outputs - -### Idle configuration -set $lockman exec bash ~/.config/sway/scripts/lockman.sh -exec swayidle -w \ - timeout 300 'swaylock -f --font "Noto Sans Regular" --font-size 16' \ - timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ - before-sleep 'swaylock -f --font "Noto Sans Regular" --font-size 16' - -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when -# resumed. It will also lock your screen before your computer goes to sleep. - -### Run in background notification daemon -exec $notification - -### Run in background Pipewire session -exec pipewire - -### Run clipboard manager -exec wl-paste -t text --watch cliphist store -exec wl-paste -t image --watch cliphist store - -### OSD server -exec swayosd-server - -### -exec $editor - -### Screenshot tool -exec flameshot - -# Simulate master layout -exec autotiling --limit 2 - -exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY - -#----------------# -# set gtk+ theme # -#----------------# -set $gnome-schema org.gnome.desktop.interface -exec_always { - gsettings set $gnome-schema gtk-theme 'Catppuccin' - gsettings set $gnome-schema icon-theme 'Papirus-Dark' - gsettings set $gnome-schema cursor-theme 'Catppuccin-cursor' - gsettings set $gnome-schema font-name 'Noto Sans Regular 10' -} - -### Input configuration -# -# Example configuration: -# -# input type:touchpad { -# dwt enabled -# tap enabled -# natural_scroll enabled -# middle_emulation enabled -# } -# -# input type:keyboard { -# xkb_layout "eu" -# } -# -# You can also configure each device individually. -# Read `man 5 sway-input` for more information about this section. - - input type:touchpad { - dwt enabled - tap enabled - natural_scroll enabled - middle_emulation enabled - } - - input type:keyboard { - xkb_layout "us(intl)" - xkb_options "grp:win_space_toggle" - } - -### Key bindings -# -# Basics: -# - # Start a terminal - bindsym $mod+Return exec $term - - # Kill focused window - bindsym $mod+Shift+q kill - - # Start your launcher - bindsym $mod+d exec $menu - - # Start my browser - bindsym $mod+Shift+b exec $browser - - # Start my clipboard manager - bindsym $mod+Shift+v exec $clipboard - - # Start my file manager - bindsym $mod+Shift+f exec $filemanager - - # Drag floating windows by holding down $mod and left mouse button. - # Resize them with right mouse button + $mod. - # Despite the name, also works for non-floating windows. - # Change normal to inverse to use left mouse button for resizing and right - # mouse button for dragging. - floating_modifier $mod normal - - # Reload the configuration file - bindsym $mod+Shift+c reload - - # Exit sway (logs you out of your Wayland session) - #bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' - bindsym $mod+Shift+e exec wlogout - - # Waybar toggle - bindsym $mod+o exec killall -SIGUSR1 waybar - -# -# Moving around: -# - # Move your focus around - bindsym $mod+$left focus left - bindsym $mod+$down focus down - bindsym $mod+$up focus up - bindsym $mod+$right focus right - # Or use $mod+[up|down|left|right] - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right - - # Move the focused window with the same, but add Shift - bindsym $mod+Shift+$left move left - bindsym $mod+Shift+$down move down - bindsym $mod+Shift+$up move up - bindsym $mod+Shift+$right move right - # Ditto, with arrow keys - bindsym $mod+Shift+Left move left - bindsym $mod+Shift+Down move down - bindsym $mod+Shift+Up move up - bindsym $mod+Shift+Right move right - -# -# Workspaces: -# - # Switch to workspace - bindsym $mod+1 workspace number 1 - bindsym $mod+2 workspace number 2 - bindsym $mod+3 workspace number 3 - bindsym $mod+4 workspace number 4 - bindsym $mod+5 workspace number 5 - bindsym $mod+6 workspace number 6 - bindsym $mod+7 workspace number 7 - bindsym $mod+8 workspace number 8 - bindsym $mod+9 workspace number 9 - bindsym $mod+0 workspace number 10 - - # Move focused container to workspace - bindsym $mod+Shift+1 move container to workspace number 1 - bindsym $mod+Shift+2 move container to workspace number 2 - bindsym $mod+Shift+3 move container to workspace number 3 - bindsym $mod+Shift+4 move container to workspace number 4 - bindsym $mod+Shift+5 move container to workspace number 5 - bindsym $mod+Shift+6 move container to workspace number 6 - bindsym $mod+Shift+7 move container to workspace number 7 - bindsym $mod+Shift+8 move container to workspace number 8 - bindsym $mod+Shift+9 move container to workspace number 9 - bindsym $mod+Shift+0 move container to workspace number 10 - - bindsym $mod+period workspace next - bindsym $mod+comma workspace prev - -# -# Layout stuff: -# - # You can "split" the current object of your focus with - # $mod+b or $mod+v, for horizontal and vertical splits - # respectively. - bindsym $mod+b splith - bindsym $mod+v splitv - - # Switch the current container between different layout styles - bindsym $mod+s layout stacking - bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split - - # Make the current focus fullscreen - bindsym $mod+f fullscreen - - # Toggle the current focus between tiling and floating mode - bindsym $mod+Shift+space floating toggle - - # Swap focus between the tiling area and the floating area - bindsym $mod+space focus mode_toggle - - # Move focus to the parent container - bindsym $mod+a focus parent - -# -# Scratchpad: -# - # Sway has a "scratchpad", which is a bag of holding for windows. - # You can send windows there and get them back later. - - # Move the currently focused window to the scratchpad - bindsym $mod+Shift+minus move scratchpad - - # Show the next scratchpad window or hide the focused scratchpad window. - # If there are multiple scratchpad windows, this command cycles through them. - bindsym $mod+minus scratchpad show - -# -# Resizing containers: -# -mode "resize" { - # left will shrink the containers width - # right will grow the containers width - # up will shrink the containers height - # down will grow the containers height - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - - # Ditto, with arrow keys - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px - - # Return to default mode - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+r mode "resize" - -# -# Utilities: -# - # Special keys to adjust volume via PulseAudio - # bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle - # bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% - # bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% - # bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle - # Special keys to adjust brightness via brightnessctl - # bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- - # bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ - - # Client commands for SwayOSD - # For enable this service start systemd service swayosd-libinput-backend.service - - # Sink volume toggle mute - bindsym XF86AudioMute exec swayosd-client --output-volume mute-toggle - # Source volume toggle mute - bindsym XF86AudioMicMute exec swayosd-client --input-volume mute-toggle - # Volume raise with custom value - bindsym XF86AudioRaiseVolume exec swayosd-client --output-volume 5 - # Volume lower with custom value - bindsym XF86AudioLowerVolume exec swayosd-client --output-volume -5 - # Capslock (If you don't want to use the backend) - bindsym --release Caps_Lock exec swayosd-client --caps-lock - # Brightness raise with custom value('+' sign needed) - bindsym XF86MonBrightnessUp exec swayosd-client --brightness +5 - # Brightness lower with custom value('-' sign needed) - bindsym XF86MonBrightnessDown exec swayosd-client --brightness -5 - # Special key to take a screenshot with grim - # bindsym Print exec ~/.config/sway/scripts/screenshot.sh - bindsym Print exec flameshot gui - # Lock the screen - bindsym $mod+Alt+l exec $lockman - -# -# Status Bar: -# -# Read `man 5 sway-bar` for more information about this section. -bar { - swaybar_command waybar -} - -include $HOME/.config/sway/conf.d/*.conf diff --git a/sway/.config/sway/outputs b/sway/.config/sway/outputs deleted file mode 100644 index e69de29..0000000 diff --git a/sway/.config/sway/scripts/lockman.sh b/sway/.config/sway/scripts/lockman.sh deleted file mode 100755 index a959d3d..0000000 --- a/sway/.config/sway/scripts/lockman.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -# Times the screen off and puts it to background -swayidle \ - timeout 10 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' & -# Locks the screen immediately -swaylock -f --font "Noto Sans Regular" --font-size 16 -# Kills last background task so idle timer doesn't keep running -kill %% diff --git a/sway/.config/sway/scripts/monitor_layout_selector.sh b/sway/.config/sway/scripts/monitor_layout_selector.sh deleted file mode 100755 index ebb03f6..0000000 --- a/sway/.config/sway/scripts/monitor_layout_selector.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/wlr-layouts" -LAYOUT_TOOL="wlr-randr" - -mkdir -p "$CONFIG_DIR" - -# Verifica che fzf sia installato -if ! command -v fzf > /dev/null 2>&1; then - echo "Errore: fzf non รจ installato." >&2 - exit 1 -fi - -# Verifica che fyi sia installato -if ! command -v fyi > /dev/null 2>&1; then - echo "Errore: fyi non รจ installato." >&2 - exit 1 -fi - -# Funzione: applica layout selezionato -apply_layout() { - local layout_file="$1" - if [ -f "$layout_file" ]; then - while IFS= read -r line; do - [ -n "$line" ] && eval "$line" - done < "$layout_file" - fyi "Applied layout: $(basename "$layout_file")" - else - echo "File layout non trovato: $layout_file" >&2 - exit 2 - fi -} - -# Seleziona layout via fzf con preview -SELECTED_FILE=$(find "$CONFIG_DIR" -type f -name '*.layout' \ - | fzf --prompt="Select layout > " \ - --preview="cat {}" \ - --preview-window=down:50%:wrap) - -# Applica se selezionato -if [ -n "$SELECTED_FILE" ]; then - apply_layout "$SELECTED_FILE" -fi diff --git a/sway/.config/sway/scripts/screenshot.sh b/sway/.config/sway/scripts/screenshot.sh deleted file mode 100755 index 15a4a7e..0000000 --- a/sway/.config/sway/scripts/screenshot.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -file="$HOME/Pictures/Screenshots/$(date +%Y-%m-%dT%H:%M:%S).png" -thumb="/tmp/screenshot-thumb.png" -grim "$file" \ - && wl-copy < "$file" \ - && magick "$file" -resize 640x480 "$thumb" \ - && fyi -i "$thumb" "๐Ÿ“ธ Catch screenshot" diff --git a/sway/.config/sway/themes/catppuccin-frappe b/sway/.config/sway/themes/catppuccin-frappe deleted file mode 100644 index 227d2cb..0000000 --- a/sway/.config/sway/themes/catppuccin-frappe +++ /dev/null @@ -1,26 +0,0 @@ -set $rosewater #f2d5cf -set $flamingo #eebebe -set $pink #f4b8e4 -set $mauve #ca9ee6 -set $red #e78284 -set $maroon #ea999c -set $peach #ef9f76 -set $yellow #e5c890 -set $green #a6d189 -set $teal #81c8be -set $sky #99d1db -set $sapphire #85c1dc -set $blue #8caaee -set $lavender #babbf1 -set $text #c6d0f5 -set $subtext1 #b5bfe2 -set $subtext0 #a5adce -set $overlay2 #949cbb -set $overlay1 #838ba7 -set $overlay0 #737994 -set $surface2 #626880 -set $surface1 #51576d -set $surface0 #414559 -set $base #303446 -set $mantle #292c3c -set $crust #232634 diff --git a/sway/.config/sway/themes/catppuccin-latte b/sway/.config/sway/themes/catppuccin-latte deleted file mode 100644 index b5164c6..0000000 --- a/sway/.config/sway/themes/catppuccin-latte +++ /dev/null @@ -1,26 +0,0 @@ -set $rosewater #dc8a78 -set $flamingo #dd7878 -set $pink #ea76cb -set $mauve #8839ef -set $red #d20f39 -set $maroon #e64553 -set $peach #fe640b -set $yellow #df8e1d -set $green #40a02b -set $teal #179299 -set $sky #04a5e5 -set $sapphire #209fb5 -set $blue #1e66f5 -set $lavender #7287fd -set $text #4c4f69 -set $subtext1 #5c5f77 -set $subtext0 #6c6f85 -set $overlay2 #7c7f93 -set $overlay1 #8c8fa1 -set $overlay0 #9ca0b0 -set $surface2 #acb0be -set $surface1 #bcc0cc -set $surface0 #ccd0da -set $base #eff1f5 -set $mantle #e6e9ef -set $crust #dce0e8 diff --git a/sway/.config/sway/themes/catppuccin-macchiato b/sway/.config/sway/themes/catppuccin-macchiato deleted file mode 100644 index 7523f26..0000000 --- a/sway/.config/sway/themes/catppuccin-macchiato +++ /dev/null @@ -1,26 +0,0 @@ -set $rosewater #f4dbd6 -set $flamingo #f0c6c6 -set $pink #f5bde6 -set $mauve #c6a0f6 -set $red #ed8796 -set $maroon #ee99a0 -set $peach #f5a97f -set $yellow #eed49f -set $green #a6da95 -set $teal #8bd5ca -set $sky #91d7e3 -set $sapphire #7dc4e4 -set $blue #8aadf4 -set $lavender #b7bdf8 -set $text #cad3f5 -set $subtext1 #b8c0e0 -set $subtext0 #a5adcb -set $overlay2 #939ab7 -set $overlay1 #8087a2 -set $overlay0 #6e738d -set $surface2 #5b6078 -set $surface1 #494d64 -set $surface0 #363a4f -set $base #24273a -set $mantle #1e2030 -set $crust #181926 diff --git a/sway/.config/sway/themes/catppuccin-mocha b/sway/.config/sway/themes/catppuccin-mocha deleted file mode 100644 index 77749f6..0000000 --- a/sway/.config/sway/themes/catppuccin-mocha +++ /dev/null @@ -1,26 +0,0 @@ -set $rosewater #f5e0dc -set $flamingo #f2cdcd -set $pink #f5c2e7 -set $mauve #cba6f7 -set $red #f38ba8 -set $maroon #eba0ac -set $peach #fab387 -set $yellow #f9e2af -set $green #a6e3a1 -set $teal #94e2d5 -set $sky #89dceb -set $sapphire #74c7ec -set $blue #89b4fa -set $lavender #b4befe -set $text #cdd6f4 -set $subtext1 #bac2de -set $subtext0 #a6adc8 -set $overlay2 #9399b2 -set $overlay1 #7f849c -set $overlay0 #6c7086 -set $surface2 #585b70 -set $surface1 #45475a -set $surface0 #313244 -set $base #1e1e2e -set $mantle #181825 -set $crust #11111b diff --git a/sway/.config/sway/wallpaper.jpg b/sway/.config/sway/wallpaper.jpg deleted file mode 100644 index a3ab4a6..0000000 Binary files a/sway/.config/sway/wallpaper.jpg and /dev/null differ diff --git a/sway/.config/sway/workspaces b/sway/.config/sway/workspaces deleted file mode 100644 index e69de29..0000000 diff --git a/sway/.config/swaylock/config b/sway/.config/swaylock/config deleted file mode 100644 index 2f465a1..0000000 --- a/sway/.config/swaylock/config +++ /dev/null @@ -1,30 +0,0 @@ -image=~/.config/swaylock/current_bg -color=1e1e2e -bs-hl-color=f5e0dc -caps-lock-bs-hl-color=f5e0dc -caps-lock-key-hl-color=a6e3a1 -inside-color=00000000 -inside-clear-color=00000000 -inside-caps-lock-color=00000000 -inside-ver-color=00000000 -inside-wrong-color=00000000 -key-hl-color=a6e3a1 -layout-bg-color=00000000 -layout-border-color=00000000 -layout-text-color=cdd6f4 -line-color=00000000 -line-clear-color=00000000 -line-caps-lock-color=00000000 -line-ver-color=00000000 -line-wrong-color=00000000 -ring-color=b4befe -ring-clear-color=f5e0dc -ring-caps-lock-color=fab387 -ring-ver-color=89b4fa -ring-wrong-color=eba0ac -separator-color=00000000 -text-color=cdd6f4 -text-clear-color=f5e0dc -text-caps-lock-color=fab387 -text-ver-color=89b4fa -text-wrong-color=eba0ac diff --git a/sway/.config/swaylock/current_bg b/sway/.config/swaylock/current_bg deleted file mode 100644 index becfe68..0000000 Binary files a/sway/.config/swaylock/current_bg and /dev/null differ diff --git a/sway/.config/swayosd/style.css b/sway/.config/swayosd/style.css deleted file mode 100644 index ac58701..0000000 --- a/sway/.config/swayosd/style.css +++ /dev/null @@ -1,43 +0,0 @@ -* { - font-family: "Noto Sans Regular"; - font-size: 12pt; -} - -window#osd { - border-radius: 999px; - border: none; - background: #{"alpha(@theme_bg_color, 0.8)"}; - - #container { - margin: 16px; - } - - image, - label { - color: #{"@theme_fg_color"}; - } - - progressbar:disabled, - image:disabled { - opacity: 0.5; - } - - progressbar { - min-height: 6px; - border-radius: 999px; - background: transparent; - border: none; - } - trough { - min-height: inherit; - border-radius: inherit; - border: none; - background: #{"alpha(@theme_fg_color, 0.5)"}; - } - progress { - min-height: inherit; - border-radius: inherit; - border: none; - background: #{"@theme_fg_color"}; - } -} diff --git a/sway/.config/waybar/config.jsonc b/sway/.config/waybar/config.jsonc deleted file mode 100644 index b27244d..0000000 --- a/sway/.config/waybar/config.jsonc +++ /dev/null @@ -1,164 +0,0 @@ -{ - "layer": "top", // Waybar at top layer - "position": "top", // Waybar position (top|bottom|left|right) - "modules-left": [ - "sway/workspaces" - ], - "modules-center": [ - "custom/music" - ], - "modules-right": [ - "temperature", - "memory", - "cpu", - "pulseaudio", - "backlight", - "network", - "bluetooth", - "battery", - "clock", - "custom/powermenu", - "tray" - ], - "custom/launcher": { - "format": "๏ " , - "on-click": "fuzzel &", - "tooltip": false - }, - "sway/workspaces": { - "disable-scroll": true, - "disable-markup": false, - "all-outputs": true, - "sort-by-number": true, - "format": "{index}", - "on-click": "activate", - "format-icons": { - "1": "๏„ ", - "2": "๏‰ฉ", - "3": "๏„ก", - "4": "๏†ผ", - "5": "๏ต", - "urgent": "๏ช", - "active": "๏†’", - "default": "๏„‘" - }, - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "๏ฎ", - "deactivated": "๏ฐ" - }, - "tooltip": false - }, - "backlight": { - "device": "intel_backlight", - "on-scroll-up": "light -A 5", - "on-scroll-down": "light -U 5", - "format": "{percent}% {icon}", - "format-icons": [ "๎Ž", "๎“", "๎‘", "๎", "๎Ž", "๎", "๎Š", "๎ˆ", "๎Ž›" ] - }, - "pulseaudio": { - "scroll-step": 1, - "format": "{volume}% {icon}", - "format-muted": "๏‘ฆ {format_source}", - "format-icons": { - "headphone": "๏€ฅ", - "phone": "๏‚•", - "portable": "๏‚•", - "car": "๏†น", - "default": ["๏€ฆ", "๏€ง", "๏€จ "] - }, - "on-click": "pavucontrol &", - //"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", - }, - "battery": { - "interval": 10, - "states": { - "warning": 20, - "critical": 10 - }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% ๓ฐ‚„", - "format-plugged": "{capacity}% ๏‡ฆ", - "format-alt": "{time} {icon}", - "format-icons": [ "๓ฐบ", "๓ฐป", "๓ฐผ", "๓ฐฝ", "๓ฐพ", "๓ฐฟ", "๓ฐ‚€", "๓ฐ‚", "๓ฐ‚‚" ] - }, - "clock": { - "interval": 1, - "timezone": "Europe/Rome", - "format": "{:%I:%M %p}", - "tooltip-format": "{:%Y %B}\n{calendar}", - "format-alt": "{:%A %d/%m/%Y}", - }, - "memory": { - "interval": 1, - "format": "{percentage}% ๏ƒ‰", - "states": { - "warning": 85, - }, - }, - "cpu": { - "interval": 1, - "format": "{usage}% ๏‹›", - "tooltip": false - }, - "mpd": { - "max-length": 25, - "format": "๏€ {title}", - "format-paused": "๏€ {title}", - "format-stopped":"๏€", - "format-disconnected": "", - "on-click": "mpc --quiet toggle", - "on-click-right": "mpc ls | mpc add", - "on-click-middle": "kitty ncmpcpp", - "on-scroll-up": "mpc --quiet prev", - "on-scroll-down": "mpc --quiet next", - "smooth-scrolling-threshold":5, - "tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})" - }, - "network": { - "interval": 1, - "tooltip": true, - "format-wifi": "{icon}", - "format-ethernet": "{icon}", - "format-linked": "๓ฐˆ", - "format-icons": ["๓ฐคŸ", "๓ฐคข", "๓ฐคฅ", "๓ฐคจ"], - "format-disconnected": "๓ฐˆ‚", - "tooltip-format": "{ifname}", - "tooltip-format-wifi": "{essid} ({signalStrength}%) ๏‡ซ ", - "tooltip-format-ethernet": "{ifname} ๏ƒ ", - "tooltip-format-disconnected": "Disconnected", - "on-click": "nm-connection-editor &", - }, - "temperature": { - "hwmon-path": "/sys/class/hwmon/hwmon6/temp2_input", - "tooltip": false, - "format": "{temperatureC}ยฐC ๏‹‰" - }, - "custom/powermenu": { - "format": "๏€‘", - "on-click": "wlogout &", - "tooltip": false - }, - "tray": { - "icon-size": 15, - "spacing": 5 - }, - "bluetooth": { - "format": "๏Š”", - "format-connected": "{device_alias} ๏Š”", - "format-connected-battery": "{device_alias} {device_battery_percentage}% ๏Š”", - "format-off": "๓ฐ‚ฒ", // "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device - "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", - "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", - "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", - "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%", - "on-click": "blueman-manager &" - }, - "custom/music": { - "format": "{}", - "return-type": "json", - "exec": "waybar-module-music", - } -} diff --git a/sway/.config/waybar/style.css b/sway/.config/waybar/style.css deleted file mode 100644 index 38a2baa..0000000 --- a/sway/.config/waybar/style.css +++ /dev/null @@ -1,145 +0,0 @@ -@import "themes/mocha.css"; - -* { - font-family: "ComicShannsMono Nerd Font"; - font-size: 12pt; - font-weight: bold; - border-radius: 0px; - transition-property: background-color; - transition-duration: 0.5s; -} -@keyframes blink_red { - to { - background-color: @flamingo; - color: @mantle; - } -} -.warning, .critical, .urgent { - animation-name: blink_red; - animation-duration: 1s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} -window#waybar { - background-color: transparent; -} -window > box { - /* margin-left: 5px; */ - /* margin-right: 5px; */ - /* margin-top: 5px; */ - background-color: @base; -} -#workspaces { - padding-left: 0px; - padding-right: 4px; -} -#workspaces button { - color: @teal; - padding-top: 5px; - padding-bottom: 5px; - padding-left: 6px; - padding-right: 6px; -} -#workspaces button.focused { - background-color: @teal; - color: @mantle; -} -#workspaces button.urgent { - color: @mantle; -} -#workspaces button:hover { - background-color: @peach; - color: @mantle; -} -tooltip { - background: @surface0; -} -tooltip label { - color: @text; -} -#custom-launcher { - padding-left: 8px; - padding-right: 6px; - color: @mauve; -} -#mode, #clock, #memory, #temperature, #cpu, #mpd, #idle_inhibitor, #temperature, #backlight, #pulseaudio, #network, #battery, #custom-powermenu, #bluetooth, #custom-music { - padding-left: 10px; - padding-right: 10px; -} -#memory { - color: @teal; -} -#cpu { - color: @pink; -} -#clock { - color: @text; -} -#idle_inhibitor { - color: @mauve; -} -#temperature { - color: @sapphire; -} -#backlight { - color: @peach; -} -#pulseaudio { - color: @rosewater; -} -#network { - color: @green; -} -#network.disconnected { - color: @text; -} -#battery { - color: @sky; -} -#battery.charging { - color: @green; -} -#battery.full, #battery.discharging { - color: @yellow; -} -#battery.critical:not(.charging) { - color: @red; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} -#custom-powermenu { - color: @red; -} -#tray { - padding-right: 8px; - padding-left: 10px; -} -#mpd.paused { - color: @blue; - font-style: italic; -} -#mpd.stopped { - background: transparent; -} -#mpd { - color: @sky; -} -#bluetooth { - color: @blue; -} -#custom-launcher { - color: @text; -} -#custom-music.playing { - color: @green; -} -#custom-music.paused { - color: @maroon; -} -#custom-music.stopped { - color: @peach; -} diff --git a/sway/.config/waybar/themes/frappe.css b/sway/.config/waybar/themes/frappe.css deleted file mode 100644 index c06b8fb..0000000 --- a/sway/.config/waybar/themes/frappe.css +++ /dev/null @@ -1,26 +0,0 @@ -@define-color rosewater #f2d5cf; -@define-color flamingo #eebebe; -@define-color pink #f4b8e4; -@define-color mauve #ca9ee6; -@define-color red #e78284; -@define-color maroon #ea999c; -@define-color peach #ef9f76; -@define-color yellow #e5c890; -@define-color green #a6d189; -@define-color teal #81c8be; -@define-color sky #99d1db; -@define-color sapphire #85c1dc; -@define-color blue #8caaee; -@define-color lavender #babbf1; -@define-color text #c6d0f5; -@define-color subtext1 #b5bfe2; -@define-color subtext0 #a5adce; -@define-color overlay2 #949cbb; -@define-color overlay1 #838ba7; -@define-color overlay0 #737994; -@define-color surface2 #626880; -@define-color surface1 #51576d; -@define-color surface0 #414559; -@define-color base #303446; -@define-color mantle #292c3c; -@define-color crust #232634; diff --git a/sway/.config/waybar/themes/latte.css b/sway/.config/waybar/themes/latte.css deleted file mode 100644 index bb101b1..0000000 --- a/sway/.config/waybar/themes/latte.css +++ /dev/null @@ -1,26 +0,0 @@ -@define-color rosewater #dc8a78; -@define-color flamingo #dd7878; -@define-color pink #ea76cb; -@define-color mauve #8839ef; -@define-color red #d20f39; -@define-color maroon #e64553; -@define-color peach #fe640b; -@define-color yellow #df8e1d; -@define-color green #40a02b; -@define-color teal #179299; -@define-color sky #04a5e5; -@define-color sapphire #209fb5; -@define-color blue #1e66f5; -@define-color lavender #7287fd; -@define-color text #4c4f69; -@define-color subtext1 #5c5f77; -@define-color subtext0 #6c6f85; -@define-color overlay2 #7c7f93; -@define-color overlay1 #8c8fa1; -@define-color overlay0 #9ca0b0; -@define-color surface2 #acb0be; -@define-color surface1 #bcc0cc; -@define-color surface0 #ccd0da; -@define-color base #eff1f5; -@define-color mantle #e6e9ef; -@define-color crust #dce0e8; diff --git a/sway/.config/waybar/themes/macchiato.css b/sway/.config/waybar/themes/macchiato.css deleted file mode 100644 index 112ee32..0000000 --- a/sway/.config/waybar/themes/macchiato.css +++ /dev/null @@ -1,26 +0,0 @@ -@define-color rosewater #f4dbd6; -@define-color flamingo #f0c6c6; -@define-color pink #f5bde6; -@define-color mauve #c6a0f6; -@define-color red #ed8796; -@define-color maroon #ee99a0; -@define-color peach #f5a97f; -@define-color yellow #eed49f; -@define-color green #a6da95; -@define-color teal #8bd5ca; -@define-color sky #91d7e3; -@define-color sapphire #7dc4e4; -@define-color blue #8aadf4; -@define-color lavender #b7bdf8; -@define-color text #cad3f5; -@define-color subtext1 #b8c0e0; -@define-color subtext0 #a5adcb; -@define-color overlay2 #939ab7; -@define-color overlay1 #8087a2; -@define-color overlay0 #6e738d; -@define-color surface2 #5b6078; -@define-color surface1 #494d64; -@define-color surface0 #363a4f; -@define-color base #24273a; -@define-color mantle #1e2030; -@define-color crust #181926; diff --git a/sway/.config/waybar/themes/mocha.css b/sway/.config/waybar/themes/mocha.css deleted file mode 100644 index 0eb6a82..0000000 --- a/sway/.config/waybar/themes/mocha.css +++ /dev/null @@ -1,26 +0,0 @@ -@define-color rosewater #f5e0dc; -@define-color flamingo #f2cdcd; -@define-color pink #f5c2e7; -@define-color mauve #cba6f7; -@define-color red #f38ba8; -@define-color maroon #eba0ac; -@define-color peach #fab387; -@define-color yellow #f9e2af; -@define-color green #a6e3a1; -@define-color teal #94e2d5; -@define-color sky #89dceb; -@define-color sapphire #74c7ec; -@define-color blue #89b4fa; -@define-color lavender #b4befe; -@define-color text #cdd6f4; -@define-color subtext1 #bac2de; -@define-color subtext0 #a6adc8; -@define-color overlay2 #9399b2; -@define-color overlay1 #7f849c; -@define-color overlay0 #6c7086; -@define-color surface2 #585b70; -@define-color surface1 #45475a; -@define-color surface0 #313244; -@define-color base #1e1e2e; -@define-color mantle #181825; -@define-color crust #11111b; diff --git a/sway/.config/wlogout/icons/hibernate.svg b/sway/.config/wlogout/icons/hibernate.svg deleted file mode 100644 index dc9dcf8..0000000 --- a/sway/.config/wlogout/icons/hibernate.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Svg Vector Icons : http://www.onlinewebfonts.com/icon - - diff --git a/sway/.config/wlogout/icons/lock.svg b/sway/.config/wlogout/icons/lock.svg deleted file mode 100644 index a7832ba..0000000 --- a/sway/.config/wlogout/icons/lock.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Svg Vector Icons : http://www.onlinewebfonts.com/icon - - diff --git a/sway/.config/wlogout/icons/logout.svg b/sway/.config/wlogout/icons/logout.svg deleted file mode 100644 index 3e0cc80..0000000 --- a/sway/.config/wlogout/icons/logout.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Svg Vector Icons : http://www.onlinewebfonts.com/icon - - diff --git a/sway/.config/wlogout/icons/reboot.svg b/sway/.config/wlogout/icons/reboot.svg deleted file mode 100644 index bfa5403..0000000 --- a/sway/.config/wlogout/icons/reboot.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Svg Vector Icons : http://www.onlinewebfonts.com/icon - - diff --git a/sway/.config/wlogout/icons/shutdown.svg b/sway/.config/wlogout/icons/shutdown.svg deleted file mode 100644 index 2892505..0000000 --- a/sway/.config/wlogout/icons/shutdown.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Svg Vector Icons : http://www.onlinewebfonts.com/icon - - diff --git a/sway/.config/wlogout/icons/suspend.svg b/sway/.config/wlogout/icons/suspend.svg deleted file mode 100644 index c10fb47..0000000 --- a/sway/.config/wlogout/icons/suspend.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Svg Vector Icons : http://www.onlinewebfonts.com/icon - - diff --git a/sway/.config/wlogout/style.css b/sway/.config/wlogout/style.css deleted file mode 100644 index fa7279e..0000000 --- a/sway/.config/wlogout/style.css +++ /dev/null @@ -1,53 +0,0 @@ -* { - font-family: "Noto Sans Regular"; - font-size: 12pt; - background-image: none; - box-shadow: none; -} - -window { - background-color: rgba(30, 30, 46, 0.90); -} - -button { - border-radius: 0; - border-color: #89b4fa; - text-decoration-color: #cdd6f4; - color: #cdd6f4; - background-color: #181825; - border-style: solid; - border-width: 1px; - background-repeat: no-repeat; - background-position: center; - background-size: 25%; -} - -button:focus, button:active, button:hover { - /* 20% Overlay 2, 80% mantle */ - background-color: rgb(48, 50, 66); - outline-style: none; -} - -#lock { - background-image: url("/home/fscotto/.config/wlogout/icons/lock.svg"); -} - -#logout { - background-image: url("/home/fscotto/.config/wlogout/icons/logout.svg"); -} - -#suspend { - background-image: url("/home/fscotto/.config/wlogout/icons/suspend.svg"); -} - -#hibernate { - background-image: url("/home/fscotto/.config/wlogout/icons/hibernate.svg"); -} - -#shutdown { - background-image: url("/home/fscotto/.config/wlogout/icons/shutdown.svg"); -} - -#reboot { - background-image: url("/home/fscotto/.config/wlogout/icons/reboot.svg"); -} diff --git a/yazi/.config/yazi/Catppuccin-mocha.tmTheme b/yazi/.config/yazi/Catppuccin-mocha.tmTheme deleted file mode 100644 index ff135ab..0000000 --- a/yazi/.config/yazi/Catppuccin-mocha.tmTheme +++ /dev/null @@ -1,2048 +0,0 @@ - - - - - name - Catppuccin Mocha - semanticClass - theme.dark.catppuccin-mocha - uuid - 627ce890-fabb-4d39-9819-7be71f4bdca7 - author - Catppuccin Org - colorSpaceName - sRGB - settings - - - settings - - background - #1e1e2e - foreground - #cdd6f4 - caret - #f5e0dc - lineHighlight - #313244 - misspelling - #f38ba8 - accent - #cba6f7 - selection - #9399b240 - activeGuide - #45475a - findHighlight - #3e5767 - gutterForeground - #7f849c - - - - name - Basic text & variable names (incl. leading punctuation) - scope - text, source, variable.other.readwrite, punctuation.definition.variable - settings - - foreground - #cdd6f4 - - - - name - Parentheses, Brackets, Braces - scope - punctuation - settings - - foreground - #9399b2 - fontStyle - - - - - name - Comments - scope - comment, punctuation.definition.comment - settings - - foreground - #6c7086 - fontStyle - italic - - - - scope - string, punctuation.definition.string - settings - - foreground - #a6e3a1 - - - - scope - constant.character.escape - settings - - foreground - #f5c2e7 - - - - name - Booleans, constants, numbers - scope - constant.numeric, variable.other.constant, entity.name.constant, constant.language.boolean, constant.language.false, constant.language.true, keyword.other.unit.user-defined, keyword.other.unit.suffix.floating-point - settings - - foreground - #fab387 - - - - scope - keyword, keyword.operator.word, keyword.operator.new, variable.language.super, support.type.primitive, storage.type, storage.modifier, punctuation.definition.keyword - settings - - foreground - #cba6f7 - fontStyle - - - - - scope - entity.name.tag.documentation - settings - - foreground - #cba6f7 - - - - name - Punctuation - scope - keyword.operator, punctuation.accessor, punctuation.definition.generic, meta.function.closure punctuation.section.parameters, punctuation.definition.tag, punctuation.separator.key-value - settings - - foreground - #94e2d5 - - - - scope - entity.name.function, meta.function-call.method, support.function, support.function.misc, variable.function - settings - - foreground - #89b4fa - fontStyle - italic - - - - name - Classes - scope - entity.name.class, entity.other.inherited-class, support.class, meta.function-call.constructor, entity.name.struct - settings - - foreground - #f9e2af - fontStyle - italic - - - - name - Enum - scope - entity.name.enum - settings - - foreground - #f9e2af - fontStyle - italic - - - - name - Enum member - scope - meta.enum variable.other.readwrite, variable.other.enummember - settings - - foreground - #94e2d5 - - - - name - Object properties - scope - meta.property.object - settings - - foreground - #94e2d5 - - - - name - Types - scope - meta.type, meta.type-alias, support.type, entity.name.type - settings - - foreground - #f9e2af - fontStyle - italic - - - - name - Decorators - scope - meta.annotation variable.function, meta.annotation variable.annotation.function, meta.annotation punctuation.definition.annotation, meta.decorator, punctuation.decorator - settings - - foreground - #fab387 - - - - scope - variable.parameter, meta.function.parameters - settings - - foreground - #eba0ac - fontStyle - italic - - - - name - Built-ins - scope - constant.language, support.function.builtin - settings - - foreground - #f38ba8 - - - - scope - entity.other.attribute-name.documentation - settings - - foreground - #f38ba8 - - - - name - Preprocessor directives - scope - keyword.control.directive, punctuation.definition.directive - settings - - foreground - #f9e2af - - - - name - Type parameters - scope - punctuation.definition.typeparameters - settings - - foreground - #89dceb - - - - name - Namespaces - scope - entity.name.namespace - settings - - foreground - #f9e2af - - - - name - Property names (left hand assignments in json/yaml/css) - scope - support.type.property-name.css - settings - - foreground - #89b4fa - fontStyle - - - - - name - This/Self keyword - scope - variable.language.this, variable.language.this punctuation.definition.variable - settings - - foreground - #f38ba8 - - - - name - Object properties - scope - variable.object.property - settings - - foreground - #cdd6f4 - - - - name - String template interpolation - scope - string.template variable, string variable - settings - - foreground - #cdd6f4 - - - - name - `new` as bold - scope - keyword.operator.new - settings - - fontStyle - bold - - - - name - C++ extern keyword - scope - storage.modifier.specifier.extern.cpp - settings - - foreground - #cba6f7 - - - - name - C++ scope resolution - scope - entity.name.scope-resolution.template.call.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.cpp, entity.name.scope-resolution.function.definition.cpp - settings - - foreground - #f9e2af - - - - name - C++ doc keywords - scope - storage.type.class.doxygen - settings - - fontStyle - - - - - name - C++ operators - scope - storage.modifier.reference.cpp - settings - - foreground - #94e2d5 - - - - name - C# Interpolated Strings - scope - meta.interpolation.cs - settings - - foreground - #cdd6f4 - - - - name - C# xml-style docs - scope - comment.block.documentation.cs - settings - - foreground - #cdd6f4 - - - - name - Classes, reflecting the className color in JSX - scope - source.css entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css - settings - - foreground - #f9e2af - - - - name - Operators - scope - punctuation.separator.operator.css - settings - - foreground - #94e2d5 - - - - name - Pseudo classes - scope - source.css entity.other.attribute-name.pseudo-class - settings - - foreground - #94e2d5 - - - - scope - source.css constant.other.unicode-range - settings - - foreground - #fab387 - - - - scope - source.css variable.parameter.url - settings - - foreground - #a6e3a1 - fontStyle - - - - - name - CSS vendored property names - scope - support.type.vendored.property-name - settings - - foreground - #89dceb - - - - name - Less/SCSS right-hand variables (@/$-prefixed) - scope - source.css meta.property-value variable, source.css meta.property-value variable.other.less, source.css meta.property-value variable.other.less punctuation.definition.variable.less, meta.definition.variable.scss - settings - - foreground - #eba0ac - - - - name - CSS variables (--prefixed) - scope - source.css meta.property-list variable, meta.property-list variable.other.less, meta.property-list variable.other.less punctuation.definition.variable.less - settings - - foreground - #89b4fa - - - - name - CSS Percentage values, styled the same as numbers - scope - keyword.other.unit.percentage.css - settings - - foreground - #fab387 - - - - name - CSS Attribute selectors, styled the same as strings - scope - source.css meta.attribute-selector - settings - - foreground - #a6e3a1 - - - - name - JSON/YAML keys, other left-hand assignments - scope - keyword.other.definition.ini, punctuation.support.type.property-name.json, support.type.property-name.json, punctuation.support.type.property-name.toml, support.type.property-name.toml, entity.name.tag.yaml, punctuation.support.type.property-name.yaml, support.type.property-name.yaml - settings - - foreground - #89b4fa - fontStyle - - - - - name - JSON/YAML constants - scope - constant.language.json, constant.language.yaml - settings - - foreground - #fab387 - - - - name - YAML anchors - scope - entity.name.type.anchor.yaml, variable.other.alias.yaml - settings - - foreground - #f9e2af - fontStyle - - - - - name - TOML tables / ini groups - scope - support.type.property-name.table, entity.name.section.group-title.ini - settings - - foreground - #f9e2af - - - - name - TOML dates - scope - constant.other.time.datetime.offset.toml - settings - - foreground - #f5c2e7 - - - - name - YAML anchor puctuation - scope - punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml - settings - - foreground - #f5c2e7 - - - - name - YAML triple dashes - scope - entity.other.document.begin.yaml - settings - - foreground - #f5c2e7 - - - - name - Markup Diff - scope - markup.changed.diff - settings - - foreground - #fab387 - - - - name - Diff - scope - meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff - settings - - foreground - #89b4fa - - - - name - Diff Inserted - scope - markup.inserted.diff - settings - - foreground - #a6e3a1 - - - - name - Diff Deleted - scope - markup.deleted.diff - settings - - foreground - #f38ba8 - - - - name - dotenv left-hand side assignments - scope - variable.other.env - settings - - foreground - #89b4fa - - - - name - dotenv reference to existing env variable - scope - string.quoted variable.other.env - settings - - foreground - #cdd6f4 - - - - name - GDScript functions - scope - support.function.builtin.gdscript - settings - - foreground - #89b4fa - - - - name - GDScript constants - scope - constant.language.gdscript - settings - - foreground - #fab387 - - - - name - Comment keywords - scope - comment meta.annotation.go - settings - - foreground - #eba0ac - - - - name - go:embed, go:build, etc. - scope - comment meta.annotation.parameters.go - settings - - foreground - #fab387 - - - - name - Go constants (nil, true, false) - scope - constant.language.go - settings - - foreground - #fab387 - - - - name - GraphQL variables - scope - variable.graphql - settings - - foreground - #cdd6f4 - - - - name - GraphQL aliases - scope - string.unquoted.alias.graphql - settings - - foreground - #f2cdcd - - - - name - GraphQL enum members - scope - constant.character.enum.graphql - settings - - foreground - #94e2d5 - - - - name - GraphQL field in types - scope - meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql - settings - - foreground - #f2cdcd - - - - name - HTML/XML DOCTYPE as keyword - scope - keyword.other.doctype, meta.tag.sgml.doctype punctuation.definition.tag, meta.tag.metadata.doctype entity.name.tag, meta.tag.metadata.doctype punctuation.definition.tag - settings - - foreground - #cba6f7 - - - - name - HTML/XML-like <tags/> - scope - entity.name.tag - settings - - foreground - #89b4fa - fontStyle - - - - - name - Special characters like &amp; - scope - text.html constant.character.entity, text.html constant.character.entity punctuation, constant.character.entity.xml, constant.character.entity.xml punctuation, constant.character.entity.js.jsx, constant.charactger.entity.js.jsx punctuation, constant.character.entity.tsx, constant.character.entity.tsx punctuation - settings - - foreground - #f38ba8 - - - - name - HTML/XML tag attribute values - scope - entity.other.attribute-name - settings - - foreground - #f9e2af - - - - name - Components - scope - support.class.component, support.class.component.jsx, support.class.component.tsx, support.class.component.vue - settings - - foreground - #f5c2e7 - fontStyle - - - - - name - Annotations - scope - punctuation.definition.annotation, storage.type.annotation - settings - - foreground - #fab387 - - - - name - Java enums - scope - constant.other.enum.java - settings - - foreground - #94e2d5 - - - - name - Java imports - scope - storage.modifier.import.java - settings - - foreground - #cdd6f4 - - - - name - Javadoc - scope - comment.block.javadoc.java keyword.other.documentation.javadoc.java - settings - - fontStyle - - - - - name - Exported Variable - scope - meta.export variable.other.readwrite.js - settings - - foreground - #eba0ac - - - - name - JS/TS constants & properties - scope - variable.other.constant.js, variable.other.constant.ts, variable.other.property.js, variable.other.property.ts - settings - - foreground - #cdd6f4 - - - - name - JSDoc; these are mainly params, so styled as such - scope - variable.other.jsdoc, comment.block.documentation variable.other - settings - - foreground - #eba0ac - fontStyle - - - - - name - JSDoc keywords - scope - storage.type.class.jsdoc - settings - - fontStyle - - - - - scope - support.type.object.console.js - settings - - foreground - #cdd6f4 - - - - name - Node constants as keywords (module, etc.) - scope - support.constant.node, support.type.object.module.js - settings - - foreground - #cba6f7 - - - - name - implements as keyword - scope - storage.modifier.implements - settings - - foreground - #cba6f7 - - - - name - Builtin types - scope - constant.language.null.js, constant.language.null.ts, constant.language.undefined.js, constant.language.undefined.ts, support.type.builtin.ts - settings - - foreground - #cba6f7 - - - - scope - variable.parameter.generic - settings - - foreground - #f9e2af - - - - name - Arrow functions - scope - keyword.declaration.function.arrow.js, storage.type.function.arrow.ts - settings - - foreground - #94e2d5 - - - - name - Decorator punctuations (decorators inherit from blue functions, instead of styleguide peach) - scope - punctuation.decorator.ts - settings - - foreground - #89b4fa - fontStyle - italic - - - - name - Extra JS/TS keywords - scope - keyword.operator.expression.in.js, keyword.operator.expression.in.ts, keyword.operator.expression.infer.ts, keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.is, keyword.operator.expression.keyof.ts, keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.typeof.ts - settings - - foreground - #cba6f7 - - - - name - Julia macros - scope - support.function.macro.julia - settings - - foreground - #94e2d5 - fontStyle - italic - - - - name - Julia language constants (true, false) - scope - constant.language.julia - settings - - foreground - #fab387 - - - - name - Julia other constants (these seem to be arguments inside arrays) - scope - constant.other.symbol.julia - settings - - foreground - #eba0ac - - - - name - LaTeX preamble - scope - text.tex keyword.control.preamble - settings - - foreground - #94e2d5 - - - - name - LaTeX be functions - scope - text.tex support.function.be - settings - - foreground - #89dceb - - - - name - LaTeX math - scope - constant.other.general.math.tex - settings - - foreground - #f2cdcd - - - - name - Lua docstring keywords - scope - comment.line.double-dash.documentation.lua storage.type.annotation.lua - settings - - foreground - #cba6f7 - fontStyle - - - - - name - Lua docstring variables - scope - comment.line.double-dash.documentation.lua entity.name.variable.lua, comment.line.double-dash.documentation.lua variable.lua - settings - - foreground - #cdd6f4 - - - - scope - heading.1.markdown punctuation.definition.heading.markdown, heading.1.markdown, markup.heading.atx.1.mdx, markup.heading.atx.1.mdx punctuation.definition.heading.mdx, markup.heading.setext.1.markdown, markup.heading.heading-0.asciidoc - settings - - foreground - #f38ba8 - - - - scope - heading.2.markdown punctuation.definition.heading.markdown, heading.2.markdown, markup.heading.atx.2.mdx, markup.heading.atx.2.mdx punctuation.definition.heading.mdx, markup.heading.setext.2.markdown, markup.heading.heading-1.asciidoc - settings - - foreground - #fab387 - - - - scope - heading.3.markdown punctuation.definition.heading.markdown, heading.3.markdown, markup.heading.atx.3.mdx, markup.heading.atx.3.mdx punctuation.definition.heading.mdx, markup.heading.heading-2.asciidoc - settings - - foreground - #f9e2af - - - - scope - heading.4.markdown punctuation.definition.heading.markdown, heading.4.markdown, markup.heading.atx.4.mdx, markup.heading.atx.4.mdx punctuation.definition.heading.mdx, markup.heading.heading-3.asciidoc - settings - - foreground - #a6e3a1 - - - - scope - heading.5.markdown punctuation.definition.heading.markdown, heading.5.markdown, markup.heading.atx.5.mdx, markup.heading.atx.5.mdx punctuation.definition.heading.mdx, markup.heading.heading-4.asciidoc - settings - - foreground - #89b4fa - - - - scope - heading.6.markdown punctuation.definition.heading.markdown, heading.6.markdown, markup.heading.atx.6.mdx, markup.heading.atx.6.mdx punctuation.definition.heading.mdx, markup.heading.heading-5.asciidoc - settings - - foreground - #cba6f7 - - - - scope - markup.bold - settings - - foreground - #f38ba8 - fontStyle - bold - - - - scope - markup.italic - settings - - foreground - #f38ba8 - fontStyle - italic - - - - scope - markup.strikethrough - settings - - foreground - #a6adc8 - fontStyle - strikethrough - - - - name - Markdown auto links - scope - punctuation.definition.link, markup.underline.link - settings - - foreground - #89b4fa - - - - name - Markdown links - scope - text.html.markdown punctuation.definition.link.title, string.other.link.title.markdown, markup.link, punctuation.definition.constant.markdown, constant.other.reference.link.markdown, markup.substitution.attribute-reference - settings - - foreground - #b4befe - - - - name - Markdown code spans - scope - punctuation.definition.raw.markdown, markup.inline.raw.string.markdown, markup.raw.block.markdown - settings - - foreground - #a6e3a1 - - - - name - Markdown triple backtick language identifier - scope - fenced_code.block.language - settings - - foreground - #89dceb - - - - name - Markdown triple backticks - scope - markup.fenced_code.block punctuation.definition, markup.raw support.asciidoc - settings - - foreground - #9399b2 - - - - name - Markdown quotes - scope - markup.quote, punctuation.definition.quote.begin - settings - - foreground - #f5c2e7 - - - - name - Markdown separators - scope - meta.separator.markdown - settings - - foreground - #94e2d5 - - - - name - Markdown list bullets - scope - punctuation.definition.list.begin.markdown, markup.list.bullet - settings - - foreground - #94e2d5 - - - - name - Nix attribute names - scope - entity.other.attribute-name.multipart.nix, entity.other.attribute-name.single.nix - settings - - foreground - #89b4fa - - - - name - Nix parameter names - scope - variable.parameter.name.nix - settings - - foreground - #cdd6f4 - fontStyle - - - - - name - Nix interpolated parameter names - scope - meta.embedded variable.parameter.name.nix - settings - - foreground - #b4befe - fontStyle - - - - - name - Nix paths - scope - string.unquoted.path.nix - settings - - foreground - #f5c2e7 - fontStyle - - - - - name - PHP Attributes - scope - support.attribute.builtin, meta.attribute.php - settings - - foreground - #f9e2af - - - - name - PHP Parameters (needed for the leading dollar sign) - scope - meta.function.parameters.php punctuation.definition.variable.php - settings - - foreground - #eba0ac - - - - name - PHP Constants (null, __FILE__, etc.) - scope - constant.language.php - settings - - foreground - #cba6f7 - - - - name - PHP functions - scope - text.html.php support.function - settings - - foreground - #89dceb - - - - name - PHPdoc keywords - scope - keyword.other.phpdoc.php - settings - - fontStyle - - - - - name - Python argument functions reset to text, otherwise they inherit blue from function-call - scope - support.variable.magic.python, meta.function-call.arguments.python - settings - - foreground - #cdd6f4 - - - - name - Python double underscore functions - scope - support.function.magic.python - settings - - foreground - #89dceb - fontStyle - italic - - - - name - Python `self` keyword - scope - variable.parameter.function.language.special.self.python, variable.language.special.self.python - settings - - foreground - #f38ba8 - fontStyle - italic - - - - name - python keyword flow/logical (for ... in) - scope - keyword.control.flow.python, keyword.operator.logical.python - settings - - foreground - #cba6f7 - - - - name - python storage type - scope - storage.type.function.python - settings - - foreground - #cba6f7 - - - - name - python function support - scope - support.token.decorator.python, meta.function.decorator.identifier.python - settings - - foreground - #89dceb - - - - name - python function calls - scope - meta.function-call.python - settings - - foreground - #89b4fa - - - - name - python function decorators - scope - entity.name.function.decorator.python, punctuation.definition.decorator.python - settings - - foreground - #fab387 - fontStyle - italic - - - - name - python placeholder reset to normal string - scope - constant.character.format.placeholder.other.python - settings - - foreground - #f5c2e7 - - - - name - Python exception & builtins such as exit() - scope - support.type.exception.python, support.function.builtin.python - settings - - foreground - #fab387 - - - - name - entity.name.type - scope - support.type.python - settings - - foreground - #fab387 - - - - name - python constants (True/False) - scope - constant.language.python - settings - - foreground - #cba6f7 - - - - name - Arguments accessed later in the function body - scope - meta.indexed-name.python, meta.item-access.python - settings - - foreground - #eba0ac - fontStyle - italic - - - - name - Python f-strings/binary/unicode storage types - scope - storage.type.string.python - settings - - foreground - #a6e3a1 - fontStyle - italic - - - - name - Python type hints - scope - meta.function.parameters.python - settings - - fontStyle - - - - - name - Regex string begin/end in JS/TS - scope - string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end - settings - - foreground - #f5c2e7 - - - - name - Regex anchors (^, $) - scope - keyword.control.anchor.regexp - settings - - foreground - #cba6f7 - - - - name - Regex regular string match - scope - string.regexp.ts - settings - - foreground - #cdd6f4 - - - - name - Regex group parenthesis & backreference (\1, \2, \3, ...) - scope - punctuation.definition.group.regexp, keyword.other.back-reference.regexp - settings - - foreground - #a6e3a1 - - - - name - Regex character class [] - scope - punctuation.definition.character-class.regexp - settings - - foreground - #f9e2af - - - - name - Regex character classes (\d, \w, \s) - scope - constant.other.character-class.regexp - settings - - foreground - #f5c2e7 - - - - name - Regex range - scope - constant.other.character-class.range.regexp - settings - - foreground - #f5e0dc - - - - name - Regex quantifier - scope - keyword.operator.quantifier.regexp - settings - - foreground - #94e2d5 - - - - name - Regex constant/numeric - scope - constant.character.numeric.regexp - settings - - foreground - #fab387 - - - - name - Regex lookaheads, negative lookaheads, lookbehinds, negative lookbehinds - scope - punctuation.definition.group.no-capture.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp - settings - - foreground - #89b4fa - - - - name - Rust attribute - scope - meta.annotation.rust, meta.annotation.rust punctuation, meta.attribute.rust, punctuation.definition.attribute.rust - settings - - foreground - #f9e2af - fontStyle - italic - - - - name - Rust attribute strings - scope - meta.attribute.rust string.quoted.double.rust, meta.attribute.rust string.quoted.single.char.rust - settings - - fontStyle - - - - - name - Rust keyword - scope - entity.name.function.macro.rules.rust, storage.type.module.rust, storage.modifier.rust, storage.type.struct.rust, storage.type.enum.rust, storage.type.trait.rust, storage.type.union.rust, storage.type.impl.rust, storage.type.rust, storage.type.function.rust, storage.type.type.rust - settings - - foreground - #cba6f7 - fontStyle - - - - - name - Rust u/i32, u/i64, etc. - scope - entity.name.type.numeric.rust - settings - - foreground - #cba6f7 - fontStyle - - - - - name - Rust generic - scope - meta.generic.rust - settings - - foreground - #fab387 - - - - name - Rust impl - scope - entity.name.impl.rust - settings - - foreground - #f9e2af - fontStyle - italic - - - - name - Rust module - scope - entity.name.module.rust - settings - - foreground - #fab387 - - - - name - Rust trait - scope - entity.name.trait.rust - settings - - foreground - #f9e2af - fontStyle - italic - - - - name - Rust struct - scope - storage.type.source.rust - settings - - foreground - #f9e2af - - - - name - Rust union - scope - entity.name.union.rust - settings - - foreground - #f9e2af - - - - name - Rust enum member - scope - meta.enum.rust storage.type.source.rust - settings - - foreground - #94e2d5 - - - - name - Rust macro - scope - support.macro.rust, meta.macro.rust support.function.rust, entity.name.function.macro.rust - settings - - foreground - #89b4fa - fontStyle - italic - - - - name - Rust lifetime - scope - storage.modifier.lifetime.rust, entity.name.type.lifetime - settings - - foreground - #89b4fa - fontStyle - italic - - - - name - Rust string formatting - scope - string.quoted.double.rust constant.other.placeholder.rust - settings - - foreground - #f5c2e7 - - - - name - Rust return type generic - scope - meta.function.return-type.rust meta.generic.rust storage.type.rust - settings - - foreground - #cdd6f4 - - - - name - Rust functions - scope - meta.function.call.rust - settings - - foreground - #89b4fa - - - - name - Rust angle brackets - scope - punctuation.brackets.angle.rust - settings - - foreground - #89dceb - - - - name - Rust constants - scope - constant.other.caps.rust - settings - - foreground - #fab387 - - - - name - Rust function parameters - scope - meta.function.definition.rust variable.other.rust - settings - - foreground - #eba0ac - - - - name - Rust closure variables - scope - meta.function.call.rust variable.other.rust - settings - - foreground - #cdd6f4 - - - - name - Rust self - scope - variable.language.self.rust - settings - - foreground - #f38ba8 - - - - name - Rust metavariable names - scope - variable.other.metavariable.name.rust, meta.macro.metavariable.rust keyword.operator.macro.dollar.rust - settings - - foreground - #f5c2e7 - - - - name - Shell shebang - scope - comment.line.shebang, comment.line.shebang punctuation.definition.comment, comment.line.shebang, punctuation.definition.comment.shebang.shell, meta.shebang.shell - settings - - foreground - #f5c2e7 - fontStyle - italic - - - - name - Shell shebang command - scope - comment.line.shebang constant.language - settings - - foreground - #94e2d5 - fontStyle - italic - - - - name - Shell interpolated command - scope - meta.function-call.arguments.shell punctuation.definition.variable.shell, meta.function-call.arguments.shell punctuation.section.interpolation, meta.function-call.arguments.shell punctuation.definition.variable.shell, meta.function-call.arguments.shell punctuation.section.interpolation - settings - - foreground - #f38ba8 - - - - name - Shell interpolated command variable - scope - meta.string meta.interpolation.parameter.shell variable.other.readwrite - settings - - foreground - #fab387 - fontStyle - italic - - - - scope - source.shell punctuation.section.interpolation, punctuation.definition.evaluation.backticks.shell - settings - - foreground - #94e2d5 - - - - name - Shell EOF - scope - entity.name.tag.heredoc.shell - settings - - foreground - #cba6f7 - - - - name - Shell quoted variable - scope - string.quoted.double.shell variable.other.normal.shell - settings - - foreground - #cdd6f4 - - - - scope - markup.heading.synopsis.man, markup.heading.title.man, markup.heading.other.man, markup.heading.env.man - settings - - foreground - #cba6f7 - - - - scope - markup.heading.commands.man - settings - - foreground - #89b4fa - - - - scope - markup.heading.env.man - settings - - foreground - #f5c2e7 - - - - scope - markup.heading.1.markdown - settings - - foreground - #f38ba8 - - - - scope - markup.heading.2.markdown - settings - - foreground - #fab387 - - - - scope - markup.heading.markdown - settings - - foreground - #f9e2af - - - - - \ No newline at end of file diff --git a/yazi/.config/yazi/flavors/.gitkeep b/yazi/.config/yazi/flavors/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/yazi/.config/yazi/keymap.toml b/yazi/.config/yazi/keymap.toml deleted file mode 100644 index 14c0bc1..0000000 --- a/yazi/.config/yazi/keymap.toml +++ /dev/null @@ -1,766 +0,0 @@ -# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. -# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. -"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" - -[mgr] - -keymap = [ - { on = [ - "", - ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, - { on = [ - "", - ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, - { on = [ - "q", - ], run = "quit", desc = "Exit the process" }, - { on = [ - "Q", - ], run = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" }, - { on = [ - "", - ], run = "close", desc = "Close the current tab, or quit if it is last tab" }, - { on = [ - "", - ], run = "suspend", desc = "Suspend the process" }, - - # Navigation - { on = [ - "k", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "j", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "K", - ], run = "arrow -5", desc = "Move cursor up 5 lines" }, - { on = [ - "J", - ], run = "arrow 5", desc = "Move cursor down 5 lines" }, - - { on = [ - "", - ], run = "arrow -5", desc = "Move cursor up 5 lines" }, - { on = [ - "", - ], run = "arrow 5", desc = "Move cursor down 5 lines" }, - - { on = [ - "", - ], run = "arrow -50%", desc = "Move cursor up half page" }, - { on = [ - "", - ], run = "arrow 50%", desc = "Move cursor down half page" }, - { on = [ - "", - ], run = "arrow -100%", desc = "Move cursor up one page" }, - { on = [ - "", - ], run = "arrow 100%", desc = "Move cursor down one page" }, - - { on = [ - "", - ], run = "arrow -50%", desc = "Move cursor up half page" }, - { on = [ - "", - ], run = "arrow 50%", desc = "Move cursor down half page" }, - { on = [ - "", - ], run = "arrow -100%", desc = "Move cursor up one page" }, - { on = [ - "", - ], run = "arrow 100%", desc = "Move cursor down one page" }, - - { on = [ - "h", - ], run = "leave", desc = "Go back to the parent directory" }, - { on = [ - "l", - ], run = "enter", desc = "Enter the child directory" }, - - { on = [ - "H", - ], run = "back", desc = "Go back to the previous directory" }, - { on = [ - "L", - ], run = "forward", desc = "Go forward to the next directory" }, - - { on = [ - "", - ], run = "seek -5", desc = "Seek up 5 units in the preview" }, - { on = [ - "", - ], run = "seek 5", desc = "Seek down 5 units in the preview" }, - { on = [ - "", - ], run = "seek -5", desc = "Seek up 5 units in the preview" }, - { on = [ - "", - ], run = "seek 5", desc = "Seek down 5 units in the preview" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - { on = [ - "", - ], run = "leave", desc = "Go back to the parent directory" }, - { on = [ - "", - ], run = "enter", desc = "Enter the child directory" }, - - { on = [ - "g", - "g", - ], run = "arrow -99999999", desc = "Move cursor to the top" }, - { on = [ - "G", - ], run = "arrow 99999999", desc = "Move cursor to the bottom" }, - - # Selection - { on = [ - "", - ], run = [ - "select --state=none", - "arrow 1", - ], desc = "Toggle the current selection state" }, - { on = [ - "v", - ], run = "visual_mode", desc = "Enter visual mode (selection mode)" }, - { on = [ - "V", - ], run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" }, - { on = [ - "", - ], run = "select_all --state=true", desc = "Select all files" }, - { on = [ - "", - ], run = "select_all --state=none", desc = "Inverse selection of all files" }, - - # Operation - { on = [ - "o", - ], run = "open", desc = "Open the selected files" }, - { on = [ - "O", - ], run = "open --interactive", desc = "Open the selected files interactively" }, - { on = [ - "", - ], run = "open", desc = "Open the selected files" }, - { on = [ - "", - ], run = "open --interactive", desc = "Open the selected files interactively" }, - { on = [ - "y", - ], run = "yank", desc = "Copy the selected files" }, - { on = [ - "Y", - ], run = "unyank", desc = "Cancel the yank status of files" }, - { on = [ - "x", - ], run = "yank --cut", desc = "Cut the selected files" }, - { on = [ - "X", - ], run = "unyank", desc = "Cancel the yank status of files" }, - { on = [ - "p", - ], run = "paste", desc = "Paste the files" }, - { on = [ - "P", - ], run = "paste --force", desc = "Paste the files (overwrite if the destination exists)" }, - { on = [ - "-", - ], run = "link", desc = "Symlink the absolute path of files" }, - { on = [ - "_", - ], run = "link --relative", desc = "Symlink the relative path of files" }, - { on = [ - "d", - ], run = "remove", desc = "Move the files to the trash" }, - { on = [ - "D", - ], run = "remove --permanently", desc = "Permanently delete the files" }, - { on = [ - "a", - ], run = "create", desc = "Create a file or directory (ends with / for directories)" }, - { on = [ - "r", - ], run = "rename --cursor=before_ext", desc = "Rename a file or directory" }, - { on = [ - ";", - ], run = "shell", desc = "Run a shell command" }, - { on = [ - ":", - ], run = "shell --block", desc = "Run a shell command (block the UI until the command finishes)" }, - { on = [ - ".", - ], run = "hidden toggle", desc = "Toggle the visibility of hidden files" }, - { on = [ - "s", - ], run = "search fd", desc = "Search files by name using fd" }, - { on = [ - "S", - ], run = "search rg", desc = "Search files by content using ripgrep" }, - { on = [ - "", - ], run = "search none", desc = "Cancel the ongoing search" }, - { on = [ - "z", - ], run = "plugin zoxide", desc = "Jump to a directory using zoxide" }, - { on = [ - "Z", - ], run = "plugin fzf", desc = "Jump to a directory, or reveal a file using fzf" }, - - # Linemode - { on = [ - "m", - "s", - ], run = "linemode size", desc = "Set linemode to size" }, - { on = [ - "m", - "p", - ], run = "linemode permissions", desc = "Set linemode to permissions" }, - { on = [ - "m", - "m", - ], run = "linemode mtime", desc = "Set linemode to mtime" }, - { on = [ - "m", - "n", - ], run = "linemode none", desc = "Set linemode to none" }, - - # Copy - { on = [ - "c", - "c", - ], run = "copy path", desc = "Copy the absolute path" }, - { on = [ - "c", - "d", - ], run = "copy dirname", desc = "Copy the path of the parent directory" }, - { on = [ - "c", - "f", - ], run = "copy filename", desc = "Copy the name of the file" }, - { on = [ - "c", - "n", - ], run = "copy name_without_ext", desc = "Copy the name of the file without the extension" }, - - # Filter - { on = [ - "f", - ], run = "filter --smart", desc = "Filter the files" }, - - # Find - { on = [ - "/", - ], run = "find --smart", desc = "Find next file" }, - { on = [ - "?", - ], run = "find --previous --smart", desc = "Find previous file" }, - { on = [ - "n", - ], run = "find_arrow", desc = "Go to next found file" }, - { on = [ - "N", - ], run = "find_arrow --previous", desc = "Go to previous found file" }, - - # Sorting - { on = [ - ",", - "m", - ], run = "sort modified --dir-first", desc = "Sort by modified time" }, - { on = [ - ",", - "M", - ], run = "sort modified --reverse --dir-first", desc = "Sort by modified time (reverse)" }, - { on = [ - ",", - "c", - ], run = "sort created --dir-first", desc = "Sort by created time" }, - { on = [ - ",", - "C", - ], run = "sort created --reverse --dir-first", desc = "Sort by created time (reverse)" }, - { on = [ - ",", - "e", - ], run = "sort extension --dir-first", desc = "Sort by extension" }, - { on = [ - ",", - "E", - ], run = "sort extension --reverse --dir-first", desc = "Sort by extension (reverse)" }, - { on = [ - ",", - "a", - ], run = "sort alphabetical --dir-first", desc = "Sort alphabetically" }, - { on = [ - ",", - "A", - ], run = "sort alphabetical --reverse --dir-first", desc = "Sort alphabetically (reverse)" }, - { on = [ - ",", - "n", - ], run = "sort natural --dir-first", desc = "Sort naturally" }, - { on = [ - ",", - "N", - ], run = "sort natural --reverse --dir-first", desc = "Sort naturally (reverse)" }, - { on = [ - ",", - "s", - ], run = "sort size --dir-first", desc = "Sort by size" }, - { on = [ - ",", - "S", - ], run = "sort size --reverse --dir-first", desc = "Sort by size (reverse)" }, - - # Tabs - { on = [ - "t", - ], run = "tab_create --current", desc = "Create a new tab using the current path" }, - - { on = [ - "1", - ], run = "tab_switch 0", desc = "Switch to the first tab" }, - { on = [ - "2", - ], run = "tab_switch 1", desc = "Switch to the second tab" }, - { on = [ - "3", - ], run = "tab_switch 2", desc = "Switch to the third tab" }, - { on = [ - "4", - ], run = "tab_switch 3", desc = "Switch to the fourth tab" }, - { on = [ - "5", - ], run = "tab_switch 4", desc = "Switch to the fifth tab" }, - { on = [ - "6", - ], run = "tab_switch 5", desc = "Switch to the sixth tab" }, - { on = [ - "7", - ], run = "tab_switch 6", desc = "Switch to the seventh tab" }, - { on = [ - "8", - ], run = "tab_switch 7", desc = "Switch to the eighth tab" }, - { on = [ - "9", - ], run = "tab_switch 8", desc = "Switch to the ninth tab" }, - - { on = [ - "[", - ], run = "tab_switch -1 --relative", desc = "Switch to the previous tab" }, - { on = [ - "]", - ], run = "tab_switch 1 --relative", desc = "Switch to the next tab" }, - - { on = [ - "{", - ], run = "tab_swap -1", desc = "Swap the current tab with the previous tab" }, - { on = [ - "}", - ], run = "tab_swap 1", desc = "Swap the current tab with the next tab" }, - - # Tasks - { on = [ - "w", - ], run = "tasks_show", desc = "Show the tasks manager" }, - - # Goto - { on = [ - "g", - "h", - ], run = "cd ~", desc = "Go to the home directory" }, - { on = [ - "g", - "c", - ], run = "cd ~/.config", desc = "Go to the config directory" }, - { on = [ - "g", - "d", - ], run = "cd ~/Downloads", desc = "Go to the downloads directory" }, - { on = [ - "g", - "t", - ], run = "cd /tmp", desc = "Go to the temporary directory" }, - { on = [ - "g", - "", - ], run = "cd --interactive", desc = "Go to a directory interactively" }, - - # Help - { on = [ - "~", - ], run = "help", desc = "Open help" }, -] - -prepend_keymap = [] - -[tasks] - -keymap = [ - { on = [ - "", - ], run = "close", desc = "Hide the task manager" }, - { on = [ - "", - ], run = "close", desc = "Hide the task manager" }, - { on = [ - "", - ], run = "close", desc = "Hide the task manager" }, - { on = [ - "w", - ], run = "close", desc = "Hide the task manager" }, - - { on = [ - "k", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "j", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "", - ], run = "inspect", desc = "Inspect the task" }, - { on = [ - "x", - ], run = "cancel", desc = "Cancel the task" }, - - { on = [ - "~", - ], run = "help", desc = "Open help" }, -] - -[select] - -keymap = [ - { on = [ - "", - ], run = "close", desc = "Cancel selection" }, - { on = [ - "", - ], run = "close", desc = "Cancel selection" }, - { on = [ - "", - ], run = "close", desc = "Cancel selection" }, - { on = [ - "", - ], run = "close --submit", desc = "Submit the selection" }, - - { on = [ - "k", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "j", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "K", - ], run = "arrow -5", desc = "Move cursor up 5 lines" }, - { on = [ - "J", - ], run = "arrow 5", desc = "Move cursor down 5 lines" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "", - ], run = "arrow -5", desc = "Move cursor up 5 lines" }, - { on = [ - "", - ], run = "arrow 5", desc = "Move cursor down 5 lines" }, - - { on = [ - "~", - ], run = "help", desc = "Open help" }, -] - -[input] - -keymap = [ - { on = [ - "", - ], run = "close", desc = "Cancel input" }, - { on = [ - "", - ], run = "close --submit", desc = "Submit the input" }, - { on = [ - "", - ], run = "escape", desc = "Go back the normal mode, or cancel input" }, - { on = [ - "", - ], run = "escape", desc = "Go back the normal mode, or cancel input" }, - - # Mode - { on = [ - "i", - ], run = "insert", desc = "Enter insert mode" }, - { on = [ - "a", - ], run = "insert --append", desc = "Enter append mode" }, - { on = [ - "I", - ], run = [ - "move -999", - "insert", - ], desc = "Move to the BOL, and enter insert mode" }, - { on = [ - "A", - ], run = [ - "move 999", - "insert --append", - ], desc = "Move to the EOL, and enter append mode" }, - { on = [ - "v", - ], run = "visual", desc = "Enter visual mode" }, - { on = [ - "V", - ], run = [ - "move -999", - "visual", - "move 999", - ], desc = "Enter visual mode and select all" }, - - # Character-wise movement - { on = [ - "h", - ], run = "move -1", desc = "Move back a character" }, - { on = [ - "l", - ], run = "move 1", desc = "Move forward a character" }, - { on = [ - "", - ], run = "move -1", desc = "Move back a character" }, - { on = [ - "", - ], run = "move 1", desc = "Move forward a character" }, - { on = [ - "", - ], run = "move -1", desc = "Move back a character" }, - { on = [ - "", - ], run = "move 1", desc = "Move forward a character" }, - - # Word-wise movement - { on = [ - "b", - ], run = "backward", desc = "Move back to the start of the current or previous word" }, - { on = [ - "w", - ], run = "forward", desc = "Move forward to the start of the next word" }, - { on = [ - "e", - ], run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, - { on = [ - "", - ], run = "backward", desc = "Move back to the start of the current or previous word" }, - { on = [ - "", - ], run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, - - # Line-wise movement - { on = [ - "0", - ], run = "move -999", desc = "Move to the BOL" }, - { on = [ - "$", - ], run = "move 999", desc = "Move to the EOL" }, - { on = [ - "", - ], run = "move -999", desc = "Move to the BOL" }, - { on = [ - "", - ], run = "move 999", desc = "Move to the EOL" }, - { on = [ - "", - ], run = "move -999", desc = "Move to the BOL" }, - { on = [ - "", - ], run = "move 999", desc = "Move to the EOL" }, - - # Delete - { on = [ - "", - ], run = "backspace", desc = "Delete the character before the cursor" }, - { on = [ - "", - ], run = "backspace --under", desc = "Delete the character under the cursor" }, - { on = [ - "", - ], run = "backspace", desc = "Delete the character before the cursor" }, - { on = [ - "", - ], run = "backspace --under", desc = "Delete the character under the cursor" }, - - # Kill - { on = [ - "", - ], run = "kill bol", desc = "Kill backwards to the BOL" }, - { on = [ - "", - ], run = "kill eol", desc = "Kill forwards to the EOL" }, - { on = [ - "", - ], run = "kill backward", desc = "Kill backwards to the start of the current word" }, - { on = [ - "", - ], run = "kill forward", desc = "Kill forwards to the end of the current word" }, - - # Cut/Yank/Paste - { on = [ - "d", - ], run = "delete --cut", desc = "Cut the selected characters" }, - { on = [ - "D", - ], run = [ - "delete --cut", - "move 999", - ], desc = "Cut until the EOL" }, - { on = [ - "c", - ], run = "delete --cut --insert", desc = "Cut the selected characters, and enter insert mode" }, - { on = [ - "C", - ], run = [ - "delete --cut --insert", - "move 999", - ], desc = "Cut until the EOL, and enter insert mode" }, - { on = [ - "x", - ], run = [ - "delete --cut", - "move 1 --in-operating", - ], desc = "Cut the current character" }, - { on = [ - "y", - ], run = "yank", desc = "Copy the selected characters" }, - { on = [ - "p", - ], run = "paste", desc = "Paste the copied characters after the cursor" }, - { on = [ - "P", - ], run = "paste --before", desc = "Paste the copied characters before the cursor" }, - - # Undo/Redo - { on = [ - "u", - ], run = "undo", desc = "Undo the last operation" }, - { on = [ - "", - ], run = "redo", desc = "Redo the last operation" }, - - # Help - { on = [ - "~", - ], run = "help", desc = "Open help" }, -] - -[completion] - -keymap = [ - { on = [ - "", - ], run = "close", desc = "Cancel completion" }, - { on = [ - "", - ], run = "close --submit", desc = "Submit the completion" }, - { on = [ - "", - ], run = [ - "close --submit", - "close_input --submit", - ], desc = "Submit the completion and input" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "~", - ], run = "help", desc = "Open help" }, -] - -[help] - -keymap = [ - { on = [ - "", - ], run = "escape", desc = "Clear the filter, or hide the help" }, - { on = [ - "", - ], run = "escape", desc = "Clear the filter, or hide the help" }, - { on = [ - "q", - ], run = "close", desc = "Exit the process" }, - { on = [ - "", - ], run = "close", desc = "Hide the help" }, - - # Navigation - { on = [ - "k", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "j", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "K", - ], run = "arrow -5", desc = "Move cursor up 5 lines" }, - { on = [ - "J", - ], run = "arrow 5", desc = "Move cursor down 5 lines" }, - - { on = [ - "", - ], run = "arrow -1", desc = "Move cursor up" }, - { on = [ - "", - ], run = "arrow 1", desc = "Move cursor down" }, - - { on = [ - "", - ], run = "arrow -5", desc = "Move cursor up 5 lines" }, - { on = [ - "", - ], run = "arrow 5", desc = "Move cursor down 5 lines" }, - - # Filtering - { on = [ - "/", - ], run = "filter", desc = "Apply a filter for the help items" }, -] diff --git a/yazi/.config/yazi/plugins/exifaudio.yazi/LICENSE b/yazi/.config/yazi/plugins/exifaudio.yazi/LICENSE deleted file mode 100644 index 78aae84..0000000 --- a/yazi/.config/yazi/plugins/exifaudio.yazi/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Sonico98 - -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/yazi/.config/yazi/plugins/exifaudio.yazi/README.md b/yazi/.config/yazi/plugins/exifaudio.yazi/README.md deleted file mode 100644 index 69a1597..0000000 --- a/yazi/.config/yazi/plugins/exifaudio.yazi/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# exifaudio.yazi - -Preview audio metadata and cover on [Yazi](https://github.com/sxyazi/yazi). - -![image](https://github.com/Sonico98/exifaudio.yazi/assets/61394886/53c1492c-9f05-4c80-a4e7-94fb36f35ca9) - -## Installation - -```sh -# Linux/macOS -git clone https://github.com/Sonico98/exifaudio.yazi.git ~/.config/yazi/plugins/exifaudio.yazi - -# Windows -git clone https://github.com/Sonico98/exifaudio.yazi.git %AppData%\yazi\config\plugins\exifaudio.yazi -``` - -## Usage - -Add the following to your `yazi.toml`: - -```toml -[plugin] -prepend_previewers = [ - { mime = "audio/*", run = "exifaudio"} -] -``` - -Make sure you have [exiftool](https://exiftool.org/) installed and in your `PATH`. - -## Thanks - -Thanks to [sxyazi](https://github.com/sxyazi) for the PDF previewer code, on which this previewer is based on. diff --git a/yazi/.config/yazi/plugins/exifaudio.yazi/init.lua b/yazi/.config/yazi/plugins/exifaudio.yazi/init.lua deleted file mode 100644 index 521ff33..0000000 --- a/yazi/.config/yazi/plugins/exifaudio.yazi/init.lua +++ /dev/null @@ -1,139 +0,0 @@ -local M = {} - -function M:peek() - local cache = ya.file_cache(self) - if not cache then - return - end - - local child = Command("exiftool") - :args({ - "-q", "-q", "-S", "-Title", "-SortName", - "-TitleSort", "-TitleSortOrder", "-Artist", - "-SortArtist", "-ArtistSort", "-PerformerSortOrder", - "-Album", "-SortAlbum", "-AlbumSort", "-AlbumSortOrder", - "-AlbumArtist", "-SortAlbumArtist", "-AlbumArtistSort", - "-AlbumArtistSortOrder", "-Genre", "-TrackNumber", - "-Year", "-Duration", "-SampleRate", - "-AudioSampleRate", "-AudioBitrate", "-AvgBitrate", - "-Channels", "-AudioChannels", tostring(self.file.url), - }) - :stdout(Command.PIPED) - :stderr(Command.NULL) - :spawn() - - local limit = self.area.h - local i, metadata = 0, {} - repeat - local next, event = child:read_line() - if event == 1 then - return self:fallback_to_builtin() - elseif event ~= 0 then - break - end - - i = i + 1 - if i > self.skip then - local m_title, m_tag = prettify(next) - local ti = ui.Span(m_title):bold() - local ta = ui.Span(m_tag) - table.insert(metadata, ui.Line{ti, ta}) - table.insert(metadata, ui.Line{}) - end - until i >= self.skip + limit - - local p = ui.Paragraph(self.area, metadata):wrap(ui.Paragraph.WRAP) - ya.preview_widgets(self, { p }) - - local cover_width = self.area.w / 2 - 5 - local cover_height = (self.area.h / 4) + 3 - - local bottom_right = ui.Rect { - x = self.area.right - cover_width, - y = self.area.bottom - cover_height, - w = cover_width, - h = cover_height, - } - - if self:preload() == 1 then - ya.image_show(cache, bottom_right) - end -end - -function prettify(metadata) - local substitutions = { - Sortname = "Sort Title:", - SortName = "Sort Title:", - TitleSort = "Sort Title:", - TitleSortOrder = "Sort Title:", - ArtistSort = "Sort Artist:", - SortArtist = "Sort Artist:", - Artist = "Artist:", - ARTIST = "Artist:", - PerformerSortOrder = "Sort Artist:", - SortAlbumArtist = "Sort Album Artist:", - AlbumArtistSortOrder = "Sort Album Artist:", - AlbumArtistSort = "Sort Album Artist:", - AlbumSortOrder = "Sort Album:", - AlbumSort = "Sort Album:", - SortAlbum = "Sort Album:", - Album = "Album:", - ALBUM = "Album:", - AlbumArtist = "Album Artist:", - Genre = "Genre:", - GENRE = "Genre:", - TrackNumber = "Track Number:", - Year = "Year:", - Duration = "Duration:", - AudioBitrate = "Bitrate:", - AvgBitrate = "Average Bitrate:", - AudioSampleRate = "Sample Rate:", - SampleRate = "Sample Rate:", - AudioChannels = "Channels:" - } - - for k, v in pairs(substitutions) do - metadata = metadata:gsub(tostring(k)..":", v, 1) - end - - -- Separate the tag title from the tag data - local t={} - for str in string.gmatch(metadata , "([^"..":".."]+)") do - table.insert(t, str) - end - - -- Add back semicolon to title, rejoin tag data if it happened to contain a semicolon - return t[1]..":", table.concat(t, ":", 2) - -end - -function M:seek(units) - local h = cx.active.current.hovered - if h and h.url == self.file.url then - ya.manager_emit("peek", { - tostring(math.max(0, cx.active.preview.skip + units)), - only_if = tostring(self.file.url), - }) - end -end - -function M:preload() - local cache = ya.file_cache(self) - if not cache or fs.cha(cache) then - return 1 - end - - local output = Command("exiftool") - :args({ "-b", "-CoverArt", "-Picture", tostring(self.file.url) }) - :stdout(Command.PIPED) - :stderr(Command.PIPED) - :output() - - if not output then - return 0 - end - - return fs.write(cache, output.stdout) and 1 or 2 -end - -return M diff --git a/yazi/.config/yazi/plugins/hexyl.yazi/LICENSE b/yazi/.config/yazi/plugins/hexyl.yazi/LICENSE deleted file mode 100644 index de882e5..0000000 --- a/yazi/.config/yazi/plugins/hexyl.yazi/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -Copyright ยฉ 2024 Reledia - -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/yazi/.config/yazi/plugins/hexyl.yazi/README.md b/yazi/.config/yazi/plugins/hexyl.yazi/README.md deleted file mode 100644 index 7848a0e..0000000 --- a/yazi/.config/yazi/plugins/hexyl.yazi/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# hexyl.yazi - -Preview any file on [Yazi](https://github.com/sxyazi/yazi) using [hexyl](https://github.com/sharkdp/hexyl). To install, clone the repo inside your `~/.config/yazi/plugins/`: - -```bash -git clone https://github.com/Reledia/hexyl.yazi.git -``` - -then include it in your `yazi.toml` to use: - -```toml -[plugin] -append_previewers = [ - { name = "*", run = "hexyl" }, -] -``` - -Make sure you have [hexyl](https://github.com/sharkdp/hexyl) installed, and can be found in `PATH`. - -## Preview - -![preview.png](https://raw.githubusercontent.com/Reledia/hexyl.yazi/main/image.png) diff --git a/yazi/.config/yazi/plugins/hexyl.yazi/image.png b/yazi/.config/yazi/plugins/hexyl.yazi/image.png deleted file mode 100644 index f41bd00..0000000 Binary files a/yazi/.config/yazi/plugins/hexyl.yazi/image.png and /dev/null differ diff --git a/yazi/.config/yazi/plugins/hexyl.yazi/init.lua b/yazi/.config/yazi/plugins/hexyl.yazi/init.lua deleted file mode 100644 index 63d044f..0000000 --- a/yazi/.config/yazi/plugins/hexyl.yazi/init.lua +++ /dev/null @@ -1,67 +0,0 @@ -local M = {} - -function M:peek() - local child - local l = self.file.cha.length - if l == 0 then - child = Command("hexyl") - :args({ - tostring(self.file.url), - }) - :stdout(Command.PIPED) - :stderr(Command.PIPED) - :spawn() - else - child = Command("hexyl") - :args({ - "--border", - "none", - "--terminal-width", - tostring(self.area.w), - tostring(self.file.url), - }) - :stdout(Command.PIPED) - :stderr(Command.PIPED) - :spawn() - end - - local limit = self.area.h - local i, lines = 0, "" - repeat - local next, event = child:read_line() - if event == 1 then - ya.err(tostring(event)) - elseif event ~= 0 then - break - end - - i = i + 1 - if i > self.skip then - lines = lines .. next - end - until i >= self.skip + limit - - child:start_kill() - if self.skip > 0 and i < self.skip + limit then - ya.manager_emit( - "peek", - { tostring(math.max(0, i - limit)), only_if = tostring(self.file.url), upper_bound = "" } - ) - else - lines = lines:gsub("\t", string.rep(" ", PREVIEW.tab_size)) - ya.preview_widgets(self, { ui.Paragraph.parse(self.area, lines) }) - end -end - -function M:seek(units) - local h = cx.active.current.hovered - if h and h.url == self.file.url then - local step = math.floor(units * self.area.h / 10) - ya.manager_emit("peek", { - tostring(math.max(0, cx.active.preview.skip + step)), - only_if = tostring(self.file.url), - }) - end -end - -return M diff --git a/yazi/.config/yazi/plugins/miller.yazi/LICENSE b/yazi/.config/yazi/plugins/miller.yazi/LICENSE deleted file mode 100644 index de882e5..0000000 --- a/yazi/.config/yazi/plugins/miller.yazi/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -Copyright ยฉ 2024 Reledia - -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/yazi/.config/yazi/plugins/miller.yazi/README.md b/yazi/.config/yazi/plugins/miller.yazi/README.md deleted file mode 100644 index 172674e..0000000 --- a/yazi/.config/yazi/plugins/miller.yazi/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# miller.yazi - -[Miller](https://github.com/johnkerl/miller) now in [yazi](https://github.com/sxyazi/yazi). To install, clone the repo inside `~/.config/yazi/plugins/`: - -```toml -[plugin] -prepend_previewers = [ - { mime = "text/csv", run = "miller"}, -] -``` - -## Preview - -![preview](https://github.com/Reledia/miller.yazi/blob/main/preview.png?raw=true) - -## Color - -To change colors of keys and values, edit the `init.lua` file after the `--key-color` and `--value-color` flags. To view a list of possible colors, use `mlr --list-color-names`. Make sure to have miller installed and inside your PATH. - -## Other types of file - -To adapt this plugin to the other format supported from miller (like json): -- copy the plugin folder -- change the name of the copied folder into miller_(fmt) -- change the `--icsv` flag inside `init.lua` to `--i(fmt)` -- add the correct mime/name rule into `prepend_previewers` and the exec as `miller_(fmt)` diff --git a/yazi/.config/yazi/plugins/miller.yazi/init.lua b/yazi/.config/yazi/plugins/miller.yazi/init.lua deleted file mode 100644 index 9a4a752..0000000 --- a/yazi/.config/yazi/plugins/miller.yazi/init.lua +++ /dev/null @@ -1,59 +0,0 @@ -local M = {} - -function M:peek() - local child = Command("mlr") - :args({ - "--icsv", - "--opprint", - "-C", - "--key-color", - "darkcyan", - "--value-color", - "grey70", - "cat", - tostring(self.file.url), - }) - :stdout(Command.PIPED) - :stderr(Command.PIPED) - :spawn() - - local limit = self.area.h - local i, lines = 0, "" - repeat - local next, event = child:read_line() - if event == 1 then - ya.err(tostring(event)) - elseif event ~= 0 then - break - end - - i = i + 1 - if i > self.skip then - lines = lines .. next - end - until i >= self.skip + limit - - child:start_kill() - if self.skip > 0 and i < self.skip + limit then - ya.manager_emit( - "peek", - { tostring(math.max(0, i - limit)), only_if = tostring(self.file.url), upper_bound = "" } - ) - else - lines = lines:gsub("\t", string.rep(" ", PREVIEW.tab_size)) - ya.preview_widgets(self, { ui.Paragraph.parse(self.area, lines) }) - end -end - -function M:seek(units) - local h = cx.active.current.hovered - if h and h.url == self.file.url then - local step = math.floor(units * self.area.h / 10) - ya.manager_emit("peek", { - tostring(math.max(0, cx.active.preview.skip + step)), - only_if = tostring(self.file.url), - }) - end -end - -return M diff --git a/yazi/.config/yazi/plugins/miller.yazi/preview.png b/yazi/.config/yazi/plugins/miller.yazi/preview.png deleted file mode 100644 index 749ab25..0000000 Binary files a/yazi/.config/yazi/plugins/miller.yazi/preview.png and /dev/null differ diff --git a/yazi/.config/yazi/theme.toml b/yazi/.config/yazi/theme.toml deleted file mode 100644 index c54fc6c..0000000 --- a/yazi/.config/yazi/theme.toml +++ /dev/null @@ -1,756 +0,0 @@ -[mgr] -cwd = { fg = "#94e2d5" } - -hovered = { fg = "#1e1e2e", bg = "#89b4fa" } -preview_hovered = { fg = "#1e1e2e", bg = "#cdd6f4" } - -find_keyword = { fg = "#f9e2af", italic = true } -find_position = { fg = "#f5c2e7", bg = "reset", italic = true } - -marker_copied = { fg = "#a6e3a1", bg = "#a6e3a1" } -marker_cut = { fg = "#f38ba8", bg = "#f38ba8" } -marker_marked = { fg = "#94e2d5", bg = "#94e2d5" } -marker_selected = { fg = "#89b4fa", bg = "#89b4fa" } - -count_copied = { fg = "#1e1e2e", bg = "#a6e3a1" } -count_cut = { fg = "#1e1e2e", bg = "#f38ba8" } -count_selected = { fg = "#1e1e2e", bg = "#89b4fa" } - -border_symbol = "โ”‚" -border_style = { fg = "#7f849c" } - -syntect_theme = "~/.config/yazi/Catppuccin-mocha.tmTheme" - -[tabs] -active = { fg = "#1e1e2e", bg = "#cdd6f4", bold = true } -inactive = { fg = "#cdd6f4", bg = "#45475a" } - -[mode] -normal_main = { fg = "#1e1e2e", bg = "#89b4fa", bold = true } -normal_alt = { fg = "#89b4fa", bg = "#313244"} - -select_main = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true } -select_alt = { fg = "#a6e3a1", bg = "#313244"} - -unset_main = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true } -unset_alt = { fg = "#f2cdcd", bg = "#313244"} - -[status] -sep_left = { open = "๎‚ถ", close = "๎‚ด" } -sep_right = { open = "๎‚ถ", close = "๎‚ด" } - -progress_label = { fg = "#ffffff", bold = true } -progress_normal = { fg = "#89b4fa", bg = "#45475a" } -progress_error = { fg = "#f38ba8", bg = "#45475a" } - -perm_type = { fg = "#89b4fa" } -perm_read = { fg = "#f9e2af" } -perm_write = { fg = "#f38ba8" } -perm_exec = { fg = "#a6e3a1" } -perm_sep = { fg = "#7f849c" } - -[input] -border = { fg = "#89b4fa" } -title = {} -value = {} -selected = { reversed = true } - -[pick] -border = { fg = "#89b4fa" } -active = { fg = "#f5c2e7" } -inactive = {} - -[confirm] -border = { fg = "#89b4fa" } -title = { fg = "#89b4fa" } -content = {} -list = {} -btn_yes = { reversed = true } -btn_no = {} - -[cmp] -border = { fg = "#89b4fa" } - -[tasks] -border = { fg = "#89b4fa" } -title = {} -hovered = { underline = true } - -[which] -mask = { bg = "#313244" } -cand = { fg = "#94e2d5" } -rest = { fg = "#9399b2" } -desc = { fg = "#f5c2e7" } -separator = " ๎ชœ " -separator_style = { fg = "#585b70" } - -[help] -on = { fg = "#94e2d5" } -run = { fg = "#f5c2e7" } -desc = { fg = "#9399b2" } -hovered = { bg = "#585b70", bold = true } -footer = { fg = "#cdd6f4", bg = "#45475a" } - -[notify] -title_info = { fg = "#94e2d5" } -title_warn = { fg = "#f9e2af" } -title_error = { fg = "#f38ba8" } - -[filetype] -rules = [ - # Media - { mime = "image/*", fg = "#94e2d5" }, - { mime = "{audio,video}/*", fg = "#f9e2af" }, - - # Archives - { mime = "application/*zip", fg = "#f5c2e7" }, - { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#f5c2e7" }, - - # Documents - { mime = "application/{pdf,doc,rtf}", fg = "#a6e3a1" }, - - # Fallback - { name = "*", fg = "#cdd6f4" }, - { name = "*/", fg = "#89b4fa" } -] - -[spot] -border = { fg = "#89b4fa" } -title = { fg = "#89b4fa" } -tbl_cell = { fg = "#89b4fa", reversed = true } -tbl_col = { bold = true } - -[icon] -files = [ - { name = "kritadisplayrc", text = "๏Œฝ", fg = "#cba6f7" }, - { name = ".gtkrc-2.0", text = "๏ข", fg = "#f5e0dc" }, - { name = "bspwmrc", text = "๏•", fg = "#313244" }, - { name = "webpack", text = "๓ฐœซ", fg = "#74c7ec" }, - { name = "tsconfig.json", text = "๎š", fg = "#74c7ec" }, - { name = ".vimrc", text = "๎˜ซ", fg = "#a6e3a1" }, - { name = "gemfile$", text = "๎ž‘", fg = "#313244" }, - { name = "xmobarrc", text = "๏ž", fg = "#f38ba8" }, - { name = "avif", text = "๎˜", fg = "#7f849c" }, - { name = "fp-info-cache", text = "๏Œ", fg = "#f5e0dc" }, - { name = ".zshrc", text = "๎˜•", fg = "#a6e3a1" }, - { name = "robots.txt", text = "๓ฐšฉ", fg = "#6c7086" }, - { name = "dockerfile", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = ".git-blame-ignore-revs", text = "๎œ‚", fg = "#fab387" }, - { name = ".nvmrc", text = "๎œ˜", fg = "#a6e3a1" }, - { name = "hyprpaper.conf", text = "๏™", fg = "#74c7ec" }, - { name = ".prettierignore", text = "๎šด", fg = "#89b4fa" }, - { name = "rakefile", text = "๎ž‘", fg = "#313244" }, - { name = "code_of_conduct", text = "๏’ฎ", fg = "#f38ba8" }, - { name = "cmakelists.txt", text = "๎ž”", fg = "#cdd6f4" }, - { name = ".env", text = "๏‘ข", fg = "#f9e2af" }, - { name = "copying.lesser", text = "๎˜Š", fg = "#f9e2af" }, - { name = "readme", text = "๓ฐ‚บ", fg = "#f5e0dc" }, - { name = "settings.gradle", text = "๎™ ", fg = "#585b70" }, - { name = "gruntfile.coffee", text = "๎˜‘", fg = "#fab387" }, - { name = ".eslintignore", text = "๎™•", fg = "#585b70" }, - { name = "kalgebrarc", text = "๏ณ", fg = "#89b4fa" }, - { name = "kdenliverc", text = "๏Œผ", fg = "#89b4fa" }, - { name = ".prettierrc.cjs", text = "๎šด", fg = "#89b4fa" }, - { name = "cantorrc", text = "๏ณ", fg = "#89b4fa" }, - { name = "rmd", text = "๎˜‰", fg = "#74c7ec" }, - { name = "vagrantfile$", text = "๏Šธ", fg = "#6c7086" }, - { name = ".Xauthority", text = "๏ฉ", fg = "#fab387" }, - { name = "prettier.config.ts", text = "๎šด", fg = "#89b4fa" }, - { name = "node_modules", text = "๎œ˜", fg = "#f38ba8" }, - { name = ".prettierrc.toml", text = "๎šด", fg = "#89b4fa" }, - { name = "build.zig.zon", text = "๎šฉ", fg = "#fab387" }, - { name = ".ds_store", text = "๎˜•", fg = "#45475a" }, - { name = "PKGBUILD", text = "๏Œƒ", fg = "#89b4fa" }, - { name = ".prettierrc", text = "๎šด", fg = "#89b4fa" }, - { name = ".bash_profile", text = "๎˜•", fg = "#a6e3a1" }, - { name = ".npmignore", text = "๎œž", fg = "#f38ba8" }, - { name = ".mailmap", text = "๓ฐŠข", fg = "#fab387" }, - { name = ".codespellrc", text = "๓ฐ“†", fg = "#a6e3a1" }, - { name = "svelte.config.js", text = "๎š—", fg = "#fab387" }, - { name = "eslint.config.ts", text = "๎™•", fg = "#585b70" }, - { name = "config", text = "๎˜•", fg = "#7f849c" }, - { name = ".gitlab-ci.yml", text = "๏Š–", fg = "#fab387" }, - { name = ".gitconfig", text = "๎˜•", fg = "#fab387" }, - { name = "_gvimrc", text = "๎˜ซ", fg = "#a6e3a1" }, - { name = ".xinitrc", text = "๏ฉ", fg = "#fab387" }, - { name = "checkhealth", text = "๓ฐ“™", fg = "#89b4fa" }, - { name = "sxhkdrc", text = "๏•", fg = "#313244" }, - { name = ".bashrc", text = "๎˜•", fg = "#a6e3a1" }, - { name = "tailwind.config.mjs", text = "๓ฑฟ", fg = "#74c7ec" }, - { name = "ext_typoscript_setup.txt", text = "๎ฒ", fg = "#fab387" }, - { name = "commitlint.config.ts", text = "๓ฐœ˜", fg = "#94e2d5" }, - { name = "py.typed", text = "๎˜†", fg = "#f9e2af" }, - { name = ".nanorc", text = "๎ ธ", fg = "#313244" }, - { name = "commit_editmsg", text = "๎œ‚", fg = "#fab387" }, - { name = ".luaurc", text = "๎˜•", fg = "#89b4fa" }, - { name = "fp-lib-table", text = "๏Œ", fg = "#f5e0dc" }, - { name = ".editorconfig", text = "๎™’", fg = "#f5e0dc" }, - { name = "justfile", text = "๏‚ญ", fg = "#7f849c" }, - { name = "kdeglobals", text = "๏ณ", fg = "#89b4fa" }, - { name = "license.md", text = "๎˜Š", fg = "#f9e2af" }, - { name = ".clang-format", text = "๎˜•", fg = "#7f849c" }, - { name = "docker-compose.yaml", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = "copying", text = "๎˜Š", fg = "#f9e2af" }, - { name = "go.mod", text = "๎˜ง", fg = "#74c7ec" }, - { name = "lxqt.conf", text = "๏ค", fg = "#89b4fa" }, - { name = "brewfile", text = "๎ž‘", fg = "#313244" }, - { name = "gulpfile.coffee", text = "๎˜", fg = "#f38ba8" }, - { name = ".dockerignore", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = ".settings.json", text = "๎œŒ", fg = "#6c7086" }, - { name = "tailwind.config.js", text = "๓ฑฟ", fg = "#74c7ec" }, - { name = ".clang-tidy", text = "๎˜•", fg = "#7f849c" }, - { name = ".gvimrc", text = "๎˜ซ", fg = "#a6e3a1" }, - { name = "nuxt.config.cjs", text = "๓ฑ„†", fg = "#a6e3a1" }, - { name = "xsettingsd.conf", text = "๏ฉ", fg = "#fab387" }, - { name = "nuxt.config.js", text = "๓ฑ„†", fg = "#a6e3a1" }, - { name = "eslint.config.cjs", text = "๎™•", fg = "#585b70" }, - { name = "sym-lib-table", text = "๏Œ", fg = "#f5e0dc" }, - { name = ".condarc", text = "๎œ•", fg = "#a6e3a1" }, - { name = "xmonad.hs", text = "๏ž", fg = "#f38ba8" }, - { name = "tmux.conf", text = "๎ฏˆ", fg = "#a6e3a1" }, - { name = "xmobarrc.hs", text = "๏ž", fg = "#f38ba8" }, - { name = ".prettierrc.yaml", text = "๎šด", fg = "#89b4fa" }, - { name = ".pre-commit-config.yaml", text = "๓ฐ›ข", fg = "#fab387" }, - { name = "i3blocks.conf", text = "๏š", fg = "#f5e0dc" }, - { name = "xorg.conf", text = "๏ฉ", fg = "#fab387" }, - { name = ".zshenv", text = "๎˜•", fg = "#a6e3a1" }, - { name = "vlcrc", text = "๓ฐ•ผ", fg = "#fab387" }, - { name = "license", text = "๎˜Š", fg = "#f9e2af" }, - { name = "unlicense", text = "๎˜Š", fg = "#f9e2af" }, - { name = "tmux.conf.local", text = "๎ฏˆ", fg = "#a6e3a1" }, - { name = ".SRCINFO", text = "๓ฐฃ‡", fg = "#89b4fa" }, - { name = "tailwind.config.ts", text = "๓ฑฟ", fg = "#74c7ec" }, - { name = "security.md", text = "๓ฐ’ƒ", fg = "#bac2de" }, - { name = "security", text = "๓ฐ’ƒ", fg = "#bac2de" }, - { name = ".eslintrc", text = "๎™•", fg = "#585b70" }, - { name = "gradle.properties", text = "๎™ ", fg = "#585b70" }, - { name = "code_of_conduct.md", text = "๏’ฎ", fg = "#f38ba8" }, - { name = "PrusaSlicerGcodeViewer.ini", text = "๏‘", fg = "#fab387" }, - { name = "PrusaSlicer.ini", text = "๏‘", fg = "#fab387" }, - { name = "procfile", text = "๎˜‡", fg = "#7f849c" }, - { name = "mpv.conf", text = "๏ฎ", fg = "#1e1e2e" }, - { name = ".prettierrc.json5", text = "๎šด", fg = "#89b4fa" }, - { name = "i3status.conf", text = "๏š", fg = "#f5e0dc" }, - { name = "prettier.config.mjs", text = "๎šด", fg = "#89b4fa" }, - { name = ".pylintrc", text = "๎˜•", fg = "#7f849c" }, - { name = "prettier.config.cjs", text = "๎šด", fg = "#89b4fa" }, - { name = ".luacheckrc", text = "๎˜•", fg = "#89b4fa" }, - { name = "containerfile", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = "eslint.config.mjs", text = "๎™•", fg = "#585b70" }, - { name = "gruntfile.js", text = "๎˜‘", fg = "#fab387" }, - { name = "bun.lockb", text = "๎ฏ", fg = "#f5e0dc" }, - { name = ".gitattributes", text = "๎œ‚", fg = "#fab387" }, - { name = "gruntfile.ts", text = "๎˜‘", fg = "#fab387" }, - { name = "pom.xml", text = "๎™ด", fg = "#313244" }, - { name = "favicon.ico", text = "๎˜ฃ", fg = "#f9e2af" }, - { name = "package-lock.json", text = "๎œž", fg = "#313244" }, - { name = "build", text = "๎˜บ", fg = "#a6e3a1" }, - { name = "package.json", text = "๎œž", fg = "#f38ba8" }, - { name = "nuxt.config.ts", text = "๓ฑ„†", fg = "#a6e3a1" }, - { name = "nuxt.config.mjs", text = "๓ฑ„†", fg = "#a6e3a1" }, - { name = "mix.lock", text = "๎˜ญ", fg = "#7f849c" }, - { name = "makefile", text = "๎น", fg = "#7f849c" }, - { name = "gulpfile.js", text = "๎˜", fg = "#f38ba8" }, - { name = "lxde-rc.xml", text = "๏ฃ", fg = "#9399b2" }, - { name = "kritarc", text = "๏Œฝ", fg = "#cba6f7" }, - { name = "gtkrc", text = "๏ข", fg = "#f5e0dc" }, - { name = "ionic.config.json", text = "๎žฉ", fg = "#89b4fa" }, - { name = ".prettierrc.mjs", text = "๎šด", fg = "#89b4fa" }, - { name = ".prettierrc.yml", text = "๎šด", fg = "#89b4fa" }, - { name = ".npmrc", text = "๎œž", fg = "#f38ba8" }, - { name = "weston.ini", text = "๏ง", fg = "#f9e2af" }, - { name = "gulpfile.babel.js", text = "๎˜", fg = "#f38ba8" }, - { name = "i18n.config.ts", text = "๓ฐ—Š", fg = "#7f849c" }, - { name = "commitlint.config.js", text = "๓ฐœ˜", fg = "#94e2d5" }, - { name = ".gitmodules", text = "๎œ‚", fg = "#fab387" }, - { name = "gradle-wrapper.properties", text = "๎™ ", fg = "#585b70" }, - { name = "hypridle.conf", text = "๏™", fg = "#74c7ec" }, - { name = "vercel.json", text = "โ–ฒ", fg = "#f5e0dc" }, - { name = "hyprlock.conf", text = "๏™", fg = "#74c7ec" }, - { name = "go.sum", text = "๎˜ง", fg = "#74c7ec" }, - { name = "kdenlive-layoutsrc", text = "๏Œผ", fg = "#89b4fa" }, - { name = "gruntfile.babel.js", text = "๎˜‘", fg = "#fab387" }, - { name = "compose.yml", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = "i18n.config.js", text = "๓ฐ—Š", fg = "#7f849c" }, - { name = "readme.md", text = "๓ฐ‚บ", fg = "#f5e0dc" }, - { name = "gradlew", text = "๎™ ", fg = "#585b70" }, - { name = "go.work", text = "๎˜ง", fg = "#74c7ec" }, - { name = "gulpfile.ts", text = "๎˜", fg = "#f38ba8" }, - { name = "gnumakefile", text = "๎น", fg = "#7f849c" }, - { name = "FreeCAD.conf", text = "๏Œถ", fg = "#f38ba8" }, - { name = "compose.yaml", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = "eslint.config.js", text = "๎™•", fg = "#585b70" }, - { name = "hyprland.conf", text = "๏™", fg = "#74c7ec" }, - { name = "docker-compose.yml", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = "groovy", text = "๎ต", fg = "#585b70" }, - { name = "QtProject.conf", text = "๏ต", fg = "#a6e3a1" }, - { name = "platformio.ini", text = "๎š‚", fg = "#fab387" }, - { name = "build.gradle", text = "๎™ ", fg = "#585b70" }, - { name = ".nuxtrc", text = "๓ฑ„†", fg = "#a6e3a1" }, - { name = "_vimrc", text = "๎˜ซ", fg = "#a6e3a1" }, - { name = ".zprofile", text = "๎˜•", fg = "#a6e3a1" }, - { name = ".xsession", text = "๏ฉ", fg = "#fab387" }, - { name = "prettier.config.js", text = "๎šด", fg = "#89b4fa" }, - { name = ".babelrc", text = "๎˜น", fg = "#f9e2af" }, - { name = "workspace", text = "๎˜บ", fg = "#a6e3a1" }, - { name = ".prettierrc.json", text = "๎šด", fg = "#89b4fa" }, - { name = ".prettierrc.js", text = "๎šด", fg = "#89b4fa" }, - { name = ".Xresources", text = "๏ฉ", fg = "#fab387" }, - { name = ".gitignore", text = "๎œ‚", fg = "#fab387" }, - { name = ".justfile", text = "๏‚ญ", fg = "#7f849c" }, -] -exts = [ - { name = "otf", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "import", text = "๏ƒ†", fg = "#f5e0dc" }, - { name = "krz", text = "๏Œฝ", fg = "#cba6f7" }, - { name = "adb", text = "๎šต", fg = "#94e2d5" }, - { name = "ttf", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "webpack", text = "๓ฐœซ", fg = "#74c7ec" }, - { name = "dart", text = "๎ž˜", fg = "#585b70" }, - { name = "vsh", text = "๎šฌ", fg = "#7f849c" }, - { name = "doc", text = "๓ฐˆฌ", fg = "#585b70" }, - { name = "zsh", text = "๎ž•", fg = "#a6e3a1" }, - { name = "ex", text = "๎˜ญ", fg = "#7f849c" }, - { name = "hx", text = "๎™ฆ", fg = "#fab387" }, - { name = "fodt", text = "๏ผ", fg = "#74c7ec" }, - { name = "mojo", text = "๏ญ", fg = "#fab387" }, - { name = "templ", text = "๎ซ„", fg = "#f9e2af" }, - { name = "nix", text = "๏Œ“", fg = "#74c7ec" }, - { name = "cshtml", text = "๓ฑฆ—", fg = "#585b70" }, - { name = "fish", text = "๎ž•", fg = "#585b70" }, - { name = "ply", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "sldprt", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "gemspec", text = "๎ž‘", fg = "#313244" }, - { name = "mjs", text = "๎˜Œ", fg = "#f9e2af" }, - { name = "csh", text = "๎ž•", fg = "#585b70" }, - { name = "cmake", text = "๎ž”", fg = "#cdd6f4" }, - { name = "fodp", text = "๏บ", fg = "#fab387" }, - { name = "vi", text = "๎ ž", fg = "#f9e2af" }, - { name = "msf", text = "๏ฐ", fg = "#89b4fa" }, - { name = "blp", text = "๓ฐบพ", fg = "#89b4fa" }, - { name = "less", text = "๎˜”", fg = "#45475a" }, - { name = "sh", text = "๎ž•", fg = "#585b70" }, - { name = "odg", text = "๏น", fg = "#f9e2af" }, - { name = "mint", text = "๓ฐŒช", fg = "#a6e3a1" }, - { name = "dll", text = "๎ฎœ", fg = "#11111b" }, - { name = "odf", text = "๏ป", fg = "#f38ba8" }, - { name = "sqlite3", text = "๎œ†", fg = "#f5e0dc" }, - { name = "Dockerfile", text = "๓ฐกจ", fg = "#89b4fa" }, - { name = "ksh", text = "๎ž•", fg = "#585b70" }, - { name = "rmd", text = "๎˜‰", fg = "#74c7ec" }, - { name = "wv", text = "๏€", fg = "#74c7ec" }, - { name = "xml", text = "๓ฐ—€", fg = "#fab387" }, - { name = "markdown", text = "๎˜‰", fg = "#cdd6f4" }, - { name = "qml", text = "๏ต", fg = "#a6e3a1" }, - { name = "3gp", text = "๎šŸ", fg = "#fab387" }, - { name = "pxi", text = "๎˜†", fg = "#89b4fa" }, - { name = "flac", text = "๏€", fg = "#6c7086" }, - { name = "gpr", text = "๎šต", fg = "#cba6f7" }, - { name = "huff", text = "๓ฐก˜", fg = "#585b70" }, - { name = "json", text = "๎˜‹", fg = "#f9e2af" }, - { name = "gv", text = "๓ฑ‰", fg = "#585b70" }, - { name = "bmp", text = "๎˜", fg = "#7f849c" }, - { name = "lock", text = "๎™ฒ", fg = "#bac2de" }, - { name = "sha384", text = "๓ฐ•ฅ", fg = "#7f849c" }, - { name = "cobol", text = "โš™", fg = "#585b70" }, - { name = "cob", text = "โš™", fg = "#585b70" }, - { name = "java", text = "๎œธ", fg = "#f38ba8" }, - { name = "cjs", text = "๎˜Œ", fg = "#f9e2af" }, - { name = "qm", text = "๏†ซ", fg = "#74c7ec" }, - { name = "ebuild", text = "๏Œ", fg = "#45475a" }, - { name = "mustache", text = "๎˜", fg = "#fab387" }, - { name = "terminal", text = "๏’‰", fg = "#a6e3a1" }, - { name = "ejs", text = "๎˜Ž", fg = "#f9e2af" }, - { name = "brep", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "rar", text = "๏", fg = "#fab387" }, - { name = "gradle", text = "๎™ ", fg = "#585b70" }, - { name = "gnumakefile", text = "๎น", fg = "#7f849c" }, - { name = "applescript", text = "๏…น", fg = "#7f849c" }, - { name = "elm", text = "๎˜ฌ", fg = "#74c7ec" }, - { name = "ebook", text = "๎Š‹", fg = "#fab387" }, - { name = "kra", text = "๏Œฝ", fg = "#cba6f7" }, - { name = "tf", text = "๎šš", fg = "#585b70" }, - { name = "xls", text = "๓ฐˆ›", fg = "#585b70" }, - { name = "fnl", text = "๎šฏ", fg = "#f9e2af" }, - { name = "kdbx", text = "๏ˆพ", fg = "#a6e3a1" }, - { name = "kicad_pcb", text = "๏Œ", fg = "#f5e0dc" }, - { name = "cfg", text = "๎˜•", fg = "#7f849c" }, - { name = "ape", text = "๏€", fg = "#74c7ec" }, - { name = "org", text = "๎˜ณ", fg = "#94e2d5" }, - { name = "yml", text = "๎˜•", fg = "#7f849c" }, - { name = "swift", text = "๎•", fg = "#fab387" }, - { name = "eln", text = "๎˜ฒ", fg = "#7f849c" }, - { name = "sol", text = "๎™–", fg = "#74c7ec" }, - { name = "awk", text = "๎ž•", fg = "#585b70" }, - { name = "7z", text = "๏", fg = "#fab387" }, - { name = "apl", text = "โ", fg = "#fab387" }, - { name = "epp", text = "๎˜ฑ", fg = "#fab387" }, - { name = "app", text = "๎ซจ", fg = "#45475a" }, - { name = "dot", text = "๓ฑ‰", fg = "#585b70" }, - { name = "kpp", text = "๏Œฝ", fg = "#cba6f7" }, - { name = "eot", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "hpp", text = "๏ƒฝ", fg = "#7f849c" }, - { name = "spec.tsx", text = "๏’™", fg = "#585b70" }, - { name = "hurl", text = "๏ƒฌ", fg = "#f38ba8" }, - { name = "cxxm", text = "๎˜", fg = "#74c7ec" }, - { name = "c", text = "๎˜ž", fg = "#89b4fa" }, - { name = "fcmacro", text = "๏Œถ", fg = "#f38ba8" }, - { name = "sass", text = "๎˜ƒ", fg = "#f38ba8" }, - { name = "yaml", text = "๎˜•", fg = "#7f849c" }, - { name = "xz", text = "๏", fg = "#fab387" }, - { name = "material", text = "๓ฐ”‰", fg = "#f38ba8" }, - { name = "json5", text = "๎˜‹", fg = "#f9e2af" }, - { name = "signature", text = "ฮป", fg = "#fab387" }, - { name = "3mf", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "jpg", text = "๎˜", fg = "#7f849c" }, - { name = "xpi", text = "๎ž†", fg = "#fab387" }, - { name = "fcmat", text = "๏Œถ", fg = "#f38ba8" }, - { name = "pot", text = "๏†ซ", fg = "#74c7ec" }, - { name = "bin", text = "๎ซจ", fg = "#45475a" }, - { name = "xlsx", text = "๓ฐˆ›", fg = "#585b70" }, - { name = "aac", text = "๏€", fg = "#74c7ec" }, - { name = "kicad_sym", text = "๏Œ", fg = "#f5e0dc" }, - { name = "xcstrings", text = "๏†ซ", fg = "#74c7ec" }, - { name = "lff", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "xcf", text = "๏Œธ", fg = "#585b70" }, - { name = "azcli", text = "๎ฏจ", fg = "#6c7086" }, - { name = "license", text = "๎˜Š", fg = "#f9e2af" }, - { name = "jsonc", text = "๎˜‹", fg = "#f9e2af" }, - { name = "xaml", text = "๓ฐ™ณ", fg = "#585b70" }, - { name = "md5", text = "๓ฐ•ฅ", fg = "#7f849c" }, - { name = "xm", text = "๎š‘", fg = "#74c7ec" }, - { name = "sln", text = "๎œŒ", fg = "#6c7086" }, - { name = "jl", text = "๎˜ค", fg = "#7f849c" }, - { name = "ml", text = "๎™บ", fg = "#fab387" }, - { name = "http", text = "๏‡˜", fg = "#89b4fa" }, - { name = "x", text = "๎š‘", fg = "#89b4fa" }, - { name = "wvc", text = "๏€", fg = "#74c7ec" }, - { name = "wrz", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "csproj", text = "๓ฐชฎ", fg = "#585b70" }, - { name = "wrl", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "wma", text = "๏€", fg = "#74c7ec" }, - { name = "woff2", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "woff", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "tscn", text = "๎™Ÿ", fg = "#7f849c" }, - { name = "webmanifest", text = "๎˜‹", fg = "#f9e2af" }, - { name = "webm", text = "๎šŸ", fg = "#fab387" }, - { name = "fcbak", text = "๏Œถ", fg = "#f38ba8" }, - { name = "log", text = "๓ฐŒฑ", fg = "#cdd6f4" }, - { name = "wav", text = "๏€", fg = "#74c7ec" }, - { name = "wasm", text = "๎šก", fg = "#585b70" }, - { name = "styl", text = "๎˜€", fg = "#a6e3a1" }, - { name = "gif", text = "๎˜", fg = "#7f849c" }, - { name = "resi", text = "๎šˆ", fg = "#f38ba8" }, - { name = "aiff", text = "๏€", fg = "#74c7ec" }, - { name = "sha256", text = "๓ฐ•ฅ", fg = "#7f849c" }, - { name = "igs", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "vsix", text = "๎œŒ", fg = "#6c7086" }, - { name = "vim", text = "๎˜ซ", fg = "#a6e3a1" }, - { name = "diff", text = "๎œจ", fg = "#45475a" }, - { name = "drl", text = "๎ŠŒ", fg = "#eba0ac" }, - { name = "erl", text = "๎žฑ", fg = "#f38ba8" }, - { name = "vhdl", text = "๓ฐ›", fg = "#a6e3a1" }, - { name = "๐Ÿ”ฅ", text = "๏ญ", fg = "#fab387" }, - { name = "hrl", text = "๎žฑ", fg = "#f38ba8" }, - { name = "fsi", text = "๎žง", fg = "#74c7ec" }, - { name = "mm", text = "๎˜", fg = "#74c7ec" }, - { name = "bz", text = "๏", fg = "#fab387" }, - { name = "vh", text = "๓ฐ›", fg = "#a6e3a1" }, - { name = "kdb", text = "๏ˆพ", fg = "#a6e3a1" }, - { name = "gz", text = "๏", fg = "#fab387" }, - { name = "cpp", text = "๎˜", fg = "#74c7ec" }, - { name = "ui", text = "๏‹", fg = "#6c7086" }, - { name = "txt", text = "๓ฐˆ™", fg = "#a6e3a1" }, - { name = "spec.ts", text = "๏’™", fg = "#74c7ec" }, - { name = "ccm", text = "๎˜", fg = "#f38ba8" }, - { name = "typoscript", text = "๎ฒ", fg = "#fab387" }, - { name = "typ", text = "๏ฟ", fg = "#89dceb" }, - { name = "txz", text = "๏", fg = "#fab387" }, - { name = "test.ts", text = "๏’™", fg = "#74c7ec" }, - { name = "tsx", text = "๎žบ", fg = "#585b70" }, - { name = "mk", text = "๎น", fg = "#7f849c" }, - { name = "webp", text = "๎˜", fg = "#7f849c" }, - { name = "opus", text = "๏€", fg = "#6c7086" }, - { name = "bicep", text = "๎˜ป", fg = "#74c7ec" }, - { name = "ts", text = "๎˜จ", fg = "#74c7ec" }, - { name = "tres", text = "๎™Ÿ", fg = "#7f849c" }, - { name = "torrent", text = "๏€™", fg = "#94e2d5" }, - { name = "cxx", text = "๎˜", fg = "#74c7ec" }, - { name = "iso", text = "๎‰ฑ", fg = "#f2cdcd" }, - { name = "ixx", text = "๎˜", fg = "#74c7ec" }, - { name = "hxx", text = "๏ƒฝ", fg = "#7f849c" }, - { name = "gql", text = "๏ˆŽ", fg = "#f38ba8" }, - { name = "tmux", text = "๎ฏˆ", fg = "#a6e3a1" }, - { name = "ini", text = "๎˜•", fg = "#7f849c" }, - { name = "m3u8", text = "๓ฐฒน", fg = "#f38ba8" }, - { name = "image", text = "๎‰ฑ", fg = "#f2cdcd" }, - { name = "tfvars", text = "๏…›", fg = "#585b70" }, - { name = "tex", text = "๎š›", fg = "#45475a" }, - { name = "cbl", text = "โš™", fg = "#585b70" }, - { name = "flc", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "elc", text = "๎˜ฒ", fg = "#7f849c" }, - { name = "test.tsx", text = "๏’™", fg = "#585b70" }, - { name = "twig", text = "๎˜œ", fg = "#a6e3a1" }, - { name = "sql", text = "๎œ†", fg = "#f5e0dc" }, - { name = "test.jsx", text = "๏’™", fg = "#74c7ec" }, - { name = "htm", text = "๎˜Ž", fg = "#fab387" }, - { name = "gcode", text = "๓ฐซ", fg = "#6c7086" }, - { name = "test.js", text = "๏’™", fg = "#f9e2af" }, - { name = "ino", text = "๏‹", fg = "#74c7ec" }, - { name = "tcl", text = "๓ฐ›“", fg = "#585b70" }, - { name = "cljs", text = "๎ช", fg = "#74c7ec" }, - { name = "tsconfig", text = "๎ฒ", fg = "#fab387" }, - { name = "img", text = "๎‰ฑ", fg = "#f2cdcd" }, - { name = "t", text = "๎ฉ", fg = "#74c7ec" }, - { name = "fcstd1", text = "๏Œถ", fg = "#f38ba8" }, - { name = "out", text = "๎ซจ", fg = "#45475a" }, - { name = "jsx", text = "๎˜ฅ", fg = "#74c7ec" }, - { name = "bash", text = "๎ž•", fg = "#a6e3a1" }, - { name = "edn", text = "๎ช", fg = "#74c7ec" }, - { name = "rss", text = "๎˜™", fg = "#fab387" }, - { name = "flf", text = "๏€ฑ", fg = "#f5e0dc" }, - { name = "cache", text = "๏’›", fg = "#f5e0dc" }, - { name = "sbt", text = "๎œท", fg = "#f38ba8" }, - { name = "cppm", text = "๎˜", fg = "#74c7ec" }, - { name = "svelte", text = "๎š—", fg = "#fab387" }, - { name = "mo", text = "โˆž", fg = "#7f849c" }, - { name = "sv", text = "๓ฐ›", fg = "#a6e3a1" }, - { name = "ko", text = "๏…ผ", fg = "#f5e0dc" }, - { name = "suo", text = "๎œŒ", fg = "#6c7086" }, - { name = "sldasm", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "icalendar", text = "๏ณ", fg = "#313244" }, - { name = "go", text = "๎˜ง", fg = "#74c7ec" }, - { name = "sublime", text = "๎žช", fg = "#fab387" }, - { name = "stl", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "mobi", text = "๎Š‹", fg = "#fab387" }, - { name = "graphql", text = "๏ˆŽ", fg = "#f38ba8" }, - { name = "m3u", text = "๓ฐฒน", fg = "#f38ba8" }, - { name = "cpy", text = "โš™", fg = "#585b70" }, - { name = "kdenlive", text = "๏Œผ", fg = "#89b4fa" }, - { name = "pyo", text = "๎˜†", fg = "#f9e2af" }, - { name = "po", text = "๏†ซ", fg = "#74c7ec" }, - { name = "scala", text = "๎œท", fg = "#f38ba8" }, - { name = "exs", text = "๎˜ญ", fg = "#7f849c" }, - { name = "odp", text = "๏บ", fg = "#fab387" }, - { name = "dump", text = "๎œ†", fg = "#f5e0dc" }, - { name = "stp", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "step", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "ste", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "aif", text = "๏€", fg = "#74c7ec" }, - { name = "strings", text = "๏†ซ", fg = "#74c7ec" }, - { name = "cp", text = "๎˜", fg = "#74c7ec" }, - { name = "fsscript", text = "๎žง", fg = "#74c7ec" }, - { name = "mli", text = "๎™บ", fg = "#fab387" }, - { name = "bak", text = "๓ฐฏ", fg = "#7f849c" }, - { name = "ssa", text = "๓ฐจ–", fg = "#f9e2af" }, - { name = "toml", text = "๎šฒ", fg = "#585b70" }, - { name = "makefile", text = "๎น", fg = "#7f849c" }, - { name = "php", text = "๎˜ˆ", fg = "#7f849c" }, - { name = "zst", text = "๏", fg = "#fab387" }, - { name = "spec.jsx", text = "๏’™", fg = "#74c7ec" }, - { name = "kbx", text = "๓ฐฏ„", fg = "#6c7086" }, - { name = "fbx", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "blend", text = "๓ฐ‚ซ", fg = "#fab387" }, - { name = "ifc", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "spec.js", text = "๏’™", fg = "#f9e2af" }, - { name = "so", text = "๎ฎœ", fg = "#f5e0dc" }, - { name = "desktop", text = "๏„ˆ", fg = "#45475a" }, - { name = "sml", text = "ฮป", fg = "#fab387" }, - { name = "slvs", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "pp", text = "๎˜ฑ", fg = "#fab387" }, - { name = "ps1", text = "๓ฐจŠ", fg = "#6c7086" }, - { name = "dropbox", text = "๎œ‡", fg = "#6c7086" }, - { name = "kicad_mod", text = "๏Œ", fg = "#f5e0dc" }, - { name = "bat", text = "๎˜•", fg = "#a6e3a1" }, - { name = "slim", text = "๎˜Ž", fg = "#fab387" }, - { name = "skp", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "css", text = "๎‰", fg = "#89b4fa" }, - { name = "xul", text = "๎…", fg = "#fab387" }, - { name = "ige", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "glb", text = "๏†ฒ", fg = "#fab387" }, - { name = "ppt", text = "๓ฐˆง", fg = "#f38ba8" }, - { name = "sha512", text = "๓ฐ•ฅ", fg = "#7f849c" }, - { name = "ics", text = "๏ณ", fg = "#313244" }, - { name = "mdx", text = "๏’Š", fg = "#74c7ec" }, - { name = "sha1", text = "๓ฐ•ฅ", fg = "#7f849c" }, - { name = "f3d", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "ass", text = "๓ฐจ–", fg = "#f9e2af" }, - { name = "godot", text = "๎™Ÿ", fg = "#7f849c" }, - { name = "ifb", text = "๏ณ", fg = "#313244" }, - { name = "cson", text = "๎˜‹", fg = "#f9e2af" }, - { name = "lib", text = "๎ฎœ", fg = "#11111b" }, - { name = "luac", text = "๎˜ ", fg = "#74c7ec" }, - { name = "heex", text = "๎˜ญ", fg = "#7f849c" }, - { name = "scm", text = "๓ฐ˜ง", fg = "#f5e0dc" }, - { name = "psd1", text = "๓ฐจŠ", fg = "#7f849c" }, - { name = "sc", text = "๎œท", fg = "#f38ba8" }, - { name = "scad", text = "๏Ž", fg = "#f9e2af" }, - { name = "kts", text = "๎˜ด", fg = "#6c7086" }, - { name = "svh", text = "๓ฐ›", fg = "#a6e3a1" }, - { name = "mts", text = "๎˜จ", fg = "#74c7ec" }, - { name = "nfo", text = "๏„ฉ", fg = "#f9e2af" }, - { name = "pck", text = "๏’‡", fg = "#7f849c" }, - { name = "rproj", text = "๓ฐ—†", fg = "#a6e3a1" }, - { name = "rlib", text = "๎žจ", fg = "#fab387" }, - { name = "cljd", text = "๎ช", fg = "#74c7ec" }, - { name = "ods", text = "๏ธ", fg = "#a6e3a1" }, - { name = "res", text = "๎šˆ", fg = "#f38ba8" }, - { name = "apk", text = "๎œŽ", fg = "#a6e3a1" }, - { name = "haml", text = "๎˜Ž", fg = "#f5e0dc" }, - { name = "d.ts", text = "๎˜จ", fg = "#fab387" }, - { name = "razor", text = "๓ฑฆ˜", fg = "#585b70" }, - { name = "rake", text = "๎ž‘", fg = "#313244" }, - { name = "patch", text = "๎œจ", fg = "#45475a" }, - { name = "cuh", text = "๎™‹", fg = "#7f849c" }, - { name = "d", text = "๎žฏ", fg = "#f38ba8" }, - { name = "query", text = "๎ˆœ", fg = "#a6e3a1" }, - { name = "psb", text = "๎žธ", fg = "#74c7ec" }, - { name = "nu", text = ">", fg = "#a6e3a1" }, - { name = "mov", text = "๎šŸ", fg = "#fab387" }, - { name = "lrc", text = "๓ฐจ–", fg = "#f9e2af" }, - { name = "pyx", text = "๎˜†", fg = "#89b4fa" }, - { name = "pyw", text = "๎˜†", fg = "#89b4fa" }, - { name = "cu", text = "๎™‹", fg = "#a6e3a1" }, - { name = "bazel", text = "๎˜บ", fg = "#a6e3a1" }, - { name = "obj", text = "๓ฐ†ง", fg = "#7f849c" }, - { name = "pyi", text = "๎˜†", fg = "#f9e2af" }, - { name = "pyd", text = "๎˜†", fg = "#f9e2af" }, - { name = "exe", text = "๎ซจ", fg = "#45475a" }, - { name = "pyc", text = "๎˜†", fg = "#f9e2af" }, - { name = "fctb", text = "๏Œถ", fg = "#f38ba8" }, - { name = "part", text = "๏€™", fg = "#94e2d5" }, - { name = "blade.php", text = "๏‹ท", fg = "#f38ba8" }, - { name = "git", text = "๎œ‚", fg = "#fab387" }, - { name = "psd", text = "๎žธ", fg = "#74c7ec" }, - { name = "qss", text = "๏ต", fg = "#a6e3a1" }, - { name = "csv", text = "๎™Š", fg = "#a6e3a1" }, - { name = "psm1", text = "๓ฐจŠ", fg = "#7f849c" }, - { name = "dconf", text = "๏ก", fg = "#f5e0dc" }, - { name = "config.ru", text = "๎ž‘", fg = "#313244" }, - { name = "prisma", text = "๎š„", fg = "#6c7086" }, - { name = "conf", text = "๎˜•", fg = "#7f849c" }, - { name = "clj", text = "๎จ", fg = "#a6e3a1" }, - { name = "o", text = "๎ซจ", fg = "#45475a" }, - { name = "mp4", text = "๎šŸ", fg = "#fab387" }, - { name = "cc", text = "๎˜", fg = "#f38ba8" }, - { name = "kicad_prl", text = "๏Œ", fg = "#f5e0dc" }, - { name = "bz3", text = "๏", fg = "#fab387" }, - { name = "asc", text = "๓ฐฆ", fg = "#6c7086" }, - { name = "png", text = "๎˜", fg = "#7f849c" }, - { name = "android", text = "๎œŽ", fg = "#a6e3a1" }, - { name = "pm", text = "๎ฉ", fg = "#74c7ec" }, - { name = "h", text = "๏ƒฝ", fg = "#7f849c" }, - { name = "pls", text = "๓ฐฒน", fg = "#f38ba8" }, - { name = "ipynb", text = "๎ ", fg = "#fab387" }, - { name = "pl", text = "๎ฉ", fg = "#74c7ec" }, - { name = "ads", text = "๎šต", fg = "#f5e0dc" }, - { name = "sqlite", text = "๎œ†", fg = "#f5e0dc" }, - { name = "pdf", text = "๎ซซ", fg = "#585b70" }, - { name = "pcm", text = "๏€", fg = "#6c7086" }, - { name = "ico", text = "๎˜", fg = "#f9e2af" }, - { name = "a", text = "๎ฎœ", fg = "#f5e0dc" }, - { name = "R", text = "๓ฐŸ”", fg = "#6c7086" }, - { name = "ogg", text = "๏€", fg = "#6c7086" }, - { name = "pxd", text = "๎˜†", fg = "#89b4fa" }, - { name = "kdenlivetitle", text = "๏Œผ", fg = "#89b4fa" }, - { name = "jxl", text = "๎˜", fg = "#7f849c" }, - { name = "nswag", text = "๎˜‹", fg = "#a6e3a1" }, - { name = "nim", text = "๎™ท", fg = "#f9e2af" }, - { name = "bqn", text = "โމ", fg = "#6c7086" }, - { name = "cts", text = "๎˜จ", fg = "#74c7ec" }, - { name = "fcparam", text = "๏Œถ", fg = "#f38ba8" }, - { name = "rs", text = "๎š‹", fg = "#fab387" }, - { name = "mpp", text = "๎˜", fg = "#74c7ec" }, - { name = "fdmdownload", text = "๏€™", fg = "#94e2d5" }, - { name = "pptx", text = "๓ฐˆง", fg = "#f38ba8" }, - { name = "jpeg", text = "๎˜", fg = "#7f849c" }, - { name = "bib", text = "๓ฑ‰Ÿ", fg = "#f9e2af" }, - { name = "vhd", text = "๓ฐ›", fg = "#a6e3a1" }, - { name = "m", text = "๎˜ž", fg = "#89b4fa" }, - { name = "js", text = "๎˜Œ", fg = "#f9e2af" }, - { name = "eex", text = "๎˜ญ", fg = "#7f849c" }, - { name = "tbc", text = "๓ฐ›“", fg = "#585b70" }, - { name = "astro", text = "๎šณ", fg = "#f38ba8" }, - { name = "sha224", text = "๓ฐ•ฅ", fg = "#7f849c" }, - { name = "xcplayground", text = "๎•", fg = "#fab387" }, - { name = "el", text = "๎˜ฒ", fg = "#7f849c" }, - { name = "m4v", text = "๎šŸ", fg = "#fab387" }, - { name = "m4a", text = "๏€", fg = "#74c7ec" }, - { name = "cs", text = "๓ฐŒ›", fg = "#585b70" }, - { name = "hs", text = "๎˜Ÿ", fg = "#7f849c" }, - { name = "tgz", text = "๏", fg = "#fab387" }, - { name = "fs", text = "๎žง", fg = "#74c7ec" }, - { name = "luau", text = "๎˜ ", fg = "#89b4fa" }, - { name = "dxf", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "download", text = "๏€™", fg = "#94e2d5" }, - { name = "cast", text = "๎šŸ", fg = "#fab387" }, - { name = "qrc", text = "๏ต", fg = "#a6e3a1" }, - { name = "lua", text = "๎˜ ", fg = "#74c7ec" }, - { name = "lhs", text = "๎˜Ÿ", fg = "#7f849c" }, - { name = "md", text = "๏’Š", fg = "#cdd6f4" }, - { name = "leex", text = "๎˜ญ", fg = "#7f849c" }, - { name = "ai", text = "๎žด", fg = "#f9e2af" }, - { name = "lck", text = "๎™ฒ", fg = "#bac2de" }, - { name = "kt", text = "๎˜ด", fg = "#6c7086" }, - { name = "bicepparam", text = "๎˜ป", fg = "#7f849c" }, - { name = "hex", text = "๎™ง", fg = "#6c7086" }, - { name = "zig", text = "๎šฉ", fg = "#fab387" }, - { name = "bzl", text = "๎˜บ", fg = "#a6e3a1" }, - { name = "cljc", text = "๎จ", fg = "#a6e3a1" }, - { name = "kicad_dru", text = "๏Œ", fg = "#f5e0dc" }, - { name = "fctl", text = "๏Œถ", fg = "#f38ba8" }, - { name = "f#", text = "๎žง", fg = "#74c7ec" }, - { name = "odt", text = "๏ผ", fg = "#74c7ec" }, - { name = "conda", text = "๎œ•", fg = "#a6e3a1" }, - { name = "vala", text = "๎ฃ‘", fg = "#585b70" }, - { name = "erb", text = "๎˜Ž", fg = "#313244" }, - { name = "mp3", text = "๏€", fg = "#74c7ec" }, - { name = "bz2", text = "๏", fg = "#fab387" }, - { name = "coffee", text = "๎˜›", fg = "#f9e2af" }, - { name = "cr", text = "๎˜ฏ", fg = "#f5e0dc" }, - { name = "f90", text = "๓ฑˆš", fg = "#585b70" }, - { name = "jwmrc", text = "๏›", fg = "#6c7086" }, - { name = "c++", text = "๎˜", fg = "#f38ba8" }, - { name = "fcscript", text = "๏Œถ", fg = "#f38ba8" }, - { name = "fods", text = "๏ธ", fg = "#a6e3a1" }, - { name = "cue", text = "๓ฐฒน", fg = "#f38ba8" }, - { name = "srt", text = "๓ฐจ–", fg = "#f9e2af" }, - { name = "info", text = "๏„ฉ", fg = "#f9e2af" }, - { name = "hh", text = "๏ƒฝ", fg = "#7f849c" }, - { name = "sig", text = "ฮป", fg = "#fab387" }, - { name = "html", text = "๎œถ", fg = "#fab387" }, - { name = "iges", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "kicad_wks", text = "๏Œ", fg = "#f5e0dc" }, - { name = "hbs", text = "๎˜", fg = "#fab387" }, - { name = "fcstd", text = "๏Œถ", fg = "#f38ba8" }, - { name = "gresource", text = "๏ข", fg = "#f5e0dc" }, - { name = "sub", text = "๓ฐจ–", fg = "#f9e2af" }, - { name = "ical", text = "๏ณ", fg = "#313244" }, - { name = "crdownload", text = "๏€™", fg = "#94e2d5" }, - { name = "pub", text = "๓ฐท–", fg = "#f9e2af" }, - { name = "vue", text = "๎š ", fg = "#a6e3a1" }, - { name = "gd", text = "๎™Ÿ", fg = "#7f849c" }, - { name = "fsx", text = "๎žง", fg = "#74c7ec" }, - { name = "mkv", text = "๎šŸ", fg = "#fab387" }, - { name = "py", text = "๎˜†", fg = "#f9e2af" }, - { name = "kicad_sch", text = "๏Œ", fg = "#f5e0dc" }, - { name = "epub", text = "๎Š‹", fg = "#fab387" }, - { name = "env", text = "๏‘ข", fg = "#f9e2af" }, - { name = "magnet", text = "๏ถ", fg = "#45475a" }, - { name = "elf", text = "๎ซจ", fg = "#45475a" }, - { name = "fodg", text = "๏น", fg = "#f9e2af" }, - { name = "svg", text = "๓ฐœก", fg = "#fab387" }, - { name = "dwg", text = "๓ฐปซ", fg = "#a6e3a1" }, - { name = "docx", text = "๓ฐˆฌ", fg = "#585b70" }, - { name = "pro", text = "๎žก", fg = "#f9e2af" }, - { name = "db", text = "๎œ†", fg = "#f5e0dc" }, - { name = "rb", text = "๎ž‘", fg = "#313244" }, - { name = "r", text = "๓ฐŸ”", fg = "#6c7086" }, - { name = "scss", text = "๎˜ƒ", fg = "#f38ba8" }, - { name = "cow", text = "๓ฐ†š", fg = "#fab387" }, - { name = "gleam", text = "๏€…", fg = "#f5c2e7" }, - { name = "v", text = "๓ฐ›", fg = "#a6e3a1" }, - { name = "kicad_pro", text = "๏Œ", fg = "#f5e0dc" }, - { name = "liquid", text = "๎™ฐ", fg = "#a6e3a1" }, - { name = "zip", text = "๏", fg = "#fab387" }, -] diff --git a/yazi/.config/yazi/yazi.toml b/yazi/.config/yazi/yazi.toml deleted file mode 100644 index 8337c2d..0000000 --- a/yazi/.config/yazi/yazi.toml +++ /dev/null @@ -1,228 +0,0 @@ -# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. -# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. -"$schema" = "https://yazi-rs.github.io/schemas/yazi.json" - -[mgr] -ratio = [1, 4, 3] -sort_by = "natural" -sort_sensitive = false -sort_reverse = false -sort_dir_first = true -linemode = "none" -show_hidden = true -show_symlink = true -scrolloff = 5 - -[preview] -tab_size = 2 -max_width = 600 -max_height = 900 -cache_dir = "" -image_filter = "triangle" -image_quality = 75 -sixel_fraction = 15 -ueberzug_scale = 1 -ueberzug_offset = [0, 0, 0, 0] - -[opener] -edit = [ - { run = '${EDITOR:=nvim} "$@"', desc = "$EDITOR", block = true, for = "unix" }, - { run = 'code "%*"', orphan = true, desc = "code", for = "windows" }, - { run = 'code -w "%*"', block = true, desc = "code (block)", for = "windows" }, -] -open = [ - { run = 'xdg-open "$@"', desc = "Open", for = "linux" }, - { run = 'open "$@"', desc = "Open", for = "macos" }, - { run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" }, -] -reveal = [ - { run = 'xdg-open "$(dirname "$0")"', desc = "Reveal", for = "linux" }, - { run = 'open -R "$1"', desc = "Reveal", for = "macos" }, - { run = 'explorer /select, "%1"', orphan = true, desc = "Reveal", for = "windows" }, - { run = '''exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" }, -] -extract = [ - { run = 'unar "$1"', desc = "Extract here", for = "unix" }, - { run = 'unar "%1"', desc = "Extract here", for = "windows" }, -] -play = [ - { run = 'mpv "$@"', orphan = true, for = "unix" }, - { run = 'mpv "%1"', orphan = true, for = "windows" }, - { run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" }, -] - -[open] -rules = [ - { name = "*/", use = [ - "edit", - "open", - "reveal", - ] }, - - { mime = "text/*", use = [ - "edit", - "reveal", - ] }, - { mime = "image/*", use = [ - "open", - "reveal", - ] }, - { mime = "{audio,video}/*", use = [ - "play", - "reveal", - ] }, - { mime = "inode/x-empty", use = [ - "edit", - "reveal", - ] }, - - { mime = "application/*zip", use = [ - "extract", - "reveal", - ] }, - { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", use = [ - "extract", - "reveal", - ] }, - - { mime = "application/json", use = [ - "edit", - "reveal", - ] }, - { mime = "*/javascript", use = [ - "edit", - "reveal", - ] }, - - { mime = "*", use = [ - "open", - "reveal", - ] }, -] - -[tasks] -micro_workers = 10 -macro_workers = 25 -bizarre_retry = 5 -image_alloc = 536870912 # 512MB -image_bound = [0, 0] -suppress_preload = false - -[plugin] - -#preloaders = [ -# { name = "*", cond = "!mime", run = "mime", multi = true, prio = "high" }, -# # Image -# { mime = "image/*", run = "image" }, -# # Video -# { mime = "video/*", run = "video" }, -# # PDF -# { mime = "application/pdf", run = "pdf" }, -# #] -previewers = [ - { name = "*/", run = "folder", sync = true }, - # Code - { mime = "text/*", run = "code" }, - { mime = "*/{xml,javascript,x-wine-extension-ini}", run = "code" }, - # JSON - { mime = "application/json", run = "json" }, - # Image - { mime = "image/vnd.djvu", run = "noop" }, - { mime = "image/*", run = "image" }, - # Video - { mime = "video/*", run = "video" }, - # PDF - { mime = "application/pdf", run = "pdf" }, - # CSV - { mime = "text/csv", run = "miller" }, - # Archive - { mime = "application/*zip", run = "archive" }, - { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", run = "archive" }, - # Fallback - { name = "*", run = "hexyl" }, -] - -prepend_previewers = [ - # Exifaudio - { mime = "audio/*", run = "exifaudio" }, - # Archive previewer - { mime = "application/*zip", run = "ouch" }, - { mime = "application/x-tar", run = "ouch" }, - { mime = "application/x-bzip2", run = "ouch" }, - { mime = "application/x-7z-compressed", run = "ouch" }, - { mime = "application/x-rar", run = "ouch" }, - { mime = "application/x-xz", run = "ouch" }, - # Markdown previewer - { name = ".md", run = "glow" }, -] - -[input] -# cd -cd_title = "Change directory:" -cd_origin = "top-center" -cd_offset = [0, 2, 50, 3] - -# create -# create_title = "Create:" -# create_origin = "top-center" -# create_offset = [0, 2, 50, 3] - -# rename -rename_title = "Rename:" -rename_origin = "hovered" -rename_offset = [0, 1, 50, 3] - -# trash -trash_title = "Move {n} selected file{s} to trash? (y/N)" -trash_origin = "top-center" -trash_offset = [0, 2, 50, 3] - -# delete -delete_title = "Delete {n} selected file{s} permanently? (y/N)" -delete_origin = "top-center" -delete_offset = [0, 2, 50, 3] - -# filter -filter_title = "Filter:" -filter_origin = "top-center" -filter_offset = [0, 2, 50, 3] - -# find -find_title = ["Find next:", "Find previous:"] -find_origin = "top-center" -find_offset = [0, 2, 50, 3] - -# search -search_title = "Search via {n}:" -search_origin = "top-center" -search_offset = [0, 2, 50, 3] - -# shell -shell_title = ["Shell:", "Shell (block):"] -shell_origin = "top-center" -shell_offset = [0, 2, 50, 3] - -# overwrite -overwrite_title = "Overwrite an existing file? (y/N)" -overwrite_origin = "top-center" -overwrite_offset = [0, 2, 50, 3] - -# quit -quit_title = "{n} task{s} running, sure to quit? (y/N)" -quit_origin = "top-center" -quit_offset = [0, 2, 50, 3] - -[select] -open_title = "Open with:" -open_origin = "hovered" -open_offset = [0, 1, 50, 7] - -[which] -sort_by = "none" -sort_sensitive = false -sort_reverse = false - -[log] -enabled = false - -[headsup] diff --git a/zsh/.profile.d/cargo.sh b/zsh/.profile.d/cargo.sh deleted file mode 100755 index f6ec644..0000000 --- a/zsh/.profile.d/cargo.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -if [ -e "$HOME/.cargo" ]; then - source "$HOME/.cargo/env" -fi diff --git a/zsh/.profile.d/golang.sh b/zsh/.profile.d/golang.sh deleted file mode 100755 index d4a357a..0000000 --- a/zsh/.profile.d/golang.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -if command -v go > /dev/null 2>&1; then - export GOPATH="$HOME/.local/share/Go" - export GOBIN="$GOPATH/bin" -fi diff --git a/zsh/.profile.d/java.sh b/zsh/.profile.d/java.sh deleted file mode 100755 index f6ad239..0000000 --- a/zsh/.profile.d/java.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -if command -v java > /dev/null 2>&1; then - export JAVA_HOME="$(dirname $(mise bin-paths | grep -i java))" -fi diff --git a/zsh/.profile.d/mise.sh b/zsh/.profile.d/mise.sh deleted file mode 100755 index 1af6721..0000000 --- a/zsh/.profile.d/mise.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -if command -v mise > /dev/null 2>&1; then - eval "$(mise activate zsh)" -fi diff --git a/zsh/.profile.d/runwm.sh b/zsh/.profile.d/runwm.sh deleted file mode 100755 index 004a6e7..0000000 --- a/zsh/.profile.d/runwm.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then - if [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then - # XDG Wayland support - export XDG_CURRENT_DESKTOP=sway # Required for tray icons on waybar - export XDG_SESSION_TYPE=wayland # Session Type for later screensharing - - # Force wayland on qt apps - export QT_QPA_PLATFORM=wayland - export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 - - # Explicitly set to '96' instead of 'physical' because some apps have problems - # Looking at you nextcloud client! - # https://github.com/nextcloud/desktop/issues/1079 - # https://github.com/swaywm/sway/issues/2424 - export QT_WAYLAND_FORCE_DPI=96 - - # Mozilla Wayland support + hardware video decoding - export MOZ_ENABLE_WAYLAND=1 - export MOZ_WAYLAND_USE_VAAPI=1 - - # Reduces crashs for some gdk apps, like evolution - # ! Do not set as global variable. Electron Apps will not start ! - # export GDK_BACKEND=wayland - - # SDL - export SDL_VIDEODRIVER=wayland - - # Java under Xwayland - export _JAVA_AWT_WM_NONREPARENTING=1 - - # Launch Sway through dbus - exec dbus-run-session sway - else - echo "Cannot found DBus session, Wayland startup failed" - fi -fi diff --git a/zsh/.profile.d/ssh-agent.sh b/zsh/.profile.d/ssh-agent.sh deleted file mode 100755 index 789fbe3..0000000 --- a/zsh/.profile.d/ssh-agent.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -start_keychain() { - local ssh_key="$1" - local gpg_key="$2" - # Check if keychain is installed - if command -v keychain >/dev/null 2>&1; then - SHORT_HOST=${SHORT_HOST:-${(%):-%m}} - - # Start keychain quietly with no GUI prompts for ssh agents - eval "$(keychain --quiet --nogui $ssh_key $gpg_key)" - - # Get the filenames to store/lookup the environment from - _keychain_env_sh="$HOME/.keychain/$SHORT_HOST-sh" - _keychain_env_sh_gpg="$HOME/.keychain/$SHORT_HOST-sh-gpg" - - # Source environment settings. - [ -f "$_keychain_env_sh" ] && . "$_keychain_env_sh" - [ -f "$_keychain_env_sh_gpg" ] && . "$_keychain_env_sh_gpg" - else - echo "Warning: keychain is not installed. Please install keychain to manage ssh/gpg agents." - fi -} - -# start_keychain "$HOME/.ssh/id_ed25519_nymph" diff --git a/zsh/.profile.d/tmux.sh b/zsh/.profile.d/tmux.sh deleted file mode 100755 index bef9bbd..0000000 --- a/zsh/.profile.d/tmux.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env zsh - -if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then - tmux attach-session -t default || tmux new-session -s default -fi diff --git a/zsh/.profile.d/zoxide.sh b/zsh/.profile.d/zoxide.sh deleted file mode 100755 index 758fbf6..0000000 --- a/zsh/.profile.d/zoxide.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -if command -v zoxide > /dev/null 2>&1; then - eval "$(zoxide init zsh)" -fi diff --git a/zsh/.zprofile b/zsh/.zprofile deleted file mode 100644 index c912020..0000000 --- a/zsh/.zprofile +++ /dev/null @@ -1,55 +0,0 @@ -function appendpath() { - local location="${1}" - case ":$PATH:" in - *":$location:"*) ;; - *) export PATH="$PATH:$location" ;; - esac -} - -appendpath "$HOME/.local/bin" -appendpath "$HOME/.config/emacs/bin" -unset appendpath - -# XDG variables -export XDG_CONFIG_HOME=${HOME}/.config -export XDG_DATA_HOME=${HOME}/.local/share -export XDG_CACHE_HOME=${HOME}/.local/cache -export XDG_STATE_HOME=${HOME}/.local/state - -# Enable GTK themes -export GTK2_RC_FILES=${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0 - -# Enable QT apps to have gtk theme -export QT_QPA_PLATFORMTHEME=qt5ct - -# Make Qt apps honour DPI settings. -export QT_AUTO_SCREEN_SCALE_FACTOR=1 - -export ZSH_HOME="$HOME/.zsh" -export DOTFILES="$HOME/.dotfiles" -export EDITOR=nvim -export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help - -# SSH socket -export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh" - -export FZF_DEFAULT_COMMAND="fd --hidden --type file --strip-cwd-prefix --exclude .git" -export FZF_CTRL_T_COMMAND="fd --hidden --type file --strip-cwd-prefix --exclude .git" -export FZF_ALT_C_COMMAND="fd --hidden --type directory --strip-cwd-prefix --exclude .git" -# Export Catppuccin Mocha theme for FZF -export FZF_DEFAULT_OPTS=" \ ---height 60% --layout=reverse --border \ ---color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \ ---color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \ ---color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \ ---color=selected-bg:#45475A \ ---color=border:#313244,label:#CDD6F4" -export FZF_TMUX_OPTS=" -p90%,70%" -export VIRTUAL_ENV_DISABLE_PROMPT=1 - -source "$HOME/.profile.d/mise.sh" -source "$HOME/.profile.d/cargo.sh" -source "$HOME/.profile.d/golang.sh" -source "$HOME/.profile.d/java.sh" -source "$HOME/.profile.d/zoxide.sh" -# source "$HOME/.profile.d/runwm.sh" diff --git a/zsh/.zsh/plugins/colored-man-pages.plugin.zsh b/zsh/.zsh/plugins/colored-man-pages.plugin.zsh deleted file mode 100755 index 57facbb..0000000 --- a/zsh/.zsh/plugins/colored-man-pages.plugin.zsh +++ /dev/null @@ -1,54 +0,0 @@ -# Requires colors autoload. -# See termcap(5). - -# Set up once, and then reuse. This way it supports user overrides after the -# plugin is loaded. -typeset -AHg less_termcap - -# bold & blinking mode -less_termcap[mb]="${fg_bold[red]}" -less_termcap[md]="${fg_bold[red]}" -less_termcap[me]="${reset_color}" -# standout mode -less_termcap[so]="${fg_bold[yellow]}${bg[blue]}" -less_termcap[se]="${reset_color}" -# underlining -less_termcap[us]="${fg_bold[green]}" -less_termcap[ue]="${reset_color}" - -# Handle $0 according to the standard: -# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html -0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" -0="${${(M)0:#/*}:-$PWD/$0}" - -# Absolute path to this file's directory. -typeset -g __colored_man_pages_dir="${0:A:h}" - -function colored() { - local -a environment - - # Convert associative array to plain array of NAME=VALUE items. - local k v - for k v in "${(@kv)less_termcap}"; do - environment+=( "LESS_TERMCAP_${k}=${v}" ) - done - - # Prefer `less` whenever available, since we specifically configured - # environment for it. - environment+=( PAGER="${commands[less]:-$PAGER}" ) - environment+=( GROFF_NO_SGR=1 ) - - # See ./nroff script. - if [[ "$OSTYPE" = solaris* ]]; then - environment+=( PATH="${__colored_man_pages_dir}:$PATH" ) - fi - - command env $environment "$@" -} - -# Colorize man and dman/debman (from debian-goodies) -function man \ - dman \ - debman { - colored $0 "$@" -} diff --git a/zsh/.zsh/plugins/command-not-found.plugin.zsh b/zsh/.zsh/plugins/command-not-found.plugin.zsh deleted file mode 100755 index c741e18..0000000 --- a/zsh/.zsh/plugins/command-not-found.plugin.zsh +++ /dev/null @@ -1,70 +0,0 @@ -## Platforms with a built-in command-not-found handler init file - -for file ( - # Arch Linux. Must have pkgfile installed: https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found - /usr/share/doc/pkgfile/command-not-found.zsh - # Homebrew: https://github.com/Homebrew/homebrew-command-not-found - /opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh - /usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh - /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh -); do - if [[ -r "$file" ]]; then - source "$file" - unset file - return 0 - fi -done -unset file - - -## Platforms with manual command_not_found_handler() setup - -# Debian and derivatives: https://launchpad.net/ubuntu/+source/command-not-found -if [[ -x /usr/lib/command-not-found || -x /usr/share/command-not-found/command-not-found ]]; then - command_not_found_handler() { - if [[ -x /usr/lib/command-not-found ]]; then - /usr/lib/command-not-found -- "$1" - return $? - elif [[ -x /usr/share/command-not-found/command-not-found ]]; then - /usr/share/command-not-found/command-not-found -- "$1" - return $? - else - printf "zsh: command not found: %s\n" "$1" >&2 - return 127 - fi - } -fi - -# Fedora: https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound -if [[ -x /usr/libexec/pk-command-not-found ]]; then - command_not_found_handler() { - if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then - /usr/libexec/pk-command-not-found "$@" - return $? - fi - - printf "zsh: command not found: %s\n" "$1" >&2 - return 127 - } -fi - -# NixOS: https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found -if [[ -x /run/current-system/sw/bin/command-not-found ]]; then - command_not_found_handler() { - /run/current-system/sw/bin/command-not-found "$@" - } -fi - -# Termux: https://github.com/termux/command-not-found -if [[ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]]; then - command_not_found_handler() { - /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1" - } -fi - -# SUSE and derivates: https://www.unix.com/man-page/suse/1/command-not-found/ -if [[ -x /usr/bin/command-not-found ]]; then - command_not_found_handler() { - /usr/bin/command-not-found "$1" - } -fi diff --git a/zsh/.zsh/plugins/fzf-git.sh b/zsh/.zsh/plugins/fzf-git.sh deleted file mode 100755 index 31122e4..0000000 --- a/zsh/.zsh/plugins/fzf-git.sh +++ /dev/null @@ -1,385 +0,0 @@ -# The MIT License (MIT) -# -# Copyright (c) 2024 Junegunn Choi -# -# 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. - -# shellcheck disable=SC2039 -[[ $0 = - ]] && return - -__fzf_git_color() { - if [[ -n $NO_COLOR ]]; then - echo never - elif [[ $# -gt 0 ]] && [[ -n $FZF_GIT_PREVIEW_COLOR ]]; then - echo "$FZF_GIT_PREVIEW_COLOR" - else - echo "${FZF_GIT_COLOR:-always}" - fi -} - -__fzf_git_cat() { - if [[ -n $FZF_GIT_CAT ]]; then - echo "$FZF_GIT_CAT" - return - fi - - # Sometimes bat is installed as batcat - _fzf_git_bat_options="--style='${BAT_STYLE:-full}' --color=$(__fzf_git_color .) --pager=never" - if command -v batcat > /dev/null; then - echo "batcat $_fzf_git_bat_options" - elif command -v bat > /dev/null; then - echo "bat $_fzf_git_bat_options" - else - echo cat - fi -} - -__fzf_git_pager() { - local pager - pager="${FZF_GIT_PAGER:-${GIT_PAGER:-$(git config --get core.pager 2>/dev/null)}}" - echo "${pager:-cat}" -} - -if [[ $1 = --list ]]; then - shift - if [[ $# -eq 1 ]]; then - branches() { - git branch "$@" --sort=-committerdate --sort=-HEAD --format=$'%(HEAD) %(color:yellow)%(refname:short) %(color:green)(%(committerdate:relative))\t%(color:blue)%(subject)%(color:reset)' --color=$(__fzf_git_color) | column -ts$'\t' - } - refs() { - git for-each-ref "$@" --sort=-creatordate --sort=-HEAD --color=$(__fzf_git_color) --format=$'%(if:equals=refs/remotes)%(refname:rstrip=-2)%(then)%(color:magenta)remote-branch%(else)%(if:equals=refs/heads)%(refname:rstrip=-2)%(then)%(color:brightgreen)branch%(else)%(if:equals=refs/tags)%(refname:rstrip=-2)%(then)%(color:brightcyan)tag%(else)%(if:equals=refs/stash)%(refname:rstrip=-2)%(then)%(color:brightred)stash%(else)%(color:white)%(refname:rstrip=-2)%(end)%(end)%(end)%(end)\t%(color:yellow)%(refname:short) %(color:green)(%(creatordate:relative))\t%(color:blue)%(subject)%(color:reset)' | column -ts$'\t' - } - hashes() { - git log --date=short --format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" --graph --color=$(__fzf_git_color) "$@" $LIST_OPTS - } - case "$1" in - branches) - echo 'CTRL-O (open in browser) โ•ฑ ALT-A (show all branches)' - echo 'ALT-H (list commit hashes)' - branches - ;; - all-branches) - echo 'CTRL-O (open in browser) โ•ฑ ALT-ENTER (accept without remote)' - echo 'ALT-H (list commit hashes)' - branches -a - ;; - hashes) - echo 'CTRL-O (open in browser) โ•ฑ CTRL-D (diff)' - echo 'CTRL-S (toggle sort) โ•ฑ ALT-A (show all hashes)' - hashes - ;; - all-hashes) - echo 'CTRL-O (open in browser) โ•ฑ CTRL-D (diff)' - echo 'CTRL-S (toggle sort)' - hashes --all - ;; - refs) - echo 'CTRL-O (open in browser) โ•ฑ ALT-E (examine in editor) โ•ฑ ALT-A (show all refs)' - refs --exclude='refs/remotes' - ;; - all-refs) - echo 'CTRL-O (open in browser) โ•ฑ ALT-E (examine in editor)' - refs - ;; - *) exit 1 ;; - esac - elif [[ $# -gt 1 ]]; then - set -e - - branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) - if [[ $branch = HEAD ]]; then - branch=$(git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD) - fi - - # Only supports GitHub for now - case "$1" in - commit) - hash=$(grep -o "[a-f0-9]\{7,\}" <<< "$2" | head -n 1) - path=/commit/$hash - ;; - branch|remote-branch) - branch=$(sed 's/^[* ]*//' <<< "$2" | cut -d' ' -f1) - remote=$(git config branch."${branch}".remote || echo 'origin') - branch=${branch#$remote/} - path=/tree/$branch - ;; - remote) - remote=$2 - path=/tree/$branch - ;; - file) path=/blob/$branch/$(git rev-parse --show-prefix)$2 ;; - tag) path=/releases/tag/$2 ;; - *) exit 1 ;; - esac - - remote=${remote:-$(git config branch."${branch}".remote || echo 'origin')} - remote_url=$(git remote get-url "$remote" 2> /dev/null || echo "$remote") - - if [[ $remote_url =~ ^git@ ]]; then - url=${remote_url%.git} - url=${url#git@} - url=https://${url/://} - elif [[ $remote_url =~ ^http ]]; then - url=${remote_url%.git} - fi - - case "$(uname -sr)" in - Darwin*) - open "$url$path" - ;; - *microsoft* | *Microsoft*) - explorer.exe "$url$path" - ;; - *) - xdg-open "$url$path" - ;; - esac - exit 0 - fi -fi - -if [[ $- =~ i ]] || [[ $1 = --run ]]; then # ---------------------------------- - -if [[ $__fzf_git_fzf ]]; then - eval "$__fzf_git_fzf" -else - # Redefine this function to change the options - _fzf_git_fzf() { - fzf --height 50% --tmux 90%,70% \ - --layout reverse --multi --min-height 20+ --border \ - --no-separator --header-border horizontal \ - --border-label-pos 2 \ - --color 'label:blue' \ - --preview-window 'right,50%' --preview-border line \ - --bind 'ctrl-/:change-preview-window(down,50%|hidden|)' "$@" - } -fi - -_fzf_git_check() { - git rev-parse HEAD > /dev/null 2>&1 && return - - [[ -n $TMUX ]] && tmux display-message "Not in a git repository" - return 1 -} - -__fzf_git=${BASH_SOURCE[0]:-${(%):-%x}} -__fzf_git=$(readlink -f "$__fzf_git" 2> /dev/null || /usr/bin/ruby --disable-gems -e 'puts File.expand_path(ARGV.first)' "$__fzf_git" 2> /dev/null) - -_fzf_git_files() { - _fzf_git_check || return - local root query - root=$(git rev-parse --show-toplevel) - [[ $root != "$PWD" ]] && query='!../ ' - - (git -c color.status=$(__fzf_git_color) status --short --no-branch - git ls-files "$root" | grep -vxFf <(git status -s | grep '^[^?]' | cut -c4-; echo :) | sed 's/^/ /') | - _fzf_git_fzf -m --ansi --nth 2..,.. \ - --border-label '๐Ÿ“ Files ' \ - --header 'CTRL-O (open in browser) โ•ฑ ALT-E (open in editor)' \ - --bind "ctrl-o:execute-silent:bash \"$__fzf_git\" --list file {-1}" \ - --bind "alt-e:execute:${EDITOR:-vim} {-1} > /dev/tty" \ - --query "$query" \ - --preview "git diff --no-ext-diff --color=$(__fzf_git_color .) -- {-1} | $(__fzf_git_pager); $(__fzf_git_cat) {-1}" "$@" | - cut -c4- | sed 's/.* -> //' -} - -_fzf_git_branches() { - _fzf_git_check || return - - local shell - [[ -n "${BASH_VERSION:-}" ]] && shell=bash || shell=zsh - - bash "$__fzf_git" --list branches | - __fzf_git_fzf=$(declare -f _fzf_git_fzf) _fzf_git_fzf --ansi \ - --border-label '๐ŸŒฒ Branches ' \ - --header-lines 2 \ - --tiebreak begin \ - --preview-window down,border-top,40% \ - --color hl:underline,hl+:underline \ - --no-hscroll \ - --bind 'ctrl-/:change-preview-window(down,70%|hidden|)' \ - --bind "ctrl-o:execute-silent:bash \"$__fzf_git\" --list branch {}" \ - --bind "alt-a:change-border-label(๐ŸŒณ All branches)+reload:bash \"$__fzf_git\" --list all-branches" \ - --bind "alt-h:become:LIST_OPTS=\$(cut -c3- <<< {} | cut -d' ' -f1) $shell \"$__fzf_git\" --run hashes" \ - --bind "alt-enter:become:printf '%s\n' {+} | cut -c3- | sed 's@[^/]*/@@'" \ - --preview "git log --oneline --graph --date=short --color=$(__fzf_git_color .) --pretty='format:%C(auto)%cd %h%d %s' \$(cut -c3- <<< {} | cut -d' ' -f1) --" "$@" | - sed 's/^\* //' | awk '{print $1}' # Slightly modified to work with hashes as well -} - -_fzf_git_tags() { - _fzf_git_check || return - git tag --sort -version:refname | - _fzf_git_fzf --preview-window right,70% \ - --border-label '๐Ÿ“› Tags ' \ - --header 'CTRL-O (open in browser)' \ - --bind "ctrl-o:execute-silent:bash \"$__fzf_git\" --list tag {}" \ - --preview "git show --color=$(__fzf_git_color .) {} | $(__fzf_git_pager)" "$@" -} - -_fzf_git_hashes() { - _fzf_git_check || return - bash "$__fzf_git" --list hashes | - _fzf_git_fzf --ansi --no-sort --bind 'ctrl-s:toggle-sort' \ - --border-label '๐Ÿก Hashes ' \ - --header-lines 2 \ - --bind "ctrl-o:execute-silent:bash \"$__fzf_git\" --list commit {}" \ - --bind "ctrl-d:execute:grep -o '[a-f0-9]\{7,\}' <<< {} | head -n 1 | xargs git diff --color=$(__fzf_git_color) > /dev/tty" \ - --bind "alt-a:change-border-label(๐Ÿ‡ All hashes)+reload:bash \"$__fzf_git\" --list all-hashes" \ - --color hl:underline,hl+:underline \ - --preview "grep -o '[a-f0-9]\{7,\}' <<< {} | head -n 1 | xargs git show --color=$(__fzf_git_color .) | $(__fzf_git_pager)" "$@" | - awk 'match($0, /[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*/) { print substr($0, RSTART, RLENGTH) }' -} - -_fzf_git_remotes() { - _fzf_git_check || return - git remote -v | awk '{print $1 "\t" $2}' | uniq | - _fzf_git_fzf --tac \ - --border-label '๐Ÿ“ก Remotes ' \ - --header 'CTRL-O (open in browser)' \ - --bind "ctrl-o:execute-silent:bash \"$__fzf_git\" --list remote {1}" \ - --preview-window right,70% \ - --preview "git log --oneline --graph --date=short --color=$(__fzf_git_color .) --pretty='format:%C(auto)%cd %h%d %s' '{1}/$(git rev-parse --abbrev-ref HEAD)' --" "$@" | - cut -d$'\t' -f1 -} - -_fzf_git_stashes() { - _fzf_git_check || return - git stash list | _fzf_git_fzf \ - --border-label '๐Ÿฅก Stashes ' \ - --header 'CTRL-X (drop stash)' \ - --bind 'ctrl-x:reload(git stash drop -q {1}; git stash list)' \ - -d: --preview "git show --color=$(__fzf_git_color .) {1} | $(__fzf_git_pager)" "$@" | - cut -d: -f1 -} - -_fzf_git_lreflogs() { - _fzf_git_check || return - git reflog --color=$(__fzf_git_color) --format="%C(blue)%gD %C(yellow)%h%C(auto)%d %gs" | _fzf_git_fzf --ansi \ - --border-label '๐Ÿ“’ Reflogs ' \ - --preview "git show --color=$(__fzf_git_color .) {1} | $(__fzf_git_pager)" "$@" | - awk '{print $1}' -} - -_fzf_git_each_ref() { - _fzf_git_check || return - bash "$__fzf_git" --list refs | _fzf_git_fzf --ansi \ - --nth 2,2.. \ - --tiebreak begin \ - --border-label 'โ˜˜๏ธ Each ref ' \ - --header-lines 1 \ - --preview-window down,border-top,40% \ - --color hl:underline,hl+:underline \ - --no-hscroll \ - --bind 'ctrl-/:change-preview-window(down,70%|hidden|)' \ - --bind "ctrl-o:execute-silent:bash \"$__fzf_git\" --list {1} {2}" \ - --bind "alt-e:execute:${EDITOR:-vim} <(git show {2}) > /dev/tty" \ - --bind "alt-a:change-border-label(๐Ÿ€ Every ref)+reload:bash \"$__fzf_git\" --list all-refs" \ - --preview "git log --oneline --graph --date=short --color=$(__fzf_git_color .) --pretty='format:%C(auto)%cd %h%d %s' {2} --" "$@" | - awk '{print $2}' -} - -_fzf_git_worktrees() { - _fzf_git_check || return - git worktree list | _fzf_git_fzf \ - --border-label '๐ŸŒด Worktrees ' \ - --header 'CTRL-X (remove worktree)' \ - --bind 'ctrl-x:reload(git worktree remove {1} > /dev/null; git worktree list)' \ - --preview " - git -c color.status=$(__fzf_git_color .) -C {1} status --short --branch - echo - git log --oneline --graph --date=short --color=$(__fzf_git_color .) --pretty='format:%C(auto)%cd %h%d %s' {2} -- - " "$@" | - awk '{print $1}' -} - -_fzf_git_list_bindings(){ - cat <<'EOF' - -CTRL-G ? to show this list -CTRL-G CTRL-F for Files -CTRL-G CTRL-B for Branches -CTRL-G CTRL-T for Tags -CTRL-G CTRL-R for Remotes -CTRL-G CTRL-H for commit Hashes -CTRL-G CTRL-S for Stashes -CTRL-G CTRL-L for reflogs -CTRL-G CTRL-W for Worktrees -CTRL-G CTRL-E for Each ref (git for-each-ref) -EOF -} - -fi # -------------------------------------------------------------------------- - -if [[ $1 = --run ]]; then - shift - type=$1 - shift - eval "_fzf_git_$type" "$@" - -elif [[ $- =~ i ]]; then # ------------------------------------------------------ -if [[ -n "${BASH_VERSION:-}" ]]; then - __fzf_git_init() { - bind -m emacs-standard '"\er": redraw-current-line' - bind -m emacs-standard '"\C-z": vi-editing-mode' - bind -m vi-command '"\C-z": emacs-editing-mode' - bind -m vi-insert '"\C-z": emacs-editing-mode' - - local o c - for o in "$@"; do - c=${o:0:1} - if [[ $c == '?' ]]; then - bind -x '"\C-g'$c'": _fzf_git_list_bindings' - continue - fi - bind -m emacs-standard '"\C-g\C-'$c'": " \C-u \C-a\C-k`_fzf_git_'$o'`\e\C-e\C-y\C-a\C-y\ey\C-h\C-e\er \C-h"' - bind -m vi-command '"\C-g\C-'$c'": "\C-z\C-g\C-'$c'\C-z"' - bind -m vi-insert '"\C-g\C-'$c'": "\C-z\C-g\C-'$c'\C-z"' - bind -m emacs-standard '"\C-g'$c'": " \C-u \C-a\C-k`_fzf_git_'$o'`\e\C-e\C-y\C-a\C-y\ey\C-h\C-e\er \C-h"' - bind -m vi-command '"\C-g'$c'": "\C-z\C-g'$c'\C-z"' - bind -m vi-insert '"\C-g'$c'": "\C-z\C-g'$c'\C-z"' - done - } -elif [[ -n "${ZSH_VERSION:-}" ]]; then - __fzf_git_join() { - local item - while read item; do - echo -n "${(q)item} " - done - } - - __fzf_git_init() { - setopt localoptions nonomatch - local m o - for o in "$@"; do - if [[ ${o[1]} == "?" ]];then - eval "fzf-git-$o-widget() { zle -M '$(_fzf_git_list_bindings)' }" - else - eval "fzf-git-$o-widget() { local result=\$(_fzf_git_$o | __fzf_git_join); zle reset-prompt; LBUFFER+=\$result }" - fi - eval "zle -N fzf-git-$o-widget" - for m in emacs vicmd viins; do - eval "bindkey -M $m '^g^${o[1]}' fzf-git-$o-widget" - eval "bindkey -M $m '^g${o[1]}' fzf-git-$o-widget" - done - done - } -fi -__fzf_git_init files branches tags remotes hashes stashes lreflogs each_ref worktrees '?list_bindings' - -fi # -------------------------------------------------------------------------- diff --git a/zsh/.zsh/plugins/zsh-autosuggestions b/zsh/.zsh/plugins/zsh-autosuggestions deleted file mode 160000 index 85919cd..0000000 --- a/zsh/.zsh/plugins/zsh-autosuggestions +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5 diff --git a/zsh/.zsh/plugins/zsh-syntax-highlighting b/zsh/.zsh/plugins/zsh-syntax-highlighting deleted file mode 160000 index 5eb677b..0000000 --- a/zsh/.zsh/plugins/zsh-syntax-highlighting +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5eb677bb0fa9a3e60f0eff031dc13926e093df92 diff --git a/zsh/.zshrc b/zsh/.zshrc deleted file mode 100644 index 86e2f12..0000000 --- a/zsh/.zshrc +++ /dev/null @@ -1,86 +0,0 @@ -# load modules -zmodload zsh/complist -autoload -U compinit && compinit -autoload -U colors && colors -# autoload -U tetris # main attraction of zsh, obviously - -# cmp opts -zstyle ':completion:*' menu select # tab opens cmp menu -zstyle ':completion:*' special-dirs true # force . and .. to show in cmp menu -zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} ma=0\;33 # colorize cmp menu -# zstyle ':completion:*' file-list true # more detailed list -zstyle ':completion:*' squeeze-slashes false # explicit disable to allow /*/ expansion - -# main opts -setopt append_history inc_append_history share_history # better history -# on exit, history appends rather than overwrites; history is appended as soon as cmds executed; history shared across sessions -setopt auto_menu menu_complete # autocmp first menu match -setopt autocd # type a dir to cd -setopt auto_param_slash # when a dir is completed, add a / instead of a trailing space -setopt no_case_glob no_case_match # make cmp case insensitive -setopt globdots # include dotfiles -setopt extended_glob # match ~ # ^ -setopt interactive_comments # allow comments in shell -unsetopt prompt_sp # don't autoclean blanklines -stty stop undef # disable accidental ctrl s - -# history opts -HISTSIZE=1000000 -SAVEHIST=1000000 -HISTFILE="$XDG_CACHE_HOME/zsh_history" # move histfile to cache -HISTCONTROL=ignoreboth # consecutive duplicates & commands starting with space are not saved - -fpath=(~/.zsh $fpath) - -autoload run-help - -# fzf setup -source <(fzf --zsh) # allow for fzf history widget - -# binds -bindkey -e - -# set up prompt -# NEWLINE=$'\n' -# PROMPT='%F{blue}%B%~%b%f %F{green}โฏ%f ' -if command -v starship > /dev/null 2>&1; then - eval "$(starship init zsh)" -fi - -# load plugins -ZSH_PLUGINS_DIR="$ZSH_HOME/plugins" -[ -e "$ZSH_PLUGINS_DIR/colored-man-pages.plugin.zsh" ] && source "$ZSH_PLUGINS_DIR/colored-man-pages.plugin.zsh" -[ -e "$ZSH_PLUGINS_DIR/command-not-found-plugin.zsh" ] && source "$ZSH_PLUGINS_DIR/command-not-found-plugin.zsh" -[ -e "$ZSH_PLUGINS_DIR/zoxide.plugin.zsh" ] && source "$ZSH_PLUGINS_DIR/zoxide.plugin.zsh" -[ -e "$ZSH_PLUGINS_DIR/fzf-git.sh" ] && source "$ZSH_PLUGINS_DIR/fzf-git.sh" -[ -e "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && source "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" -[ -e "$ZSH_PLUGINS_DIR/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && source "$ZSH_PLUGINS_DIR/zsh-autosuggestions/zsh-autosuggestions.zsh" - -# define user aliases -pbcopy() { - if [ -f "$1" ]; then - mime_type=$(file --mime-type -b "$1") - wl-copy --type "$mime_type" < "$1" - else - printf "%s" "$*" | wl-copy - fi -} - -alias pbpaste='wl-paste --no-newline' -alias ls='ls --color=auto --group-directories-first' - -# Replace Vim implementation -alias vi='nvim' -alias vim='nvim' - -# Replace grep command tool -alias grep='grep --color=auto' -alias egrep='grep -E' -alias fgrep='grep -F' - -# Other aliases -alias paths='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths -alias userlist="cut -d: -f1 /etc/passwd | sort" -alias ip='ip -color' -alias stow='stow -d $DOTFILES ' -