This commit is contained in:
Moritz Ruth 2024-01-31 01:23:56 +01:00
parent 1904e3e96a
commit b5a7ab3c6b
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
71 changed files with 921 additions and 1297 deletions

View file

@ -0,0 +1,22 @@
inactive_button_color = "#000060"
active_button_color = "#eeffff"
label_font_family = "Inter"
buttons = { }
[initial]
key_page = "default"
knob_page = "default"
[icon_packs.apps]
path = "icons/apps"
format = "svg"
[icon_packs.fad]
path = "icons/fad"
format = "svg"
global_filter = "invert|scale=1.2"
[icon_packs.ph]
path = "icons/ph"
format = "svg"
global_filter = "invert|scale=1.2"

BIN
examples/full/handlers/pa_volume Executable file

Binary file not shown.

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36"><path fill="#5865f2" d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"/></svg>

After

Width:  |  Height:  |  Size: 764 B

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#1DB954" d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"/></svg>

After

Width:  |  Height:  |  Size: 679 B

View file

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#ff0000" d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>

After

Width:  |  Height:  |  Size: 441 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><g fill="currentColor" fill-rule="evenodd"><path d="M109.533 197.602a1.887 1.887 0 0 1-.034 2.76l-7.583 7.066a4.095 4.095 0 0 1-5.714-.152l-32.918-34.095c-1.537-1.592-1.54-4.162-.002-5.746l33.1-34.092c1.536-1.581 4.11-1.658 5.74-.18l7.655 6.94c.82.743.833 1.952.02 2.708l-21.11 19.659s53.036.129 71.708.064c18.672-.064 33.437-16.973 33.437-34.7c0-7.214-5.578-17.64-5.578-17.64c-.498-.99-.273-2.444.483-3.229l8.61-8.94c.764-.794 1.772-.632 2.242.364c0 0 9.212 18.651 9.212 28.562c0 28.035-21.765 50.882-48.533 50.882c-26.769 0-70.921.201-70.921.201z"/><path d="M144.398 58.435a1.887 1.887 0 0 1 .034-2.76l7.583-7.066a4.095 4.095 0 0 1 5.714.152l32.918 34.095c1.537 1.592 1.54 4.162.002 5.746l-33.1 34.092c-1.536 1.581-4.11 1.658-5.74.18l-7.656-6.94c-.819-.743-.832-1.952-.02-2.708l21.111-19.659s-53.036-.129-71.708-.064c-18.672.064-33.437 16.973-33.437 34.7c0 7.214 5.578 17.64 5.578 17.64c.498.99.273 2.444-.483 3.229l-8.61 8.94c-.764.794-1.772.632-2.242-.364c0 0-9.212-18.65-9.212-28.562c0-28.035 21.765-50.882 48.533-50.882c26.769 0 70.921-.201 70.921-.201z"/><path d="m127.992 104.543l6.53.146c1.105.025 2.013.945 2.027 2.037l.398 30.313a1.97 1.97 0 0 0 2.032 1.94l4.104-.103a1.951 1.951 0 0 1 2.01 1.958l.01 4.838a2.015 2.015 0 0 1-1.99 2.024l-21.14.147a1.982 1.982 0 0 1-1.994-1.983l-.002-4.71c0-1.103.897-1.997 1.996-1.997h4.254a2.018 2.018 0 0 0 2.016-1.994l.169-16.966l-6.047 5.912l-6.118-7.501z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><g fill="currentColor" fill-rule="evenodd"><path d="M109.533 197.602a1.887 1.887 0 0 1-.034 2.76l-7.583 7.066a4.095 4.095 0 0 1-5.714-.152l-32.918-34.095c-1.537-1.592-1.54-4.162-.002-5.746l33.1-34.092c1.536-1.581 4.11-1.658 5.74-.18l7.655 6.94c.82.743.833 1.952.02 2.708l-21.11 19.659s53.036.129 71.708.064c18.672-.064 33.437-16.973 33.437-34.7c0-7.214-5.578-17.64-5.578-17.64c-.498-.99-.273-2.444.483-3.229l8.61-8.94c.764-.794 1.772-.632 2.242.364c0 0 9.212 18.651 9.212 28.562c0 28.035-21.765 50.882-48.533 50.882c-26.769 0-70.921.201-70.921.201z"/><path d="M144.398 58.435a1.887 1.887 0 0 1 .034-2.76l7.583-7.066a4.095 4.095 0 0 1 5.714.152l32.918 34.095c1.537 1.592 1.54 4.162.002 5.746l-33.1 34.092c-1.536 1.581-4.11 1.658-5.74.18l-7.656-6.94c-.819-.743-.832-1.952-.02-2.708l21.111-19.659s-53.036-.129-71.708-.064c-18.672.064-33.437 16.973-33.437 34.7c0 7.214 5.578 17.64 5.578 17.64c.498.99.273 2.444-.483 3.229l-8.61 8.94c-.764.794-1.772.632-2.242-.364c0 0-9.212-18.65-9.212-28.562c0-28.035 21.765-50.882 48.533-50.882c26.769 0 70.921-.201 70.921-.201z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><g fill="currentColor" fill-rule="evenodd"><path d="m47.813 71.467l36.415-.012c2.211 0 5.129 1.393 6.52 3.118l22.522 27.923l-10.972 11.499c-.763.8-1.929.738-2.599-.131L82.43 91.477c-.672-.872-2.112-1.577-3.21-1.575l-29.479.055a1.98 1.98 0 0 1-1.986-1.993l.059-16.497z"/><path d="M49.2 166.329a1.904 1.904 0 0 0-1.958 1.963l.303 14.054a2.092 2.092 0 0 0 2.042 2.034l34.042.55c2.212.035 5.14-1.32 6.544-3.03l74.103-90.29h15.474l-22.104 26.93h19.1c1.66 0 3.902-.988 5.026-2.226l23.499-25.87c4.086-4.497 3.968-11.673-.268-16.033l-22.46-23.115c-1.543-1.587-4.583-2.874-6.796-2.874H160.65c-1.659 0-2.096.977-.964 2.195l20.064 21.587h-19.106c-2.208 0-5.129 1.394-6.523 3.111L81.023 165.38c-.693.854-2.16 1.528-3.255 1.507L49.2 166.33z"/><path d="M140.208 139.822c1.451-1.663 3.72-1.586 5.067.167l19.001 24.754h15.474l-19.973-26.931h16.983c1.651 0 3.877 1.007 4.975 2.253l22.661 25.729c4.017 4.56 3.902 11.835-.271 16.265l-21.626 22.953c-1.518 1.612-4.539 2.918-6.743 2.918h-12.989c-1.65 0-2.144-1.049-1.11-2.331l18.093-22.451h-20.096c-2.213 0-5.153-1.389-6.547-3.08l-22.06-26.75c-.704-.853-.68-2.226.038-3.048z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" fill-rule="evenodd" d="M78.424 228.77c-.178 1.087.505 1.617 1.525 1.186l51.823-21.958c1.02-.433 1.149-1.346.29-2.039l-13.124-10.58l63.836-86.902c.654-.89.282-1.612-.808-1.612H128l53.414-79.142c.616-.912.21-1.65-.883-1.65h-34.145c-1.103 0-2.423.794-2.939 1.754L92.4 123.004c-.52.97-.044 1.755 1.053 1.755h48.942c1.102 0 1.477.73.834 1.638l-41.005 57.873l-13.127-9.535c-.895-.65-1.764-.301-1.943.792l-8.729 53.243z"/></svg>

