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