deploy: d4d8188b8e2cb48970fe88def0cfb88b1cfe3557
jump to
@@ -6,7 +6,7 @@ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@1,500&display=swap" rel=stylesheet><link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel=stylesheet><link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel=stylesheet><link rel=stylesheet type=text/css media=screen href=https://birabittoh.github.io/css/main.823a02873f9d13d4e370d9c1cd104ef671b4bdae30491788f8cb01eff700eaf4.css><link id=darkModeStyle rel=stylesheet type=text/css href=https://birabittoh.github.io/css/dark.726cd11ca6eb7c4f7d48eb420354f814e5c1b94281aaf8fd0511c1319f7f78a4.css disabled></head><body><div class=content><header><div class=main><a href=https://birabittoh.github.io/>BiRabittoh</a></div><nav><a href=/articles>Articles</a>
| <span id=dark-mode-toggle onclick=toggleTheme()></span> <script src=https://birabittoh.github.io/js/themetoggle.js></script></nav></header><main><article><div class=title><h1 class=title>Modernizing XFCE</h1><div class=meta>Posted 2023-02-05</div></div><section class=body><p>This article is more of a memo for myself. Since I often re-install Linux systems, I spend a lot of time doing repetitive tasks and often forget some steps, which leads me to waste even more time figuring out what’s wrong.</p><p>These instructions allow you to get a fully functional and modern-looking XFCE desktop on a fresh install of <a href>Void Linux</a> (even though they can be adapted to work in any distro).</p><h2 id=initial-system-update>Initial system update</h2><p>First thing I tried was to update the system, but the ISO was quite old. I had to update <code>xbps</code> before anything else:</p><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-fallback data-lang=fallback><span style=display:flex><span>sudo xbps-install -u xbps </span></span><span style=display:flex><span>sudo xbps-install -Su -</span></span></code></pre></div><h2 id=avoid-session-saving>Avoid session saving</h2><p>One thing I hate about XFCE is its fixation to save sessions. A lot of times I get my session saved and restored even with all settings turned off.</p><p>A quick and easy solution to disable session saving entirely is just to create an empty file in place of the <code>sessions</code> directory.</p><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-fallback data-lang=fallback><span style=display:flex><span>rm ~/.cache/sessions +</span></span></code></pre></div><h2 id=avoid-session-saving>Avoid session saving</h2><p>One thing I hate about XFCE is its fixation to save sessions. A lot of times I get my session saved and restored even with all settings turned off.</p><p>A quick and easy solution to disable session saving entirely is just to create an empty file in place of the <code>sessions</code> directory.</p><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-fallback data-lang=fallback><span style=display:flex><span>rm ~/.cache/sessions -rf </span></span><span style=display:flex><span>touch ~/.cache/sessions </span></span></code></pre></div><p>This way, even with everything turned on, XFCE fails create a folder with that name and everything works (or doesn’t, in this case) like a charm.</p><h2 id=change-that-shell>Change that shell</h2><p>Your shell is the main tool you use to communicate with your system, so it makes sense to replace <code>bash</code> with something more modern and feature-rich.</p><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-fallback data-lang=fallback><span style=display:flex><span>sudo xbps-install -S zsh zsh-completions curl </span></span><span style=display:flex><span>chsh -s /bin/zsh