Compare commits
No commits in common. "ae61f0c6d4713b2ac95dd7443f638135edc4b954" and "830552f8c30d736c8628d4d88512f0555ad2a4ba" have entirely different histories.
ae61f0c6d4
...
830552f8c3
|
@ -274,15 +274,9 @@ class PulseaudioProvider(StatefulSection, ThreadedUpdater):
|
||||||
sinks = []
|
sinks = []
|
||||||
with pulsectl.Pulse("list-sinks") as pulse:
|
with pulsectl.Pulse("list-sinks") as pulse:
|
||||||
for sink in pulse.sink_list():
|
for sink in pulse.sink_list():
|
||||||
if (
|
if sink.port_active.name == "analog-output-headphones":
|
||||||
sink.port_active.name == "analog-output-headphones"
|
|
||||||
or sink.port_active.description == "Headphones"
|
|
||||||
):
|
|
||||||
icon = ""
|
icon = ""
|
||||||
elif (
|
elif sink.port_active.name == "analog-output-speaker":
|
||||||
sink.port_active.name == "analog-output-speaker"
|
|
||||||
or sink.port_active.description == "Speaker"
|
|
||||||
):
|
|
||||||
icon = "" if sink.mute else ""
|
icon = "" if sink.mute else ""
|
||||||
elif sink.port_active.name in ("headset-output", "headphone-output"):
|
elif sink.port_active.name in ("headset-output", "headphone-output"):
|
||||||
icon = ""
|
icon = ""
|
||||||
|
@ -874,7 +868,8 @@ class MprisProvider(Section, ThreadedUpdater):
|
||||||
"{{ playerName }} {{ status }}",
|
"{{ playerName }} {{ status }}",
|
||||||
"{{ album }}",
|
"{{ album }}",
|
||||||
"{{ artist }}",
|
"{{ artist }}",
|
||||||
"{{ duration(position) }}|{{ duration(mpris:length) }}" " {{ title }}",
|
"{{ duration(position) }}|{{ duration(mpris:length) }}"
|
||||||
|
" {{ title }}",
|
||||||
]
|
]
|
||||||
|
|
||||||
# nf-fd icons don't work (UTF-16?)
|
# nf-fd icons don't work (UTF-16?)
|
||||||
|
@ -947,8 +942,3 @@ class MprisProvider(Section, ThreadedUpdater):
|
||||||
while p.poll() is None:
|
while p.poll() is None:
|
||||||
self.line = p.stdout.readline().decode().strip()
|
self.line = p.stdout.readline().decode().strip()
|
||||||
self.refreshData()
|
self.refreshData()
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
|
|
||||||
assert p.stdout
|
|
||||||
while p.poll() is None:
|
|
||||||
self.line = p.stdout.readline().decode().strip()
|
|
||||||
self.refreshData()
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash
|
#! nix-shell -i bash --pure
|
||||||
#! nix-shell -p bash pdftk inkscape gnused coreutils file
|
#! nix-shell -p bash pdftk inkscape gnused coreutils file
|
||||||
|
|
||||||
set -euxo pipefail
|
|
||||||
|
|
||||||
# Utility to write over a PDF file pages
|
# Utility to write over a PDF file pages
|
||||||
|
|
||||||
# TODO Inkscape vodoo: Put the original in its own layer and skip when merging
|
# TODO Inkscape vodoo: Put the original in its own layer and skip when merging
|
||||||
|
|
Loading…
Reference in a new issue