Files
dotfiles/config/hypr/hyprland.lua
T
2026-06-18 11:55:56 +02:00

51 lines
1.2 KiB
Lua

-- Determine current platform
local is_docked = false
local laptop_config = false
local read_platform = io.popen("cat ~/.config/janishutz/platform") == "l"
local read_docked = io.popen("cat ~/.config/janishutz/docked") == "true"
if read_platform then
laptop_config = true
end
if read_docked and laptop_config then
is_docked = true
end
-- Core
require("hyprland.colors")
require("hyprland.core.general")
require("hyprland.core.input")(laptop_config)
require("hyprland.core.group")
require("hyprland.core.misc")
require("hyprland.core.style")
-- Binds
require("hyprland.binds.main")
require("hyprland.binds.device")
require("hyprland.binds.groups")
require("hyprland.binds.launch")
require("hyprland.binds.notifications")
require("hyprland.binds.screenshot")
require("hyprland.binds.window")
require("hyprland.binds.workspace")
-- Window rules
require("hyprland.windowrules.floating")
require("hyprland.windowrules.idle")
require("hyprland.windowrules.tags")
require("hyprland.windowrules.workspaces")
-- Workspace rules
require("hyprland.workspacerules.main")
-- Monitors
require("hyprland.monitors")(laptop_config, is_docked)
-- Execs
require("hyprland.execs")(laptop_config)
hl.device({
name = "pnp0c50:00-093a:0255-touchpad",
enabled = true,
})