From e4489699c7b96f5c2ec40cc995af4da110c41226 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 31 Jul 2021 12:52:27 +0200 Subject: [PATCH] systemd: add easyeffects --- bin/rofi-mediaplayer | 7 +++++-- dotfiles/systemd/easyeffects.service | 8 ++++++++ dotfiles/systemd/xsession.target | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dotfiles/systemd/easyeffects.service diff --git a/bin/rofi-mediaplayer b/bin/rofi-mediaplayer index ac63777..f36a34e 100755 --- a/bin/rofi-mediaplayer +++ b/bin/rofi-mediaplayer @@ -12,7 +12,8 @@ if [ -z "${ROFI_OUTSIDE}" ]; then -kb-select-4 Super+v \ -kb-select-5 Super+b \ -kb-select-6 Super+m \ - -kb-select-7 Super+s + -kb-select-7 Super+e \ + -kb-select-8 Super+s fi case $ROFI_RETV in @@ -34,6 +35,7 @@ media-playback-pause Pause media-playback-stop Stop go-next Next track multimedia-volume-control Open mixer panel +easyeffects Open effects panel com.spotify.Client Open ${Mediaplayer} EOF @@ -56,7 +58,8 @@ EOF 4) playerctl -p $mediaplayer stop ;; 5) playerctl -p $mediaplayer next ;; 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 diff --git a/dotfiles/systemd/easyeffects.service b/dotfiles/systemd/easyeffects.service new file mode 100644 index 0000000..b9f8849 --- /dev/null +++ b/dotfiles/systemd/easyeffects.service @@ -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 diff --git a/dotfiles/systemd/xsession.target b/dotfiles/systemd/xsession.target index a5b204c..8e694fb 100644 --- a/dotfiles/systemd/xsession.target +++ b/dotfiles/systemd/xsession.target @@ -3,6 +3,7 @@ Description=X session BindsTo=graphical-session.target Wants=autorandr.service Wants=dunst.socket +Wants=easyeffects.service Wants=i3.service Wants=inputplug.service Wants=picom.service