diff --git a/add-configuration-for-play-pause-next-prev-multimedi.patch b/add-configuration-for-play-pause-next-prev-multimedi.patch new file mode 100644 index 0000000..f200f0e --- /dev/null +++ b/add-configuration-for-play-pause-next-prev-multimedi.patch @@ -0,0 +1,29 @@ +From 1e4e253e7d06d7ccee7248acb0a36ec37672b605 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= +Date: Mon, 26 Apr 2021 23:10:20 +0200 +Subject: [PATCH] Add configuration for Play/Pause, Next, Prev multimedia keys. + +--- + .config/sway/config.d/50-openSUSE.conf | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/.config/sway/config.d/50-openSUSE.conf b/.config/sway/config.d/50-openSUSE.conf +index d55ce7f..f1cebc4 100644 +--- a/.config/sway/config.d/50-openSUSE.conf ++++ b/.config/sway/config.d/50-openSUSE.conf +@@ -31,6 +31,11 @@ bindsym XF86AudioRaiseVolume exec pamixer --allow-boost -ui 2 && dc -e "[`pamixe + bindsym XF86AudioLowerVolume exec pamixer --allow-boost -ud 2 && dc -e "[`pamixer --get-volume`]sM 100d `pamixer --get-volume` $SWAYSOCK.wob + bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) + ++# Media player controls ++bindsym XF86AudioPlay exec playerctl play-pause ++bindsym XF86AudioNext exec playerctl next ++bindsym XF86AudioPrev exec playerctl previous ++ + # + # Status Bar: + # +-- +2.31.1 + + diff --git a/openSUSEway.changes b/openSUSEway.changes index 93d1fc4..11f600d 100644 --- a/openSUSEway.changes +++ b/openSUSEway.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 26 21:13:59 UTC 2021 - Matej Cepl + +- Added add-configuration-for-play-pause-next-prev-multimedi.patch + ------------------------------------------------------------------- Thu Mar 25 10:10:36 UTC 2021 - Matej Cepl diff --git a/openSUSEway.spec b/openSUSEway.spec index 260c834..e18ae25 100644 --- a/openSUSEway.spec +++ b/openSUSEway.spec @@ -27,6 +27,9 @@ License: MIT Group: Metapackages URL: https://github.com/openSUSE/openSUSEway Source0: https://github.com/openSUSE/openSUSEway/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE add-configuration-for-play-pause-next-prev-multimedi.patch gh#openSUSE/openSUSEway#41 mcepl@suse.com +# Add multimedia keys configuration +Patch0: add-configuration-for-play-pause-next-prev-multimedi.patch BuildArch: noarch BuildRequires: aaa_base BuildRequires: systemd @@ -90,6 +93,7 @@ Requires: jq Requires: pamixer Requires: patterns-sway-sway Requires: pavucontrol +Requires: playerctl Requires: polkit-gnome Requires: sway Requires: wallpaper-branding-openSUSE