feat: hyprland done, testing needed, add wlogout config
This commit is contained in:
@@ -1,9 +1,52 @@
|
||||
-- TODO: Laptop vs desktop vs docked config
|
||||
local swap_escape = false
|
||||
require("hyprland.core.general")
|
||||
require("hyprland.core.input")(swap_escape)
|
||||
-- Determine current platform
|
||||
local is_docked = false
|
||||
local laptop_config = false
|
||||
local read_platform = pcall(function()
|
||||
io.popen("cat ~/.config/janishutz/platform-laptop")
|
||||
end)
|
||||
local read_docked = pcall(function()
|
||||
io.popen("cat ~/.config/janishutz/docked")
|
||||
end)
|
||||
|
||||
if read_platform then
|
||||
laptop_config = true
|
||||
end
|
||||
if read_docked then
|
||||
laptop_config = true
|
||||
end
|
||||
|
||||
-- Core
|
||||
require("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.device")(laptop_config)
|
||||
require("hyprland.binds.groups")
|
||||
require("hyprland.binds.launch")
|
||||
require("hyprland.binds.main")
|
||||
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")
|
||||
|
||||
hl.device({
|
||||
name = "pnp0c50:00-093a:0255-touchpad",
|
||||
|
||||
Reference in New Issue
Block a user