From d258e96b96e502d26cfeb90fd241c60cecea7aa6 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:00 +1000 Subject: [PATCH] walker: init --- stow/.config/walker/config.toml | 317 +++++++++++++++++++++ stow/.config/walker/themes/.gitignore | 1 + stow/.config/walker/themes/tokyonight.css | 159 +++++++++++ stow/.config/walker/themes/tokyonight.toml | 100 +++++++ 4 files changed, 577 insertions(+) create mode 100644 stow/.config/walker/config.toml create mode 100644 stow/.config/walker/themes/.gitignore create mode 100644 stow/.config/walker/themes/tokyonight.css create mode 100644 stow/.config/walker/themes/tokyonight.toml diff --git a/stow/.config/walker/config.toml b/stow/.config/walker/config.toml new file mode 100644 index 0000000..405a6cb --- /dev/null +++ b/stow/.config/walker/config.toml @@ -0,0 +1,317 @@ +# general +app_launch_prefix = "" +terminal_title_flag = "" +locale = "" +close_when_open = false +theme = "tokyonight" +monitor = "" +hotreload_theme = true +as_window = false +timeout = 0 +disable_click_to_close = false +force_keyboard_focus = false + +# keybinds +[keys] +accept_typeahead = ["tab"] +trigger_labels = "lalt" +next = ["down"] +prev = ["up"] +close = ["esc"] +remove_from_history = ["shift backspace"] +resume_query = ["ctrl r"] +toggle_exact_search = ["ctrl m"] + +[keys.activation_modifiers] +keep_open = "shift" +alternate = "alt" + +[events] +on_activate = "" +on_selection = "" +on_exit = "" +on_launch = "" +on_query_change = "" + +[list] +dynamic_sub = true +keyboard_scroll_style = "emacs" +max_entries = 50 +show_initial_entries = false +single_click = true +visibility_threshold = 20 +placeholder = "no results" + +[search] +argument_delimiter = "#" +placeholder = "search..." +delay = 0 +resume_last_query = true + +[activation_mode] +labels = "jkl;asdf" + +# +# modules +# + +[builtins.applications] +weight = 5 +name = "applications" +placeholder = "Applications" +prioritize_new = true +hide_actions_with_empty_query = true +context_aware = true +refresh = true +show_sub_when_single = true +show_icon_when_single = true +show_generic = true +history = true + +[builtins.applications.actions] +enabled = true +hide_category = false +hide_without_query = true +weight = 4 + +[builtins.xdph_picker] +hidden = true +weight = 5 +placeholder = "Screen/Window Picker" +show_sub_when_single = true +name = "xdphpicker" +switcher_only = false + + +[builtins.calc] +require_number = true +weight = 5 +name = "calc" +icon = "accessories-calculator" +placeholder = "Calculator" +min_chars = 4 + +[builtins.windows] +weight = 3 +icon = "view-restore" +name = "windows" +placeholder = "Windows" +show_icon_when_single = true + +[builtins.clipboard] +exec = "wl-copy" +weight = 5 +name = "clipboard" +avoid_line_breaks = true +placeholder = "Clipboard" +image_height = 300 +max_entries = 10 +switcher_only = true + +[builtins.commands] +weight = -1 +icon = "utilities-terminal" +switcher_only = true +name = "commands" +placeholder = "Commands" + +[builtins.emojis] +exec = "wl-copy" +weight = 2 +name = "emojis" +placeholder = "Emojis" +switcher_only = false +history = true +typeahead = true +show_unqualified = false + +[builtins.symbols] +after_copy = "" +weight = 1 +name = "symbols" +placeholder = "Symbols" +switcher_only = false +history = true +typeahead = true + +[builtins.finder] +use_fd = false +weight = 5 +icon = "file" +name = "finder" +placeholder = "Finder" +switcher_only = true +ignore_gitignore = true +refresh = true +concurrency = 8 +show_icon_when_single = true + +[builtins.runner] +weight = 5 +icon = "utilities-terminal" +name = "runner" +placeholder = "Runner" +typeahead = true +history = true +generic_entry = false +refresh = true +switcher_only = true + +[builtins.ssh] +weight = 5 +icon = "preferences-system-network" +name = "ssh" +placeholder = "SSH" +switcher_only = true +history = true +refresh = true + +[builtins.switcher] +weight = 5 +name = "switcher" +placeholder = "Switcher" +prefix = "/" + +[builtins.dmenu] +hidden = true +weight = 5 +name = "dmenu" +placeholder = "Dmenu" +switcher_only = true + +# +# ai +# + +[builtins.ai] +weight = 5 +placeholder = "AI" +name = "ai" +icon = "help-browser" +switcher_only = true + +[keys.ai] +clear_session = ["ctrl x"] +copy_last_response = ["ctrl c"] +resume_session = ["ctrl r"] +run_last_response = ["ctrl e"] + +[[builtins.ai.anthropic.prompts]] +model = "claude-3-5-sonnet-20241022" +temperature = 1 +max_tokens = 1_000 +label = "General Assistant" +prompt = "You are a helpful general assistant. Keep your answers short and precise." + +# +# search +# + +[builtins.websearch] +weight = 5 +icon = "applications-internet" +name = "websearch" +placeholder = "Websearch" + +[[builtins.websearch.entries]] +name = "DuckDuckGo" +url = "https://duckduckgo.com/?q=%TERM%" +switcher_only = true + +# +# commands +# + +[builtins.custom_commands] +weight = 5 +icon = "utilities-terminal" +name = "custom_commands" +placeholder = "Custom Commands" + +# power related +[[builtins.custom_commands.commands]] +name = "Shutdown" +cmd = "systemctl poweroff" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Reboot" +cmd = "systemctl reboot" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Suspend" +cmd = "systemctl suspend" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Hibernate" +cmd = "systemctl hibernate" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Hibernate" +cmd = "systemctl hibernate" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Lock" +cmd = "loginctl lock-session" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Kill all user processes" +cmd = "pkill -u $USER" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Logout" +cmd = "uwsm stop" +Terminal = false + +# hypr +[[builtins.custom_commands.commands]] +name = "Pin window to all workspaces" +cmd = "hyprctl dispatch pin" +Terminal = false + +[[builtins.custom_commands.commands]] +name = "Toggle do not disturb" +cmd = "swaync-client --toggle-dnd" +Terminal = false + +# +# bookmarks +# + +[builtins.bookmarks] +weight = 5 +placeholder = "Bookmarks" +name = "bookmarks" +icon = "bookmark" +switcher_only = false + +[[builtins.bookmarks.entries]] +label = "Codeberg" +url = "https://codeberg.org" +keywords = ["code", "git"] + +[[builtins.bookmarks.entries]] +label = "Github" +url = "https://github.com" +keywords = ["code", "git"] + +[[builtins.bookmarks.entries]] +label = "Hyprland Wiki" +url = "https://wiki.hyprland.org" +keywords = ["code", "linux", "customise"] + +[[builtins.bookmarks.entries]] +label = "Nixpkgs github" +url = "https://github.com/nixos/nixpkgs" +keywords = ["code", "linux"] + +[[builtins.bookmarks.entries]] +label = "Nix Search" +url = "https://search.nixos.org" +keywords = ["linux"] diff --git a/stow/.config/walker/themes/.gitignore b/stow/.config/walker/themes/.gitignore new file mode 100644 index 0000000..2d7f007 --- /dev/null +++ b/stow/.config/walker/themes/.gitignore @@ -0,0 +1 @@ +default.* diff --git a/stow/.config/walker/themes/tokyonight.css b/stow/.config/walker/themes/tokyonight.css new file mode 100644 index 0000000..6442fb8 --- /dev/null +++ b/stow/.config/walker/themes/tokyonight.css @@ -0,0 +1,159 @@ +@define-color foreground rgba(192, 202, 245, 1); +@define-color background rgba(26, 27, 38, 1); +@define-color color1 rgba(247, 118, 142, 1); + +#window, +#box, +#aiScroll, +#aiList, +#search, +#password, +#input, +#prompt, +#clear, +#typeahead, +#list, +child, +scrollbar, +slider, +#item, +#text, +#label, +#bar, +#sub, +#activationlabel { + all: unset; +} + +#cfgerr { + background: rgba(255, 0, 0, 0.4); + margin-top: 20px; + padding: 8px; + font-size: 1.2em; +} + +#window { + color: @foreground; +} + +#box { + border-radius: 20px; + background: @background; + padding: 32px; + border: 1px solid lighter(@background); + box-shadow: + 0 19px 38px rgba(0, 0, 0, 0.3), + 0 15px 12px rgba(0, 0, 0, 0.22); +} + +#search { + box-shadow: + 0 1px 3px rgba(0, 0, 0, 0.1), + 0 1px 2px rgba(0, 0, 0, 0.22); + background: lighter(@background); + padding: 8px; +} + +#prompt { + margin-left: 4px; + margin-right: 12px; + color: @foreground; + opacity: 0.2; +} + +#clear { + color: @foreground; + opacity: 0.8; +} + +#password, +#input, +#typeahead { + border-radius: 2px; +} + +#input { + background: none; +} + +#password { +} + +#spinner { + padding: 8px; +} + +#typeahead { + color: @foreground; + opacity: 0.8; +} + +#input placeholder { + opacity: 0.5; +} + +#list { +} + +child { + padding: 8px; + border-radius: 2px; +} + +child:selected, +child:hover { + background: alpha(@color1, 0.4); +} + +#item { +} + +#icon { + margin-right: 8px; +} + +#text { +} + +#label { + font-weight: 500; +} + +#sub { + opacity: 0.5; + font-size: 0.8em; +} + +#activationlabel { +} + +#bar { +} + +.barentry { +} + +.activation #activationlabel { +} + +.activation #text, +.activation #icon, +.activation #search { + opacity: 0.5; +} + +.aiItem { + padding: 10px; + border-radius: 2px; + color: @foreground; + background: @background; +} + +.aiItem.user { + padding-left: 0; + padding-right: 0; +} + +.aiItem.assistant { + background: lighter(@background); +} diff --git a/stow/.config/walker/themes/tokyonight.toml b/stow/.config/walker/themes/tokyonight.toml new file mode 100644 index 0000000..2a65d71 --- /dev/null +++ b/stow/.config/walker/themes/tokyonight.toml @@ -0,0 +1,100 @@ +[ui.anchors] +bottom = true +left = true +right = true +top = true + +[ui.window] +h_align = "fill" +v_align = "fill" + +[ui.window.box] +h_align = "center" +width = 600 + +[ui.window.box.bar] +orientation = "horizontal" +position = "end" + +[ui.window.box.bar.entry] +h_align = "fill" +h_expand = true + +[ui.window.box.bar.entry.icon] +h_align = "center" +h_expand = true +pixel_size = 24 +theme = "" + +[ui.window.box.margins] +top = 400 + +[ui.window.box.ai_scroll] +name = "aiScroll" +h_align = "fill" +v_align = "fill" +max_height = 300 +min_width = 400 +height = 300 +width = 400 + +[ui.window.box.ai_scroll.margins] +top = 8 + +[ui.window.box.ai_scroll.list] +name = "aiList" +orientation = "vertical" +width = 400 +spacing = 10 + +[ui.window.box.ai_scroll.list.item] +name = "aiItem" +h_align = "fill" +v_align = "fill" +x_align = 0 +y_align = 0 +wrap = true + +[ui.window.box.scroll.list] +max_height = 300 +max_width = 400 +min_width = 400 +width = 400 + +[ui.window.box.scroll.list.item.activation_label] +h_align = "fill" +v_align = "fill" +width = 20 +x_align = 0.5 +y_align = 0.5 + +[ui.window.box.scroll.list.item.icon] +pixel_size = 26 +theme = "" + +[ui.window.box.scroll.list.margins] +top = 8 + +[ui.window.box.search.prompt] +name = "prompt" +icon = "edit-find" +theme = "" +pixel_size = 18 +h_align = "center" +v_align = "center" + +[ui.window.box.search.clear] +name = "clear" +icon = "edit-clear" +theme = "" +pixel_size = 18 +h_align = "center" +v_align = "center" + +[ui.window.box.search.input] +h_align = "fill" +h_expand = true +icons = true + +[ui.window.box.search.spinner] +hide = true