meow
This commit is contained in:
@@ -173,24 +173,21 @@
|
||||
"-- Window rules"
|
||||
"hl.window_rule({ suppress_event = \"maximize\" })"
|
||||
"hl.window_rule({ match = { class = \"gamescope\" }, workspace = \"5\", immediate = true, confine_pointer = true })"
|
||||
"hl.window_rule({ match = { class = \"steam\" }, workspace = \"6 silent\" })"
|
||||
"hl.window_rule({ match = { class = \"vesktop\" }, workspace = \"8 silent\" })"
|
||||
"hl.window_rule({ match = { class = \"org.telegram.desktop\" }, workspace = \"8 silent\" })"
|
||||
"hl.window_rule({ match = { class = \"com.obsproject.Studio\" }, workspace = \"10 silent\" })"
|
||||
"hl.window_rule({ match = { initial_title = \"OBS Studio Crash Detected\" }, pin = true })"
|
||||
"hl.window_rule({ match = { initial_title = \"Discord Popout\" }, workspace = \"1 silent\" })"
|
||||
""
|
||||
"-- Layer rules"
|
||||
"hl.layer_rule({ match = { namespace = \"notifications\" }, no_screen_share = true })"
|
||||
""
|
||||
"-- Host-specific overrides"
|
||||
"-- Host-specific overrides: load ~/.config/hypr/hyprland-local.lua if present (must be valid Lua)"
|
||||
"local home = os.getenv(\"HOME\")"
|
||||
"if home then"
|
||||
" local f = io.open(home .. '/.config/hypr/hyprland-local.lua', 'r')"
|
||||
" local localPath = home .. '/.config/hypr/hyprland-local.lua'"
|
||||
" local f = io.open(localPath, 'r')"
|
||||
" if f then"
|
||||
" _ = f:close()"
|
||||
" local config = loadfile(home .. '/.config/hypr/hyprland-local.lua')"
|
||||
" if config then config() end"
|
||||
" f:close()"
|
||||
" local chunk, err = loadfile(localPath)"
|
||||
" if chunk then chunk() else io.stderr:write('hyprland-local.lua error: ' .. err .. '\\n') end"
|
||||
" end"
|
||||
"end"
|
||||
]
|
||||
@@ -232,8 +229,13 @@
|
||||
# partOf = [ "hyprland-session.target" ];
|
||||
# after = [ "hyprland-session.target" ];
|
||||
# };
|
||||
xdg.configFile."hypr/hyprland.lua" = {
|
||||
source = pkgs.writeText "hyprland.lua" hlBindCode;
|
||||
# Hand-written config as extraLuaFile so Home Manager still
|
||||
# generates hypr/hyprland.lua itself, including the systemd
|
||||
# session activation hooks (hyprland-session.target start/stop
|
||||
# + dbus-update-activation-environment --systemd --all).
|
||||
wayland.windowManager.hyprland.extraLuaFiles."hl-main.lua" = {
|
||||
autoLoad = true;
|
||||
content = hlBindCode;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user