diff --git a/config/systemd/user/wallpaper.service b/config/systemd/user/wallpaper.service new file mode 100644 index 0000000..1025e79 --- /dev/null +++ b/config/systemd/user/wallpaper.service @@ -0,0 +1,10 @@ +[Unit] +Description=Daily wallpaper update +Documentation=bing-wallpaper + +[Service] +Type=simple +ExecStart=/home/sjb/.local/bin/bing-wallpaper.sh + +[Install] +WantedBy=default.target diff --git a/config/systemd/user/wallpaper.timer b/config/systemd/user/wallpaper.timer new file mode 100644 index 0000000..e19a625 --- /dev/null +++ b/config/systemd/user/wallpaper.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Daily wallpaper update +Documentation=bing-wallpaper + +[Timer] +OnCalendar=daily +AccuracySec=12h +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/installer/desktop.sh b/installer/desktop.sh index 98c2715..b1e20ca 100755 --- a/installer/desktop.sh +++ b/installer/desktop.sh @@ -9,38 +9,32 @@ if [[ -x "$(command -v systemctl)" ]]; then systemctl --user enable --now syncthing fi -sjb-orgmode-installer ${SJB_CONF_DIR}/orgmode-configs/hyprland.org +THEMES_DIR="${HOME}/.local/share/themes" -sjb-script-installer ${SJB_CONF_DIR}/bin/hyprland-activeworkspace -sjb-script-installer ${SJB_CONF_DIR}/bin/hyprland-keybindings -sjb-script-installer ${SJB_CONF_DIR}/bin/hyprland-fetch-client -sjb-script-installer ${SJB_CONF_DIR}/bin/hyprland-focus-client -sjb-script-installer ${SJB_CONF_DIR}/bin/rofi-pass +${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 systemctl)" ]]; then - sjb-update-config systemd/user/wallpaper.service - sjb-update-config systemd/user/wallpaper.timer + ${DOTFILES_DIR}/sync-config config/systemd systemctl --user enable --now wallpaper.timer fi -#sjb-orgmode-installer ${SJB_CONF_DIR}/orgmode-configs/walker.org -sjb-orgmode-installer ${SJB_CONF_DIR}/orgmode-configs/rofi.org +${DOTFILES_DIR}/sync-config config/rofi -ln -snf ~/.config/omarchy/current/theme/walker.css ~/.config/walker/themes/default.css +${DOTFILES_DIR}/sync-config config/mako +ln -snf ${THEMES_DIR}/current/theme/mako.ini ${HOME}/.config/mako/config -sjb-orgmode-installer ${SJB_CONF_DIR}/orgmode-configs/mako.org - -# theme link -mkdir -p ~/.config/mako -ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config - -sjb-orgmode-installer ${SJB_CONF_DIR}/orgmode-configs/ghostty.org - -if [[ -f "${HOME}/.config/ghostty/theme" ]]; then - rm ${HOME}/.config/ghostty/theme -fi -ln -snf ~/.config/omarchy/current/theme/ghostty ~/.config/ghostty/theme +${DOTFILES_DIR}/sync-config config/ghostty +ln -snf ${THEMES_DIR}/current/theme/ghostty ${HOME}/.config/ghostty/theme -sjb-orgmode-installer ${SJB_CONF_DIR}/orgmode-configs/chromium.org +${DOTFILES_DIR}/sync-config config/chromium-flags.conf