Files
dotfiles/dotfiles/.config/hypr/core/settings.lua
2026-08-26 20:14:43 +01:00

121 lines
3.7 KiB
Lua

-- HyprFlux — https://github.com/ahmad9059/HyprFlux
-- User Settings
-- Ported from UserConfigs/UserSettings.conf
--
-- refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables/
-- NOTE: some settings are in animations.lua / decorations.lua
hl.config({
dwindle = {
preserve_split = true,
-- smart_split = true,
special_scale_factor = 1,
},
master = {
new_status = "master",
new_on_top = true,
mfact = 0.5,
},
general = {
resize_on_border = true,
layout = "dwindle",
},
input = {
kb_layout = "gb",
kb_variant = "",
kb_model = "",
kb_options = "",
kb_rules = "",
repeat_rate = 50,
repeat_delay = 300,
sensitivity = 0.6, -- mouse sensitivity
-- accel_profile = "", -- flat or adaptive or blank or EMPTY means libinput's default mode
numlock_by_default = true,
left_handed = false,
follow_mouse = 1,
float_switch_override_focus = false,
touchpad = {
disable_while_typing = true,
natural_scroll = true,
clickfinger_behavior = false,
middle_button_emulation = false,
tap_to_click = true,
drag_lock = false,
},
-- below for devices with touchdevice ie. touchscreen
touchdevice = {
enabled = true,
},
-- below is for tablet, see link above for proper variables
tablet = {
transform = 0,
left_handed = false,
},
},
-- "gestures" here only holds the tuning knobs. workspace_swipe/workspace_swipe_fingers
-- were removed from this category upstream in favor of hl.gesture() (see below) — and
-- were already commented out in the source .conf, so the swipe gesture itself stays
-- disabled here too, ported as-is.
gestures = {
workspace_swipe_distance = 500,
workspace_swipe_invert = true,
workspace_swipe_min_speed_to_force = 30,
workspace_swipe_cancel_ratio = 0.5,
workspace_swipe_create_new = true,
workspace_swipe_forever = true,
-- workspace_swipe_use_r = true, -- uncomment if wanted a forever create a new workspace with swipe right
},
misc = {
disable_hyprland_logo = true,
disable_splash_rendering = true,
vrr = 2,
mouse_move_enables_dpms = true,
enable_swallow = false,
swallow_regex = "^(kitty)$",
focus_on_activate = false,
initial_workspace_tracking = 0,
middle_click_paste = false,
enable_anr_dialog = true, -- Application not Responding (ANR)
anr_missed_pings = 15, -- ANR Threshold default 1 is too low
},
-- opengl = {
-- nvidia_anti_flicker = true,
-- },
binds = {
workspace_back_and_forth = true,
allow_workspace_cycles = true,
pass_mouse_when_bound = false,
},
-- Could help when scaling and not pixelating
xwayland = {
enabled = true,
force_zero_scaling = true,
},
render = {
direct_scanout = false,
},
cursor = {
sync_gsettings_theme = true,
no_hardware_cursors = 2, -- change to 1 if you want to disable
enable_hyprcursor = true,
warp_on_change_workspace = 2,
no_warps = true,
},
})
-- Uncomment to actually enable the touchpad workspace-swipe gesture (see the note above):
-- hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })