From 2e78e5f84e0b8bb9ae83a0f482a767b8d24cb609 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 29 Dec 2023 23:57:15 +0900 Subject: [PATCH] install_environment_d --- desktop/environment.d/firefox.conf | 1 + desktop/environment.d/vscode.conf | 1 + desktop/install | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 desktop/environment.d/firefox.conf create mode 100644 desktop/environment.d/vscode.conf diff --git a/desktop/environment.d/firefox.conf b/desktop/environment.d/firefox.conf new file mode 100644 index 0000000..3cde860 --- /dev/null +++ b/desktop/environment.d/firefox.conf @@ -0,0 +1 @@ +MOZ_ENABLE_WAYLAND=1 diff --git a/desktop/environment.d/vscode.conf b/desktop/environment.d/vscode.conf new file mode 100644 index 0000000..047f9d7 --- /dev/null +++ b/desktop/environment.d/vscode.conf @@ -0,0 +1 @@ +EDITOR="code --wait" diff --git a/desktop/install b/desktop/install index 5885a2f..5e36814 100755 --- a/desktop/install +++ b/desktop/install @@ -34,9 +34,21 @@ function install_source_han_mono_fonts() { fc-cache } +function install_environment_d() { + local home + local environment_d + home=$(eval "echo ~${SUDO_USER:-}") + environment_d=$(realpath environment.d) + ( + cd -- "${home}/.config" || exit 1 + ln -svf "$environment_d" . + ) +} + (($(id -u) == 0)) && [[ -f /etc/debian_version ]] && install_apt_packages install_gsettings settings.ini / install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/" install_source_han_mono_fonts +install_environment_d