syshud: fix changes due to upstream config parsing changes

This commit is contained in:
2024-11-08 07:02:17 +00:00
parent c890646a1d
commit e58677b0c3
2 changed files with 8 additions and 4 deletions

View File

@@ -16,13 +16,13 @@
# width/height/icon_size are in pixels # width/height/icon_size are in pixels
width=256 width=256
height=39 height=39
icon_size=32 icon-size=32
percentage=false show-percentage=false
# margin=0 will position below the sway bar, but on top of the window title # margin=0 will position below the sway bar, but on top of the window title
margins=22 22 22 22 margins=22 22 22 22
# timeout: notifier will be dismissed after N seconds (integer only) # timeout: notifier will be dismissed after N seconds (integer only)
timeout=1 timeout=1
transition=0 transition-time=0
backlight= backlight=
monitors=audio_in,audio_out monitors=audio_in,audio_out
''; '';

View File

@@ -25,7 +25,11 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = '' postPatch = ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace-fail 'pkg-config' ''${PKG_CONFIG} --replace-fail pkg-config ''${PKG_CONFIG}
substituteInPlace src/main.cpp \
--replace-fail /usr/share/sys64/hud/config.conf $out/share/sys64/hud/config.conf
substituteInPlace src/window.cpp \
--replace-fail /usr/share/sys64/hud/style.css $out/share/sys64/hud/style.css
''; '';
nativeBuildInputs = [ nativeBuildInputs = [