Rely on Omarchy bin being part of PATH everywhere

This commit is contained in:
David Heinemeier Hansson
2025-08-10 20:30:39 +02:00
parent 7e28038687
commit 86c967352b
54 changed files with 108 additions and 108 deletions

View File

@@ -2,5 +2,5 @@ echo "Fixing persistent workspaces in waybar config"
if [[ -f ~/.config/waybar/config ]]; then
sed -i 's/"persistent_workspaces":/"persistent-workspaces":/' ~/.config/waybar/config
~/.local/share/omarchy/bin/omarchy-restart-waybar
omarchy-restart-waybar
fi

View File

@@ -2,5 +2,5 @@ echo "Install Impala as new wifi selection TUI"
if ! command -v impala &>/dev/null; then
yay -S --noconfirm --needed impala
echo "You need to update the Waybar config to use Impala Wi-Fi selector in top bar."
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-waybar
fi

View File

@@ -7,7 +7,7 @@ if [[ -f ~/.local/share/applications/blueberry.desktop ]]; then
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-waybar
fi
if [[ ! -L "~/.config/omarchy/themes/rose-pine" ]]; then

View File

@@ -4,6 +4,6 @@ if ! command -v wiremix &>/dev/null; then
yay -S --noconfirm --needed wiremix
yay -Rns --noconfirm pavucontrol
~/.local/share/omarchy/bin/omarchy-refresh-applications
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-applications
omarchy-refresh-waybar
fi

View File

@@ -1,2 +1,2 @@
echo "Update .config/hypr/hyprlock.conf to include failed attempt counter"
~/.local/share/omarchy/bin/omarchy-refresh-hyprlock
omarchy-refresh-hyprlock

View File

@@ -1,5 +1,5 @@
echo "Fix dancing workspace numbers in Waybar"
if ! grep -q 'min-width: 9px' ~/.config/waybar/style.css; then
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-waybar
fi

View File

@@ -1,5 +1,5 @@
echo "Allow updating of timezone by right-clicking on the clock (or running omarchy-cmd-tzupdate)"
if ! command -v tzupdate &>/dev/null; then
bash ~/.local/share/omarchy/install/config/timezones.sh
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-waybar
fi

View File

@@ -1,4 +1,4 @@
echo "Update Walker config to include = as the leader key for the calculator"
if ! grep -q 'prefix = "="' ~/.config/walker/config.toml; then
~/.local/share/omarchy/bin/omarchy-refresh-walker
omarchy-refresh-walker
fi

View File

@@ -1,4 +1,4 @@
echo "Update Walker config to include . as the leader key for the finder"
if ! grep -q 'prefix = "\."' ~/.config/walker/config.toml; then
~/.local/share/omarchy/bin/omarchy-refresh-walker
omarchy-refresh-walker
fi

View File

@@ -1,2 +1,2 @@
echo "Fix Plymouth login positioning in multi-monitor setups + limit password from overflowing"
~/.local/share/omarchy/bin/omarchy-refresh-plymouth
omarchy-refresh-plymouth

View File

@@ -3,4 +3,4 @@ if ! command -v hyprsunset &>/dev/null; then
yay -S --noconfirm --needed hyprsunset
fi
~/.local/share/omarchy/bin/omarchy-refresh-hyprsunset
omarchy-refresh-hyprsunset

View File

@@ -6,5 +6,5 @@ if ! grep -q 'on_unlock_cmd *= *omarchy-restart-waybar' ~/.config/hypr/hypridle.
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking' \
~/.config/hypr/hypridle.conf
~/.local/share/omarchy/bin/omarchy-restart-waybar
omarchy-restart-waybar
fi

View File

@@ -1,6 +1,6 @@
echo "Update Waybar CSS to dim unused workspaces"
if ! grep -q "#workspaces button\.empty" ~/.config/waybar/style.css; then
~/.local/share/omarchy/bin/omarchy-refresh-config waybar/style.css
~/.local/share/omarchy/bin/omarchy-restart-waybar
omarchy-refresh-config waybar/style.css
omarchy-restart-waybar
fi

View File

@@ -1,6 +1,6 @@
echo "Start screensaver automatically after 1 minute and stop before locking"
if ! grep -q "omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then
~/.local/share/omarchy/bin/omarchy-refresh-hypridle
~/.local/share/omarchy/bin/omarchy-refresh-hyprlock
omarchy-refresh-hypridle
omarchy-refresh-hyprlock
fi

View File

