From a87b0121909f52b67706047f08d499c6156afe65 Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Tue, 19 Sep 2023 11:49:07 +0100 Subject: [PATCH] Update Fish/Qtile --- dconf/.config/dconf/user | Bin 4648 -> 8672 bytes fish/.config/fish/completions/bun.fish | 163 ++++++++++++++++++++++++ fish/.config/fish/config.fish | 4 + fish/.config/fish/functions/99_ssh.fish | 2 +- package-list/.config/package-list | 1 + qtile/.config/qtile/core/keys.py | 3 + 6 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 fish/.config/fish/completions/bun.fish diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index 7540c201f133a3f394df532b42e878698bb7d049..cf427476f942046a8984ca74705a4e40d6ab789d 100644 GIT binary patch literal 8672 zcmbW73v?89md1;hfP&x)5gd6cAXGXpArTcuK!OiI2#Sc3>h4OqOm|mXRhj0%Y3 z3k4kn2Qw}zE2xaJBkQWLgF4KJ%B<)zyXxZL14nkm$2q#r>g?~Uu7sdDyXS13^YMLs ztLk6>$G!J|tHRXFEYGpBfe{`3;dI~d$H@C4TW7c%I0|$JJwQ)z4CvJXdSergZHMF0 zCxLzuPKF1x!%xtI!O#f9;8qMrp8-aIGb4qgBv5<1PeEVTfmYZU@58Vc!h@8Vv1SH%D_KeFFB~@S9-s2>aa{?9wM!^m{c^}8;e6WFEI&qMH+VCN-k|Lbz>(y}Wtjs$zI zno`w_UAiCkiSPwr(si5fS3jlI{#-Z?roI14Z4Gwmldw0zi^1Oerv3a{?9%e*CGc{v zbx`8~T`%1Y`wDm!=<~WiNck?*w6g)*M)1Mu_ifWWNNXOp!#lvKPdxJZ9PH9PvG0c8 z1lKQK_hL16Y5DU$_#ha0;k)P6V3*ds9fH3C@7z;!hmT$Qc-raFkMV)JM{m7OfvSnL(>c<|N(i}z}trDdN9&jxb_^zKoEU0VIAfm2}InB0Tvr?loL z2M6GiDK9^xJxjVf?KH!8gVeNB_RPdC-JR=K!|TEQEf=j`dy%#E@{QZV0ai_<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MVW#-qGOvXO~n*DpjF^;|Whp5Ddc1F%&> z(_zSH9zLV*Bb_xkl3JezR{?!PjR$(H>j1|Y>jscElD_Iv&zZTJIYWWIfsz1*#tWSM zd1;2A@Yg-zcLe*0@jTB~zEeJ@sj5U=tX#dv5;8vjT$hm-{NAg?1zs;Zp%m6tj zlYBQtT~4Kzgm#|r)tWNn+_%^6SnSXLUl}=tbI#zJQwY!fJ(3o)(8^jHtX<>3T`c$je?0n|ZbF zMQ6~NcM3?3F?Lw3y^^wLUnN~`J}y4axaFp;A+gB7nUCkT+}@2MtCIxh#@hdnXgDeC zAmpXTH-3~eex5dhIVu{@!_R)2qn8RNnM#%BdtPNT$Pa(1lQ33%XmOV7Gm|q%(rPhI Kz{Y<+SpNkcC?yI2 diff --git a/fish/.config/fish/completions/bun.fish b/fish/.config/fish/completions/bun.fish new file mode 100644 index 000000000..2158790a5 --- /dev/null +++ b/fish/.config/fish/completions/bun.fish @@ -0,0 +1,163 @@ +# 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 + +function bun_fish_is_nth_token --description 'Test if current token is on Nth place' --argument-names n + set -l tokens (commandline -poc) + set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens) + test (count $tokens) -eq "$n" +end + +function __bun_command_count --argument-names n + set -l cmds (commandline -poc) + + test (count cmds) -eq "$n" +end + +function __bun_last_cmd --argument-names n + set -l cmds (commandline -poc) + + test "(cmds[-1])" = "$n" +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 install devDependencies" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependenices" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" "Use global folder" + +set -l bun_builtin_cmds dev create help bun upgrade discord run install remove add init link unlink pm x +set -l bun_builtin_cmds_without_run dev create help bun upgrade discord install remove add init pm x +set -l bun_builtin_cmds_without_bun dev create help upgrade run discord install remove add init pm x +set -l bun_builtin_cmds_without_create dev help bun upgrade discord run install remove add init pm x +set -l bun_builtin_cmds_without_install create dev help bun upgrade discord run remove add init pm x +set -l bun_builtin_cmds_without_remove create dev help bun upgrade discord run install add init pm x +set -l bun_builtin_cmds_without_add create dev help bun upgrade discord run remove install init pm x +set -l bun_builtin_cmds_without_pm create dev help bun upgrade discord run init pm x + +# clear +complete -e -c bun + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a '(__fish__get_bun_scripts)' -d 'script' +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_bins)' -d 'package bin' +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_scripts)' -d 'script' +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_bun_js_files)' -d 'Bun.js' +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a 'run' -f -d 'Run a script or bin' +complete -c bun \ + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'u' -l 'origin' -r -d 'Server URL. Rewrites import paths' +complete -c bun \ + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'p' -l 'port' -r -d 'Port number to start server from' +complete -c bun \ + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --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 "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'e' -l 'external' -r -d 'Exclude module from transpilation (can use * wildcards). ex: -e react' +complete -c bun \ + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l 'use' -r -d 'Use a framework (ex: next)' +complete -c bun \ + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l 'hot' -r -d 'Enable hot reloading in Bun\'s JavaScript runtime' + +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a 'dev' -d 'Start dev server' +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'create' -f -d 'Create a new project from a template' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create next react; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from create;" -a 'next' -d 'new Next.js project' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create next react; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from create;" -a 'react' -d 'new React project' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a 'upgrade' -d 'Upgrade bun to the latest version' -x +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a '--help' -d 'See all commands and flags' -x + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -l "version" -s "v" -a '--version' -d 'Bun\'s version' -x +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a 'discord' -d 'Open bun\'s Discord server' -x + + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_bun; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); __fish_use_subcommand" -a 'bun' -d 'Generate a new bundle' + + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_bun; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from bun" -F -d 'Bundle this' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create; and not __fish_seen_subcommand_from (__fish__get_bun_bins); and not __fish_seen_subcommand_from (__fish__get_bun_scripts); and __fish_seen_subcommand_from react; or __fish_seen_subcommand_from next" -F -d "Create in directory" + + +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'init' -F -d 'Start an empty Bun project' + +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'install' -f -d 'Install packages from package.json' + +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'add' -F -d 'Add a package to package.json' + +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'remove' -F -d 'Remove a package from package.json' + +complete -c bun \ + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand add remove" -F + + +for i in (seq (count $bun_install_boolean_flags)) + complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l "$bun_install_boolean_flags[$i]" -d "$bun_install_boolean_flags_descriptions[$i]" +end + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l 'cwd' -d 'Change working directory' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l 'cache-dir' -d 'Choose a cache directory (default: $HOME/.bun/install/cache)' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from add;" -d 'Popular' -a '(__fish__get_bun_packages)' + +complete -c bun \ + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __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 + +complete -c bun -n "not __fish_seen_subcommand_from $bun_builtin_cmds (__fish__get_bun_bins) (__fish__get_bun_scripts)" -a "$bun_builtin_cmds" -f \ No newline at end of file diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index a46630366..45f81eb3c 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -7,3 +7,7 @@ end for functions in "$HOME/.config/fish/functions/"* source $functions end + +# bun +set --export BUN_INSTALL "$HOME/.bun" +set --export PATH $BUN_INSTALL/bin $PATH diff --git a/fish/.config/fish/functions/99_ssh.fish b/fish/.config/fish/functions/99_ssh.fish index 76afcf83c..bbdb6e7e9 100644 --- a/fish/.config/fish/functions/99_ssh.fish +++ b/fish/.config/fish/functions/99_ssh.fish @@ -1,7 +1,7 @@ # ssh commands function chris - ssh linknsync@51.89.161.207 + ssh linknsync@213.246.150.150 end function sshme diff --git a/package-list/.config/package-list b/package-list/.config/package-list index f8a652bc0..8e2a06270 100644 --- a/package-list/.config/package-list +++ b/package-list/.config/package-list @@ -74,3 +74,4 @@ xmenu xroot xtitle yay +youtube-dl diff --git a/qtile/.config/qtile/core/keys.py b/qtile/.config/qtile/core/keys.py index 69f4544ca..f2e5fbe25 100644 --- a/qtile/.config/qtile/core/keys.py +++ b/qtile/.config/qtile/core/keys.py @@ -53,9 +53,12 @@ keys = [Key(*key) for key in [ # type: ignore ([mod, "control"], "b", lazy.hide_show_bar()), ([mod, "control"], "s", lazy.shutdown()), ([mod, "shift"], "r", restart), + ([mod, "shift"], "e", lazy.spawn(cfg.power)), # terminal ([mod], "Return", lazy.spawn(cfg.term)), + + # file manager ([mod, "shift"], "Return", lazy.spawn(cfg.files)), # app launcher