mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-08 01:51:04 +01:00
wayfire: add module (#6066)
Adds a Module for the Wayfire Compositor. Also allows managing the wf-shell configuration.
This commit is contained in:
parent
45bcdbc910
commit
456e599f91
9 changed files with 280 additions and 1 deletions
|
|
@ -0,0 +1,10 @@
|
|||
[autostart]
|
||||
systemdActivation=/nix/store/00000000000000000000000000000000-dbus/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE && systemctl --user stop wayfire-session.target && systemctl --user start wayfire-session.target
|
||||
|
||||
[command]
|
||||
binding_terminal=alacritty
|
||||
command_terminal=alacritty
|
||||
|
||||
[core]
|
||||
plugins=command expo cube autostart
|
||||
xwayland=true
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{ ... }: {
|
||||
wayland.windowManager.wayfire = {
|
||||
enable = true;
|
||||
package = null;
|
||||
settings = {
|
||||
core.plugins = "command expo cube";
|
||||
command = {
|
||||
binding_terminal = "alacritty";
|
||||
command_terminal = "alacritty";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
wayfireConfig=home-files/.config/wayfire.ini
|
||||
|
||||
assertFileExists "$wayfireConfig"
|
||||
|
||||
normalizedConfig=$(normalizeStorePaths "$wayfireConfig")
|
||||
assertFileContent "$normalizedConfig" "${./configuration.ini}"
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
wayfire-configuration = ./configuration.nix;
|
||||
wayfire-wf-shell = ./wf-shell.nix;
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[panel]
|
||||
autohide=true
|
||||
widgets_left=menu spacing4 launchers window-list
|
||||
25
tests/modules/services/window-managers/wayfire/wf-shell.nix
Normal file
25
tests/modules/services/window-managers/wayfire/wf-shell.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, ... }: {
|
||||
wayland.windowManager.wayfire = {
|
||||
enable = true;
|
||||
package = null;
|
||||
wf-shell = {
|
||||
enable = true;
|
||||
package = pkgs.mkStubPackage { };
|
||||
settings = {
|
||||
panel = {
|
||||
widgets_left = "menu spacing4 launchers window-list";
|
||||
autohide = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
wfShellConfig=home-files/.config/wf-shell.ini
|
||||
|
||||
assertFileExists "$wfShellConfig"
|
||||
|
||||
normalizedConfig=$(normalizeStorePaths "$wfShellConfig")
|
||||
assertFileContent "$normalizedConfig" "${./wf-shell.ini}"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue