diff --git a/.config/fish/completions/bun.fish b/.config/fish/completions/bun.fish new file mode 100644 index 0000000..6b2dc5b --- /dev/null +++ b/.config/fish/completions/bun.fish @@ -0,0 +1,196 @@ +# This is terribly complicated +# It's because: +# 1. bun run has to have dynamic completions +# 2. there are global options +# 3. bun {install add remove} gets special options +# 4. I don't know how to write fish completions well +# Contributions very welcome!! + +function __fish__get_bun_bins + string split ' ' (bun getcompletes b) +end + +function __fish__get_bun_scripts + set -lx SHELL bash + set -lx MAX_DESCRIPTION_LEN 40 + string trim (string split '\n' (string split '\t' (bun getcompletes z))) +end + +function __fish__get_bun_packages + if test (commandline -ct) != "" + set -lx SHELL fish + string split ' ' (bun getcompletes a (commandline -ct)) + end +end + +function __history_completions + set -l tokens (commandline --current-process --tokenize) + history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | string replace -r \^$tokens[2]\\s\* "" | string split ' ' +end + +function __fish__get_bun_bun_js_files + string split ' ' (bun getcompletes j) +end + +set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose global +set -l bun_install_boolean_flags_descriptions "Write a yarn.lock file (yarn v1)" "Don't install devDependencies" "Add dependency to optionalDependencies" "Add dependency to devDependencies" "Don't update package.json or save a lockfile" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependencies" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" "Use global folder" + +set -l bun_builtin_cmds_without_run dev create help bun upgrade discord install remove add update init pm x repl +set -l bun_builtin_cmds_accepting_flags create help bun upgrade discord run init link unlink pm x update + +function __bun_complete_bins_scripts --inherit-variable bun_builtin_cmds_without_run -d "Emit bun completions for bins and scripts" + # Do nothing if we already have a builtin subcommand, + # or any subcommand other than "run". + if __fish_seen_subcommand_from $bun_builtin_cmds_without_run + or not __fish_use_subcommand && not __fish_seen_subcommand_from run + return + end + # Do we already have a bin or script subcommand? + set -l bins (__fish__get_bun_bins) + if __fish_seen_subcommand_from $bins + return + end + # Scripts have descriptions appended with a tab separator. + # Strip off descriptions for the purposes of subcommand testing. + set -l scripts (__fish__get_bun_scripts) + if __fish_seen_subcommand_from (string split \t -f 1 -- $scripts) + return + end + # Emit scripts. + for script in $scripts + echo $script + end + # Emit binaries and JS files (but only if we're doing `bun run`). + if __fish_seen_subcommand_from run + for bin in $bins + echo "$bin"\t"package bin" + end + for file in (__fish__get_bun_bun_js_files) + echo "$file"\t"Bun.js" + end + end +end + + +# Clear existing completions +complete -e -c bun + +# Dynamically emit scripts and binaries +complete -c bun -f -a "(__bun_complete_bins_scripts)" + +# Complete flags if we have no subcommand or a flag-friendly one. +set -l flag_applies "__fish_use_subcommand; or __fish_seen_subcommand_from $bun_builtin_cmds_accepting_flags" +complete -c bun \ + -n $flag_applies --no-files -s 'u' -l 'origin' -r -d 'Server URL. Rewrites import paths' +complete -c bun \ + -n $flag_applies --no-files -s 'p' -l 'port' -r -d 'Port number to start server from' +complete -c bun \ + -n $flag_applies --no-files -s 'd' -l 'define' -r -d 'Substitute K:V while parsing, e.g. --define process.env.NODE_ENV:\"development\"' +complete -c bun \ + -n $flag_applies --no-files -s 'e' -l 'external' -r -d 'Exclude module from transpilation (can use * wildcards). ex: -e react' +complete -c bun \ + -n $flag_applies --no-files -l 'use' -r -d 'Use a framework (ex: next)' +complete -c bun \ + -n $flag_applies --no-files -l 'hot' -r -d 'Enable hot reloading in Bun\'s JavaScript runtime' + +# Complete dev and create as first subcommand. +complete -c bun \ + -n "__fish_use_subcommand" -a 'dev' -d 'Start dev server' +complete -c bun \ + -n "__fish_use_subcommand" -a 'create' -f -d 'Create a new project from a template' + +# Complete "next" and "react" if we've seen "create". +complete -c bun \ + -n "__fish_seen_subcommand_from create" -a 'next' -d 'new Next.js project' + +complete -c bun \ + -n "__fish_seen_subcommand_from create" -a 'react' -d 'new React project' + +# Complete "upgrade" as first subcommand. +complete -c bun \ + -n "__fish_use_subcommand" -a 'upgrade' -d 'Upgrade bun to the latest version' -x +# Complete "-h/--help" unconditionally. +complete -c bun \ + -s "h" -l "help" -d 'See all commands and flags' -x + +# Complete "-v/--version" if we have no subcommand. +complete -c bun \ + -n "not __fish_use_subcommand" -l "version" -s "v" -d 'Bun\'s version' -x + +# Complete additional subcommands. +complete -c bun \ + -n "__fish_use_subcommand" -a 'discord' -d 'Open bun\'s Discord server' -x + + +complete -c bun \ + -n "__fish_use_subcommand" -a 'bun' -d 'Generate a new bundle' + + +complete -c bun \ + -n "__fish_seen_subcommand_from bun" -F -d 'Bundle this' + +complete -c bun \ + -n "__fish_seen_subcommand_from create; and __fish_seen_subcommand_from react next" -F -d "Create in directory" + + +complete -c bun \ + -n "__fish_use_subcommand" -a 'init' -F -d 'Start an empty Bun project' + +complete -c bun \ + -n "__fish_use_subcommand" -a 'install' -f -d 'Install packages from package.json' + +complete -c bun \ + -n "__fish_use_subcommand" -a 'add' -F -d 'Add a package to package.json' + +complete -c bun \ + -n "__fish_use_subcommand" -a 'remove' -F -d 'Remove a package from package.json' + + +for i in (seq (count $bun_install_boolean_flags)) + complete -c bun \ + -n "__fish_seen_subcommand_from install add remove update" -l "$bun_install_boolean_flags[$i]" -d "$bun_install_boolean_flags_descriptions[$i]" +end + +complete -c bun \ + -n "__fish_seen_subcommand_from install add remove update" -l 'cwd' -d 'Change working directory' + +complete -c bun \ + -n "__fish_seen_subcommand_from install add remove update" -l 'cache-dir' -d 'Choose a cache directory (default: $HOME/.bun/install/cache)' + +complete -c bun \ + -n "__fish_seen_subcommand_from add" -d 'Popular' -a '(__fish__get_bun_packages)' + +complete -c bun \ + -n "__fish_seen_subcommand_from add" -d 'History' -a '(__history_completions)' + +complete -c bun \ + -n "__fish_seen_subcommand_from pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) cache;" -a 'bin ls cache hash hash-print hash-string' -f + +complete -c bun \ + -n "__fish_seen_subcommand_from pm; and __fish_seen_subcommand_from cache; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts);" -a 'rm' -f + +# Add built-in subcommands with descriptions. +complete -c bun -n "__fish_use_subcommand" -a "create" -f -d "Create a new project from a template" +complete -c bun -n "__fish_use_subcommand" -a "build bun" --require-parameter -F -d "Transpile and bundle one or more files" +complete -c bun -n "__fish_use_subcommand" -a "upgrade" -d "Upgrade Bun" +complete -c bun -n "__fish_use_subcommand" -a "run" -d "Run a script or package binary" +complete -c bun -n "__fish_use_subcommand" -a "install" -d "Install dependencies from package.json" -f +complete -c bun -n "__fish_use_subcommand" -a "remove" -d "Remove a dependency from package.json" -f +complete -c bun -n "__fish_use_subcommand" -a "add" -d "Add a dependency to package.json" -f +complete -c bun -n "__fish_use_subcommand" -a "init" -d "Initialize a Bun project in this directory" -f +complete -c bun -n "__fish_use_subcommand" -a "link" -d "Register or link a local npm package" -f +complete -c bun -n "__fish_use_subcommand" -a "unlink" -d "Unregister a local npm package" -f +complete -c bun -n "__fish_use_subcommand" -a "pm" -d "Additional package management utilities" -f +complete -c bun -n "__fish_use_subcommand" -a "x" -d "Execute a package binary, installing if needed" -f +complete -c bun -n "__fish_use_subcommand" -a "outdated" -d "Display the latest versions of outdated dependencies" -f +complete -c bun -n "__fish_use_subcommand" -a "update" -d "Update dependencies to their latest versions" -f +complete -c bun -n "__fish_use_subcommand" -a "publish" -d "Publish your package from local to npm" -f +complete -c bun -n "__fish_use_subcommand" -a "repl" -d "Start a REPL session with Bun" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "e" -l "eval" -r -d "Evaluate argument as a script, then exit" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "p" -l "print" -r -d "Evaluate argument as a script, print the result, then exit" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "r" -l "preload" -r -d "Import a module before other modules are loaded" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "smol" -d "Use less memory, but run garbage collection more often" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "c" -l "config" -r -d "Specify path to Bun config file" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "cwd" -r -d "Absolute path to resolve files & entry points from" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "env-file" -r -d "Load environment variables from the specified file(s)" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "no-env-file" -d "Disable automatic loading of .env files" -f diff --git a/.config/fish/completions/omp.fish b/.config/fish/completions/omp.fish new file mode 100644 index 0000000..51c1496 --- /dev/null +++ b/.config/fish/completions/omp.fish @@ -0,0 +1,279 @@ +# fish completion for omp — generated by `omp completions fish` + +function __fish_omp_no_subcommand + for i in (commandline -opc) + if contains -- $i acp agents auth-broker auth-gateway bench browser-relay cleanse commit completions compress config dry-balance gallery gc grep grievances install join models plugin read say search q setup share shell ssh stats tiny-models token ttsr update usage worktree wt + return 1 + end + end + return 0 +end + +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'acp' -d 'Run Oh My Pi as an ACP (Agent Client Protocol) server over stdio' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'agents' -d 'Manage bundled task agents' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'auth-broker' -d 'Manage the omp auth-broker (credential vault)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'auth-gateway' -d 'Run an auth-gateway forward proxy backed by the configured broker' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'bench' -d 'Benchmark models with the same prompt: time-to-first-token and generation throughput (tokens/s)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'browser-relay' -d 'Run the local CDP relay that lets the browser tool drive your own Chrome tabs' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'cleanse' -d 'Detect and fix project diagnostics with weighted parallel subagents' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'commit' -d 'Generate a commit message and update changelogs' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'completions' -d 'Print a shell completion script (bash, zsh, or fish)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'compress' -d 'Rewrite a text file into the dense prompt register, reporting what it drops' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'config' -d 'Manage configuration settings' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'dry-balance' -d 'Dry-run OAuth account balancing across random session ids' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'gallery' -d 'Preview tool renderers across streaming, in-progress, success, and failure states' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'gc' -d 'Run storage garbage collection' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'grep' -d 'Test grep tool' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'grievances' -d 'View, clean, or push reported tool issues (auto-QA grievances)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'install' -d 'Install or link an extension package (alias of `plugin install`/`plugin link`)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'join' -d 'Join a shared collab session (same as /join)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'models' -d 'List, search, and refresh available models' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'plugin' -d 'Manage plugins (install, uninstall, list, etc.)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'read' -d 'Show what the read tool will return for a path, URL, or internal URI' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'say' -d 'Synthesize text with the local TTS engine and play it through the speakers' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'search' -d 'Test web search providers' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'q' -d 'Test web search providers' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'setup' -d 'Run onboarding setup or install dependencies for optional features' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'share' -d 'Share a saved session via an encrypted link (same as /share)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'shell' -d 'Interactive shell console' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'ssh' -d 'Manage SSH host configurations' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'stats' -d 'View usage statistics' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'tiny-models' -d 'Download tiny local models (session titles + memory)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'token' -d 'Get the API key or OAuth token for a provider' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'ttsr' -d 'Inspect and test Time-Traveling Stream Rules (TTSR)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'update' -d 'Check for and install updates' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'usage' -d 'Show provider usage limits for every authenticated account' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'worktree' -d 'List or clear agent-managed git worktrees (~/.omp/wt)' +complete -c omp -f -n '__fish_omp_no_subcommand' -a 'wt' -d 'List or clear agent-managed git worktrees (~/.omp/wt)' + +complete -c omp -n '__fish_omp_no_subcommand' -l model -d 'Model to use (fuzzy match: "opus", "gpt-5.2", or "openai/gpt-5.2")' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l smol -d 'Smol/fast model for lightweight tasks (or PI_SMOL_MODEL env)' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l slow -d 'Slow/reasoning model for thorough analysis (or PI_SLOW_MODEL env)' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l plan -d 'Plan model for architectural planning (or PI_PLAN_MODEL env)' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l prewalk -d 'Switch from the active model to a fast/cheap model at the first edit/write after the plan’s todo list exists (default off; see prewalk.enabled)' +complete -c omp -n '__fish_omp_no_subcommand' -l no-prewalk -d 'Disable prewalk even if prewalk.enabled is set' +complete -c omp -n '__fish_omp_no_subcommand' -l prewalk-into -d 'Target model for prewalk (default the "smol" role)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l plan-yolo -d 'Force read-only plan mode at start, auto-approve the plan on the model’s first resolve call, then switch to --plan-yolo-into to implement it' +complete -c omp -n '__fish_omp_no_subcommand' -l plan-yolo-into -d 'Target model for plan-yolo execution (default the "smol" role)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l provider -d 'Provider to use (legacy; prefer --model)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l api-key -d 'API key (defaults to env vars)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l system-prompt -d 'System prompt (default: coding assistant prompt)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l append-system-prompt -d 'Append text or file contents to the system prompt' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l allow-home -d 'Allow starting in ~ without auto-switching to a temp dir' +complete -c omp -n '__fish_omp_no_subcommand' -l profile -d 'Use an isolated profile for auth, sessions, settings, and caches' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l alias -d 'Create a shell shortcut for the selected profile and exit' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l cwd -d 'Directory to start in (overrides the launch cwd)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l mode -d 'Output mode: text (default), json, rpc, or rpc-ui' -x -a 'text json rpc acp rpc-ui' +complete -c omp -n '__fish_omp_no_subcommand' -l config -d 'Load an extra config.yml-style overlay for this run (repeatable)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l add-dir -d 'Add a workspace directory beyond the working directory (repeatable)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -s p -l print -d 'Non-interactive mode: process prompt and exit' +complete -c omp -n '__fish_omp_no_subcommand' -s c -l continue -d 'Continue previous session' +complete -c omp -n '__fish_omp_no_subcommand' -s r -l resume -d 'Resume a session (by ID prefix, path, or picker if omitted)' -x -a '(command omp __complete sessions -- (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l from-claude -d 'Import a Claude Code session into OMP' +complete -c omp -n '__fish_omp_no_subcommand' -l from-codex -d 'Import a Codex session into OMP' +complete -c omp -n '__fish_omp_no_subcommand' -l session-dir -d 'Directory for session storage and lookup' -x -a '(__fish_complete_directories (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l no-session -d 'Don’t save session (ephemeral)' +complete -c omp -n '__fish_omp_no_subcommand' -l models -d 'Comma-separated model patterns for Ctrl+P cycling' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_omp_no_subcommand' -l no-tools -d 'Disable all built-in tools' +complete -c omp -n '__fish_omp_no_subcommand' -l no-lsp -d 'Disable LSP tools, formatting, and diagnostics' +complete -c omp -n '__fish_omp_no_subcommand' -l no-pty -d 'Disable PTY-based interactive bash execution' +complete -c omp -n '__fish_omp_no_subcommand' -l tools -d 'Comma-separated list of tools to enable (default: all)' -x -a 'read bash edit ast_grep ast_edit ask debug eval github glob grep lsp inspect_image browser computer checkpoint rewind security_scan task hub todo web_search write memory_edit retain recall reflect learn manage_skill' +complete -c omp -n '__fish_omp_no_subcommand' -l thinking -d 'Set thinking level: off, minimal, low, medium, high, xhigh, max, auto' -x -a 'off minimal low medium high xhigh max auto' +complete -c omp -n '__fish_omp_no_subcommand' -l service-tier -d 'OpenAI service tier for this session (none omits service_tier)' -x -a 'none auto default flex scale priority' +complete -c omp -n '__fish_omp_no_subcommand' -l hide-thinking -d 'Hide thinking blocks in TUI output (display only, does not disable model thinking)' +complete -c omp -n '__fish_omp_no_subcommand' -l advisor -d 'Enable the advisor runtime (passively reviews each turn and injects notes)' +complete -c omp -n '__fish_omp_no_subcommand' -l external-thinking -d 'Use a private scratchpad while disabling supported GPT, Claude, and Gemini reasoning' +complete -c omp -n '__fish_omp_no_subcommand' -l hook -d 'Load a hook/extension file (can be used multiple times)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -s e -l extension -d 'Load an extension file (can be used multiple times)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l no-extensions -d 'Disable extension discovery (explicit -e paths still work)' +complete -c omp -n '__fish_omp_no_subcommand' -l no-skills -d 'Disable skills discovery and loading' +complete -c omp -n '__fish_omp_no_subcommand' -l skills -d 'Comma-separated glob patterns to filter skills (e.g., git-*,docker)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l no-rules -d 'Disable rules discovery and loading' +complete -c omp -n '__fish_omp_no_subcommand' -l export -d 'Export session file to HTML and exit' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l no-title -d 'Disable title auto-generation' +complete -c omp -n '__fish_omp_no_subcommand' -l print-thoughts -d 'Include thinking blocks in print mode text output' +complete -c omp -n '__fish_omp_no_subcommand' -l max-time -d 'Stop the session after this duration (e.g., 600, 10m, 1h)' -r -F +complete -c omp -n '__fish_omp_no_subcommand' -l auto-approve -d 'Auto-approve all tool calls (skip approval prompts)' +complete -c omp -n '__fish_omp_no_subcommand' -l approval-mode -d 'Override tools.approvalMode for this session (always-ask|write|yolo)' -x -a 'always-ask write yolo' + +complete -c omp -n '__fish_seen_subcommand_from agents' -s f -l force -d 'Overwrite existing agent files' +complete -c omp -n '__fish_seen_subcommand_from agents' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from agents' -l dir -d 'Output directory (overrides --user/--project)' -r -F +complete -c omp -n '__fish_seen_subcommand_from agents' -l user -d 'Write to ~/.omp/agent/agents (default)' +complete -c omp -n '__fish_seen_subcommand_from agents' -l project -d 'Write to ./.omp/agents' +complete -c omp -f -n '__fish_seen_subcommand_from agents' -a 'unpack' -d 'Agents action' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -s b -l bind -d 'Bind address for `serve` (host:port)' -r -F +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l regenerate -d 'Regenerate the bearer token' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l via -d 'SSH user@host for remote login (login --via=user@host)' -r -F +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l provider -d 'Override provider id for `import` (e.g. when JSON `type` is unrecognized)' -r -F +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l include-disabled -d 'Import credentials whose JSON has `disabled: true` (import)' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l from-local -d 'migrate source: local SQLite + env vars (required for `migrate`)' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l include-env -d 'Capture env-var API keys for providers not yet on broker (migrate)' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l include-oauth -d 'Also upload OAuth from local SQLite during migrate (default skips them)' +complete -c omp -n '__fish_seen_subcommand_from auth-broker' -l dry-run -d 'Print actions without executing (import / login --via / migrate)' +complete -c omp -f -n '__fish_seen_subcommand_from auth-broker' -a 'serve token login logout import migrate status list' -d 'Sub-command' +complete -c omp -n '__fish_seen_subcommand_from auth-gateway' -l json -d 'Output JSON (token/status/check)' +complete -c omp -n '__fish_seen_subcommand_from auth-gateway' -s b -l bind -d 'Bind address for `serve` (host:port)' -r -F +complete -c omp -n '__fish_seen_subcommand_from auth-gateway' -l regenerate -d 'Regenerate the gateway bearer token (token)' +complete -c omp -n '__fish_seen_subcommand_from auth-gateway' -l no-auth -d 'Disable inbound bearer-token auth (serve). Useful when bound to loopback — any caller is allowed.' +complete -c omp -n '__fish_seen_subcommand_from auth-gateway' -l strict -d 'For `check`: additionally probe each credential against its provider’s chat-completion endpoint. Slower; consumes a tiny amount of quota per credential.' +complete -c omp -f -n '__fish_seen_subcommand_from auth-gateway' -a 'serve token status check' -d 'Sub-command' +complete -c omp -n '__fish_seen_subcommand_from bench' -l runs -d 'Requests per model (results are averaged; default: 10)' -x +complete -c omp -n '__fish_seen_subcommand_from bench' -l max-tokens -d 'Max output tokens per request (default: 512; cache mode: 64)' -x +complete -c omp -n '__fish_seen_subcommand_from bench' -l prompt -d 'Custom prompt text (default: bundled bench prompt)' -r -F +complete -c omp -n '__fish_seen_subcommand_from bench' -l service-tier -d 'Service tier applied per model family (default: configured `tier.*` settings; `none` omits it)' -x -a 'none auto default flex scale priority' +complete -c omp -n '__fish_seen_subcommand_from bench' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from bench' -l par -d 'Execute runs with N parallel queries/requests (default: 4)' -x +complete -c omp -n '__fish_seen_subcommand_from bench' -l cache -d 'Run independent cold/warm prompt-cache pairs (not supported for openai-codex-responses)' +complete -c omp -n '__fish_seen_subcommand_from bench' -l cache-prefix-file -d 'Stable prompt prefix file for --cache' -r -F +complete -c omp -n '__fish_seen_subcommand_from bench' -l cache-prefix-bytes -d 'Stable prefix byte budget for --cache (default: 8192)' -x +complete -c omp -n '__fish_seen_subcommand_from bench' -l cache-pairs -d 'Cold/warm pairs per model for --cache (default: 1)' -x +complete -c omp -n '__fish_seen_subcommand_from bench' -l cache-concurrency -d 'Concurrent cache pairs for --cache; each pair remains sequential (default: 1)' -x +complete -c omp -F -n '__fish_seen_subcommand_from bench' +complete -c omp -n '__fish_seen_subcommand_from browser-relay' -s p -l port -d 'Port to listen on' -x +complete -c omp -n '__fish_seen_subcommand_from browser-relay' -l token -d 'Require the extension to present this token' -r -F +complete -c omp -n '__fish_seen_subcommand_from browser-relay' -l dir -d 'Extension install directory (install; default ~/.omp/browser-relay/extension)' -r -F +complete -c omp -n '__fish_seen_subcommand_from browser-relay' -l no-group -d 'Don’t gather controllable tabs into an ’omp’ tab group' +complete -c omp -n '__fish_seen_subcommand_from browser-relay' -s v -l verbose -d 'Log relay traffic summaries to stderr' +complete -c omp -f -n '__fish_seen_subcommand_from browser-relay' -a 'serve install' -d 'Action: serve | install (default serve)' +complete -c omp -n '__fish_seen_subcommand_from cleanse' -s n -l agents -d 'Maximum number of file-disjoint subagents' -x +complete -c omp -n '__fish_seen_subcommand_from cleanse' -s m -l model -d 'Subagent model selector' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_seen_subcommand_from cleanse' -s t -l tests -d 'Also run configured project test suites' +complete -c omp -n '__fish_seen_subcommand_from cleanse' -s a -l all -d 'Run every discovered checker without the interactive picker' +complete -c omp -F -n '__fish_seen_subcommand_from cleanse' +complete -c omp -n '__fish_seen_subcommand_from commit' -l push -d 'Push after committing' +complete -c omp -n '__fish_seen_subcommand_from commit' -l dry-run -d 'Preview without committing' +complete -c omp -n '__fish_seen_subcommand_from commit' -l no-changelog -d 'Skip changelog updates' +complete -c omp -n '__fish_seen_subcommand_from commit' -l legacy -d 'Use legacy deterministic pipeline' +complete -c omp -n '__fish_seen_subcommand_from commit' -s c -l context -d 'Additional context for the model' -r -F +complete -c omp -n '__fish_seen_subcommand_from commit' -s m -l model -d 'Override model selection' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -f -n '__fish_seen_subcommand_from completions' -a 'bash zsh fish' -d 'Target shell' +complete -c omp -n '__fish_seen_subcommand_from compress' -s o -l out -d 'Write the approved text here instead of stdout (single file)' -r -F +complete -c omp -n '__fish_seen_subcommand_from compress' -s i -l inPlace -d 'Overwrite each source file with its approved text' +complete -c omp -n '__fish_seen_subcommand_from compress' -s r -l rounds -d 'Maximum drafts per file before giving up' -x +complete -c omp -n '__fish_seen_subcommand_from compress' -s n -l agents -d 'Files compressed concurrently' -x +complete -c omp -n '__fish_seen_subcommand_from compress' -s m -l model -d 'Model selector' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -F -n '__fish_seen_subcommand_from compress' +complete -c omp -n '__fish_seen_subcommand_from config' -l json -d 'Output JSON' +complete -c omp -f -n '__fish_seen_subcommand_from config' -a 'list get set reset path init-xdg' -d 'Config action' +complete -c omp -n '__fish_seen_subcommand_from dry-balance' -l model -d 'Model selector (same syntax as --model on omp)' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_seen_subcommand_from dry-balance' -l count -d 'Number of random session ids to try' -x +complete -c omp -n '__fish_seen_subcommand_from dry-balance' -l concurrency -d 'Maximum concurrent credential resolutions' -x +complete -c omp -n '__fish_seen_subcommand_from dry-balance' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from dry-balance' -l bench -d 'Send one live benchmark request per OAuth account' +complete -c omp -F -n '__fish_seen_subcommand_from dry-balance' +complete -c omp -n '__fish_seen_subcommand_from gallery' -s t -l tool -d 'Render a single tool by name' -r -F +complete -c omp -n '__fish_seen_subcommand_from gallery' -s s -l state -d 'Render only the given lifecycle state(s)' -x -a 'streaming streaming args progress in progress success done error failed' +complete -c omp -n '__fish_seen_subcommand_from gallery' -s w -l width -d 'Render width in columns' -x +complete -c omp -n '__fish_seen_subcommand_from gallery' -s e -l expanded -d 'Render the expanded variant of each renderer' +complete -c omp -n '__fish_seen_subcommand_from gallery' -l plain -d 'Strip ANSI styling from the output' +complete -c omp -n '__fish_seen_subcommand_from gallery' -l screenshot -d 'Capture the rendered output as PNG screenshot(s) via VHS instead of printing ANSI (requires vhs)' +complete -c omp -n '__fish_seen_subcommand_from gallery' -s o -l out -d 'Screenshot output path (with --screenshot); suffixed per image when split across multiple' -r -F +complete -c omp -n '__fish_seen_subcommand_from gallery' -l font -d 'Screenshot font family (default: JetBrainsMono Nerd Font)' -r -F +complete -c omp -n '__fish_seen_subcommand_from gallery' -l font-size -d 'Screenshot font size in points (default: 18)' -x +complete -c omp -n '__fish_seen_subcommand_from gc' -l apply -d 'Apply changes (default is dry-run)' +complete -c omp -n '__fish_seen_subcommand_from gc' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from gc' -l agent-dir -d 'Agent directory to maintain' -r -F +complete -c omp -n '__fish_seen_subcommand_from gc' -l blobs -d 'Sweep unreferenced blobs' +complete -c omp -n '__fish_seen_subcommand_from gc' -l archive -d 'Archive cold sessions' +complete -c omp -n '__fish_seen_subcommand_from gc' -l wal -d 'Checkpoint history/model database WAL files' +complete -c omp -n '__fish_seen_subcommand_from gc' -l cold-archive-after-days -d 'Minimum session age before archiving' -x +complete -c omp -n '__fish_seen_subcommand_from gc' -l retain-newest-global -d 'Always keep this many newest sessions active' -x +complete -c omp -n '__fish_seen_subcommand_from gc' -l retain-newest-per-cwd -d 'Always keep this many newest sessions per cwd active' -x +complete -c omp -n '__fish_seen_subcommand_from grep' -s g -l glob -d 'Filter files by glob pattern' -r -F +complete -c omp -n '__fish_seen_subcommand_from grep' -s l -l limit -d 'Max matches' -x +complete -c omp -n '__fish_seen_subcommand_from grep' -s C -l context -d 'Context lines' -x +complete -c omp -n '__fish_seen_subcommand_from grep' -s f -l files -d 'Output file names only' +complete -c omp -n '__fish_seen_subcommand_from grep' -s c -l count -d 'Output match counts per file' +complete -c omp -n '__fish_seen_subcommand_from grep' -l no-gitignore -d 'Include files excluded by .gitignore' +complete -c omp -F -n '__fish_seen_subcommand_from grep' +complete -c omp -n '__fish_seen_subcommand_from grievances' -s n -l limit -d 'Number of recent issues to show (list)' -x +complete -c omp -n '__fish_seen_subcommand_from grievances' -s t -l tool -d 'Filter by tool name (list, clean)' -r -F +complete -c omp -n '__fish_seen_subcommand_from grievances' -s j -l json -d 'Output as JSON' +complete -c omp -n '__fish_seen_subcommand_from grievances' -l id -d 'Delete a single grievance by id (clean)' -x +complete -c omp -n '__fish_seen_subcommand_from grievances' -l all -d 'Delete every grievance (clean)' +complete -c omp -f -n '__fish_seen_subcommand_from grievances' -a 'list clean push' -d 'list (default), clean, or push' +complete -c omp -n '__fish_seen_subcommand_from install' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from install' -l force -d 'Force install' +complete -c omp -n '__fish_seen_subcommand_from install' -l dry-run -d 'Show actions without applying changes' +complete -c omp -n '__fish_seen_subcommand_from install' -l scope -d 'Install scope: "user" (default) or "project" (marketplace installs only)' -x -a 'user project' +complete -c omp -F -n '__fish_seen_subcommand_from install' +complete -c omp -F -n '__fish_seen_subcommand_from join' +complete -c omp -n '__fish_seen_subcommand_from models' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from models' -s e -l extension -d 'Load an extension file before listing (repeatable)' -r -F +complete -c omp -n '__fish_seen_subcommand_from models' -l no-extensions -d 'Disable extension discovery (explicit -e paths still work)' +complete -c omp -n '__fish_seen_subcommand_from models' -l config -d 'Load an extra config.yml-style overlay for this run (repeatable)' -r -F +complete -c omp -F -n '__fish_seen_subcommand_from models' +complete -c omp -n '__fish_seen_subcommand_from plugin' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from plugin' -l fix -d 'Attempt to fix issues (doctor)' +complete -c omp -n '__fish_seen_subcommand_from plugin' -l force -d 'Force install' +complete -c omp -n '__fish_seen_subcommand_from plugin' -l dry-run -d 'Show actions without applying changes' +complete -c omp -n '__fish_seen_subcommand_from plugin' -s l -l local -d 'Operate on local plugin directory' +complete -c omp -n '__fish_seen_subcommand_from plugin' -l enable -d 'Enable a feature' -r -F +complete -c omp -n '__fish_seen_subcommand_from plugin' -l disable -d 'Disable a feature' -r -F +complete -c omp -n '__fish_seen_subcommand_from plugin' -l set -d 'Set plugin config (key=value)' -r -F +complete -c omp -n '__fish_seen_subcommand_from plugin' -l scope -d 'Install scope: "user" (default) or "project"' -x -a 'user project' +complete -c omp -f -n '__fish_seen_subcommand_from plugin' -a 'install uninstall list link doctor features config enable disable marketplace discover upgrade' -d 'Plugin action' +complete -c omp -F -n '__fish_seen_subcommand_from read' +complete -c omp -n '__fish_seen_subcommand_from say' -l voice -d 'Voice id' -x -a 'af_heart af_bella af_nicole af_aoede af_kore af_sarah am_michael am_fenrir am_puck bf_emma bm_george bm_fable' +complete -c omp -n '__fish_seen_subcommand_from say' -l model -d 'Local TTS model key' -x -a '(command omp __complete models -- (commandline -ct))' +complete -c omp -n '__fish_seen_subcommand_from say' -s f -l file -d 'Read the text to speak from this file' -r -F +complete -c omp -n '__fish_seen_subcommand_from say' -s o -l out -d 'Write WAV to this path instead of playing' -r -F +complete -c omp -F -n '__fish_seen_subcommand_from say' +complete -c omp -n '__fish_seen_subcommand_from search q' -l provider -d 'Search provider' -x -a 'auto perplexity gemini anthropic codex xai zai exa tinyfish jina kagi tavily firecrawl brave kimi parallel synthetic searxng startpage duckduckgo ecosia google mojeek public' +complete -c omp -n '__fish_seen_subcommand_from search q' -l recency -d 'Recency filter' -x -a 'day week month year' +complete -c omp -n '__fish_seen_subcommand_from search q' -s l -l limit -d 'Max results to return' -x +complete -c omp -n '__fish_seen_subcommand_from search q' -l compact -d 'Render condensed output' +complete -c omp -F -n '__fish_seen_subcommand_from search q' +complete -c omp -n '__fish_seen_subcommand_from setup' -s c -l check -d 'Check if dependencies are installed' +complete -c omp -n '__fish_seen_subcommand_from setup' -l json -d 'Output status as JSON' +complete -c omp -f -n '__fish_seen_subcommand_from setup' -a 'python speech' -d 'Optional component to install' +complete -c omp -n '__fish_seen_subcommand_from share' -l gist -d 'Upload to a secret GitHub gist instead of the share server' +complete -c omp -F -n '__fish_seen_subcommand_from share' +complete -c omp -n '__fish_seen_subcommand_from shell' -s C -l cwd -d 'Set working directory for commands' -r -F +complete -c omp -n '__fish_seen_subcommand_from shell' -s t -l timeout -d 'Timeout per command in milliseconds' -x +complete -c omp -n '__fish_seen_subcommand_from shell' -l no-snapshot -d 'Skip sourcing snapshot from user shell' +complete -c omp -n '__fish_seen_subcommand_from ssh' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from ssh' -l host -d 'Host address' -r -F +complete -c omp -n '__fish_seen_subcommand_from ssh' -l user -d 'Username' -r -F +complete -c omp -n '__fish_seen_subcommand_from ssh' -l port -d 'Port number' -r -F +complete -c omp -n '__fish_seen_subcommand_from ssh' -l key -d 'Identity key path' -r -F +complete -c omp -n '__fish_seen_subcommand_from ssh' -l desc -d 'Host description' -r -F +complete -c omp -n '__fish_seen_subcommand_from ssh' -l compat -d 'Enable compatibility mode' +complete -c omp -n '__fish_seen_subcommand_from ssh' -l scope -d 'Config scope (project|user)' -x -a 'project user' +complete -c omp -f -n '__fish_seen_subcommand_from ssh' -a 'add remove list' -d 'SSH action' +complete -c omp -n '__fish_seen_subcommand_from stats' -s p -l port -d 'Port for the dashboard server' -x +complete -c omp -n '__fish_seen_subcommand_from stats' -s j -l json -d 'Output stats as JSON' +complete -c omp -n '__fish_seen_subcommand_from stats' -s s -l summary -d 'Print summary to console' +complete -c omp -n '__fish_seen_subcommand_from tiny-models' -l json -d 'Output JSON' +complete -c omp -f -n '__fish_seen_subcommand_from tiny-models' -a 'download list' -d 'Action to perform' +complete -c omp -n '__fish_seen_subcommand_from token' -l raw -d 'Output the raw credential value without parsing nested JSON structures' +complete -c omp -n '__fish_seen_subcommand_from token' -l force-refresh -d 'Force refresh the OAuth token even if it has not expired' +complete -c omp -n '__fish_seen_subcommand_from token' -s a -l account -d 'Select the Nth OAuth account (1-based) in stored order instead of the round-robin default' -x +complete -c omp -n '__fish_seen_subcommand_from token' -s l -l list -d 'List the provider’s OAuth accounts (index + identity) and exit' +complete -c omp -F -n '__fish_seen_subcommand_from token' +complete -c omp -n '__fish_seen_subcommand_from ttsr' -l file -d 'Snippet file path, or - for stdin (ttsr test)' -r -F +complete -c omp -n '__fish_seen_subcommand_from ttsr' -s r -l rule -d 'Rule markdown file to test in isolation (skips project rule loading)' -r -F +complete -c omp -n '__fish_seen_subcommand_from ttsr' -l source -d 'Match source: text, thinking, or tool (inferred from --file when omitted)' -x -a 'text thinking tool' +complete -c omp -n '__fish_seen_subcommand_from ttsr' -l tool -d 'Tool name when source is tool (e.g. edit, write); defaults to edit' -r -F +complete -c omp -n '__fish_seen_subcommand_from ttsr' -s p -l path -d 'Candidate file path for scope/glob matching and AST language inference' -r -F +complete -c omp -n '__fish_seen_subcommand_from ttsr' -s v -l verbose -d 'Show every evaluated rule, not just triggered ones' +complete -c omp -n '__fish_seen_subcommand_from ttsr' -l json -d 'Output JSON' +complete -c omp -n '__fish_seen_subcommand_from ttsr' -l no-gitignore -d 'Include files excluded by .gitignore (ttsr scan)' +complete -c omp -n '__fish_seen_subcommand_from ttsr' -l max-bytes -d 'Maximum file size to scan in bytes; 0 disables the limit (ttsr scan)' -x +complete -c omp -f -n '__fish_seen_subcommand_from ttsr' -a 'test list scan' -d 'TTSR action' +complete -c omp -n '__fish_seen_subcommand_from update' -s f -l force -d 'Force update' +complete -c omp -n '__fish_seen_subcommand_from update' -s c -l check -d 'Check for updates without installing' +complete -c omp -n '__fish_seen_subcommand_from update' -s l -l plugins -d 'Update installed plugins' +complete -c omp -n '__fish_seen_subcommand_from usage' -s j -l json -d 'Output usage reports as JSON' +complete -c omp -n '__fish_seen_subcommand_from usage' -s p -l provider -d 'Only show usage for this provider id (e.g. anthropic)' -r -F +complete -c omp -n '__fish_seen_subcommand_from usage' -s r -l redact -d 'Redact account emails/ids (shortest unique prefix) for sharing screenshots' +complete -c omp -n '__fish_seen_subcommand_from usage' -l history -d 'Show recorded usage-limit history (hourly snapshots) instead of a live snapshot' +complete -c omp -n '__fish_seen_subcommand_from usage' -s d -l days -d 'History window in days (with --history)' -x +complete -c omp -f -n '__fish_seen_subcommand_from usage' -a 'invalidate' -d 'Optional subcommand to execute' +complete -c omp -n '__fish_seen_subcommand_from worktree wt' -l all -d 'Clear every entry, including live PR-checkout worktrees (clear)' +complete -c omp -n '__fish_seen_subcommand_from worktree wt' -s n -l dry-run -d 'Print what would be removed without touching the filesystem (clear)' +complete -c omp -n '__fish_seen_subcommand_from worktree wt' -s j -l json -d 'Emit machine-readable JSON' +complete -c omp -f -n '__fish_seen_subcommand_from worktree wt' -a 'list clear' -d 'list (default) or clear' + diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 13600ae..21583cd 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -24,3 +24,11 @@ set --export PATH $BUN_INSTALL/bin $PATH # Hermes Agent — ensure ~/.local/bin is on PATH fish_add_path "$HOME/.local/bin" + +# kimi-code +fish_add_path -g "/home/tahinli/.kimi-code/bin" + +# Added by jcode installer +if not contains "/home/tahinli/.local/bin" $PATH + set -gx PATH "/home/tahinli/.local/bin" $PATH +end diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 07ca8ef..f1cb7d6 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -59,6 +59,7 @@ application/x-python=com.system76.CosmicEdit.desktop x-scheme-handler/claude-cli=claude-code-url-handler.desktop x-scheme-handler/surrealist=surrealist.desktop x-scheme-handler/openhuman=OpenHuman-handler.desktop +x-scheme-handler/zcode=zcode.desktop [Added Associations] video/mp4=mpv.desktop; diff --git a/.config/niri/config.bak b/.config/niri/config.bak new file mode 100644 index 0000000..9554294 --- /dev/null +++ b/.config/niri/config.bak @@ -0,0 +1,349 @@ + +hotkey-overlay { + skip-at-startup +} + +input { + keyboard { + xkb { + layout "tr"; + } + numlock + } + + touchpad { + tap + natural-scroll + } + + mouse { + accel-profile "flat" + } + + trackpoint { + } + + wake-monitors-on-input false +} + +prefer-no-csd + +gestures { + hot-corners { + off + } +} + +output "DP-1" { + mode "2560x1440@180" + scale 1 + transform "normal" + position x=0 y=0 + focus-at-startup +} + +output "HDMI-A-1" { + mode "1920x1080@75.003" + scale 1 + transform "normal" + position x=2560 y=0 +} + +layout { + gaps 3 + struts { + left 7 + right 7 + top 7 + bottom 7 + } + + center-focused-column "never" + + empty-workspace-above-first + + default-column-width { proportion 0.5; } + preset-column-widths { + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + proportion 1.0 + } + + focus-ring { + off + } + + border { + width 3 + + // WALLUST-GRADIENT + active-gradient from="#4D0830" to="#7E420A" angle=90 in="oklch" + + inactive-color "#595959aa" + urgent-color "#9b0000" + } + +} + +environment { + QT_QPA_PLATFORMTHEME "gtk3" + XCURSOR_SIZE "24" +} + +spawn-at-startup "sh" "-c" "sleep 1 && /usr/libexec/polkit-mate-authentication-agent-1" +spawn-at-startup "sh" "-c" "bash ~/.config/scripts/niri/wallpaper_restore.sh" +spawn-at-startup "sh" "-c" "bash ~/.config/scripts/shared/song_detail_writer.sh" +spawn-at-startup "sh" "-c" "sleep 1 && waybar -c ~/.config/waybar/config-niri" +spawn-at-startup "sh" "-c" "sleep 2 && kdeconnect-indicator" +spawn-at-startup "sh" "-c" "sleep 3 && /opt/Mullvad\\ VPN/mullvad-vpn" +spawn-at-startup "sh" "-c" "sleep 3 && swaync-client -dn" +spawn-at-startup "sh" "-c" "sleep 3 && wl-paste --type text --watch cliphist store" +spawn-at-startup "sh" "-c" "sleep 3 && wl-paste --type image --watch cliphist store" +spawn-at-startup "sh" "-c" "sleep 4 && rfkill unblock bluetooth && bluetoothctl power on" + +spawn-at-startup "sh" "-c" "sleep 1 && bash ~/.config/scripts/niri/workspace_startup.sh" + +screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" + +animations { +} + +window-rule { + // background fill in border color: the border's inner AA edge and the app's + // corner AA edge share a line; without the fill the backdrop bleeds through + // that seam. Transparent apps opt back out per-rule (wezterm below). + draw-border-with-background true + // libadwaita 1.6+ draws 15; must stay >= the largest toolkit radius so + // clip-to-geometry dominates and the border hugs every corner. 16 = 1px margin. + geometry-corner-radius 16 + clip-to-geometry true +} + +window-rule { + match app-id=r#"^org\.wezfurlong\.wezterm$"# + opacity 0.8 + draw-border-with-background false +} + +window-rule { + match app-id=r#"firefox$"# title="^Picture-in-Picture$" + open-floating true +} + +// Hunt: Showdown — fullscreen so the surface matches the 2560x1440 X screen the +// game maps input to; floating clamps to the working area (-20px) and offsets clicks +window-rule { + match app-id=r#"^steam_app_594650$"# + open-fullscreen true + border { off; } + focus-ring { off; } + shadow { off; } + geometry-corner-radius 0 + clip-to-geometry false + draw-border-with-background false +} + +workspace "code" +workspace "github" +workspace "whatsapp" +workspace "discord" +workspace "deezer" +workspace "youtube" +workspace "mail" +workspace "signal" + +binds { + Alt+T hotkey-overlay-title="Terminal: wezterm" { spawn-sh "wezterm start --always-new-process"; } + Alt+Q hotkey-overlay-title="Files: nautilus" { spawn-sh "nautilus --new-window"; } + + Alt+F1 hotkey-overlay-title="rofi: window switcher" { spawn-sh "rofi -show"; } + Alt+1 hotkey-overlay-title="rofi: window switcher" { spawn-sh "rofi -show"; } + Alt+F2 hotkey-overlay-title="rofi: run" { spawn-sh "rofi -show drun -show-icons"; } + Alt+2 hotkey-overlay-title="rofi: run" { spawn-sh "rofi -show drun -show-icons"; } + Shift+Alt+F2 hotkey-overlay-title="rofi: run (outside VPN)" { spawn-sh "mullvad-exclude rofi -show drun -show-icons"; } + Shift+Alt+2 hotkey-overlay-title="rofi: run (outside VPN)" { spawn-sh "mullvad-exclude rofi -show drun -show-icons"; } + Alt+F3 hotkey-overlay-title="Clipboard history" { spawn-sh "cliphist list | rofi -dmenu -show-icons -i | cliphist decode | wl-copy"; } + Alt+3 hotkey-overlay-title="Clipboard history" { spawn-sh "cliphist list | rofi -dmenu -show-icons -i | cliphist decode | wl-copy"; } + + Alt+F hotkey-overlay-title="Browser" { spawn-sh "flatpak run io.github.ungoogled_software.ungoogled_chromium --enable-features=MiddleClickAutoscroll"; } + Shift+Alt+F hotkey-overlay-title="Browser (incognito, outside VPN)" { spawn-sh "mullvad-exclude flatpak run org.chromium.Chromium --incognito --enable-features=MiddleClickAutoscroll,AllowLegacyMV2Extensions --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled,ExtensionsManifestV3Only"; } + + Alt+C hotkey-overlay-title="Workspace: code" { spawn-sh "~/.config/scripts/niri/workspace_app.sh code zed"; } + Alt+G hotkey-overlay-title="Workspace: github" { spawn-sh "~/.config/scripts/niri/workspace_app.sh github ~/.config/scripts/shared/webapp.sh https://github.com/ FCF18Wmt"; } + Alt+W hotkey-overlay-title="Workspace: whatsapp" { spawn-sh "~/.config/scripts/niri/workspace_app.sh whatsapp ~/.config/scripts/shared/webapp.sh --mullvad https://web.whatsapp.com/ aW2IMaZ8"; } + Alt+D hotkey-overlay-title="Workspace: discord" { spawn-sh "~/.config/scripts/niri/workspace_app.sh discord flatpak run org.equicord.equibop"; } + Alt+S hotkey-overlay-title="Workspace: deezer" { spawn-sh "~/.config/scripts/niri/workspace_app.sh deezer ~/.config/scripts/shared/webapp.sh --mullvad https://deezer.com/ VjW8vTQ3"; } + Alt+Y hotkey-overlay-title="Workspace: youtube" { spawn-sh "~/.config/scripts/niri/workspace_app.sh youtube mullvad-exclude flatpak run io.freetubeapp.FreeTube"; } + Alt+P hotkey-overlay-title="Workspace: mail" { spawn-sh "~/.config/scripts/niri/workspace_app.sh mail ~/.config/scripts/shared/webapp.sh https://mail.proton.me/ eIpzVtL8"; } + Alt+N hotkey-overlay-title="Workspace: signal" { spawn-sh "~/.config/scripts/niri/workspace_app.sh signal flatpak run org.signal.Signal"; } + + Mod+Shift+C { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move code"; } + Mod+Shift+G { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move github"; } + Mod+Shift+W { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move whatsapp"; } + Mod+Shift+D { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move discord"; } + Mod+Shift+S { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move deezer"; } + Mod+Shift+Y { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move youtube"; } + Mod+Shift+P { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move mail"; } + Mod+Shift+N { spawn-sh "~/.config/scripts/niri/workspace_app.sh --move signal"; } + + Super+L hotkey-overlay-title="Lock: hyprlock" { spawn "hyprlock"; } + Mod+Escape hotkey-overlay-title="Power menu" { spawn-sh "bash ~/.config/scripts/system/power_menu.sh"; } + Mod+X hotkey-overlay-title="Show desktop" { spawn-sh "~/.config/scripts/niri/show_desktop.sh"; } + Mod+H hotkey-overlay-title="Toggle waybar" { spawn-sh "pkill -SIGUSR1 waybar"; } + Mod+B hotkey-overlay-title="Wallpaper picker" { spawn-sh "~/.config/scripts/niri/wallpaper_picker.sh"; } + Mod+Shift+M hotkey-overlay-title="Monitors menu" { spawn-sh "~/.config/scripts/niri/toggle_monitors.sh"; } + Mod+Shift+K hotkey-overlay-title="USB plug/unplug menu" { spawn-sh "bash ~/.config/scripts/system/usb_menu.sh"; } + Mod+Ctrl+M hotkey-overlay-title="Wake monitors" { power-on-monitors; } + + Alt+4 repeat=false { close-window; } + Alt+F4 repeat=false { close-window; } + Mod+Alt+F4 { quit; } + + Mod+Shift+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } + Mod+Shift+Slash { show-hotkey-overlay; } + Mod+O repeat=false { toggle-overview; } + Super+Alt+S allow-when-locked=true hotkey-overlay-title=null { spawn-sh "pkill orca || exec orca"; } + + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; } + XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; } + XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; } + XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; } + XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; } + XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; } + XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; } + XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; } + XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; } + XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; } + + Print { spawn-sh "grim -t png - | tee \"$HOME/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%S').png\" | wl-copy -t image/png"; } + Shift+Print { spawn-sh "grim -t png -g \"$(slurp)\" - | wl-copy -t image/png"; } + Ctrl+Print { screenshot-screen; } + Alt+Print { screenshot-window; } + + Mod+Q { focus-monitor "DP-1"; } + Mod+E { focus-monitor "HDMI-A-1"; } + Mod+Shift+Q { move-column-to-monitor "DP-1"; } + Mod+Shift+E { move-column-to-monitor "HDMI-A-1"; } + + + // Left-hand WASD navigation (right hand stays on mouse) + Mod+A { focus-column-or-monitor-left; } + Mod+D { focus-column-or-monitor-right; } + Mod+W { spawn-sh "~/.config/scripts/niri/workspace_nav.sh up"; } + Mod+S { spawn-sh "~/.config/scripts/niri/workspace_nav.sh down"; } + + Mod+Left { focus-column-left; } + Mod+Right { focus-column-right; } + Mod+Up { spawn-sh "~/.config/scripts/niri/workspace_nav.sh up"; } + Mod+Down { spawn-sh "~/.config/scripts/niri/workspace_nav.sh down"; } + Mod+J { focus-window-down; } + Mod+K { focus-window-up; } + Mod+Home { focus-column-first; } + Mod+End { focus-column-last; } + Mod+Tab { focus-window-previous; } + Alt+Tab { focus-workspace-previous; } + + // Left-hand WASD moving + Mod+Ctrl+A { move-column-left-or-to-monitor-left; } + Mod+Ctrl+D { move-column-right-or-to-monitor-right; } + Mod+Ctrl+W { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-up"; } + Mod+Ctrl+S { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-down"; } + + Mod+Ctrl+Left { move-column-left; } + Mod+Ctrl+Right { move-column-right; } + Mod+Ctrl+Up { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-up"; } + Mod+Ctrl+Down { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-down"; } + Mod+Ctrl+H { move-column-left; } + Mod+Ctrl+L { move-column-right; } + Mod+Ctrl+J { move-window-down; } + Mod+Ctrl+K { move-window-up; } + Mod+Ctrl+Home { move-column-to-first; } + Mod+Ctrl+End { move-column-to-last; } + + Mod+1 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 1"; } + Mod+2 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 2"; } + Mod+3 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 3"; } + Mod+4 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 4"; } + Mod+5 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 5"; } + Mod+6 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 6"; } + Mod+7 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 7"; } + Mod+8 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 8"; } + Mod+9 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 9"; } + Mod+0 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh focus 10"; } + + Mod+Shift+1 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 1"; } + Mod+Shift+2 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 2"; } + Mod+Shift+3 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 3"; } + Mod+Shift+4 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 4"; } + Mod+Shift+5 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 5"; } + Mod+Shift+6 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 6"; } + Mod+Shift+7 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 7"; } + Mod+Shift+8 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 8"; } + Mod+Shift+9 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 9"; } + Mod+Shift+0 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 10"; } + + Mod+Ctrl+1 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 1"; } + Mod+Ctrl+2 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 2"; } + Mod+Ctrl+3 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 3"; } + Mod+Ctrl+4 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 4"; } + Mod+Ctrl+5 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 5"; } + Mod+Ctrl+6 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 6"; } + Mod+Ctrl+7 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 7"; } + Mod+Ctrl+8 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 8"; } + Mod+Ctrl+9 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move 9"; } + + Mod+Page_Down { spawn-sh "~/.config/scripts/niri/workspace_nav.sh next"; } + Mod+Page_Up { spawn-sh "~/.config/scripts/niri/workspace_nav.sh prev"; } + Mod+U { spawn-sh "~/.config/scripts/niri/workspace_nav.sh next"; } + Mod+I { spawn-sh "~/.config/scripts/niri/workspace_nav.sh prev"; } + Mod+Ctrl+Page_Down { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-next"; } + Mod+Ctrl+Page_Up { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-prev"; } + Mod+Ctrl+U { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-next"; } + Mod+Ctrl+I { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-prev"; } + Mod+Shift+Page_Down { move-workspace-down; } + Mod+Shift+Page_Up { move-workspace-up; } + Mod+Shift+U { move-workspace-down; } + Mod+Shift+I { move-workspace-up; } + + Mod+WheelScrollDown cooldown-ms=150 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh next"; } + Mod+WheelScrollUp cooldown-ms=150 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh prev"; } + Mod+Ctrl+WheelScrollDown cooldown-ms=150 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-next"; } + Mod+Ctrl+WheelScrollUp cooldown-ms=150 { spawn-sh "~/.config/scripts/niri/workspace_nav.sh move-prev"; } + Mod+WheelScrollRight { focus-column-right; } + Mod+WheelScrollLeft { focus-column-left; } + Mod+Ctrl+WheelScrollRight { move-column-right; } + Mod+Ctrl+WheelScrollLeft { move-column-left; } + Mod+Shift+WheelScrollDown { focus-column-right; } + Mod+Shift+WheelScrollUp { focus-column-left; } + Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } + Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } + + Mod+F { toggle-window-floating; } + Mod+Shift+F { fullscreen-window; } + Mod+M { maximize-column; } + Mod+Ctrl+F { expand-column-to-available-width; } + Mod+Shift+V { switch-focus-between-floating-and-tiling; } + + Mod+Shift+Right { set-column-width "+30"; } + Mod+Shift+Left { set-column-width "-30"; } + Mod+Shift+Up { set-window-height "-30"; } + Mod+Shift+Down { set-window-height "+30"; } + Mod+Minus { set-column-width "-10%"; } + Mod+Equal { set-column-width "+10%"; } + Mod+Shift+Minus { set-window-height "-10%"; } + Mod+Shift+Equal { set-window-height "+10%"; } + + Mod+R { switch-preset-column-width; } + Mod+Shift+R { switch-preset-column-width-back; } + Mod+Ctrl+R { reset-window-height; } + Mod+Ctrl+Shift+R { switch-preset-window-height; } + + Mod+C { center-column; } + Mod+Ctrl+C { center-visible-columns; } + Mod+BracketLeft { consume-or-expel-window-left; } + Mod+BracketRight { consume-or-expel-window-right; } + Mod+Comma { consume-window-into-column; } + Mod+Period { expel-window-from-column; } + Mod+Ctrl+T { toggle-column-tabbed-display; } +} diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 51d6b0b..3d002de 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -62,7 +62,7 @@ layout { empty-workspace-above-first - default-column-width { proportion 1.0; } + default-column-width { proportion 0.5; } preset-column-widths { proportion 0.33333 proportion 0.5 @@ -126,11 +126,6 @@ window-rule { draw-border-with-background false } -window-rule { - match app-id=r#"firefox$"# title="^Picture-in-Picture$" - open-floating true -} - // Hunt: Showdown — fullscreen so the surface matches the 2560x1440 X screen the // game maps input to; floating clamps to the working area (-20px) and offsets clicks window-rule { @@ -154,6 +149,11 @@ workspace "mail" workspace "signal" binds { + // >>> jcode launch hotkeys (managed) >>> + Super+Semicolon hotkey-overlay-title="jcode: home" { spawn "sh" "-c" "if [ -d '/home/tahinli' ]; then cd '/home/tahinli'; else cd \"$HOME\"; fi; exec 'kitty' '/home/tahinli/.jcode/builds/versions/0.80.0/jcode-linux-x86_64.bin' --spawn-hotkey 'cmd+;'"; } + Super+Apostrophe hotkey-overlay-title="jcode: last project" { spawn "sh" "-c" "if [ -d '/home/tahinli' ]; then cd '/home/tahinli'; else cd \"$HOME\"; fi; exec 'kitty' '/home/tahinli/.jcode/builds/versions/0.80.0/jcode-linux-x86_64.bin' --spawn-hotkey 'cmd+'\\'''"; } + Super+Shift+Apostrophe hotkey-overlay-title="jcode: self-dev (self-dev)" { spawn "sh" "-c" "if [ -d '/home/tahinli' ]; then cd '/home/tahinli'; else cd \"$HOME\"; fi; exec 'kitty' '/home/tahinli/.jcode/builds/versions/0.80.0/jcode-linux-x86_64.bin' --spawn-hotkey 'cmd+shift+'\\''' self-dev"; } + // <<< jcode launch hotkeys (managed) <<< Alt+T hotkey-overlay-title="Terminal: wezterm" { spawn-sh "wezterm start --always-new-process"; } Alt+Q hotkey-overlay-title="Files: nautilus" { spawn-sh "nautilus --new-window"; }