fix vscode external terminal

This commit is contained in:
Sean Buckley 2021-09-07 23:13:03 -04:00
parent 041fea8d3e
commit a05bdb3ee2
3 changed files with 8 additions and 3 deletions

View file

@ -82,6 +82,7 @@ in
"security.workspace.trust.banner" = "never";
"security.workspace.trust.startupPrompt" = "never";
"security.workspace.trust.untrustedFiles" = "newWindow";
"terminal.external.linuxExec" = "x-terminal-emulator";
"terminal.integrated.fontFamily" = "Liberation Mono";
"update.mode" = "none";
"update.showReleaseNotes" = false;

View file

@ -26,6 +26,11 @@ in
gnomeExtensions.sound-output-device-chooser
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" ''
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
[ "$x" = "true" ] && x=false || x=true

View file

@ -84,10 +84,9 @@ in
ln -sf /run/current-system/sw/share/icons/Yaru/cursor.theme $out/share/icons/default/index.theme
'')
# VScode's default terminal is "truecolor"
(runCommand "truecolor-term-alias" { } ''
(runCommand "x-terminal-emulator" { } ''
mkdir -p $out/bin
ln -s ${alacritty}/bin/alacritty $out/bin/truecolor
ln -s ${alacritty}/bin/alacritty $out/bin/x-terminal-emulator
'')
];
};