Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Common prefixes include:

Other current prefixes include:

- `ac-`, `audio-`, `battery-`, `branch-`, `brightness-`, `channel-`, `config-`, `debug-`, `dev-`, `drive-`, `first-`, `font-`, `haptic-`, `hibernation-`, `hook-`, `hyprland-`, `menu-`, `migrate-`, `notification-`, `npx-`, `plymouth-`, `powerprofiles-`, `reinstall-`, `remove-`, `screensaver-`, `show-`, `snapshot-`, `state-`, `sudo-`, `swayosd-`, `system-`, `transcode-`, `tui-`, `tz-`, `upload-`, `version-`, `voxtype-`, `webapp-`, `wifi-`, `windows-`
- `ac-`, `audio-`, `battery-`, `branch-`, `brightness-`, `channel-`, `config-`, `debug-`, `dev-`, `drive-`, `first-`, `font-`, `haptic-`, `hibernation-`, `hook-`, `hyprland-`, `menu-`, `migrate-`, `notification-`, `npx-`, `plymouth-`, `powerprofiles-`, `reinstall-`, `remove-`, `screensaver-`, `show-`, `snapshot-`, `state-`, `sudo-`, `swayosd-`, `system-`, `transcode-`, `tui-`, `tz-`, `upgrade-`, `upload-`, `version-`, `voxtype-`, `webapp-`, `wifi-`, `windows-`

# Command Metadata

Expand Down
3 changes: 2 additions & 1 deletion bin/omarchy-menu
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ show_remove_elixir_menu() {
}

show_update_menu() {
case $(menu "Update" "  Omarchy\n󰔫 Channel\n Config\n󰸌 Extra Themes\n Process\n󰇅 Hardware\n Firmware\n Password\n Timezone\n Time") in
case $(menu "Update" "  Omarchy\n󰚰 Omarchy To Quattro\n󰔫 Channel\n Config\n󰸌 Extra Themes\n Process\n󰇅 Hardware\n Firmware\n Password\n Timezone\n Time") in
*Quattro*) present_terminal omarchy-upgrade-to-quattro ;;
*Omarchy*) present_terminal omarchy-update ;;
*Channel*) show_update_channel_menu ;;
*Config*) show_update_config_menu ;;
Expand Down
10 changes: 7 additions & 3 deletions bin/omarchy-update-available
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#!/bin/bash

# omarchy:summary=Get remote tag
# omarchy:summary=Check whether a newer Omarchy release is available

latest_tag=$(git -C "$OMARCHY_PATH" ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1)
# Only consider tags in the v3 series; v4 and later require an explicit upgrade
VERSION_PATTERN='^v3\.[0-9]+\.[0-9]+$'

# Get remote tag
latest_tag=$(git -C "$OMARCHY_PATH" ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | grep -E "$VERSION_PATTERN" | sort -V | tail -n 1)
if [[ -z $latest_tag ]]; then
echo "Error: Could not retrieve latest tag."
exit 1
fi

# Get local tag
current_tag=$(git -C "$OMARCHY_PATH" describe --tags $(git -C "$OMARCHY_PATH" rev-list --tags --max-count=1))
current_tag=$(git -C "$OMARCHY_PATH" tag --list | grep -E "$VERSION_PATTERN" | sort -V | tail -n 1)
if [[ -z $current_tag ]]; then
echo "Error: Could not retrieve current tag."
exit 1
Expand Down
5 changes: 5 additions & 0 deletions bin/omarchy-update-perform
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ omarchy-hook post-update

omarchy-update-analyze-logs

# Updates stay on the v3 tag series, so say how to get to Quattro. This has to
# come before omarchy-update-restart, which may reboot the moment it is answered.
echo
echo -e "\e[33mYou're still running an older version of Omarchy. To upgrade to Omarchy Quattro, you'll need to run \e[1momarchy upgrade-to-quattro\e[0m\e[33m manually.\e[0m"

omarchy-update-restart

# Re-enable screensaver/sleep after updates
Expand Down
Loading