Swap Spotify GUI to TUI

This commit is contained in:
David Heinemeier Hansson
2025-07-29 16:31:40 +02:00
parent 5c98de75d1
commit b09d2d68cd
4 changed files with 17 additions and 5 deletions

View File

@ -26,7 +26,7 @@ $webapp = $browser --app
bind = SUPER, return, exec, $terminal
bind = SUPER, F, exec, uwsm app -- nautilus --new-window
bind = SUPER, B, exec, $browser
bind = SUPER, M, exec, uwsm app -- spotify
bind = SUPER, M, exec, $terminal -e spotify_player
bind = SUPER, N, exec, $terminal -e nvim
bind = SUPER, T, exec, $terminal -e btop
bind = SUPER, D, exec, $terminal -e lazydocker

View File

@ -10,7 +10,7 @@ bindel = ,XF86MonBrightnessUp, exec, $osdclient --brightness raise
bindel = ,XF86MonBrightnessDown, exec, $osdclient --brightness lower
# Requires playerctl
bindl = , XF86AudioNext, exec, $osdclient --playerctl next
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, $osdclient --playerctl play-pause
bindl = , XF86AudioPlay, exec, $osdclient --playerctl play-pause
bindl = , XF86AudioPrev, exec, $osdclient --playerctl previous
bindl = , XF86AudioPrev, exec, playerctl previous

View File

@ -4,10 +4,10 @@ if [ -z "$OMARCHY_BARE" ]; then
yay -S --noconfirm --needed \
gnome-calculator gnome-keyring signal-desktop \
obsidian-bin libreoffice obs-studio kdenlive \
xournalpp localsend-bin
xournalpp localsend-bin spotify_player
# Packages known to be flaky or having key signing issues are run one-by-one
for pkg in pinta typora spotify zoom; do
for pkg in pinta typora zoom; do
yay -S --noconfirm --needed "$pkg" ||
echo -e "\e[31mFailed to install $pkg. Continuing without!\e[0m"
done

12
migrations/1753795654.sh Normal file
View File

@ -0,0 +1,12 @@
if [[ ! -f ~/.local/state/omarchy/bare.mode ]]; then
echo "Offer to swap Spotify GUI to TUI"
if command -v spotify >/dev/null && ! command -v spotify_player >/dev/null; then
if gum confirm "Replace Spotify GUI with TUI?"; then
yay -Sy --noconfirm spotify_player
yay -Rns --noconfirm spotify
sed -i -E 's|bind = (.+), exec, .*spotify|bind = \1, exec, $terminal -e spotify_player|' ~/.config/hypr/hyprland.conf
fi
fi
fi