feat(hyprlua): spawn filepicker dialog at 10% of the display
Rename the at-cursor rule to filepicker and move the dialog to a fixed position 10% into the display (from the top-left) instead of following the cursor. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>feat/astal-menu
parent
3324e669bb
commit
8900fe0004
|
|
@ -52,8 +52,8 @@ hl.bind(mainMod .. " + SHIFT + R", hl.dsp.exec_cmd("wofi --show drun"))
|
||||||
hl.bind("CTRL + SHIFT + R", hl.dsp.exec_cmd(menu))
|
hl.bind("CTRL + SHIFT + R", hl.dsp.exec_cmd(menu))
|
||||||
|
|
||||||
-- File picker dialog -> clipboard (path / contents)
|
-- File picker dialog -> clipboard (path / contents)
|
||||||
hl.bind(mainMod .. " + F", hl.dsp.exec_cmd("[tag +at-cursor] ~/.config/scripts/filepicker-clipboard.sh path"))
|
hl.bind(mainMod .. " + F", hl.dsp.exec_cmd("[tag +filepicker] ~/.config/scripts/filepicker-clipboard.sh path"))
|
||||||
hl.bind(mainMod .. " + SHIFT + F", hl.dsp.exec_cmd("[tag +at-cursor] ~/.config/scripts/filepicker-clipboard.sh content"))
|
hl.bind(mainMod .. " + SHIFT + F", hl.dsp.exec_cmd("[tag +filepicker] ~/.config/scripts/filepicker-clipboard.sh content"))
|
||||||
-- old:
|
-- old:
|
||||||
-- hl.bind(mainMod .. " + F", hl.dsp.exec_cmd("~/.config/scripts/wofi-file-search.sh"))
|
-- hl.bind(mainMod .. " + F", hl.dsp.exec_cmd("~/.config/scripts/wofi-file-search.sh"))
|
||||||
-- hl.bind(mainMod .. " + SHIFT + F", hl.dsp.exec_cmd("~/.config/scripts/foldersearch.sh"))
|
-- hl.bind(mainMod .. " + SHIFT + F", hl.dsp.exec_cmd("~/.config/scripts/foldersearch.sh"))
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ hl.window_rule({
|
||||||
size = "(monitor_w*0.2) (monitor_h*0.2)",
|
size = "(monitor_w*0.2) (monitor_h*0.2)",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- filepicker — float centred at cursor
|
-- filepicker — float near the top-left, 10% into the display
|
||||||
hl.window_rule({
|
hl.window_rule({
|
||||||
name = "at-cursor",
|
name = "filepicker",
|
||||||
match = { tag = "at-cursor" },
|
match = { tag = "filepicker" },
|
||||||
float = true,
|
float = true,
|
||||||
move = "(cursor_x-(window_w/2)) (cursor_y-(window_h/2))",
|
move = "(monitor_w*0.1) (monitor_h*0.1)",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- spotify floating
|
-- spotify floating
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue