Compare commits
2 Commits
37fef5cbd4
...
d97d7219e5
| Author | SHA1 | Date | |
|---|---|---|---|
| d97d7219e5 | |||
| a50825151c |
@@ -0,0 +1,16 @@
|
||||
local M = {}
|
||||
|
||||
---@type table<string, string>
|
||||
M.envs = {
|
||||
XDG_SESSION_TYPE = "wayland",
|
||||
XDG_SESSION_DESKTOP = "Hyprland",
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1",
|
||||
}
|
||||
|
||||
function M.load()
|
||||
for name, value in pairs(M.envs) do
|
||||
hl.env(name, value)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -5,6 +5,8 @@ require("lua.conf.monitor")
|
||||
|
||||
require("lua.conf.wallpaper").load()
|
||||
require("lua.conf.cursor").load()
|
||||
require("lua.conf.env").load()
|
||||
require("lua.conf.input").load()
|
||||
|
||||
require("lua.modules").load()
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
local M = {}
|
||||
local settings = require("lua.lib.settings")
|
||||
|
||||
M.confs = {
|
||||
input = { touchpad = {}, gestures = {} },
|
||||
}
|
||||
|
||||
if settings["profile"] == "desktop" then
|
||||
M.confs.input.numlock_by_default = true
|
||||
elseif settings["profile"] == "laptop" then
|
||||
M.confs.input.gestures.workspace_swipe_touch = true
|
||||
M.gestures = {
|
||||
{
|
||||
fingures = 3,
|
||||
direction = "horizontal",
|
||||
action = "workspace",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
M.confs.input.touchpad.natural_scroll = settings["touchpad_natural_scroll"]
|
||||
|
||||
M.confs.input.kb_layout = settings["kb_layout"]
|
||||
|
||||
function M.load()
|
||||
hl.config(M.confs)
|
||||
if M.gestures then
|
||||
for _, gesture in pairs(M.gestures) do
|
||||
hl.gesture(gesture)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -6,6 +6,12 @@ settings["hostname"] = ""
|
||||
---@type "desktop"|"laptop"
|
||||
settings["profile"] = "desktop"
|
||||
|
||||
---@type boolean
|
||||
settings["touchpad_natural_scroll"] = true
|
||||
|
||||
---@type string
|
||||
settings["kb_layout"] = "us"
|
||||
|
||||
---@type "catppuccin"|"catppuccin-mocha"
|
||||
settings["colorscheme"] = "catppuccin"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user