mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
Compare commits
2 commits
a68ff34ebb
...
bfe9645bc2
| Author | SHA1 | Date | |
|---|---|---|---|
| bfe9645bc2 | |||
| a3246d5297 |
2 changed files with 16 additions and 5 deletions
|
|
@ -12,9 +12,7 @@ let
|
|||
if builtins.isString v then
|
||||
''${k} = "${toString v}"''
|
||||
else
|
||||
''${k} = ${
|
||||
if builtins.isBool v then if v then "true" else "false" else toString v
|
||||
}'';
|
||||
''${k} = ${if builtins.isBool v then if v then "true" else "false" else toString v}'';
|
||||
};
|
||||
configFile = format.generate "ghostty-config" cfg.settings;
|
||||
in
|
||||
|
|
@ -62,6 +60,9 @@ in
|
|||
"14=#85dc85"
|
||||
"15=#e2637f"
|
||||
];
|
||||
mouse-hide-while-typing = true;
|
||||
app-notifications = "no-clipboard-copy";
|
||||
|
||||
copy-on-select = false;
|
||||
clipboard-read = "allow";
|
||||
clipboard-write = "allow";
|
||||
|
|
@ -72,6 +73,8 @@ in
|
|||
];
|
||||
|
||||
auto-update = "off";
|
||||
confirm-close-surface = false;
|
||||
shell-integration = "detect";
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -24,12 +24,20 @@
|
|||
};
|
||||
in
|
||||
''
|
||||
|
||||
run_zellij () {
|
||||
if ! systemctl is-active --quiet --user "zellij$2.scope"; then
|
||||
systemd-run --scope --unit="zellij$2" --user zellij attach -b "$1"
|
||||
fi
|
||||
zellij attach "$1"
|
||||
}
|
||||
|
||||
if [[ -z "$ZELLIJ" ]]; then
|
||||
if [[ -n "$SSH_TTY" ]]; then
|
||||
zellij attach -c "SSH@$USER"
|
||||
run_zellij "$SSH@$USER" ""
|
||||
else
|
||||
MONITOR="$(${monitorScript} || true)"
|
||||
zellij attach -c "''${MONITOR:+"$MONITOR@"}$USER"
|
||||
run_zellij "''${MONITOR:+"$MONITOR@"}$USER" "-''${MONITOR:+"$MONITOR"}"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue