diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..62faf36 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,10 @@ +{ + "workspace": { + "library": [ + "/usr/share/hypr/stubs" + ] + }, + "diagnostics": { + "globals": ["hl"] + } +} diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua new file mode 100644 index 0000000..66ea72d --- /dev/null +++ b/config/hypr/hyprland.lua @@ -0,0 +1,25 @@ +-- TODO: Laptop vs desktop vs docked config +local swap_escape = false +hl.config({ + general = require("hyprland.core.general")(), + input = require("hyprland.core.input")(swap_escape), + xwayland = { + force_zero_scaling = true, + }, + misc = { + disable_hyprland_logo = true, + disable_splash_rendering = false, + vrr = 3, + allow_session_lock_restore = true, + }, + dwindle = { + pseudotile = true, + force_split = 2, + preserve_split = true, + }, +}) + +hl.device({ + name = "pnp0c50:00-093a:0255-touchpad", + enabled = true, +}) diff --git a/config/hypr/hyprland/binds/device.lua b/config/hypr/hyprland/binds/device.lua new file mode 100644 index 0000000..e69de29 diff --git a/config/hypr/hyprland/core/general.lua b/config/hypr/hyprland/core/general.lua new file mode 100644 index 0000000..1b65de6 --- /dev/null +++ b/config/hypr/hyprland/core/general.lua @@ -0,0 +1,9 @@ +return function() + return { + gaps_in = 3, + gaps_out = 4, + border_size = 2, + + layout = "dwindle", + } +end diff --git a/config/hypr/hyprland/core/input.lua b/config/hypr/hyprland/core/input.lua new file mode 100644 index 0000000..ee72f31 --- /dev/null +++ b/config/hypr/hyprland/core/input.lua @@ -0,0 +1,27 @@ +--- @param swap_escape boolean +return function(swap_escape) + return { + kb_options = swap_escape and "caps:swapescape" or "", + kb_layout = "us", + kb_variant = "altgr-intl", + natural_scroll = "true", + + numlock_by_default = true, + repeat_delay = 400, + + follow_mouse = 2, + mouse_refocus = true, + scroll_factor = 2, + accel_profile = "flat", + + touchpad = { + disable_while_typing = true, + natural_scroll = true, + scroll_factor = 4, + }, + + focus_on_close = 1, + + sensitivity = 0, + } +end diff --git a/config/hypr/hyprland/core/style.lua b/config/hypr/hyprland/core/style.lua new file mode 100644 index 0000000..e69de29 diff --git a/config/hypr/hyprland/layout/main.lua b/config/hypr/hyprland/layout/main.lua new file mode 100644 index 0000000..c4432c2 --- /dev/null +++ b/config/hypr/hyprland/layout/main.lua @@ -0,0 +1,3 @@ +-- Custom layout manager +-- Very work in progress, currently, dwindle layout is still in use, +-- but once this is completed, will switch over to this