mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

#ydotool

0 posts0 participants0 posts today
DelegateVoid<p>I&#39;m looking into some <a href="https://mastodon.gamedev.place/tags/automation" class="mention hashtag" rel="tag">#<span>automation</span></a> on <a href="https://mastodon.gamedev.place/tags/ubuntu" class="mention hashtag" rel="tag">#<span>ubuntu</span></a> <a href="https://mastodon.gamedev.place/tags/gnome" class="mention hashtag" rel="tag">#<span>gnome</span></a> desktop. I figured I&#39;d be able to do everything using <a href="https://mastodon.gamedev.place/tags/dbus" class="mention hashtag" rel="tag">#<span>dbus</span></a>. <br />It works great for media control but not so much for virtual desktop / window management. I can use <a href="https://mastodon.gamedev.place/tags/wmctrl" class="mention hashtag" rel="tag">#<span>wmctrl</span></a> to nativate between virtual desktops but window management doesn&#39;t work on <a href="https://mastodon.gamedev.place/tags/wayland" class="mention hashtag" rel="tag">#<span>wayland</span></a>. Then there is <a href="https://mastodon.gamedev.place/tags/ydotool" class="mention hashtag" rel="tag">#<span>ydotool</span></a> which also doesn&#39;t seem to work well.</p><p>Now I can<br /> - Control media via dbus<br /> - Switch workspaces via wmctrl </p><p>But I feel there has to be a better way?</p><p><a href="https://mastodon.gamedev.place/tags/csharp" class="mention hashtag" rel="tag">#<span>csharp</span></a></p>
tjhowse<p><span class="h-card"><a href="https://twoot.site/@TicklishHoneyBee" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>TicklishHoneyBee</span></a></span> Right! After much mucking about I managed to get ydotool working.</p><p>The package from the ubuntu mirrors was very old, so I installed it from the binaries on github. Added a systemd service to run ydotoold as my user, and set wrote the following script:</p><p>!/bin/bash<br>export YDOTOOL_SOCKET=/tmp/.ydotool_socket<br># Release ctrl and alt<br><a href="https://howse.social/tags/ydotool" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ydotool</span></a> key 56:0 29:0<br>sleep 0.2<br>ydotool type $(date --iso-8601)</p><p>The keyups turned out to be unnecessary. The delay is, unfortunately.</p>
Soblow Xaselgio :dragn_heart:<p>Okay, time to summon DuckDuckFedi.</p><p>I have a program that is running on my sway session (so, Wayland, more precisely XWayland).<br>I use <code>ydotool</code> to run some keystrokes.<br>Everything works fine as-is, but it means that I can't use the computer for anything else as the keystrokes are sent to the active window.</p><p>Do you know if there is a way to create a kind of "virtual keyboard/input device" attached to said application which I could use for the keystrokes? Some kind of containers or something?</p><p>Thank you for your ideas! Boosts appreciated! :dragn_heart: </p><p><a href="https://eldritch.cafe/tags/wayland" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wayland</span></a> <a href="https://eldritch.cafe/tags/swaywm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swaywm</span></a> <a href="https://eldritch.cafe/tags/xwayland" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xwayland</span></a> <a href="https://eldritch.cafe/tags/ydotool" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ydotool</span></a></p>