systemd: add easyeffects

This commit is contained in:
Vincent Bernat 2021-07-31 12:52:27 +02:00
parent c070fdf0eb
commit e4489699c7
3 changed files with 14 additions and 2 deletions

View file

@ -12,7 +12,8 @@ if [ -z "${ROFI_OUTSIDE}" ]; then
-kb-select-4 Super+v \ -kb-select-4 Super+v \
-kb-select-5 Super+b \ -kb-select-5 Super+b \
-kb-select-6 Super+m \ -kb-select-6 Super+m \
-kb-select-7 Super+s -kb-select-7 Super+e \
-kb-select-8 Super+s
fi fi
case $ROFI_RETV in case $ROFI_RETV in
@ -34,6 +35,7 @@ media-playback-pause Pause
media-playback-stop Stop media-playback-stop Stop
go-next Next track go-next Next track
multimedia-volume-control Open mixer panel multimedia-volume-control Open mixer panel
easyeffects Open effects panel
com.spotify.Client Open ${Mediaplayer} com.spotify.Client Open ${Mediaplayer}
EOF EOF
@ -56,7 +58,8 @@ EOF
4) playerctl -p $mediaplayer stop ;; 4) playerctl -p $mediaplayer stop ;;
5) playerctl -p $mediaplayer next ;; 5) playerctl -p $mediaplayer next ;;
6) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;; 6) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
7) i3-msg '[class="'${Mediaplayer}'"] focus' || i3-msg exec exec spotify ;; 7) i3-msg '[class="easyeffects"] focus' || i3-msg exec exec easyeffects ;;
8) i3-msg '[class="'${Mediaplayer}'"] focus' || i3-msg exec exec spotify ;;
esac >&2 esac >&2
;; ;;
esac esac

View file

@ -0,0 +1,8 @@
[Unit]
Description=Easyeffects for Pipewire
PartOf=graphical-session.target
[Service]
Type=dbus
BusName=com.github.wwmm.easyeffects
ExecStart=%h/.nix-profile/bin/easyeffects --gapplication-service

View file

@ -3,6 +3,7 @@ Description=X session
BindsTo=graphical-session.target BindsTo=graphical-session.target
Wants=autorandr.service Wants=autorandr.service
Wants=dunst.socket Wants=dunst.socket
Wants=easyeffects.service
Wants=i3.service Wants=i3.service
Wants=inputplug.service Wants=inputplug.service
Wants=picom.service Wants=picom.service