feat: start new lua-based hyprland config
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
hl.config({
|
||||
general = {
|
||||
gaps_in = 3,
|
||||
gaps_out = 4,
|
||||
border_size = 2,
|
||||
no_focus_fallback = true,
|
||||
|
||||
layout = "dwindle",
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1 @@
|
||||
-- TODO: Check out what this does (pretty sure as in i3)
|
||||
@@ -0,0 +1,51 @@
|
||||
--- @param swap_escape boolean
|
||||
return function(swap_escape)
|
||||
hl.config({
|
||||
inputs = {
|
||||
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,
|
||||
},
|
||||
gestures = {
|
||||
workspace_swipe_distance = 200,
|
||||
workspace_swipe_cancel_ratio = 0.3,
|
||||
workspace_swipe_forever = true,
|
||||
workspace_swipe_direction_lock = false,
|
||||
},
|
||||
})
|
||||
|
||||
hl.gesture({
|
||||
fingers = 3,
|
||||
direction = "horizontal",
|
||||
action = "workspace",
|
||||
})
|
||||
hl.gesture({
|
||||
fingers = 3,
|
||||
direction = "down",
|
||||
action = "close",
|
||||
})
|
||||
hl.gesture({
|
||||
fingers = 3,
|
||||
direction = "up",
|
||||
action = "fullscreen",
|
||||
})
|
||||
end
|
||||
@@ -0,0 +1,23 @@
|
||||
hl.config({
|
||||
xwayland = {
|
||||
force_zero_scaling = true,
|
||||
},
|
||||
misc = {
|
||||
disable_hyprland_logo = true,
|
||||
disable_splash_rendering = true,
|
||||
vrr = 3,
|
||||
allow_session_lock_restore = true,
|
||||
},
|
||||
dwindle = {
|
||||
pseudotile = true,
|
||||
force_split = 2,
|
||||
preserve_split = true,
|
||||
},
|
||||
binds = {
|
||||
workspace_back_and_forth = true,
|
||||
},
|
||||
cursor = {
|
||||
no_warps = false,
|
||||
inactive_timeout = 5,
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,26 @@
|
||||
hl.config({
|
||||
decoration = {
|
||||
inactive_opacity = 1,
|
||||
rounding = 10,
|
||||
|
||||
shadow = {
|
||||
enabled = true,
|
||||
range = 4,
|
||||
},
|
||||
|
||||
blur = {
|
||||
enabled = true,
|
||||
xray = true,
|
||||
new_optimizations = true,
|
||||
size = 1,
|
||||
passes = 2,
|
||||
},
|
||||
|
||||
dim_inactive = true,
|
||||
dim_strength = 0.1,
|
||||
-- TODO: Consider adding glow?
|
||||
},
|
||||
animations = {
|
||||
enabled = true,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user