1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 16:07:59 +00:00
This commit is contained in:
Nebel 2023-12-29 23:51:50 +09:00
parent 805f92774c
commit 719655ca14
Signed by: nebel
GPG key ID: 79807D08C6EF6460

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,9 @@ function install_source_han_mono_fonts() {
fc-cache
}
(($(id -u) == 0)) \
&& [[ -f /etc/debian_version ]] \
&& install_apt_packages
(($(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