Skip to content

Commit 4e08d06

Browse files
committed
📝 Add new content
1 parent bb3bd20 commit 4e08d06

File tree

15 files changed

+329
-6
lines changed

15 files changed

+329
-6
lines changed

astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default defineConfig({
3131
'getting-started/installation-macos',
3232
'getting-started/installation-linux',
3333
'getting-started/usage',
34+
'getting-started/creating-menus',
3435
{
3536
label: 'Available Item Types',
3637
items: [
@@ -65,7 +66,7 @@ export default defineConfig({
6566
{
6667
label: 'API References',
6768
collapsed: true,
68-
items: ['reference/cli', 'reference/config-files'],
69+
items: ['reference/cli', 'reference/config-files', 'reference/valid-keys'],
6970
},
7071
{
7172
label: 'Discord 🗗',

src/assets/hotkey-settings.jpg

53.7 KB
Loading

src/assets/menu-settings.jpg

53.6 KB
Loading

src/assets/settings-button.jpg

14.9 KB
Loading

src/content/docs/advanced-usage/customizing.mdx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,25 @@ banner:
99

1010
Kando comes with a few themes pre-installed. You can find more themes in the [Kando Menu Themes Repository](https://github.com/kando-menu/menu-themes)!
1111

12-
## Icon Themes
12+
## Icon Themes
13+
14+
To add your own icons to Kando, follow these steps:
15+
1. Create a new `icon-themes` directory in Kando's configuration directory if it does not yet exist. Depending on your OS, this will be the following locations:
16+
* <img height="14" width="26" src="https://upload.wikimedia.org/wikipedia/commons/c/c4/Windows_logo_-_2021_%28Black%29.svg" /> Windows: `%appdata%\kando\icon-themes`
17+
* <img height="14" width="26" src="https://cdn.simpleicons.org/apple" /> macOS: `~/Library/Application Support/kando/icon-themes`
18+
* <img height="14" width="26" src="https://cdn.simpleicons.org/linux/black" /> Linux: `~/.config/kando/icon-themes`
19+
2. Create a new directory for your icon theme in the `icon-themes` directory. You can give it any name you like.
20+
3. Add your icons to the new directory. The icons can be in various formats, but we recommend using SVG files.
21+
4. **Restart Kando.** Icon themes are only loaded when Kando starts.
22+
5. Select your icon theme in the icon-theme dropdown in the icon picker in Kando's menu editor.
23+
24+
> [!CAUTION]
25+
> Kando will also load icon themes from `resources/app/.webpack/renderer/assets/icon-themes/` in the installation directory. This can be interesting if you are packaging icon themes using a package manager. However, as an end user, you should not put your icon themes there, as they might be overwritten during an update.
26+
27+
### Some Tips for Creating Icon Themes
28+
29+
* You can organize your icons in subdirectories. Kando will load them recursively. The directory will be part of the icon's name and therefore you can use the search bar to filter by directory.
30+
* There are many great icon sets available on the internet. Here are some which you could try:
31+
* [Numix Circle](https://github.com/numixproject/numix-icon-theme-circle): Just use the files from the `Numix-Circle/48/apps` directory.
32+
* [Papirus](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme): Here you could use the content from the `Papirus/64x64` directory.
33+
* [Tela](https://github.com/vinceliuice/Tela-icon-theme): Here you find the icons in the `src/scalable` directory.

src/content/docs/advanced-usage/opening-menus.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,34 @@ description: A reference page in my new Starlight docs site.
44
banner:
55
content: 🚧 This page is under construction! 🚧
66
---
7+
8+
While Kando does not have a cross-platform way to open menus with a mouse button, there are many platform-dependent third-party tools which can help you with this.
9+
With some creativity, you can open menus not only with mouse buttons but also with gestures, desktop widgets, or in many other ways.
10+
11+
You can either make the third-party tool open the menu by simulation the shortcut for the menu, or it can directly call the Kando executable with the `--menu "menu name"` argument.
12+
13+
* <img height="14" width="26" src="https://upload.wikimedia.org/wikipedia/commons/c/c4/Windows_logo_-_2021_%28Black%29.svg" /> Windows: `%localappdata%\Kando\app-<version number>\Kando.exe --menu "Menu Name"`
14+
* <img height="14" width="26" src="https://cdn.simpleicons.org/apple" /> macOS: `/Applications/Kando.app/Contents/MacOS/Kando --menu "Menu Name"`
15+
* <img height="14" width="26" src="https://cdn.simpleicons.org/linux/black" /> Linux: `/usr/bin/kando --menu "Menu Name"`
16+
17+
Below are some applications which can help you to open menus in various ways.
18+
If you discovered a cool new way to open menus, please let us know! You can either open an issue, open a pull request, or join the [Discord server](https://discord.gg/hZwbVSDkhy) to discuss your idea!
19+
20+
### <img height="14" width="26" src="https://upload.wikimedia.org/wikipedia/commons/c/c4/Windows_logo_-_2021_%28Black%29.svg" /> Windows
21+
22+
* [AutoHotkey](https://www.autohotkey.com/) is a powerful scripting language for Windows. You can use it to run the kando command when you press a mouse button or to remap a mouse button to a keyboard shortcut which opens a Kando menu.
23+
* [GestureSign](https://www.microsoft.com/store/productId/9N45WQVK2QQW?ocid=pdpshare) allows opening a Kando menu with multi-touch taps and gestures on both touchpad and touchscreen.
24+
25+
### <img height="14" width="26" src="https://cdn.simpleicons.org/apple" /> macOS
26+
27+
* [Karabiner-Elements](https://karabiner-elements.pqrs.org/) can be used to remap mouse buttons to keyboard shortcuts.
28+
* [BetterTouchTool](https://folivora.ai/) allows opening a Kando menu via touchpad gestures.
29+
* [BetterMouse](https://better-mouse.com/) is a tool which allows you to remap mouse buttons to keyboard shortcuts.
30+
31+
### <img height="14" width="26" src="https://cdn.simpleicons.org/linux/black" /> Linux
32+
33+
* [Input Remapper](https://github.com/sezanzeb/input-remapper) is a tool which allows you to remap mouse buttons to keyboard shortcuts. It works both on **X11 and Wayland**.
34+
* [Touchegg](https://github.com/JoseExposito/touchegg#readme) is a multitouch gesture recognizer for Linux. You can use it to open a Kando menu with touchpad gestures. It only works on **X11**.
35+
* **KDE Plasma** comes with built-in support for remapping mouse buttons to keyboard shortcuts. You can find [this feature](https://www.phoronix.com/news/KDE-Rebind-Extra-Mouse-Buttons) in the system settings under "System Settings" / "Mouse & Touchpad" / "Add Binding".
36+
* There's a [Configurable Button](https://store.kde.org/p/1297839/) widget for **KDE Plasma** which allows running `kando --menu "menu name"` when clicked.
37+
* On **GNOME Shell**, you can use the [CHC-E (Custom Hot Corners - Extended)](https://extensions.gnome.org/extension/4167/custom-hot-corners-extended/) extension to run arbitrary commands when you move your mouse to a corner of the screen.

src/content/docs/getting-involved/compile-from-source.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ If you want to test the latest development version of Kando, or want to contribu
1919

2020
## <Icon name="solar:link-square-bold-duotone" class="inline-icon" /> Intalling Dependencies
2121

22-
23-
2422
<Tabs>
2523
<TabItem label="Windows" icon="seti:windows">
2624
You will need [Git](https://git-scm.com/), [NodeJS](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), [CMake](https://cmake.org/), and a C++ toolchain. There are several ways to install these on Windows. Here is a common way to get them:
Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,51 @@
11
---
22
title: Create Your First Menu
33
description: A guide in my new Starlight docs site.
4-
banner:
5-
content: 🚧 This page is under construction! 🚧
4+
tableOfContents: false
65
---
6+
7+
import { Aside } from '@astrojs/starlight/components';
8+
import Intro from '../../../components/Intro.astro';
9+
import { Icon } from 'astro-icon/components';
10+
11+
![banner](../../../assets/banner01.png)
12+
13+
<Intro>
14+
Kando comes with an example menu which you can use to get started.
15+
However, you should soon adapt the menu to your needs and create your own menus.
16+
</Intro>
17+
18+
19+
Kando comes with a **graphical menu editor** which allows you to create and edit your own menus.
20+
There are three ways to open the menu editor:
21+
22+
<img src="/src/assets/settings-button.jpg" align="right" width="150px"></img>
23+
24+
1. **When a menu is shown:** Click the gear icon in the bottom right corner of the screen.
25+
2. **From the system tray:** Right-click the Kando icon and select "Show Settings".
26+
3. **From the command line:** Run `kando --settings`.
27+
28+
In the editor, you can create new menus, and edit existing menus.
29+
Drag new items from the toolbar to the menu preview, reorder them, and change their properties on the right side of the screen.
30+
31+
<Aside type="note">
32+
There are several advanced options which are not yet exposed in the editor UI. See the [Config-File Documentation](/reference/config-files) for all advanced options.
33+
</Aside>
34+
35+
## Three Tips for Efficient Menu Layouts
36+
37+
<Aside type="tip" title="Avoid too many items in a single menu!">
38+
Instead, create submenus. Eight items per menu is a good rule of thumb, and you should never have more than twelve items in a single menu.
39+
</Aside>
40+
41+
<Aside type="tip" title="Deeply nested menus are not a problem!">
42+
Kando is designed to handle deeply nested menus. You can use the marking mode to quickly select items which are in subsubsubmenus.
43+
</Aside>
44+
45+
<Aside type="tip" title="Use the fixed-angle locks to create a clean layout!">
46+
Even if you have an odd number of items, you can use fixed angles to lock items to the top, bottom, left, or right side of the menu.
47+
</Aside>
48+
49+
<Intro>
50+
Read the next sections to learn more about the available menu-item types and how to configure them.
51+
</Intro>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Open URIs
33
description: An Kando item which opens a URI.
4+
tableOfContents: false
45
banner:
56
content: 🚧 This page is under construction! 🚧
67
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Paste Text
33
description: An Kando item which pastes text into the active application.
4+
tableOfContents: false
45
banner:
56
content: 🚧 This page is under construction! 🚧
67
---

0 commit comments

Comments
 (0)