diff options
| author | Nippy <nippy@rp1.hu> | 2026-06-07 21:48:53 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-06-07 21:48:53 +0200 |
| commit | 8e474998c646a37b602d913092ab8f8fddd95242 (patch) | |
| tree | e2810709fe50c7b388bb4415463ba7ae58d08524 /raveos-hyprland-theme/theme-data/hypr/config | |
| parent | 8424a6399b9cfb98657fec10a78e2a57941e4cd1 (diff) | |
| download | RaveOS-PKGBUILD-8e474998c646a37b602d913092ab8f8fddd95242.tar.gz RaveOS-PKGBUILD-8e474998c646a37b602d913092ab8f8fddd95242.zip | |
raveos-hyprland-theme: migrate to Lua config (pkgrel 30)
- Replace hyprland.conf with hyprland.lua (new Hyprland Lua API)
- Add config/keybinds.lua and config/windowrules.lua as sub-modules
- Fix: remove windowrule-1 that floated ALL windows (caused apps not opening)
- Fix: use Lua os.getenv() for HOME/XDG_RUNTIME_DIR instead of static placeholders
- Fix killactive/togglefloating to use proper dispatcher calls (not exec_cmd)
- Add HyprShell layerrules (blur/ignorezero for overview/switch/launcher)
- Update sddm.conf: full config with Wayland compositor pointing to /usr/share/hypr/sddm/hyprland.lua
- Add sddm/hyprland.lua: minimal SDDM greeter compositor config
- Update apply script to install /usr/share/hypr/sddm/hyprland.lua
Diffstat (limited to 'raveos-hyprland-theme/theme-data/hypr/config')
| -rw-r--r-- | raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua | 62 | ||||
| -rw-r--r-- | raveos-hyprland-theme/theme-data/hypr/config/windowrules.lua | 95 |
2 files changed, 157 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua b/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua new file mode 100644 index 0000000..1999d6f --- /dev/null +++ b/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua @@ -0,0 +1,62 @@ +--------------------- +---- KEYBINDINGS ---- +--------------------- + +local mainMod = "SUPER" +local secondMod = "CTRL + ALT" + +-- Switch workspaces with mainMod + [0-9] +-- Move active window to a workspace with mainMod + SHIFT + [0-9] +for i = 1, 10 do + local key = i % 10 + hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i })) + hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i })) +end + +-- Shell Binds +hl.bind("SUPER", hl.dsp.exec_cmd("dms ipc call spotlight toggle")) +hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("dms ipc call clipboard toggle")) +hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("dms ipc call processlist toggle")) +hl.bind(mainMod .. " + SHIFT + N", hl.dsp.exec_cmd("dms ipc call spotlight toggle")) +hl.bind(mainMod .. " + N", hl.dsp.exec_cmd("dms ipc call notifications toggle")) +hl.bind(mainMod .. " + S", hl.dsp.exec_cmd("dms ipc call settings toggle")) +hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd("dms ipc call dankdash wallpaper")) + +-- Apps +hl.bind(secondMod .. " + T", hl.dsp.exec_cmd("kitty")) +hl.bind(secondMod .. " + F", hl.dsp.exec_cmd("freetube")) +hl.bind(secondMod .. " + D", hl.dsp.exec_cmd("discord")) +hl.bind(secondMod .. " + G", hl.dsp.exec_cmd("gedit")) +hl.bind(secondMod .. " + P", hl.dsp.exec_cmd("pavucontrol")) + +-- Power +hl.bind("CTRL + SUPER + Home", hl.dsp.exec_cmd("reboot")) +hl.bind("CTRL + SUPER + End", hl.dsp.exec_cmd("poweroff")) + +-- Window management +hl.bind(mainMod .. " + Q", hl.dsp.killactive()) +hl.bind(mainMod .. " + V", hl.dsp.togglefloating()) + +-- Move focus with mainMod + arrow keys +hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" })) +hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" })) +hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" })) +hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" })) + +-- Move/resize windows with mainMod + mouse +hl.bind(mainMod .. " + mouse:272", hl.dsp.exec_cmd("movewindow")) +hl.bind(mainMod .. " + mouse:273", hl.dsp.exec_cmd("resizewindow")) + +-- Laptop multimedia keys +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true }) +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true }) +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true, repeating = true }) +hl.bind("XF86AudioMicMute", 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 }) + +-- Media keys (requires playerctl) +hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true }) +hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) +hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) +hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true }) diff --git a/raveos-hyprland-theme/theme-data/hypr/config/windowrules.lua b/raveos-hyprland-theme/theme-data/hypr/config/windowrules.lua new file mode 100644 index 0000000..5a439c3 --- /dev/null +++ b/raveos-hyprland-theme/theme-data/hypr/config/windowrules.lua @@ -0,0 +1,95 @@ +--############################# +--## WINDOWS AND WORKSPACES ### +--############################# + +hl.window_rule({ + name = "windowrule-2", + match = { class = "org.gnome.gedit" }, + size = { 888, 888 }, +}) + +hl.window_rule({ + name = "windowrule-3", + match = { title = "Preferences" }, + size = { 444, 444 }, +}) + +hl.window_rule({ + name = "windowrule-4", + match = { class = "thunar" }, + size = { 1111, 666 }, +}) + +hl.window_rule({ + name = "windowrule-5", + match = { title = "File Operation Progress" }, + size = { 444, 111 }, +}) + +hl.window_rule({ + name = "windowrule-6", + match = { title = "^(.*Properties.*)$" }, + size = { 444, 444 }, +}) + +hl.window_rule({ + name = "windowrule-7", + match = { title = "Confirm to replace files" }, + size = { 444, 333 }, +}) + +hl.window_rule({ + name = "windowrule-8", + match = { class = "org.pulseaudio.pavucontrol" }, + size = { 888, 888 }, +}) + +hl.window_rule({ + name = "windowrule-9", + match = { title = "Create New Folder" }, + size = { 444, 111 }, +}) + +hl.window_rule({ + name = "windowrule-10", + match = { title = "^(.*Rename.*)$" }, + size = { 444, 111 }, +}) + +hl.window_rule({ + name = "windowrule-11", + match = { title = "New Empty File..." }, + size = { 444, 111 }, +}) + +hl.window_rule({ + name = "windowrule-12", + match = { class = "Thunar" }, + size = { 1111, 666 }, +}) + +hl.window_rule({ + name = "windowrule-13", + match = { title = "Set Default Application" }, + size = { 555, 555 }, +}) + +hl.window_rule({ + name = "fix-xwayland-drags", + match = { + class = "^$", + title = "^$", + xwayland = true, + float = true, + fullscreen = false, + pin = false, + }, + no_focus = true, +}) + +hl.window_rule({ + name = "move-hyprland-run", + match = { class = "hyprland-run" }, + move = { 20, "monitor_h-120" }, + float = true, +}) |