walker: add module (#7649)
This commit is contained in:
parent
91586008a2
commit
0d492b89d1
6 changed files with 205 additions and 0 deletions
11
tests/modules/services/walker/config.toml
Normal file
11
tests/modules/services/walker/config.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
app_launch_prefix = ""
|
||||
as_window = false
|
||||
close_when_open = false
|
||||
disable_click_to_close = false
|
||||
force_keyboard_focus = false
|
||||
hotreload_theme = false
|
||||
locale = ""
|
||||
monitor = ""
|
||||
terminal_title_flag = ""
|
||||
theme = "mytheme"
|
||||
timeout = 0
|
||||
5
tests/modules/services/walker/default.nix
Normal file
5
tests/modules/services/walker/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
walker-example-config = ./example-config.nix;
|
||||
}
|
||||
57
tests/modules/services/walker/example-config.nix
Normal file
57
tests/modules/services/walker/example-config.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
services.walker = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings = {
|
||||
app_launch_prefix = "";
|
||||
terminal_title_flag = "";
|
||||
locale = "";
|
||||
close_when_open = false;
|
||||
monitor = "";
|
||||
hotreload_theme = false;
|
||||
as_window = false;
|
||||
timeout = 0;
|
||||
disable_click_to_close = false;
|
||||
force_keyboard_focus = false;
|
||||
};
|
||||
|
||||
theme = {
|
||||
name = "mytheme";
|
||||
layout = {
|
||||
ui = {
|
||||
anchors = {
|
||||
bottom = true;
|
||||
left = true;
|
||||
right = true;
|
||||
top = true;
|
||||
};
|
||||
|
||||
window = {
|
||||
h_align = "fill";
|
||||
v_align = "fill";
|
||||
};
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
* {
|
||||
color: #dcd7ba;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/walker/config.toml
|
||||
assertFileExists home-files/.config/walker/themes/mytheme.toml
|
||||
assertFileExists home-files/.config/walker/themes/mytheme.css
|
||||
|
||||
assertFileContent home-files/.config/walker/config.toml \
|
||||
${./config.toml}
|
||||
|
||||
assertFileContent home-files/.config/walker/themes/mytheme.toml \
|
||||
${./mytheme.toml}
|
||||
|
||||
assertFileContent home-files/.config/walker/themes/mytheme.css \
|
||||
${./mytheme.css}
|
||||
'';
|
||||
}
|
||||
3
tests/modules/services/walker/mytheme.css
Normal file
3
tests/modules/services/walker/mytheme.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
* {
|
||||
color: #dcd7ba;
|
||||
}
|
||||
9
tests/modules/services/walker/mytheme.toml
Normal file
9
tests/modules/services/walker/mytheme.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[ui.anchors]
|
||||
bottom = true
|
||||
left = true
|
||||
right = true
|
||||
top = true
|
||||
|
||||
[ui.window]
|
||||
h_align = "fill"
|
||||
v_align = "fill"
|
||||
Loading…
Add table
Add a link
Reference in a new issue