diff options
| author | 2026-06-12 23:41:06 +0000 | |
|---|---|---|
| committer | 2026-09-09 18:51:14 +0000 | |
| commit | 53e84a597a12e0033c18df0e1df6130423903e81 (patch) | |
| tree | 8f9037cab3d34c2ef00e51a02cf181b8ba3b922e /hypr | |
| parent | c36ca54c5c9b5c25b36a5e87b2abb97bdb3aae57 (diff) | |
hyprland agora usa o layout scrolling, ao estilo niri
Diffstat (limited to 'hypr')
| -rw-r--r-- | hypr/hyprland.lua | 55 |
1 files changed, 37 insertions, 18 deletions
diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua index c139368..df069ab 100644 --- a/hypr/hyprland.lua +++ b/hypr/hyprland.lua @@ -11,12 +11,12 @@ hl.config({ general = { border_size = 2, col = { - active_border = 0x799df6, - inactive_border = 0xdfdfdf, + active_border = 0xff799df6, + inactive_border = 0xffdfdfdf, }, gaps_in = 0, gaps_out = 0, - layout = "master", + layout = "scrolling", }, input = { follow_mouse = 2, @@ -36,9 +36,14 @@ hl.config({ new_on_top = true, new_status = "inherit", }, + scrolling = { + fullscreen_on_one_column = true, + column_width = 0.6, + }, }) -hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" }) +hl.gesture({ fingers = 3, direction = "horizontal", action = "scroll_move" }) +hl.gesture({ fingers = 3, direction = "horizontal", mods = mod, action = "workspace" }) hl.gesture({ fingers = 3, direction = "down", action = "float", threshold = 0 }) hl.gesture({ fingers = 3, direction = "up", action = "float", threshold = 0 }) hl.gesture({ fingers = 3, direction = "down", mods = mod, action = "close", threshold = 0 }) @@ -52,6 +57,10 @@ hl.window_rule({ workspace = "2 silent" }) hl.window_rule({ + match = { class = "io.github.diegopvlk.Cine" }, + workspace = "2 silent" +}) +hl.window_rule({ match = { class = "steam" }, workspace = "3 silent" }) @@ -60,6 +69,18 @@ hl.window_rule({ workspace = "3 silent" }) hl.window_rule({ + match = { class = "^com.heroicgameslauncher.hgl" }, + workspace = "3 silent" +}) +hl.window_rule({ + match = { class = "^SS14.Launcher" }, + workspace = "3 silent" +}) +hl.window_rule({ + match = { class = "^ltspice.exe" }, + workspace = "3 silent" +}) +hl.window_rule({ match = { class = "^PEAK.exe" }, workspace = "3 silent" }) @@ -76,26 +97,26 @@ hl.bind(mod .. " + ALT + q", function() hl.exec_cmd("hyprshutdown") end) hl.bind(mod .. " + TAB", hl.dsp.focus({ workspace = "previous" })) -hl.bind(mod .. " + q", hl.dsp.window.kill(activewindow)) -hl.bind(mod .. " + f", hl.dsp.window.fullscreen()) +hl.bind(mod .. " + q", hl.dsp.window.close(activewindow)) +hl.bind(mod .. " + f", hl.dsp.window.fullscreen({ layout_aware = true })) hl.bind(mod .. " + SHIFT + f", function() - hl.dsp.togglefloating() - hl.dsp.pin() + hl.dsp.window.float() + hl.dsp.window.pin() end) hl.bind(mod .. " + ALT + l", function() hl.exec_cmd("hyprlock") end) -hl.bind(mod .. " + j", hl.dsp.window.cycle_next()) -hl.bind(mod .. " + k", hl.dsp.window.cycle_next({ prev })) -hl.bind(mod .. " + SHIFT + j", hl.dsp.window.swap({ next = true })) -hl.bind(mod .. " + SHIFT + k", hl.dsp.window.swap({ prev = true })) +hl.bind(mod .. " + j", hl.dsp.layout("focus l")) +hl.bind(mod .. " + k", hl.dsp.layout("focus r")) +hl.bind(mod .. " + SHIFT + j", hl.dsp.layout("swapcol l")) +hl.bind(mod .. " + SHIFT + k", hl.dsp.layout("swapcol r")) hl.bind(mod .. " + Period", hl.dsp.focus({ monitor = "+1" })) hl.bind(mod .. " + Comma", hl.dsp.focus({ monitor = "-1" })) hl.bind(mod .. " + SHIFT + Period", hl.dsp.window.move({ monitor = "+1 silent" })) hl.bind(mod .. " + SHIFT + Comma", hl.dsp.window.move({ monitor = "-1 silent" })) -hl.bind(mod .. " + h", hl.dsp.layout("mfact -0.1")) -hl.bind(mod .. " + l", hl.dsp.layout("mfact +0.1")) -hl.bind(mod .. " + m", hl.dsp.layout("swapwithmaster")) +hl.bind(mod .. " + h", hl.dsp.layout("colresize -0.3")) +hl.bind(mod .. " + l", hl.dsp.layout("colresize +0.3")) +hl.bind(mod .. " + m", hl.dsp.layout("fit active")) hl.bind(mod .. " + e", function() hl.exec_cmd(terminal) end) @@ -103,7 +124,7 @@ hl.bind(mod .. " + SHIFT + e", function() hl.exec_cmd("[float] " .. terminal) end) hl.bind(" + F24", function() - hl.exec_cmd("kitten quick-access-terminal") + hl.exec_cmd("kitten quick-access-terminal -o lines=18") end) hl.bind("CTRL + SHIFT + space", function() hl.exec_cmd("anyrun") @@ -174,11 +195,9 @@ hl.on("hyprland.start", function() "dbus-update-activation-environment --systemd --all WAYLAND_DISPLAY XDG_CURRENT_DESKTOP MOZ_ENABLE_WAYLAND PASSWORD_STORE_DIR && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target") hl.exec_cmd("hyprctl setcursor LyraB-cursors 32") hl.exec_cmd("hypridle") - hl.exec_cmd("hyprsunset") hl.exec_cmd("kanshi") hl.exec_cmd("systemctl --user start opentabletdriver.service") hl.exec_cmd("wl-paste -t text --watch cliphist store") hl.exec_cmd("wpaperd") hl.exec_cmd("xwayland-satellite") - hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") end) |
