shibao
e77854b6b5
add bashrc ignore xauthority add autounlocking keepass desktop entry add fonts for waybar add alacritty config move scripts location and adjust bashrc use materia theme sway and lockscreen add list packages script add ranger desktop item add mpd config add indicator ring to swaylock remove mpd password add global asdf tool versions add mako config update keys add swaylock theme add suspend to lock config move ssh commands to aliases tweak mpd section in waybar add kanshi config for work update bashrc
34 lines
767 B
Bash
Executable File
34 lines
767 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
CANTATA_RUNNING=0
|
|
|
|
if pgrep -f cantata &>/dev/null 2>&1; then
|
|
echo killing cantata...
|
|
CANTATA_RUNNING=1
|
|
pkill -f cantata
|
|
fi
|
|
|
|
# echo stopping pipewire-media-session...
|
|
# systemctl --user stop pipewire-media-session
|
|
echo stopping pipewire...
|
|
systemctl --user stop pipewire
|
|
echo starting pipewire...
|
|
systemctl --user start pipewire
|
|
# echo starting pipewire-media-session...
|
|
# systemctl --user start pipewire-media-session
|
|
|
|
echo stopping mpDris2...
|
|
systemctl --user stop mpd-mpris
|
|
echo stopping mpd...
|
|
systemctl --user stop mpd
|
|
echo starting mpd...
|
|
systemctl --user start mpd
|
|
echo starting mpDris2...
|
|
systemctl --user start mpd-mpris
|
|
|
|
if [[ $CANTATA_RUNNING == 1 ]]; then
|
|
echo starting cantata...
|
|
cantata& &>/dev/null
|
|
fi
|