diff --git a/bin/omarchy-install-dev-env b/bin/omarchy-install-dev-env index 5453e8d..1865992 100755 --- a/bin/omarchy-install-dev-env +++ b/bin/omarchy-install-dev-env @@ -33,6 +33,11 @@ install_php() { done } +install_node() { + echo -e "Installing Node.js...\n" + mise use --global node@lts +} + case "$1" in ruby) echo -e "Installing Ruby on Rails...\n" @@ -42,8 +47,7 @@ ruby) echo -e "\nYou can now run: rails new myproject" ;; node) - echo -e "Installing Node.js...\n" - mise use --global node@lts + install_node ;; bun) echo -e "Installing Bun...\n" @@ -64,6 +68,7 @@ php) laravel) echo -e "Installing PHP and Laravel...\n" install_php + install_node composer global require laravel/installer echo -e "\nYou can now run: laravel new myproject" ;; diff --git a/bin/omarchy-snapshot b/bin/omarchy-snapshot index b4d78f1..7174081 100755 --- a/bin/omarchy-snapshot +++ b/bin/omarchy-snapshot @@ -16,9 +16,15 @@ case "$COMMAND" in create) DESC="$(omarchy-version)" - for config in root home; do + echo -e "\e[32mCreate system snapshot\e[0m" + + # Get existing snapper config names from CSV output + mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}') + + for config in "${CONFIGS[@]}"; do sudo snapper -c "$config" create -c number -d "$DESC" done + echo ;; restore) sudo limine-snapper-restore diff --git a/bin/omarchy-version-branch b/bin/omarchy-version-branch new file mode 100755 index 0000000..43281d9 --- /dev/null +++ b/bin/omarchy-version-branch @@ -0,0 +1,3 @@ +#!/bin/bash + +echo $(git -C "$OMARCHY_PATH" rev-parse --abbrev-ref HEAD) diff --git a/config/fastfetch/config.jsonc b/config/fastfetch/config.jsonc index 316f441..b2cad35 100644 --- a/config/fastfetch/config.jsonc +++ b/config/fastfetch/config.jsonc @@ -68,6 +68,12 @@ "keyColor": "blue", "text": "version=$(omarchy-version); echo \"Omarchy $version\"" }, + { + "type": "command", + "key": "│ ├󰘬", + "keyColor": "blue", + "text": "branch=$(omarchy-version-branch); echo \"$branch\"" + }, { "type": "kernel", "key": "│ ├", diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index 7b98072..f2245a7 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -2,7 +2,6 @@ general { lock_cmd = omarchy-lock-screen # lock screen and 1password before_sleep_cmd = loginctl lock-session # lock before suspend. after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. - on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking inhibit_sleep = 3 # wait until screen is locked } diff --git a/install/packages.sh b/install/packages.sh index 7800d23..f50233a 100644 --- a/install/packages.sh +++ b/install/packages.sh @@ -95,7 +95,6 @@ sudo pacman -S --noconfirm --needed \ tldr \ tree-sitter-cli \ ttf-cascadia-mono-nerd \ - ttf-font-awesome \ ttf-ia-writer \ ttf-jetbrains-mono \ typora \ @@ -113,6 +112,7 @@ sudo pacman -S --noconfirm --needed \ wl-clip-persist \ wl-clipboard \ wl-screenrec \ + woff2-font-awesome \ xdg-desktop-portal-gtk \ xdg-desktop-portal-hyprland \ xmlstarlet \ diff --git a/install/preflight/repositories.sh b/install/preflight/repositories.sh index c368955..0e53313 100755 --- a/install/preflight/repositories.sh +++ b/install/preflight/repositories.sh @@ -8,9 +8,9 @@ if ! grep -q "ILoveCandy" /etc/pacman.conf; then sudo sed -i '/^\[options\]/a Color\nILoveCandy\nVerbosePkgLists' /etc/pacman.conf fi -# Add the Omarchy repository as first choice +# Add the Omarchy repository if ! grep -q "omarchy" /etc/pacman.conf; then - sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\/\n' /etc/pacman.conf + echo -e "\n[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/\$arch/\n" | sudo tee -a /etc/pacman.conf >/dev/null fi # Set mirrors to global ones only diff --git a/migrations/1756153445.sh b/migrations/1756153445.sh new file mode 100644 index 0000000..63441e2 --- /dev/null +++ b/migrations/1756153445.sh @@ -0,0 +1,10 @@ +echo "Checking and correcting Snapper configs if needed" +if command -v snapper &>/dev/null; then + if ! sudo snapper list-configs 2>/dev/null | grep -q "root"; then + sudo snapper -c root create-config / + fi + + if ! sudo snapper list-configs 2>/dev/null | grep -q "home"; then + sudo snapper -c home create-config /home + fi +fi diff --git a/migrations/1756360551.sh b/migrations/1756360551.sh new file mode 100644 index 0000000..a87dc54 --- /dev/null +++ b/migrations/1756360551.sh @@ -0,0 +1,6 @@ +echo "Move Omarchy Package Repository after Arch core/extra/multilib for extra security on resolution" + +sudo cp /etc/pacman.conf /etc/pacman.conf.bak +sudo sed -i '/\[omarchy\]/,+2 d' /etc/pacman.conf +sudo sed -i '/\[chaotic-aur\]/i\[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/$arch/\n' /etc/pacman.conf || + sudo bash -c 'echo -e "\n[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/$arch/" >> /etc/pacman.conf' diff --git a/migrations/1756363651.sh b/migrations/1756363651.sh new file mode 100644 index 0000000..3df0985 --- /dev/null +++ b/migrations/1756363651.sh @@ -0,0 +1,3 @@ +echo "Update About config to include the Omarchy branch name" + +omarchy-refresh-fastfetch diff --git a/migrations/1756365707.sh b/migrations/1756365707.sh new file mode 100644 index 0000000..dc8c60d --- /dev/null +++ b/migrations/1756365707.sh @@ -0,0 +1,4 @@ +# FIXME: This really shouldn't happen, need to find out why! +echo "Ensure walker is present" + +sudo pacman -Syu --needed --noconfirm walker-bin diff --git a/migrations/1756371020.sh b/migrations/1756371020.sh new file mode 100644 index 0000000..f629b59 --- /dev/null +++ b/migrations/1756371020.sh @@ -0,0 +1,3 @@ +echo "Stop restarting waybar on unlock to see if we have solved the stacking problem for good" + +omarchy-refresh-hypridle