@@ -1,5 +1,5 @@
echo "Ensure screensaver doesn't start while the computer is locked"
if ! grep -q "pidof hyprlock || omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then
~/.local/share/omarchy/bin/omarchy-refresh-hypridle
omarchy-refresh-hypridle
fi

View File

@@ -1,5 +1,5 @@
echo "Update app launcher config to allow enough entries to show all keybindings on SUPER+K"
if ! grep "max_entries = 200" ~/.config/walker/config.toml; then
~/.local/share/omarchy/bin/omarchy-refresh-walker
omarchy-refresh-walker
fi

View File

@@ -1,5 +1,5 @@
echo "Add auto-update icon to waybar when update available"
if ! grep -q "custom/update" ~/.config/waybar/config.jsonc; then
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-waybar
fi

View File

@@ -1,2 +1,2 @@
echo "Increase time before screensaver starts to 2.5 minutes (from 1 minute)"
~/.local/share/omarchy/bin/omarchy-refresh-hypridle
omarchy-refresh-hypridle

View File

@@ -1,2 +1,2 @@
echo "Add chromium-flags.conf"
~/.local/share/omarchy/bin/omarchy-refresh-config chromium-flags.conf
omarchy-refresh-config chromium-flags.conf

View File

@@ -1,2 +1,2 @@
echo "Restart Walker to pick up menu selections"
~/.local/share/omarchy/bin/omarchy-restart-walker
omarchy-restart-walker

View File

@@ -1,5 +1,5 @@
echo "Update Waybar for new Omarchy menu"
if ! grep -q "" ~/.config/waybar/config.jsonc; then
~/.local/share/omarchy/bin/omarchy-refresh-waybar
omarchy-refresh-waybar
fi

View File

@@ -4,7 +4,7 @@ if [[ ! -f ~/.config/hypr/autostarts.conf ]]; then
echo -e "\nOmarchy now splits default .config/hypr/hyprland.conf into sub-configs."
echo -e "Resetting to defaults will overwrite your configuration, but save it as .bak.\n"
if gum confirm "Use new default hyprland.conf config?"; then
~/.local/share/omarchy/bin/omarchy-refresh-hyprland || true
omarchy-refresh-hyprland || true
else
echo "Left your existing configuration in place!"
fi

View File

@@ -2,5 +2,5 @@ echo "Set SwayOSD max volume back to 100"
if ! grep -q "max_volume = 100" ~/.config/swayosd/config.toml; then
sed -i 's/max_volume = 150/max_volume = 100/' ~/.config/swayosd/config.toml
~/.local/share/omarchy/bin/omarchy-restart-swayosd
omarchy-restart-swayosd
fi

View File

@@ -1,4 +1,4 @@
echo "Update and restart Walker to resolve stuck Omarchy menu"
yay -Sy --noconfirm walker-bin
~/.local/share/omarchy/bin/omarchy-restart-walker
omarchy-restart-walker

View File

@@ -1,6 +1,6 @@
echo "Update Waybar config to fix path issue with update-available icon click"
if grep -q "alacritty --class Omarchy --title Omarchy -e omarchy-update" ~/.config/waybar/config.jsonc; then
sed -i 's|\("on-click": "alacritty --class Omarchy --title Omarchy -e \)omarchy-update"|\1~/.local/share/omarchy/bin/omarchy-update"|' ~/.config/waybar/config.jsonc
~/.local/share/omarchy/bin/omarchy-restart-waybar
sed -i 's|\("on-click": "alacritty --class Omarchy --title Omarchy -e \)omarchy-update"|\1omarchy-update"|' ~/.config/waybar/config.jsonc
omarchy-restart-waybar
fi

View File

@@ -1,3 +1,3 @@
echo "Fix the expand icon margin in the Waybar style"
~/.local/share/omarchy/bin/omarchy-refresh-config waybar/style.css
omarchy-refresh-config waybar/style.css

View File

@@ -1,3 +1,3 @@
echo "Update OS icon in About from Windows to Arch"
~/.local/share/omarchy/bin/omarchy-refresh-config fastfetch/config.jsonc
omarchy-refresh-config fastfetch/config.jsonc

View File

@@ -1,5 +1,5 @@
echo "Lock 1password on screen lock"
if ! grep -q "omarchy-lock-screen" ~/.config/hypr/hypridle.conf; then
~/.local/share/omarchy/bin/omarchy-refresh-hypridle
omarchy-refresh-hypridle
fi