itreformat reddit comment for better integration - monochromatic - monochromatic blog: http://blog.z3bra.org Err z3bra.org 70 hgit clone git://z3bra.org/monochromatic URL:git://z3bra.org/monochromatic z3bra.org 70 1Log /scm/monochromatic/log.gph z3bra.org 70 1Files /scm/monochromatic/files.gph z3bra.org 70 1Refs /scm/monochromatic/refs.gph z3bra.org 70 i--- Err z3bra.org 70 1commit 5b6cf6841b7a9a210e9d340d5324bf741fdad903 /scm/monochromatic/commit/5b6cf6841b7a9a210e9d340d5324bf741fdad903.gph z3bra.org 70 1parent 72388ff5d221cdce96b848ab99d0616a512727a4 /scm/monochromatic/commit/72388ff5d221cdce96b848ab99d0616a512727a4.gph z3bra.org 70 hAuthor: z3bra URL:mailto:willy@mailoo.org z3bra.org 70 iDate: Thu, 6 Aug 2015 15:43:19 +0200 Err z3bra.org 70 i Err z3bra.org 70 ireformat reddit comment for better integration Err z3bra.org 70 i Err z3bra.org 70 iDiffstat: Err z3bra.org 70 i M 2015/01/you-are-the-wm.txt | 37 ++++++++++++++++--------------- Err z3bra.org 70 i Err z3bra.org 70 i1 file changed, 19 insertions(+), 18 deletions(-) Err z3bra.org 70 i--- Err z3bra.org 70 1diff --git a/2015/01/you-are-the-wm.txt b/2015/01/you-are-the-wm.txt /scm/monochromatic/file/2015/01/you-are-the-wm.txt.gph z3bra.org 70 it@@ -83,15 +83,18 @@ some nice scripts in there ! Err z3bra.org 70 i Now throw your window manager away, you don't need it anymore. **YOU ARE THE WM Err z3bra.org 70 i !** Err z3bra.org 70 i Err z3bra.org 70 i-**EDIT:** I was asked on reddit to explain my wmutils setup. I gave a fairly Err z3bra.org 70 i+**EDIT** Err z3bra.org 70 i+-------- Err z3bra.org 70 i+ Err z3bra.org 70 i+I was asked on reddit to explain my wmutils setup. I gave a fairly Err z3bra.org 70 i detailed answer which might also be useful for others, so I figured out I could Err z3bra.org 70 i-add it here (original comment [here](https://www.reddit.com/r/unixporn/comments/3b42zj/people_using_wmutils_how_do_you_use_it/csj8iq4) Err z3bra.org 70 i+add it here (original comment [here](https://www.reddit.com/r/unixporn/comments/3b42zj/people_using_wmutils_how_do_you_use_it/csj8iq4)) Err z3bra.org 70 i Err z3bra.org 70 i I Have both `wmutils/core` and `wmutils/opt` installed. I need the latter for Err z3bra.org 70 i `wew`, an X event watcher. Err z3bra.org 70 i Err z3bra.org 70 i MANAGING WINDOWS Err z3bra.org 70 i-================ Err z3bra.org 70 i+---------------- Err z3bra.org 70 i Err z3bra.org 70 i The central piece of my workflow is `sxhkd`. This is a software one can use to Err z3bra.org 70 i bind key combos to commands, or **scripts**. I use it both to start my Err z3bra.org 70 it@@ -117,8 +120,8 @@ I use a few scripts of my own: Err z3bra.org 70 i + `corner` - move windows to screen's corner Err z3bra.org 70 i + `fullscreen` - put a window in fullscreen mode Err z3bra.org 70 i Err z3bra.org 70 i-`vroum` Err z3bra.org 70 i-------- Err z3bra.org 70 i+### vroum Err z3bra.org 70 i+ Err z3bra.org 70 i It can take 3 arguments: "next, prev, $wid". "next" will focus the next Err z3bra.org 70 i window on the stack, previous will focus the previously focused window, and Err z3bra.org 70 i every argument starting by `0x` will be considered a window ID to be focused Err z3bra.org 70 it@@ -129,8 +132,8 @@ active window. I use this script to cycle between them: Err z3bra.org 70 i alt {, + shift} + tab Err z3bra.org 70 i vroum {next, prev} Err z3bra.org 70 i Err z3bra.org 70 i-`groaw` Err z3bra.org 70 i-------- Err z3bra.org 70 i+### groaw Err z3bra.org 70 i+ Err z3bra.org 70 i This is my "group" manager (think of it as workspaces on steroid). By Err z3bra.org 70 i default, new windows are not assigned any groups. Without much explaning how Err z3bra.org 70 i each flag works, I just need it to perform 3 tasks: Err z3bra.org 70 it@@ -154,8 +157,8 @@ This result in the following entries: Err z3bra.org 70 i super + Backspace Err z3bra.org 70 i groaw -d all Err z3bra.org 70 i Err z3bra.org 70 i-`focus` Err z3bra.org 70 i-------- Err z3bra.org 70 i+### focus Err z3bra.org 70 i+ Err z3bra.org 70 i A script I'm really proud of! It focus windows besed on their cardinal Err z3bra.org 70 i positions. It takes exactly 4 different arguments: Err z3bra.org 70 i Err z3bra.org 70 it@@ -174,8 +177,8 @@ edge of the window) It's bound like so Err z3bra.org 70 i alt + {left,down,up,right} Err z3bra.org 70 i focus {west, south, north, east} $(pfw) Err z3bra.org 70 i Err z3bra.org 70 i-`corner` Err z3bra.org 70 i--------- Err z3bra.org 70 i+### corner Err z3bra.org 70 i+ Err z3bra.org 70 i There's nothing special about it. It put the window in the corner passed as Err z3bra.org 70 i argument (Top-Left, Top-Right, Bottom-Left, Bottom-Right, MiDdle) Err z3bra.org 70 i Err z3bra.org 70 it@@ -183,8 +186,7 @@ argument (Top-Left, Top-Right, Bottom-Left, Bottom-Right, MiDdle) Err z3bra.org 70 i super + {y,u,b,n,g} Err z3bra.org 70 i corner {tl, tr, bl, br, md} $(pfw) Err z3bra.org 70 i Err z3bra.org 70 i-`fullscreen` Err z3bra.org 70 i------------- Err z3bra.org 70 i+### fullscreen Err z3bra.org 70 i Err z3bra.org 70 i Set a window in fullscreen mode (change its size to the size of the monitor, and Err z3bra.org 70 i remove borders. The previous position/size of the window is saved to a file, so Err z3bra.org 70 it@@ -196,7 +198,7 @@ window takes its old position back Err z3bra.org 70 i fullscreen $(pfw) Err z3bra.org 70 i Err z3bra.org 70 i DEALING WITH EVENTS Err z3bra.org 70 i-=================== Err z3bra.org 70 i+------------------- Err z3bra.org 70 i Err z3bra.org 70 i The above only applies to existing windows. But when a new window gets created, Err z3bra.org 70 i I need to run a few commands against it, to integrate it to my workflow. This is Err z3bra.org 70 it@@ -239,7 +241,7 @@ In my `$HOME/.xinitrc`, it's started as: Err z3bra.org 70 i Pretty straighforward :) Err z3bra.org 70 i Err z3bra.org 70 i USING THE MOUSE Err z3bra.org 70 i-=============== Err z3bra.org 70 i+--------------- Err z3bra.org 70 i Err z3bra.org 70 i Nobody's perfect. I use the mouse from time to time to manage my windows. It is Err z3bra.org 70 i sometimes more efficient to get a window out of your way quickly, or resize one Err z3bra.org 70 it@@ -255,7 +257,7 @@ software, as it support integer replacement of the mouse coordinate Err z3bra.org 70 i As simple as that! Err z3bra.org 70 i Err z3bra.org 70 i MISCELLANOUS Err z3bra.org 70 i-============ Err z3bra.org 70 i+------------ Err z3bra.org 70 i Err z3bra.org 70 i For eye candy purpose, I wrote a `pulsar` script, to make my currently active Err z3bra.org 70 i window standout. It make the window's border "pulse" like in the following Err z3bra.org 70 it@@ -270,5 +272,4 @@ possible. Err z3bra.org 70 i Err z3bra.org 70 i As a bonus, to congratulate you from reading it all, here is a video from my Err z3bra.org 70 i actual workflow with this setup (writing my latest blogpost: Err z3bra.org 70 i-http://raw.z3bra.org/dev/random/monochromatic-0x0017-writeup.webm (grab some Err z3bra.org 70 i-popcorns, it's 57 minutes long) Err z3bra.org 70 i+[(grab some popcorns, it's 57 minutes long)](http://raw.z3bra.org/dev/random/monochromatic-0x0017-writeup.webm) Err z3bra.org 70 .