After

Width:  |  Height:  |  Size: 532 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M88 72a8 8 0 0 1 8-8h64a8 8 0 0 1 0 16H96a8 8 0 0 1-8-8Zm8 40h64a8 8 0 0 0 0-16H96a8 8 0 0 0 0 16Zm112-72v176a16 16 0 0 1-16 16H64a16 16 0 0 1-16-16V40a16 16 0 0 1 16-16h128a16 16 0 0 1 16 16Zm-16 0H64v176h128Zm-64 128a12 12 0 1 0 12 12a12 12 0 0 0-12-12Z"/></svg>

After

Width:  |  Height:  |  Size: 378 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M128 174a46.06 46.06 0 0 0 46-46V64a46 46 0 0 0-92 0v64a46.06 46.06 0 0 0 46 46ZM94 64a34 34 0 0 1 68 0v64a34 34 0 0 1-68 0Zm40 141.75V232a6 6 0 0 1-12 0v-26.25A78.09 78.09 0 0 1 50 128a6 6 0 0 1 12 0a66 66 0 0 0 132 0a6 6 0 0 1 12 0a78.09 78.09 0 0 1-72 77.75Z"/></svg>

After

Width:  |  Height:  |  Size: 384 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="m212.44 212l-160-176a6 6 0 0 0-8.88 8L82 86.32V128a46 46 0 0 0 72.24 37.78l13.53 14.89A66 66 0 0 1 62 128a6 6 0 0 0-12 0a78.09 78.09 0 0 0 72 77.75V232a6 6 0 0 0 12 0v-26.25a77.68 77.68 0 0 0 41.86-16.18l27.7 30.43a6 6 0 0 0 8.88-8.08ZM128 162a34 34 0 0 1-34-34V99.52l52.07 57.28A33.92 33.92 0 0 1 128 162ZM88.86 39.83A46 46 0 0 1 174 64v60.43a6 6 0 0 1-12 0V64a34 34 0 0 0-62.94-17.86a6 6 0 1 1-10.2-6.31ZM189.5 152a65.55 65.55 0 0 0 4.5-24a6 6 0 0 1 12 0a77.65 77.65 0 0 1-5.32 28.37a6 6 0 0 1-5.59 3.82a6 6 0 0 1-5.59-8.19Z"/></svg>

