feat: switch to spotify app because of playback issues with spot

This commit is contained in:
matt1432 2023-09-18 23:22:13 -04:00
parent 73ed0ba6de
commit d9948209eb
4 changed files with 4 additions and 8 deletions

View file

@ -5,7 +5,7 @@ EXEC="$2"
if [[ "$APP" == "thunderbird" ]]; then if [[ "$APP" == "thunderbird" ]]; then
hyprctl dispatch togglespecialworkspace thunder hyprctl dispatch togglespecialworkspace thunder
elif [[ "$APP" == "dev.alextren.Spot" ]]; then elif [[ "$APP" == "Spotify" ]]; then
hyprctl dispatch togglespecialworkspace spot hyprctl dispatch togglespecialworkspace spot
elif [[ $(hyprctl clients | grep "$APP") != "" ]]; then elif [[ $(hyprctl clients | grep "$APP") != "" ]]; then
hyprctl dispatch focuswindow "^($APP)$" hyprctl dispatch focuswindow "^($APP)$"

View file

@ -37,7 +37,7 @@ exec-once = swayidle -w lock $LOCK_PATH/lock.sh
# Special window apps # Special window apps
exec-once = thunderbird & sleep 5; hyprctl dispatch movetoworkspacesilent special:thunder,"^(thunderbird)$" exec-once = thunderbird & sleep 5; hyprctl dispatch movetoworkspacesilent special:thunder,"^(thunderbird)$"
exec-once = spot & sleep 5; hyprctl dispatch movetoworkspacesilent special:spot,"^(dev.alextren.Spot)$" exec-once = spotify & sleep 5; hyprctl dispatch movetoworkspacesilent special:spot,"^(Spotify)$"
# Some default env vars. # Some default env vars.
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
@ -132,7 +132,7 @@ gestures {
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrule = noborder,^(wofi)$ windowrule = noborder,^(wofi)$
windowrule = workspace special silent,^(dev.alextren.Spot)$ windowrule = workspace special silent,^(Spotify)$
windowrule = workspace special silent,^(thunderbird)$ windowrule = workspace special silent,^(thunderbird)$
windowrule = float,^(org.kde.polkit-kde-authentication-agent-1)$ windowrule = float,^(org.kde.polkit-kde-authentication-agent-1)$

View file

@ -13,10 +13,6 @@
hostName = "wim"; hostName = "wim";
networkmanager.enable = true; networkmanager.enable = true;
networkmanager.wifi.backend = "wpa_supplicant"; networkmanager.wifi.backend = "wpa_supplicant";
hosts = {
# Fix spot playback issue: https://github.com/xou816/spot/issues/541#issuecomment-1200503080
"104.199.65.124" = [ "ap-gew4.spotify.com" "ap-gue1.spotify.com" ];
};
}; };
# Set your time zone. # Set your time zone.

View file

@ -77,7 +77,7 @@
thunderbird thunderbird
input-emulator input-emulator
bc bc
spot spotifywm
swayosd swayosd
blueberry blueberry
libayatana-appindicator libayatana-appindicator