From 15bfdbfcb5e90a456478dd63d044ac30a5b560b4 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 14 Jan 2021 22:38:42 +0100 Subject: [PATCH] Add audio controls --- music/play-pause.png | Bin 0 -> 650 bytes music/skip-backward.png | Bin 0 -> 567 bytes music/skip-forward.png | Bin 0 -> 531 bytes music/stop.png | Bin 0 -> 360 bytes streamdeck_ui_export.json | 24 +++++++++++++++++++----- 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 music/play-pause.png create mode 100644 music/skip-backward.png create mode 100644 music/skip-forward.png create mode 100644 music/stop.png diff --git a/music/play-pause.png b/music/play-pause.png new file mode 100644 index 0000000000000000000000000000000000000000..127dc194971fe4c5fdf1db19b5593576a1fddf5c GIT binary patch literal 650 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweEpc6R~NK=9LfcRi5e zEbxdd2GR*&{2|-vJOcw`kEe@cNXEUlGxmBhJBqlSpL#>{TT}jm1#?@=#2)#tEY-=$ zsbxrB&!3>fv#&`(tg&I^22QRr%^VhP>#ZR_bi^DF9aEj@nK#AquF>?J-*v3-A97Hd z=%FIi`Mok1#nV=$UHcWdoipdjm91yr?6|&+*K_I#CH+(Bs~4}k zv~=CY-1i%s?y*lgr_y^|M2f{#i6Qkt(4{HgH!M_Q&~^yE)bsrSkX3wO?UKs(3!PmV zmNjO3uD;jY-sK=RUwl&8-gbUbMh!;wjgN0Svuv9G^2CwijuYmoZVK~~I~>H$o6q|w z>HjV=?H%1jW6WZ+w=$VYYeoew|M|Yi8g4YoMy|ZuwUR zohpwbA}g6sr+s^(DCoU}ZOzP^tEaoH=xA^@zHPXf-=Fiv{|)s_)oEp~bOn?i39aAg zdgsyBj<|Cj*?W!&tz`C|_fg7uiJRE^{CkJLX&VK7j5?CvUTgnN)vUnppX#^d#bZ+*1U<9d_xJHzuB$lLFB^RXvDF!10BST#SLtR6Y x5Fn^~?YO literal 0 HcmV?d00001 diff --git a/music/skip-backward.png b/music/skip-backward.png new file mode 100644 index 0000000000000000000000000000000000000000..ebdbf69340255dbefbd7901865b9898352f25a4d GIT binary patch literal 567 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweEpc6R~NK=9LfcRi5e zEbxdd2GR*&{2|-vJOcxxrKgKyNXEUlH|+IT14WL1d@mS%K`CmfXvfwHuGt%Sl32G) z5xV$d%BkfGLRM&q)JYu;-dp*6-tYD~`9?>5o}GI#*(dE;+=)#(r#HR%pK{u7f(i3C zF}~Q@H?OWTpR|Q{&#arfli#eHX)ETb8vCkTy)Qe*YnJz|f*#u`B^%%D*{bx^g{6S| zO@+V#N#S{OR!s=&ST$iNS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweEpc6R~NK=9LfcRi5e zEbxdd2GR*&{2|-vJOcxxsHcl#NXEUlH}?86JBqkIEY>x0dNSpJX6OWG%?Dz4n2ZEf zcd)bY3QYQR{ehJAQ5`KXmn8WbLhlrLC(#;GdsWN%LD{&+}{9Z`-j=n{hrrk^5mfv1|pzQJcw|u!`!sqvOCNu;;P;AP~)pEIM7_9ix zP4=lGWvo})6QZEp+@cnTEr+ic^j z-ak<;U0><;{04~#=GzCpFe@I*iaz2s{cy(rTOK3Y`cGh zB1N^tHKHUXu_VKdAa7#Ug_8v&8Ffq|8Qfx6v}0u&9o`6-!c XmAEy8B{Q4>YGCkm^>bP0l+XkKdal1G literal 0 HcmV?d00001 diff --git a/music/stop.png b/music/stop.png new file mode 100644 index 0000000000000000000000000000000000000000..c769b4b09515e93bbad22ded07e48b4288574bb4 GIT binary patch literal 360 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweEpc6R~NK=9LfcRi5e zEbxdd2GR*&{2|-vJdly)>EalYaqsPogS-a}I9LuUdnLZpS$k13PjMT|uH)zA57tct zs=A=+$G$4dGwN)4s>_p;2dX!wc>bE@tnyOhiKImai((!}p>v0{(;b0FZ35;kI~0%b zLWE||-XF$y$8;kz&@X{v5}R5v9^JMm4N~Ou`TK-8glbfGSez?Yp9#eGaIOZ!PC{xWt~$(69DhDXM_L% literal 0 HcmV?d00001 diff --git a/streamdeck_ui_export.json b/streamdeck_ui_export.json index a276fe9..4bb2f0a 100644 --- a/streamdeck_ui_export.json +++ b/streamdeck_ui_export.json @@ -29,11 +29,25 @@ "10": { "write": "", "switch_page": 0, - "text": "" + "text": "", + "icon": "/home/pgrondek/src/streamdeck/music/skip-backward.png", + "command": "playerctl previous" + }, + "11": { + "write": "", + "icon": "/home/pgrondek/src/streamdeck/music/play-pause.png", + "command": "playerctl play-pause" + }, + "12": { + "write": "", + "icon": "/home/pgrondek/src/streamdeck/music/skip-forward.png", + "command": "playerctl next" + }, + "13": { + "write": "", + "icon": "/home/pgrondek/src/streamdeck/music/stop.png", + "command": "playerctl stop" }, - "11": {}, - "12": {}, - "13": {}, "14": { "write": "", "switch_page": 10, @@ -365,7 +379,7 @@ } } }, - "brightness": 99, + "brightness": 59, "page": 1 } }