After

Width:  |  Height:  |  Size: 649 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M200 32h-40a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h40a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16Zm0 176h-40V48h40ZM96 32H56a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h40a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16Zm0 176H56V48h40Z"/></svg>

After

Width:  |  Height:  |  Size: 342 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M184 64v128a8 8 0 0 1-16 0V64a8 8 0 0 1 16 0Zm40-8a8 8 0 0 0-8 8v128a8 8 0 0 0 16 0V64a8 8 0 0 0-8-8Zm-80 72a15.76 15.76 0 0 1-7.33 13.34l-88.19 56.15A15.91 15.91 0 0 1 24 184.15V71.85a15.91 15.91 0 0 1 24.48-13.34l88.19 56.15A15.76 15.76 0 0 1 144 128Zm-16.18 0L40 72.08v111.85Z"/></svg>

After

Width:  |  Height:  |  Size: 402 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M232.4 114.49L88.32 26.35a16 16 0 0 0-16.2-.3A15.86 15.86 0 0 0 64 39.87v176.26A15.94 15.94 0 0 0 80 232a16.07 16.07 0 0 0 8.36-2.35l144.04-88.14a15.81 15.81 0 0 0 0-27ZM80 215.94V40l143.83 88Z"/></svg>

After

Width:  |  Height:  |  Size: 316 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M199.81 34a16 16 0 0 0-16.24.43L64 109.23V40a8 8 0 0 0-16 0v176a8 8 0 0 0 16 0v-69.23l119.57 74.78A15.95 15.95 0 0 0 208 208.12V47.88A15.86 15.86 0 0 0 199.81 34ZM192 208L64.16 128L192 48.07Z"/></svg>

After

Width:  |  Height:  |  Size: 314 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M200 32a8 8 0 0 0-8 8v69.23L72.43 34.45A15.95 15.95 0 0 0 48 47.88v160.24a16 16 0 0 0 24.43 13.43L192 146.77V216a8 8 0 0 0 16 0V40a8 8 0 0 0-8-8ZM64 207.93V48.05l127.84 80Z"/></svg>

After

Width:  |  Height:  |  Size: 295 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M128 40a96 96 0 1 0 96 96a96.11 96.11 0 0 0-96-96Zm0 176a80 80 0 1 1 80-80a80.09 80.09 0 0 1-80 80Zm45.66-125.66a8 8 0 0 1 0 11.32l-40 40a8 8 0 0 1-11.32-11.32l40-40a8 8 0 0 1 11.32 0ZM96 16a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16h-48a8 8 0 0 1-8-8Z"/></svg>

