Skip to content

Commit b496a05

Browse files
MikeT3chSchneegans
authored andcommitted
Update installation-on-linux.mdx with hyprland new 0.55 syntax
hyprland 0.55+ uses lua as a config language, however .conf is still supported by now for like 1-2 major versions.
1 parent bce5a98 commit b496a05

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

src/content/docs/installation-on-linux.mdx

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,28 @@ You will need some window rules for Kando.
190190
Else, the menu will not float above other windows.
191191

192192
<Tabs>
193-
<TabItem label="Hyprland 0.53+">
193+
<TabItem label="Hyprland 0.55+">
194+
```
195+
// ~/.config/hypr/hyprland.lua
196+
hl.windowrule({
197+
name = "kando",
198+
match = {
199+
class = "menu.kando.Kando",
200+
title = "Kando Menu"
201+
},
202+
no_blur = true,
203+
opaque = true,
204+
move = {0, 0}
205+
rounding = 0
206+
size = { "100%", "100%" },
207+
border_size = 0,
208+
no_anim = true,
209+
float = true,
210+
pin = true,
211+
})
212+
```
213+
</TabItem>
214+
<TabItem label="Hyprland 0.53 to 0.55">
194215
```
195216
// ~/.config/hypr/hyprland.conf
196217
windowrule {
@@ -226,14 +247,14 @@ Else, the menu will not float above other windows.
226247
#### Shortcuts
227248

228249
Also, Kando cannot directly bind global shortcuts on Hyprland.
229-
Instead, you specify a shortcut ID for each menu in Kando's menu editor and bind a key combination in `hyprland.conf`.
250+
Instead, you specify a shortcut ID for each menu in Kando's menu editor and bind a key combination in `hyprland.conf` or `hyprland.lua`.
230251
For this, do the following:
231252

232253
<Steps>
233254

234255
1. Run Kando and set a shortcut ID for your menu in the menu editor.
235256
2. Open a terminal and run `hyprctl globalshortcuts` to list all currently registered global shortcuts.
236-
3. Find the line that corresponds to your shortcut ID and add a line like `bind = CTRL, Space, global, <shortcut ID>` to your `hyprland.conf`.
257+
3. Find the line that corresponds to your shortcut ID and add a line like `bind = CTRL, Space, global, <shortcut ID>` to your `hyprland.conf` or `hl.bind("CTRL + Space", hl.dsp.global("<shorcut ID>"))` if you're using `hyprland.lua`.
237258

238259
</Steps>
239260

@@ -245,12 +266,18 @@ Here are some examples:
245266
```
246267
// ~/.config/hypr/hyprland.conf
247268
bind = CTRL, Space, global, menu.kando.Kando:example-menu
269+
270+
// ~/.config/hypr/hyprland.lua
271+
hl.bind("CTRL + Space", hl.dsp.global("menu.kando.Kando:example-menu"))
248272
```
249273
</TabItem>
250274
<TabItem label="Older non-Flatpak installations">
251275
```
252276
// ~/.config/hypr/hyprland.conf
253277
bind = CTRL, Space, global, :example-menu
278+
279+
// ~/.config/hypr/hyprland.lua
280+
hl.bind("CTRL + Space", hl.dsp.global(":example-menu"))
254281
```
255282
</TabItem>
256283
</Tabs>
@@ -266,6 +293,9 @@ To do this, add the following line to your config:
266293
```
267294
// ~/.config/hypr/hyprland.conf
268295
env=ELECTRON_OZONE_PLATFORM_HINT,auto
296+
297+
// ~/.config/hypr/hyprland.lua
298+
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
269299
```
270300

271301
#### Input Issues

0 commit comments

Comments
 (0)