Drop walker + elephant
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
echo "Replace wofi with walker as the default launcher"
|
||||
|
||||
if omarchy-cmd-missing walker; then
|
||||
omarchy-pkg-add walker-bin libqalculate
|
||||
|
||||
omarchy-pkg-drop wofi
|
||||
rm -rf ~/.config/wofi
|
||||
|
||||
mkdir -p ~/.config/walker
|
||||
cp -r ~/.local/share/omarchy/config/walker/* ~/.config/walker/
|
||||
fi
|
||||
@@ -1,55 +0,0 @@
|
||||
echo "Migrate to Walker 2.0.0"
|
||||
|
||||
NEEDS_MIGRATION=false
|
||||
|
||||
PACKAGES=(
|
||||
"elephant"
|
||||
"elephant-calc"
|
||||
"elephant-clipboard"
|
||||
"elephant-bluetooth"
|
||||
"elephant-desktopapplications"
|
||||
"elephant-files"
|
||||
"elephant-menus"
|
||||
"elephant-providerlist"
|
||||
"elephant-runner"
|
||||
"elephant-symbols"
|
||||
"elephant-unicode"
|
||||
"elephant-websearch"
|
||||
"elephant-todo"
|
||||
"walker"
|
||||
"libqalculate"
|
||||
)
|
||||
|
||||
for pkg in "${PACKAGES[@]}"; do
|
||||
if ! omarchy-pkg-present "$pkg"; then
|
||||
NEEDS_MIGRATION=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
WALKER_MAJOR=$(walker -v 2>&1 | grep -oP '^\d+' || echo "0")
|
||||
if (( WALKER_MAJOR < 2 )); then
|
||||
NEEDS_MIGRATION=true
|
||||
fi
|
||||
|
||||
# Ensure basic config is present
|
||||
mkdir -p ~/.config/walker
|
||||
cp -r ~/.local/share/omarchy/config/walker/* ~/.config/walker/
|
||||
|
||||
if $NEEDS_MIGRATION; then
|
||||
kill -9 $(pgrep -x walker) 2>/dev/null || true
|
||||
|
||||
omarchy-pkg-drop walker-bin walker-bin-debug
|
||||
|
||||
omarchy-pkg-add "${PACKAGES[@]}"
|
||||
|
||||
source $OMARCHY_PATH/install/config/walker-elephant.sh
|
||||
|
||||
rm -rf ~/.config/walker/themes
|
||||
|
||||
omarchy-refresh-config walker/config.toml
|
||||
omarchy-refresh-config elephant/calc.toml
|
||||
omarchy-refresh-config elephant/desktopapplications.toml
|
||||
fi
|
||||
|
||||
echo # Assure final success
|
||||
@@ -1,2 +0,0 @@
|
||||
echo "Install omarchy-walker meta package"
|
||||
omarchy-pkg-add omarchy-walker
|
||||
@@ -1,10 +0,0 @@
|
||||
echo "Switch Elephant to run as a systemd service and walker to be autostarted on login"
|
||||
|
||||
pkill elephant
|
||||
elephant service enable
|
||||
systemctl --user start elephant.service
|
||||
|
||||
pkill walker
|
||||
mkdir -p ~/.config/autostart/
|
||||
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
|
||||
setsid walker --gapplication-service &
|
||||
@@ -1,3 +0,0 @@
|
||||
echo "Ensure emoji menu (Super + Ctrl + E) uses single column design"
|
||||
|
||||
omarchy-refresh-walker
|
||||
@@ -1,11 +0,0 @@
|
||||
echo "Add emergency entry for Walker"
|
||||
CONFIG_FILE="$HOME/.config/walker/config.toml"
|
||||
|
||||
if [[ -f $CONFIG_FILE ]] && ! grep -q 'command = "omarchy-restart-walker"' "$CONFIG_FILE"; then
|
||||
cat >> "$CONFIG_FILE" << 'EOF'
|
||||
|
||||
[[emergencies]]
|
||||
text = "Restart Walker"
|
||||
command = "omarchy-restart-walker"
|
||||
EOF
|
||||
fi
|
||||
@@ -1,4 +0,0 @@
|
||||
echo "Enable auto-pasting for the emoji picker"
|
||||
|
||||
omarchy-refresh-config elephant/symbols.toml
|
||||
omarchy-restart-walker
|
||||
@@ -1,6 +0,0 @@
|
||||
echo "Ensure walker service is restarted if it's killed or crashes"
|
||||
|
||||
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
|
||||
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
|
||||
systemctl --user daemon-reload
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
echo "Use interactive background selector menu"
|
||||
|
||||
mkdir -p ~/.config/elephant/menus
|
||||
ln -snf $OMARCHY_PATH/default/elephant/omarchy_background_selector.lua ~/.config/elephant/menus/omarchy_background_selector.lua
|
||||
omarchy-restart-walker
|
||||
@@ -1,5 +0,0 @@
|
||||
echo "Use interactive unlock (Plymouth) selector menu"
|
||||
|
||||
mkdir -p ~/.config/elephant/menus
|
||||
ln -snf $OMARCHY_PATH/default/elephant/omarchy_unlocks.lua ~/.config/elephant/menus/omarchy_unlocks.lua
|
||||
omarchy-restart-walker
|
||||
@@ -1,4 +0,0 @@
|
||||
echo "Create Walker toggle config"
|
||||
|
||||
mkdir -p ~/.local/state/omarchy/toggles
|
||||
[[ -f ~/.local/state/omarchy/toggles/walker.css ]] || touch ~/.local/state/omarchy/toggles/walker.css
|
||||
@@ -1,9 +0,0 @@
|
||||
echo "Migrate emoji picker shortcut to use Quickshell emoji picker"
|
||||
|
||||
if [[ -f ~/.config/hypr/bindings/utilities.lua ]]; then
|
||||
sed -i 's/omarchy-launch-walker -m symbols/omarchy-shell-ipc shell toggle omarchy.emoji-picker "{}"/' ~/.config/hypr/bindings/utilities.lua
|
||||
fi
|
||||
|
||||
if [[ -f ~/.config/hypr/bindings.lua ]]; then
|
||||
sed -i 's/omarchy-launch-walker -m symbols/omarchy-shell-ipc shell toggle omarchy.emoji-picker "{}"/' ~/.config/hypr/bindings.lua
|
||||
fi
|
||||
@@ -1,5 +0,0 @@
|
||||
echo "Migrate clipboard manager shortcut to use Quickshell clipboard picker"
|
||||
|
||||
if [[ -f ~/.config/hypr/bindings/clipboard.lua ]]; then
|
||||
sed -i 's/walker -m clipboard/omarchy-shell-ipc shell toggle omarchy.clipboard-picker "{}"/' ~/.config/hypr/bindings/clipboard.lua
|
||||
fi
|
||||
@@ -0,0 +1,32 @@
|
||||
echo "Remove Walker app-launcher services and Elephant providers"
|
||||
|
||||
pkill elephant 2>/dev/null || true
|
||||
systemctl --user disable --now elephant.service 2>/dev/null || true
|
||||
systemctl --user disable --now app-walker@autostart.service 2>/dev/null || true
|
||||
rm -f ~/.config/autostart/walker.desktop
|
||||
rm -rf ~/.config/elephant
|
||||
rm -rf ~/.config/systemd/user/app-walker@autostart.service.d
|
||||
sudo rm -f /etc/pacman.d/hooks/walker-restart.hook
|
||||
|
||||
for bindings_file in ~/.config/hypr/bindings/utilities.lua ~/.config/hypr/bindings.lua; do
|
||||
if [[ -f $bindings_file ]]; then
|
||||
sed -i 's#omarchy-launch-walker#omarchy-shell shell toggle omarchy.app-launcher \\"{}\\"#g' "$bindings_file"
|
||||
fi
|
||||
done
|
||||
|
||||
omarchy-pkg-drop \
|
||||
omarchy-walker \
|
||||
elephant-all \
|
||||
elephant \
|
||||
elephant-calc \
|
||||
elephant-clipboard \
|
||||
elephant-bluetooth \
|
||||
elephant-desktopapplications \
|
||||
elephant-files \
|
||||
elephant-menus \
|
||||
elephant-providerlist \
|
||||
elephant-runner \
|
||||
elephant-symbols \
|
||||
elephant-unicode \
|
||||
elephant-websearch \
|
||||
elephant-todo
|
||||
Reference in New Issue
Block a user