mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-07-06 16:12:33 +02:00
@@ -58,7 +58,13 @@
|
||||
];
|
||||
|
||||
# shell.json is managed by home-manager (read-only symlink) but caelestia
|
||||
# needs to write to it at runtime: replace the symlink with a mutable copy
|
||||
# needs to write to it at runtime: replace the symlink with a mutable copy.
|
||||
# The stale .hm-backup must be removed before linkGeneration so HM can
|
||||
# back up the runtime-modified shell.json without hitting a conflict.
|
||||
home.activation.caelestiaCleanBackup = lib.hm.dag.entryBefore ["linkGeneration"] ''
|
||||
$DRY_RUN_CMD rm -f "$HOME/.config/caelestia/shell.json.hm-backup"
|
||||
'';
|
||||
|
||||
home.activation.caelestiaWritableShellConfig = lib.hm.dag.entryAfter ["linkGeneration"] ''
|
||||
if [ -L "$HOME/.config/caelestia/shell.json" ]; then
|
||||
$DRY_RUN_CMD cp --remove-destination \
|
||||
|
||||
@@ -154,6 +154,21 @@
|
||||
enabled = true;
|
||||
dangerous = false;
|
||||
}
|
||||
{
|
||||
name = "Run in background";
|
||||
icon = "play_circle";
|
||||
description = "Type and run any shell command in the background";
|
||||
command = [
|
||||
"ghostty"
|
||||
"--title=run-bg"
|
||||
"-e"
|
||||
"bash"
|
||||
"-c"
|
||||
"printf 'Run: '; read -r cmd; [ -n \"$cmd\" ] && hyprctl dispatch exec \"$cmd\""
|
||||
];
|
||||
enabled = true;
|
||||
dangerous = false;
|
||||
}
|
||||
];
|
||||
dragThreshold = 50;
|
||||
enableDangerousActions = false;
|
||||
|
||||
Reference in New Issue
Block a user