This commit is contained in:
2026-07-30 15:56:46 +09:00
parent 8dc9452d95
commit 831ae7bbc2
3 changed files with 68 additions and 4 deletions
+5 -1
View File
@@ -13,7 +13,11 @@
# portals, Vicinae, and the idle manager follow the labwc session.
${lib.getExe' pkgs.systemd "systemctl"} --user --no-block start labwc-session.target
noctalia >/dev/null 2>&1 &
# labwc does not run XDG autostart entries itself. Start the input method
# explicitly so both native Wayland and XWayland applications can use it.
fcitx5 -d --replace >/dev/null 2>&1 &
NOCTALIA_CONFIG_HOME="$HOME/.config/noctalia-labwc" noctalia >/dev/null 2>&1 &
${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 >/dev/null 2>&1 &
'';
};
+23 -1
View File
@@ -14,7 +14,7 @@
<dropShadowsOnTiled>yes</dropShadowsOnTiled>
</theme>
<windowSwitcher preview="no" outlines="yes">
<windowSwitcher preview="yes" outlines="yes">
<osd style="thumbnail" />
</windowSwitcher>
@@ -32,6 +32,28 @@
<keybind key="W-q">
<action name="Close" />
</keybind>
<keybind key="W-f">
<action name="ToggleMaximize" />
</keybind>
<keybind key="W-Tab">
<action name="NextWindow" />
</keybind>
<keybind key="W-S-Tab">
<action name="PreviousWindow" />
</keybind>
<keybind key="W-j">
<action name="NextWindow" />
</keybind>
<keybind key="W-k">
<action name="PreviousWindow" />
</keybind>
<keybind key="W-a">
<action name="ShowMenu" menu="client-list-combined-menu" />
<position>
<x>center</x>
<y>center</y>
</position>
</keybind>
<keybind key="W-t">
<action name="Execute" command="ghostty" />
</keybind>
+40 -2
View File
@@ -1,4 +1,9 @@
{ pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
wallpapers = pkgs.fetchFromGitHub {
owner = "moons-14";
@@ -6,6 +11,34 @@ let
rev = "cc3256f4aaf2c8e7d16fb000b1ee251af54085db";
hash = "sha256-emQ/FqKqMq3YI5bLx8gBZg/ZE72OG9Ilh71ggq78WdQ=";
};
labwcSettings = lib.recursiveUpdate config.programs.noctalia.settings {
dock = {
position = "bottom";
icon_size = 32;
main_axis_padding = 10;
cross_axis_padding = 4;
item_spacing = 4;
margin_edge = 0;
radius = 8;
background_opacity = 0.9;
show_running = true;
auto_hide = false;
smart_auto_hide = false;
reserve_space = true;
active_scale = 1.0;
inactive_scale = 1.0;
magnification = false;
show_instance_count = true;
active_monitor_only = false;
};
};
labwcRawConfig = (pkgs.formats.toml { }).generate "noctalia-labwc-config.toml" labwcSettings;
labwcConfig = pkgs.runCommand "noctalia-labwc-config" { } ''
${lib.getExe config.programs.noctalia.package} config validate ${labwcRawConfig}
cp ${labwcRawConfig} $out
'';
in
{
home.packages = [ pkgs.networkmanagerapplet ];
@@ -20,7 +53,10 @@ in
programs.noctalia = {
enable = true;
systemd.enable = true;
# Both compositors start Noctalia themselves so labwc can select its own
# config home without racing the generic graphical-session service.
systemd.enable = false;
settings = {
theme = {
@@ -164,4 +200,6 @@ in
];
};
};
xdg.configFile."noctalia-labwc/noctalia/config.toml".source = labwcConfig;
}