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