Files
dotfiles/installer/desktop.sh
T

54 lines
1.6 KiB
Bash
Executable File

#!/bin/sh -e
if [[ ! -x "$(command -v sjb-orgmode-installer)" ]]; then
echo "Error: sjb config script are not installed, run sjb-install.sh" >&2
exit 1
fi
if [[ -x "$(command -v systemctl)" ]]; then
systemctl --user enable --now syncthing
fi
THEMES_DIR="${HOME}/.local/share/themes"
${DOTFILES_DIR}/sync-config config/hypr
${DOTFILES_DIR}/sync-script script/hyprland-activeworkspace
${DOTFILES_DIR}/sync-script script/hyprland-keybindings
${DOTFILES_DIR}/sync-script script/hyprland-fetch-client
${DOTFILES_DIR}/sync-script script/hyprland-focus-client
${DOTFILES_DIR}/sync-script script/rofi-pass
sjb-script-installer ${SJB_CONF_DIR}/bin/bing-wallpaper
${DOTFILES_DIR}/sync-script script/bing-wallpaper
if [[ ! -x "$(command -v gsettings)" ]]; then
gsettings set org.gnome.desktop.interface gtk-enable-primary-paste true
fi
${DOTFILES_DIR}/sync-config config/rofi
${DOTFILES_DIR}/sync-config config/mako
ln -snf ${THEMES_DIR}/current/theme/mako.ini ${HOME}/.config/mako/config
${DOTFILES_DIR}/sync-config config/ghostty
ln -snf ${THEMES_DIR}/current/theme/ghostty ${HOME}/.config/ghostty/theme
${DOTFILES_DIR}/sync-config config/chromium-flags.conf
xdg-settings set default-web-browser firefox.desktop
if [[ -x "$(command -v systemctl)" ]]; then
${DOTFILES_DIR}/sync-config config/systemd
systemctl --user enable mako.service
systemctl --user enable hypridle.service
systemctl --user enable awww-daemon.service
systemctl --user enable gnome-keyring-daemon.service
systemctl --user enable hyprpolkitagent.service
systemctl --user enable wallpaper.timer
fi