mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
fix vscode external terminal
This commit is contained in:
parent
041fea8d3e
commit
a05bdb3ee2
3 changed files with 8 additions and 3 deletions
|
@ -82,6 +82,7 @@ in
|
||||||
"security.workspace.trust.banner" = "never";
|
"security.workspace.trust.banner" = "never";
|
||||||
"security.workspace.trust.startupPrompt" = "never";
|
"security.workspace.trust.startupPrompt" = "never";
|
||||||
"security.workspace.trust.untrustedFiles" = "newWindow";
|
"security.workspace.trust.untrustedFiles" = "newWindow";
|
||||||
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
||||||
"terminal.integrated.fontFamily" = "Liberation Mono";
|
"terminal.integrated.fontFamily" = "Liberation Mono";
|
||||||
"update.mode" = "none";
|
"update.mode" = "none";
|
||||||
"update.showReleaseNotes" = false;
|
"update.showReleaseNotes" = false;
|
||||||
|
|
|
@ -26,6 +26,11 @@ in
|
||||||
gnomeExtensions.sound-output-device-chooser
|
gnomeExtensions.sound-output-device-chooser
|
||||||
numix-icon-theme
|
numix-icon-theme
|
||||||
|
|
||||||
|
(runCommand "x-terminal-emulator" { } ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s ${gnome.gnome-terminal}/bin/gnome-terminal $out/bin/x-terminal-emulator
|
||||||
|
'')
|
||||||
|
|
||||||
(writeShellScriptBin "red" ''
|
(writeShellScriptBin "red" ''
|
||||||
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
|
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
|
||||||
[ "$x" = "true" ] && x=false || x=true
|
[ "$x" = "true" ] && x=false || x=true
|
||||||
|
|
|
@ -84,10 +84,9 @@ in
|
||||||
ln -sf /run/current-system/sw/share/icons/Yaru/cursor.theme $out/share/icons/default/index.theme
|
ln -sf /run/current-system/sw/share/icons/Yaru/cursor.theme $out/share/icons/default/index.theme
|
||||||
'')
|
'')
|
||||||
|
|
||||||
# VScode's default terminal is "truecolor"
|
(runCommand "x-terminal-emulator" { } ''
|
||||||
(runCommand "truecolor-term-alias" { } ''
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s ${alacritty}/bin/alacritty $out/bin/truecolor
|
ln -s ${alacritty}/bin/alacritty $out/bin/x-terminal-emulator
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue