wmutils.html (2190B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>Managing Windows Without a WM | Riaz's Website</title> 6 <link rel="stylesheet" href="/style.css"> 7 <link rel="icon" href="data:,"> 8 <meta name="description" content="Simple monocle-only setup with wmutils, a minimalist alternative to window managers"> 9 <meta name="viewport" content="width=device-width, initial-scale=1"> 10 </head> 11 <body> 12 <h1>Managing Windows Without a WM</h1> 13 <hr> 14 <article> 15 <p><a href="https://github.com/wmutils/core">wmutils</a> is a set of tools for X window manipulation. These individual programs can be combined to uniquely manage windows.</p> 16 <p>The scripts I use are based on z3bra's from the <a href="https://github.com/wmutils/contrib">contrib repo</a>. When <a href="/git/dotfiles/file/.config/sx/sxrc">starting an Xorg server</a>, I call the <a href="/git/dotfiles/file/.local/bin/winwatch">winwatch script</a> (depends on <a href="https://github.com/wmutils/opt">wew</a>) to fullscreen windows on the MAP X event and focus the previous window when one is destroyed. The MAP event is used rather than CREATE to work with web browsers that create multiple windows.</p> 17 <p>When I used dwm, even when in monocle mode, other windows were still visible in a small gap at the bottom of my screen. With the <a href="/git/dotfiles/file/.local/bin/fullscreen">script for fullscreening</a>, a fullscreen means a fullscreen.</p> 18 <p>For a status bar, I use <a href="https://github.com/LemonBoy/bar">lemonbar</a> with this command: <code>while status; do sleep 1m; done | lemonbar -d -F '#ccc' &</code>. The -d option prevents it from being focused or deleted by <a href="/git/dotfiles/file/.config/sxhkd/sxhkdrc">my keybinds</a>. The <a href="/git/dotfiles/file/.local/bin/status">status command</a> does the following: <code>echo "%{r} $(cat /sys/class/power_supply/BAT0/capacity)% | $(date +%I:%M) | $(uptime -p)"</code>. The <code>%{r}</code> right-aligns the text.</p> 19 <p>In the fullscreen script, there is an offset, preventing the windows from hiding the status bar. xprop can be used to find the resolution of a window.</p> 20 </article> 21 <footer> 22 <hr> 23 <a href="/">Home Page</a></footer> 24 </body> 25 </html>