- New default/themed/ templates (alacritty, btop, foot, ghostty, helix, hyprland, hyprlock, kitty, mako, obsidian, rofi, swayosd, tmux, walker, waybar, keyboard.rgb, gum.env, etc.) - Add omarchy-* theme management scripts (install, refresh, set, remove, update, bg-set, colors-from-alacritty, current, etc.) - Add omarchy restart/hook scripts (btop, hyprctl, hypridle, mako, tmux) - Add installer/environment.sh for shared env vars - Add 19 theme directories with colors.toml, vscode.json, backgrounds, and app-specific configs (catppuccin, everforest, gruvbox, nord, tokyo-night, rose-pine, etc.) - Update bing-wallpaper script to use new .config/omarchy path
26 lines
671 B
Bash
Executable File
26 lines
671 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Set the current background image
|
|
# omarchy:args=<path-to-image>
|
|
# omarchy:examples=omarchy theme bg set ~/Pictures/wallpaper.png
|
|
|
|
if [[ -z $1 ]]; then
|
|
echo "Usage: omarchy-theme-bg-set <path-to-image>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
BACKGROUND="$(realpath "$1")"
|
|
CURRENT_BACKGROUND_LINK="$HOME/.config/omarchy/current/background"
|
|
|
|
if [[ ! -f "$BACKGROUND" ]]; then
|
|
echo "File does not exist: $BACKGROUND" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Create symlink to the new background
|
|
ln -nsf "$BACKGROUND" "$CURRENT_BACKGROUND_LINK"
|
|
|
|
# Kill existing swaybg and start new one
|
|
pkill -x swaybg
|
|
setsid uwsm-app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
|