tests: update generated TOML expectations

This commit is contained in:
Austin Horstman 2026-06-07 21:15:46 -05:00
parent e4b8f8c8bf
commit aa14fc7b46
12 changed files with 30 additions and 60 deletions

View file

@ -8,7 +8,13 @@ right = 8
top = 8
[mode.main.binding]
alt-enter = "exec-and-forget osascript -e '\n tell application \"Terminal\"\n do script\n activate\n end tell'\n"
alt-enter = """
exec-and-forget osascript -e '
tell application "Terminal"
do script
activate
end tell'
"""
alt-h = "focus left"
alt-j = "focus down"
alt-k = "focus up"

View file

@ -28,7 +28,7 @@
[key_bindings]
AUTOCLEAR = "c"
FILTER = ["F4", "\\"]
FILTER = ["F4", '\']
''}
'';
}

View file

@ -35,7 +35,7 @@
assertFileContent home-files/.config/asciinema/config.toml \
${builtins.toFile "expected.asciinema_config.toml" ''
[notifications]
command = "tmux display-message \"$TEXT\""
command = 'tmux display-message "$TEXT"'
enable = false
[playback]

View file

@ -4,6 +4,7 @@ on-timer-stop = "echo timer stopped"
on-work-begin = "echo work cycle began"
tcp-host = "localhost"
tcp-port = 8080
[[test-preset.cycles]]
duration = 1500
name = "Work"

View file

@ -19,6 +19,7 @@
${pkgs.writeText "i3status-rust-expected-config" ''
icons = "none"
theme = "plain"
[[block]]
alert = 10.0
block = "disk_space"

View file

@ -8,6 +8,7 @@ DBName = "foo"
Name = "Production database"
Provider = "postgres"
URL = "postgres://postgres:urlencodedpassword@localhost:$${port}/foo"
[[database.Commands]]
Command = "ssh -tt remote-bastion -L $${port}:localhost:5432"
WaitForPort = "$${port}"

View file

@ -19,12 +19,12 @@
mode = "execute"
[actions.run]
command = "nix run {replace:s/\\/ /#/g}"
command = 'nix run {replace:s/\/ /#/g}'
description = "Run the package"
mode = "execute"
[actions.shell]
command = "nix shell {replace:s/\\/ /#/g}"
command = 'nix shell {replace:s/\/ /#/g}'
description = "Enter new nix shell with this package"
mode = "execute"
@ -44,7 +44,7 @@
name = "nix-search-tv"
[preview]
command = "${lib.getExe pkgs.nix-search-tv} preview \"{}\""
command = '${lib.getExe pkgs.nix-search-tv} preview "{}"'
[source]
command = "${lib.getExe pkgs.nix-search-tv} print"

View file

@ -1,3 +1,6 @@
[[match_err]]
pattern = ["permission denied"]
suggest = ["#[executable(sudo), !cmd_contains(sudo)]\nsudo {{command}}\n"]
suggest = ["""
#[executable(sudo), !cmd_contains(sudo)]
sudo {{command}}
"""]

View file

@ -2,46 +2,21 @@
lockin_delay = 750
[format]
container_format = "{indent}<b>Container [{layout}]</b> <i>{marks}</i> on workspace {workspace_name} <span alpha=\"20000\">({id})</span>"
container_format = '{indent}<b>Container [{layout}]</b> <i>{marks}</i> on workspace {workspace_name} <span alpha="20000">({id})</span>'
html_escape = true
indent = " "
output_format = "{indent}<b>Output {name}</b> <span alpha=\"20000\">({id})</span>"
output_format = '{indent}<b>Output {name}</b> <span alpha="20000">({id})</span>'
urgency_end = "</span>"
urgency_start = "<span background=\"darkred\" foreground=\"yellow\">"
window_format = "img:{app_icon}:text:{indent}<i>{app_name}</i> — {urgency_start}<b>“{title}”</b>{urgency_end} <i>{marks}</i> on workspace {workspace_name} / {output_name} <span alpha=\"20000\">({id})</span>"
workspace_format = "{indent}<b>Workspace {name} [{layout}]</b> on output {output_name} <span alpha=\"20000\">({id})</span>"
urgency_start = '<span background="darkred" foreground="yellow">'
window_format = 'img:{app_icon}:text:{indent}<i>{app_name}</i> — {urgency_start}<b>“{title}”</b>{urgency_end} <i>{marks}</i> on workspace {workspace_name} / {output_name} <span alpha="20000">({id})</span>'
workspace_format = '{indent}<b>Workspace {name} [{layout}]</b> on output {output_name} <span alpha="20000">({id})</span>'
[layout]
auto_tile = false
auto_tile_min_window_width_per_output_width = [
[800, 400],
[1024, 500],
[1280, 600],
[1400, 680],
[1440, 700],
[1600, 780],
[1680, 780],
[1920, 920],
[2048, 980],
[2560, 1000],
[3440, 1200],
[3840, 1280],
[4096, 1400],
[4480, 1600],
[7680, 2400],
]
auto_tile_min_window_width_per_output_width = [[800, 400], [1024, 500], [1280, 600], [1400, 680], [1440, 700], [1600, 780], [1680, 780], [1920, 920], [2048, 980], [2560, 1000], [3440, 1200], [3840, 1280], [4096, 1400], [4480, 1600], [7680, 2400]]
[menu]
args = [
"--show=dmenu",
"--allow-markup",
"--allow-images",
"--insensitive",
"--cache-file=/dev/null",
"--parse-search",
"--height=40%",
"--prompt={prompt}",
]
args = ["--show=dmenu", "--allow-markup", "--allow-images", "--insensitive", "--cache-file=/dev/null", "--parse-search", "--height=40%", "--prompt={prompt}"]
executable = "wofi"
[misc]

View file

@ -49,7 +49,7 @@
command = "git show -p --stat --pretty=fuller --color=always '{0}'"
[source]
command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" \"$@\""
command = 'git log --oneline --date=short --pretty="format:%h %s %an %cd" "$@"'
output = "{split: :0}"
''}
'';

View file

@ -66,27 +66,9 @@
'';
expectedColorScheme = builtins.toFile "test.toml" ''
[colors]
ansi = [
"#222222",
"#D14949",
"#48874F",
"#AFA75A",
"#599797",
"#8F6089",
"#5C9FA8",
"#8C8C8C",
]
ansi = ["#222222", "#D14949", "#48874F", "#AFA75A", "#599797", "#8F6089", "#5C9FA8", "#8C8C8C"]
background = "#1B1B1B"
brights = [
"#444444",
"#FF6D6D",
"#89FF95",
"#FFF484",
"#97DDFF",
"#FDAAF2",
"#85F5DA",
"#E9E9E9",
]
brights = ["#444444", "#FF6D6D", "#89FF95", "#FFF484", "#97DDFF", "#FDAAF2", "#85F5DA", "#E9E9E9"]
cursor_bg = "#BEAF8A"
cursor_border = "#BEAF8A"
cursor_fg = "#1B1B1B"

View file

@ -2,6 +2,7 @@
location = "top"
rounding = "sm"
scale = 1
[[bar.layout]]
center = ["media"]
left = ["clock"]