add rofi config
This commit is contained in:
@@ -69,7 +69,7 @@ function M.setup(opts)
|
||||
hl.bind(mainMod .. " + K", hy3.move_focus("u"))
|
||||
hl.bind(mainMod .. " + L", hy3.move_focus("r"))
|
||||
|
||||
hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("rofi -show window"))
|
||||
hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("/home/sortedcord/.config/rofi/launch.sh -show window"))
|
||||
|
||||
-- Move window with mainMod + SHIFT + hjkl (hy3 plugin aware)
|
||||
hl.bind(mainMod .. " + SHIFT + H", hy3.move_window("l"))
|
||||
@@ -183,8 +183,16 @@ function M.setup(opts)
|
||||
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"),
|
||||
{ locked = true, repeating = true }
|
||||
)
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
|
||||
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
|
||||
hl.bind(
|
||||
"XF86MonBrightnessUp",
|
||||
hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"),
|
||||
{ locked = true, repeating = true }
|
||||
)
|
||||
hl.bind(
|
||||
"XF86MonBrightnessDown",
|
||||
hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"),
|
||||
{ locked = true, repeating = true }
|
||||
)
|
||||
|
||||
-- Requires playerctl
|
||||
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
|
||||
@@ -194,7 +202,10 @@ function M.setup(opts)
|
||||
|
||||
-- Cursor controls (simplified - submaps not supported in Lua API)
|
||||
-- Jump cursor to a position
|
||||
hl.bind("SUPER + G + A", hl.dsp.exec_cmd("hyprctl dispatch submap reset && wl-kbptr && hyprctl dispatch submap cursor"))
|
||||
hl.bind(
|
||||
"SUPER + G + A",
|
||||
hl.dsp.exec_cmd("hyprctl dispatch submap reset && wl-kbptr && hyprctl dispatch submap cursor")
|
||||
)
|
||||
|
||||
-- Cursor movement
|
||||
hl.bind("SUPER + G + J", hl.dsp.exec_cmd("wlrctl pointer move 0 10"), { repeating = true })
|
||||
|
||||
Reference in New Issue
Block a user