Files
sxmo-utils/configs/default_hooks/sxmo_hook_logout.sh
2023-05-14 00:19:17 -07:00

14 lines
405 B
Bash
Executable File

#!/bin/sh
# This script is called with both toggle wm and when loging out (i.e., restarting)
# current window manager. You'll want to give a 5s pause here to let certain apps
# "cool off" before we restart wm, but otherwise everything *should* die with the
# wm
superctl stop sxmo_soundmonitor
superctl stop wireplumber
superctl stop pipewire-pulse
superctl stop pipewire
# give pipewire time
sleep 5s