1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-02-03 15:48:37 +00:00

Compare commits

..

3 commits

Author SHA1 Message Date
2e78e5f84e
install_environment_d 2023-12-29 23:57:15 +09:00
719655ca14
format 2023-12-29 23:51:50 +09:00
805f92774c
fixed cd failure case 2023-12-29 23:51:12 +09:00
4 changed files with 24 additions and 11 deletions

View file

@ -0,0 +1 @@
MOZ_ENABLE_WAYLAND=1

View file

@ -0,0 +1 @@
EDITOR="code --wait"

View file

@ -10,8 +10,7 @@ function install_gsettings() {
uid=${SUDO_UID:-$(id -u)}
gsettings_file=$1
gsettings_dir=$2
< "$gsettings_file" \
sudo --user="#$uid" \
sudo <"$gsettings_file" --user="#$uid" \
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$uid/bus" \
dconf load "$gsettings_dir"
}
@ -35,9 +34,21 @@ function install_source_han_mono_fonts() {
fc-cache
}
(($(id -u) == 0)) \
&& [[ -f /etc/debian_version ]] \
&& install_apt_packages
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

View file

@ -7,7 +7,7 @@ function install_dotfiles() {
dotfile=$(realpath "$dotfile")
(
cd -- "$home"
cd -- "$home" || exit 1
ln -svf "$dotfile" .
)
done
@ -20,8 +20,8 @@ function install_apt_packages() {
eval "$(apt-config shell apt_sources_dir 'Dir::Etc::sourceparts/d')"
rsync -rv etc/apt/keyrings/ /usr/share/keyrings/
rsync -rv etc/apt/sources.list.d/ "$apt_sources_dir"
[[ -d etc/default ]] \
&& rsync -rv etc/default/ /etc/default/
[[ -d etc/default ]] &&
rsync -rv etc/default/ /etc/default/
apt update
apt install -y "${packages[@]}"
rsync -rv etc/apt/sources.list.d/ "$apt_sources_dir"
@ -31,7 +31,7 @@ function install_addons() {
local addon
for addon in "$@"; do
(
cd -- "$addon"
cd -- "$addon" || exit 1
./install
)
done