After

Width:  |  Height:  |  Size: 364 B

View file

@ -0,0 +1,48 @@
[keys.1x2]
icon = "@ph/skip-back"
handler = "playerctl previous"
config.mode = "previous"
config.style.inactive.icon = "@ph/skip-back[alpha=0.4]"
[keys.2x2]
icon = "@ph/play-pause[alpha=0.4]"
handler = "playerctl play-pause"
config.style.paused.icon = "@ph/play"
config.style.playing.icon = "@ph/pause"
[keys.3x2]
icon = "@ph/skip-forward"
handler = "playerctl next"
config.style.inactive.icon = "@ph/skip-forward[alpha=0.4]"
[keys.1x3]
icon = "@fad/shuffle[alpha=0.4]"
handler = "playerctl shuffle"
config.style.on.icon = "@fad/shuffle[color=#58fc11]"
[keys.2x3]
icon = "@fad/repeat[alpha=0.4]"
handler = "playerctl loop"
config.style.single.icon = "@fad/repeat-one[color=#58fc11]"
config.style.all.icon = "@fad/repeat[color=#58fc11]"
[keys.3x3]
icon = "@ph/timer[color=#ff0000]"
handler = "timer"
config.durations = ["60s", "5m", "10m", "15m", "30m"]
config.vibrate_when_finished = true
config.needy = true
[keys.4x3]
icon = "@ph/computer-tower"
label = "Gaming PC"
handler = "home-assistant switch"
config.name = "switch.mwin"
config.style.on.icon = "@ph/computer-tower[color=#58fc11]"

View file

@ -0,0 +1,54 @@
[knobs.right-top]
icon = "@ph/microphone-light[scale=0.9]"
indicators.bar.color = "#ffffff50"
handler = "pa_volume"
config.delta = 0.05
config.target.type = "input"
config.target.predicates = [{ property = "description", value = "SC425 USB Microphone Analog Stereo" }]
config.muted_turn_action = "normal"
config.style.active.label = "{percentage}%"
config.style.muted.label = "Muted"
config.style.muted.icon = "@ph/microphone-slash-light[scale=0.9|color=#fc4646]"
config.style.muted.indicators.bar.color = "#fc464690"
config.style.inactive.label = "N/A"
config.style.inactive.icon = "@ph/microphone-slash-light[scale=0.9|alpha=0.8|color=#fc4646]"
[knobs.left-top]
icon = "@apps/discord[scale=0.25]"
indicators.bar.color = "#ffffff50"
handler = "pa_volume"
config.delta = 0.05
config.target.type = "application"
config.target.predicates = [{ property = "binary-name", value = "Discord" }, { property = "description", value = "playStream" }]
config.style.muted.indicators.bar.color = "#fc464690"
config.style.inactive.icon = "@apps/discord[scale=0.25|grayscale|alpha=0.8]"
[knobs.left-middle]
icon = "@apps/youtube[scale=1.3]"
indicators.bar.color = "#ffffff50"
handler = "pa_volume"
config.delta = 0.05
config.muted_turn_action = "unmute"
config.target.type = "application"
config.target.predicates = [{ property = "binary-name", value = "librewolf" }, { property = "description", regex = "\\- Piped$" }]
config.style.muted.indicators.bar.color = "#fc464690"
config.style.inactive.icon = "@apps/youtube[scale=1.3|grayscale]"
[knobs.left-bottom]
icon = "@apps/spotify[scale=1.2]"
indicators.bar.color = "#ffffff50"
handler = "pa_volume"
config.delta = 0.05
config.muted_turn_action = "unmute-at-zero"
config.target.type = "application"
config.target.predicates = [{ property = "application-name", value = "spotify" }]
config.style.muted.indicators.bar.color = "#fc464690"
config.style.inactive.icon = "@apps/spotify[scale=1.2|grayscale|alpha=0.6]"