23 lines
689 B
Cheetah
23 lines
689 B
Cheetah
{{- $tags := .chezmoi.config.data.tags -}}
|
|
-- Main Hyprland Lua Config Entry Point (v0.55+)
|
|
|
|
local cfgdir = os.getenv("HOME") .. "/.config/hypr"
|
|
package.path = package.path .. ";" .. cfgdir .. "/hyprland.d.lua/?.lua"
|
|
|
|
require("theme")
|
|
require("general")
|
|
require("monitors")
|
|
require("workspaces")
|
|
require("input")
|
|
require("layout")
|
|
require("rules")
|
|
require("keybinds")
|
|
|
|
{{- if (index $tags "touchscreen") }}
|
|
-- Auto-rotate eDP-1 based on accelerometer (iio-sensor-proxy + iio-hyprland).
|
|
-- Requires: yay -S iio-sensor-proxy iio-hyprland && systemctl enable --now iio-sensor-proxy
|
|
hl.on("hyprland.start", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("uwsm app -- iio-hyprland"))
|
|
end)
|
|
{{- end }}
|