Compare commits

...

4 Commits

Author SHA1 Message Date
Amir Alexander Abdelbaki 867686e409 fix(eww-touch): use hyprctl dispatch for close window button
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 10:30:52 +02:00
Amir Alexander Abdelbaki 21ec76c6eb Revert "fix(eww-touch): fix middle button close window action"
This reverts commit 266a032cb3.
2026-05-23 10:29:17 +02:00
Amir Alexander Abdelbaki 266a032cb3 fix(eww-touch): fix middle button close window action
hl.dsp.window.close() is not a valid Hyprland Lua API method;
replace with hyprctl dispatch killactive.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 10:28:10 +02:00
Amir Alexander Abdelbaki 612c13b4c0 fix(rotate): add pen/stylus rotation with explicit output mapping
Tablet devices require output= in hl.device() for transform to take
effect, unlike touchscreens which auto-bind to their display.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 10:23:22 +02:00
2 changed files with 11 additions and 1 deletions

View File

@ -63,7 +63,7 @@
:orientation "h"
:space-evenly false
:halign "center"
:onclick "hyprctl eval 'hl.dsp.window.close()'"
:onclick "hyprctl dispatch 'hl.dsp.window.close()'"
{""}
)
(button :class "music"

View File

@ -54,5 +54,15 @@ else
echo "No touchscreen device detected."
fi
# Detect pen/tablet device name
pendev=$(hyprctl devices -j | jq -r '.tablets[0].name // empty')
if [[ -n "$pendev" ]]; then
echo "Applying same rotation to pen/tablet: $pendev"
hyprctl eval "hl.device({name='$pendev', transform=$newrot, output='$curmon'})"
else
echo "No pen/tablet device detected."
fi
# Reload Eww to adjust bar size
eww reload