Files
dotfiles/dot_config/hypr/hyprland.lua
T

45 lines
1.9 KiB
Lua

-- Learn how to configure Hyprland: https://wiki.hypr.land/Configuring/Start/
-- Omarchy's bootstrap keeps path setup out of this user config.
dofile((os.getenv("OMARCHY_PATH") or "/usr/share/omarchy") .. "/default/hypr/bootstrap.lua")
-- Disable all Omarchy default bindings. Add your own in hypr/bindings.lua.
-- omarchy_default_bindings = false
--
-- Or disable only bindings for Omarchy's preinstalled apps/web apps while
-- keeping core window-manager bindings:
-- omarchy_preinstalled_bindings = false
-- Load Omarchy defaults.
require("default.hypr.omarchy")
-- Put your personal overrides in these files. They're loaded after Omarchy's
-- defaults so package updates can improve the defaults without rewriting your
-- ~/.config/hypr files.
require("hypr.monitors")
require("hypr.input")
require("hypr.bindings")
require("hypr.looknfeel")
require("hypr.autostart")
-- Toggle config flags dynamically.
require("default.hypr.toggles")
-- Add any other personal Hyprland configuration below.
-- o.window("qemu", { workspace = "5" })
-- Pin workspaces to monitors. Matched on EDID description for the external
-- display so it survives landing on a different DP connector after re-docking.
hl.workspace_rule({ workspace = "3", monitor = "desc:Apple Computer Inc StudioDisplay 0x984262A7" })
hl.workspace_rule({ workspace = "4", monitor = "eDP-1" })
-- Always open these apps on a fixed workspace and follow them there. Classes
-- come from `hyprctl clients` -- the desktop files' StartupWMClass hints
-- disagree with reality for Beeper (claims BeeperTexts, actually reports
-- Beeper). Add " silent" to a workspace prop to place a window without
-- switching the view to it.
o.window([[^brave-youtube\.com__-Default$]], { workspace = "1" })
o.window([[^brave-www\.tldraw\.com__-Default$]], { workspace = "3" })
o.window([[^com\.fastmail\.Fastmail$]], { workspace = "4" })
o.window([[^Beeper$]], { workspace = "4" })