{"id":816,"date":"2025-01-03T13:08:37","date_gmt":"2025-01-03T12:08:37","guid":{"rendered":"https:\/\/patrick-nagel.net\/blog\/?p=816"},"modified":"2025-01-05T20:02:16","modified_gmt":"2025-01-05T19:02:16","slug":"wayland-finally","status":"publish","type":"post","link":"https:\/\/patrick-nagel.net\/blog\/archives\/816","title":{"rendered":"Wayland, finally."},"content":{"rendered":"\n<p>I&#8217;ve been watching the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Wayland_(protocol)\">Wayland<\/a> development from afar for a couple of years now, probably since 2014. But whenever I gave it a try, after less than 10 minutes something was so obviously broken that I immediately went back to X11.<\/p>\n\n\n\n<p>Until yesterday, when I decided to give it another try. The trigger was, that KDE\/Plasma felt sluggish on my machine. Even though it has decent specs (12 core Ryzen, Nvidia 4060 Ti, fast NVMe), opening a simple application like Konsole takes 1.5+ seconds. Even clicking the start menu button has a noticeable delay (~300-500ms). On X11 that is.<\/p>\n\n\n\n<p>After rebuilding a bunch of packages (because I had to toggle the &#8216;wayland&#8217; USE flag on, which had previously been off in my Gentoo installation), I chose the &#8220;Plasma (Wayland)&#8221; item in the SDDM dropdown and logged in. To my surprise KDE\/Plasma instantly felt much better. No more delays, very smooth animations, etc.<\/p>\n\n\n\n<p>IMO there must be serious bugs in Qt or KDE to have such bad performance on X11 nowadays. Using a simple Window Manager (Fluxbox) I didn&#8217;t feel any lags on X11. Even launching Konsole or other KDE apps from an xterm is snappy. But I don&#8217;t have the time and energy to do serious profiling, and I also really want to use KDE\/Plasma.<\/p>\n\n\n\n<p>So I&#8217;m happy that I didn&#8217;t find any issues with Wayland in the hours since. For a few minutes I thought screen recording was broken, but then it turned out that I just had to enable the &#8216;screencast&#8217; USE flag and do a few rebuilds.<\/p>\n\n\n\n<p>Will have to spend some time learning all the underlying concepts and new terms &#8211; but that doesn&#8217;t prevent me from using Wayland.<\/p>\n\n\n\n<p>I&#8217;ll post updates here if \/ when I encounter issues.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Update (2025-01-05)<\/h4>\n\n\n\n<p>Today I wanted to write in German for the first time, and noticed that my <code>.Xmodmap<\/code> keyboard remapping for Umlauts no longer works. That was already problematic in X11 for a while, but it was a good solution that I&#8217;d been using for many years (and even &#8220;ported&#8221; to Windows &#8211; see <a href=\"https:\/\/patrick-nagel.net\/blog\/archives\/146\">here<\/a> &#8211; when I had to use Windows at work).<\/p>\n\n\n\n<p>So now I had to figure out something new. A guy in the always helpful German #gentoo-de@libera.chat IRC channel told me about the <a href=\"https:\/\/eurkey.steffen.bruentjen.eu\/start.html?lang=en\">&#8220;EurKEY&#8221; keyboard layout<\/a> &#8211; <em>&#8220;The Layout for Europeans, Coders and Translators&#8221;<\/em> &#8211; covers pretty much all European languages with one layout. Love it. And they took the exact same approach that I did: on an English keyboard, use a modifier key and when it&#8217;s pressed, &#8220;a&#8221; becomes &#8220;\u00e4&#8221;, &#8220;o&#8221; becomes &#8220;\u00f6&#8221; and so on. It comes out of the box in KDE, just had to choose it from the dropdown list!<\/p>\n\n\n\n<p>The only issue with that is: they&#8217;re using the right ALT key as modifier, and I have nearly two decades worth of muscle memory using the Meta\/Windows key as modifier. It would take a while to retrain myself, so I decided to instead remap the Meta\/Windows key to the right ALT key. Works perfectly. Phew, problem solved.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been watching the Wayland development from afar for a couple of years now, probably since 2014. But whenever I gave it a try, after less than 10 minutes something was so obviously broken that I immediately went back to X11. Until yesterday, when I decided to give it another try. The trigger was, that &hellip; <a href=\"https:\/\/patrick-nagel.net\/blog\/archives\/816\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Wayland, finally.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[32,25,34,26,35],"class_list":["post-816","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-gentoo","tag-kde","tag-linux","tag-plasma","tag-wayland"],"_links":{"self":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts\/816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/comments?post=816"}],"version-history":[{"count":4,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts\/816\/revisions"}],"predecessor-version":[{"id":827,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts\/816\/revisions\/827"}],"wp:attachment":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/media?parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/categories?post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/tags?post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}