tPoint content to another virtual domain - monochromatic - monochromatic blog: http://blog.z3bra.org
HTML git clone git://z3bra.org/monochromatic
DIR Log
DIR Files
DIR Refs
---
DIR commit 1ca7ba49226092d665985baeb665b7ff05c6cc87
DIR parent f20d2bf3ae2fdf7ad850ab4b72c0dfd695adec52
HTML Author: z3bra <contactatz3bradotorg>
Date: Thu, 6 Jul 2017 13:52:57 +0200
Point content to another virtual domain
Diffstat:
M 2013/08/test-your-css.txt | 2 +-
M 2013/10/home-sweet-home.txt | 14 +++++++-------
M 2013/12/love-me-some-latex.txt | 2 +-
M 2014/01/images-in-terminal.txt | 4 ++--
M 2014/03/toolbox.txt | 16 ++++++++--------
M 2014/04/meeting-at-the-bar.txt | 4 ++--
M 2014/04/pop-it-up.txt | 4 ++--
M 2014/05/grok-that-workflow.txt | 18 +++++++++---------
M 2014/11/avoid-workspaces.txt | 4 ++--
M 2014/12/so-tox-me-maybe.txt | 4 ++--
M 2015/01/you-are-the-wm.txt | 4 ++--
M 2015/06/vomiting-colors.txt | 14 +++++++-------
M 2015/08/cross-compiling-with-pcc-a… | 12 ++++++------
M 2016/01/make-your-own-distro.txt | 6 +++---
M 2016/09/pack-it-up.txt | 2 +-
15 files changed, 55 insertions(+), 55 deletions(-)
---
DIR diff --git a/2013/08/test-your-css.txt b/2013/08/test-your-css.txt
t@@ -22,7 +22,7 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
### Images
-[](/pub/img/2013-08-ratpoison.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-08-ratpoison.jpg)
<span class='caption'>Ratpoison screenshot
Uses "ratpoison -c set border 28" to make the shot sexier</span>
DIR diff --git a/2013/10/home-sweet-home.txt b/2013/10/home-sweet-home.txt
t@@ -86,7 +86,7 @@ to look the way you want. Use stuff like [librgba](http://gnome-look.org/content
[compton](https://github.com/chjj/compton) to make it
even prettier!
-[](/pub/img/2013-10-28-cwm.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-10-28-cwm.jpg)
<span class='caption'>Here is a quick CWM setup, using compton and
librgba</span>
t@@ -230,9 +230,9 @@ Here is a small example:
So, we have seen how to tweak the terminal, let's see what it looks like!
I wrote a small script for the purpose:
-[](/pub/img/2013-10-28-term.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-10-28-term.jpg)
<span class='caption'>A terminal running the script
-[info.sh](/pub/misc/info.sh) that dump 16
+[info.sh](http://pub.z3bra.org/monochromatic/misc/info.sh) that dump 16
colors along system informations</span>
<h3 id='sh'>Shell</h3>
t@@ -295,7 +295,7 @@ And my old zsh prompt:
PROMPT=" %{$fg_bold[yellow]%} » "
RPROMPT="%{$fg[black]%}%M:%{$fg_bold[yellow]%}%~%{$reset_color%} "
-[](/pub/img/2013-10-28-shell.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-10-28-shell.jpg)
<span class='caption'>A few different prompts, from top to bottom: sh, zsh,
bash, zsh</span>
t@@ -327,7 +327,7 @@ As an alternative, take a look at [emacs](https://www.gnu.org/software/emacs/),
[weechat](http://weechat.org/) and
[Alpine](http://sourceforge.net/projects/re-alpine/).
-[](/pub/img/2013-10-28-cli.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-10-28-cli.jpg)
<span class='caption'>Mandatory screenshot of the setup with those apps (and
custom themes).
top-left: **vim**
t@@ -363,7 +363,7 @@ That is all you need. For example, if you only need the date in the bar:
And there you go! You can achieve really great looking stuff with that simple
process:
-[](/pub/img/2013-10-28-bar.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-10-28-bar.jpg)
<span class='caption'>You can also choose to put your status bar within a
terminal multiplexer status bar,
[as phyrne suggested](http://calummacrae.blogspot.fr/2012/12/dropping-status-bars-for-tmux-as-im.html)
t@@ -440,7 +440,7 @@ Finally, here is my own xinitrc
wm $1
-[](/pub/img/2013-10-28-final.jpg)
+[](http://pub.z3bra.org/monochromatic/img/2013-10-28-final.jpg)
<span class='caption'>That shot show off the whole setup, with prompt, bar,
applications, etc... I hope you will like it!</span>
DIR diff --git a/2013/12/love-me-some-latex.txt b/2013/12/love-me-some-latex.txt
t@@ -21,7 +21,7 @@ probably better than you. So you can just **focus on what your
are typing**.
Seems interresting huh? So basically, what does it look like? Here's
-a simple document (download/view it [HERE](/pub/misc/la.pdf))
+a simple document (download/view it [HERE](http://pub.z3bra.org/monochromatic/misc/la.pdf))
la.tex
DIR diff --git a/2014/01/images-in-terminal.txt b/2014/01/images-in-terminal.txt
t@@ -114,7 +114,7 @@ the ranger source, I ended up with this line:
echo -e '0;1;0;0;200;160;;;;;ant.jpg\n4;\n3;' | /usr/lib/w3m/w3mimgdisplay
**BOOM !** [It works!](http://chezmoicamarche.com)
-[](/pub/img/w3mimgdisplay-crap.jpg)
+[](http://pub.z3bra.org/monochromatic/img/w3mimgdisplay-crap.jpg)
<span class='caption'>The result of the previous command. Our picture drawn in
200x100px, at offset +0+0 in the terminal. I'm sure you're already trying it
;)</span>
t@@ -159,7 +159,7 @@ the script I came with:
echo -e $w3m_command|$W3MIMGDISPLAY
Let's see the rendering...
-[](/pub/img/w3mimgdisplay-good.jpg)
+[](http://pub.z3bra.org/monochromatic/img/w3mimgdisplay-good.jpg)
The script draws the image depending on the terminal size (width AND height),
and put the cursor after the image (exactly 2 lines after).
DIR diff --git a/2014/03/toolbox.txt b/2014/03/toolbox.txt
t@@ -50,7 +50,7 @@ tools, because that's too specific.
<h3 id='2bwm'>2bwm</h3>
[LINK](http://git.z3bra.org/2bwm/log.html) —
-[SHOT](/pub/img/2014-01-08-2bwm.jpg)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-01-08-2bwm.jpg)
It means <q>Two borders window manager</q>. This is my WM of choice. It is a
fork of [mcwm](http://hack.org/mc/hacks/mcwm/), but the author, Venam, added so
t@@ -66,12 +66,12 @@ middle, all that, just with your keyboard !
I personnally forked it myself to add a specific feature: window groups. It
works kinda like traditionnal workspaces, except that you can show or hide them
independently, allowing you to show multiple workspaces at the same time. See a
-showcase [here](/pub/vid/2bwm.webm).
+showcase [here](http://pub.z3bra.org/monochromatic/vid/2bwm.webm).
<h3 id='9menu'>9menu</h3>
[LINK](ftp://freefriends.org/arnold/Source/) —
-[SHOT](/pub/img/2014-03-17-menus.jpg)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-03-17-menus.jpg)
Here is a simple, yet powerfull menu application. 9menu allows you to create
static menus to launch your favorite applications. Users of the \*box WM, or
t@@ -88,7 +88,7 @@ shebang: `#!/usr/bin/9menu`
<h3 id='bar'>bar</h3>
[LINK](https://github.com/lemonboy/bar) —
-[SHOT](/pub/img/2014-03-13-bar.jpg)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-03-13-bar.jpg)
Bar (or (b)ar (a)in't (r)ecursive) is a lightweight status bar application
written on top of XCB. You can pipe text to it, and it will be displayed within
t@@ -100,7 +100,7 @@ It allow the use of complex scripts to get a tons of infos within that thin, lov
<h3 id='dtach'>dtach</h3>
[LINK](http://dtach.sourceforge.net/) —
-[SHOT](/pub/img/2014-03-13-dtach.jpg)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-03-13-dtach.jpg)
I often see newbies asking this question:
t@@ -242,7 +242,7 @@ Anyway, this is pretty neat to me! I hope you'll enjoy it.
<h3 id='skroll'>skroll</h3>
[LINK](http://git.z3bra.org/skroll/log.html) —
-[SHOT](/pub/img/2014-03-28-skroll.gif)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-03-28-skroll.gif)
Here is something I wrote for fun. I don't actually need it, but other might
find it useful. Skroll takes its input from stdin, and then makes it scroll on
t@@ -260,7 +260,7 @@ bar or whatever. **BAM** that's black magic !
<h3 id='thingmenu'>thingmenu</h3>
[LINK](http://git.r-36.net/thingmenu/) —
-[SHOT](/pub/img/2014-03-17-menus.jpg)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-03-17-menus.jpg)
Thingmenu is one of those app you've never heard of, but you use (or have used)
daily, because it was part of a WM.
t@@ -274,7 +274,7 @@ Also, feel free to browse the whole git repo, it's full of good stuff !
<h3 id='wendy'>wendy</h3>
[LINK](http://git.z3bra.org/cgit.cgi/wendy) —
-[SHOT](/pub/img/2014-03-13-wendy.jpg)
+[SHOT](http://pub.z3bra.org/monochromatic/img/2014-03-13-wendy.jpg)
Wendy makes my life better. I first wrote it as an exercise to learn inotify,
but it turned out to be a good replacement to inotifywait.
DIR diff --git a/2014/04/meeting-at-the-bar.txt b/2014/04/meeting-at-the-bar.txt
t@@ -537,14 +537,14 @@ But I'm pretty sure that it's a good start for your imagination. By the way, if
you find neat tricks to improve the performances of the functions listed above,
feel free to mail me these, I'll be glad to modify them!
-[](/pub/img/2014-04-02-barmk.png)
+[](http://pub.z3bra.org/monochromatic/img/2014-04-02-barmk.png)
<span class='caption'>Before leaving you, here is what I got using this script
(with some tweaks, see the `diff` output)</span>
<span class='caption'>Oh, and for reference. It tried to get the same result
with conky and barmk, just to see the difference. Note how conky does not
display float numbers (for CPU). Also, I was not able to recreate a desktop bar with conky, so I "downgraded"
-the barmk script to make the battle more fair.</span>[](/pub/img/2014-04-10-conky-mkbar.png)
+the barmk script to make the battle more fair.</span>[](http://pub.z3bra.org/monochromatic/img/2014-04-10-conky-mkbar.png)
Now go ahead, and watch how your computer tell you how he (or she) feels...
Isn't that **amazing** ?!
DIR diff --git a/2014/04/pop-it-up.txt b/2014/04/pop-it-up.txt
t@@ -92,7 +92,7 @@ After that, you can style it to make it look like you want:
Create the popup and make it live for 3 seconds
(echo " $@"; sleep ${duration}) | bar ${baropt}
-[](/pub/img/2014-04-29-popup-simple.png)
+[](http://pub.z3bra.org/monochromatic/img/2014-04-29-popup-simple.png)
<span class='caption'>The simple script above, started with a random text.
It's my upper left hand-corner</span>
t@@ -305,7 +305,7 @@ status bar away, or switch from libnotify and such. It's just a bare simple
alternative to those, as I like to have :)
[](/pub/img/2014-04-30-popup-showoff.png)
+off](http://pub.z3bra.org/monochromatic/img/thumb/2014-04-30-popup-showoff.png)](http://pub.z3bra.org/monochromatic/img/2014-04-30-popup-showoff.png)
<span class="caption">Here is a little show case of what you can achieve. I
used `stlarch_font` for the icon.
the first popup is the volume bar. It goes red when it's muted.
DIR diff --git a/2014/05/grok-that-workflow.txt b/2014/05/grok-that-workflow.txt
t@@ -52,7 +52,7 @@ Here is a typical crux workflow:
10. GOTO 4
[](/pub/img/2014-05-26-prtutils.gif)
+crux](http://pub.z3bra.org/monochromatic/img/thumb/2014-05-26-prtutils.jpg)](http://pub.z3bra.org/monochromatic/img/2014-05-26-prtutils.gif)
<span class='caption'>Here is a show case of a package installation under crux.
[prtmk](http://git.z3bra.org/cgit.cgi/scripts/tree/prtmk) is a small script I
wrote that will create `Pkgfile`s using templates. Once the Pkgfile is created,
t@@ -86,7 +86,7 @@ Here is how my keybinds are organised:
</table>
[](/pub/img/2014-05-27-windows.gif)
+windows](http://pub.z3bra.org/monochromatic/img/thumb/2014-05-27-windows.jpg)](http://pub.z3bra.org/monochromatic/img/2014-05-27-windows.gif)
<span class='caption'>Here are the movements I use on a daily basis. There are
more features, but that's the one I use the most (other are just combination of
those)</span>
t@@ -117,7 +117,7 @@ behavior with a hotkey !
</table>
[](/pub/img/2014-05-27-groups.gif)
+groups](http://pub.z3bra.org/monochromatic/img/thumb/2014-05-27-groups.jpg)](http://pub.z3bra.org/monochromatic/img/2014-05-27-groups.gif)
<span class='caption'>Showing the two behavior: workspaces VS. groups. Each
windows holds the number of the group it's sitting on</span>
t@@ -336,17 +336,17 @@ everything I present here is totally specific to me. As a bonus, to thank you
for reading this, here is a small video of my day to day workflow. Enjoy!
<video controls>
-<source src="/pub/vid/2014-05-30-workflow.mp4" type="video/mp4"/>
-<source src="/pub/vid/2014-05-30-workflow.webm" type="video/webm"/>
-<source src="/pub/vid/2014-05-30-workflow.ogv" type="video/ogg"/>
+<source src="http://pub.z3bra.org/monochromatic/vid/2014-05-30-workflow.mp4" type="video/mp4"/>
+<source src="http://pub.z3bra.org/monochromatic/vid/2014-05-30-workflow.webm" type="video/webm"/>
+<source src="http://pub.z3bra.org/monochromatic/vid/2014-05-30-workflow.ogv" type="video/ogg"/>
Your browser do not support embedded video. But you can download the files
</video>
<div class='center'>
download :
-<a href="/pub/vid/2014-05-30-workflow.ogv"> ogv </a> |
-<a href="/pub/vid/2014-05-30-workflow.mp4"> mp4 </a> |
-<a href="/pub/vid/2014-05-30-workflow.webm"> webm </a>
+<a href="http://pub.z3bra.org/monochromatic/vid/2014-05-30-workflow.ogv"> ogv </a> |
+<a href="http://pub.z3bra.org/monochromatic/vid/2014-05-30-workflow.mp4"> mp4 </a> |
+<a href="http://pub.z3bra.org/monochromatic/vid/2014-05-30-workflow.webm"> webm </a>
</div><br>
<div class='caption'>
DIR diff --git a/2014/11/avoid-workspaces.txt b/2014/11/avoid-workspaces.txt
t@@ -138,10 +138,10 @@ management.
Also, as per tradition, here is a video of what it looks like.
<video controls>
- <source src="/pub/vid/2014-11-18-groups.mp4" type="video/mp4">
+ <source src="http://pub.z3bra.org/monochromatic/vid/2014-11-18-groups.mp4" type="video/mp4">
</video>
-video: [mp4](/pub/vid/2014-11-18-groups.mp4)
+video: [mp4](http://pub.z3bra.org/monochromatic/vid/2014-11-18-groups.mp4)
<span class="caption">this video illustrate the previous example showing how
groups works, using a [forked version](git://z3bra.org/2bwm) (not maintained
DIR diff --git a/2014/12/so-tox-me-maybe.txt b/2014/12/so-tox-me-maybe.txt
t@@ -43,7 +43,7 @@ Each user is assigned a tox ID (which is a randomly generated sequence of
alphanumeric chars) that you can share with your friends to add them in your
client of choice.
-[](/pub/img/2014-12-11-utox.png)
+[](http://pub.z3bra.org/monochromatic/img/2014-12-11-utox.png)
<span class="caption">An [utox](http://utox.org) window. As you can see, the
friend list is on the right, and the chat happens on the right pane. Fairly easy
t@@ -152,7 +152,7 @@ scripts related to ratox.
Oh, and by the way... Here is the mandatory screenshot ;)
-[](/pub/img/2014-12-11-ratox.png)
+[](http://pub.z3bra.org/monochromatic/img/2014-12-11-ratox.png)
<span class="caption">Ratox in action. A terminal multiplexer is of good help
with it. It is also pretty easy to create an input bar for your `text_in`
DIR diff --git a/2015/01/you-are-the-wm.txt b/2015/01/you-are-the-wm.txt
t@@ -261,7 +261,7 @@ 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
-video: [wall-border.webm](/pub/vid/wall-border.webm). It uses a `$HOME/.colors`
+video: [wall-border.webm](http://pub.z3bra.org/monochromatic/vid/wall-border.webm). It uses a `$HOME/.colors`
file containing the colors to be used for the gradient. It will then run `chwb`
at a regular interval to change the current window's borders.
t@@ -272,4 +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:
-[(grab some popcorns, it's 57 minutes long)](/pub/vid/monochromatic-0x0017-writeup.webm)
+[(grab some popcorns, it's 57 minutes long)](http://pub.z3bra.org/monochromatic/vid/monochromatic-0x0017-writeup.webm)
DIR diff --git a/2015/06/vomiting-colors.txt b/2015/06/vomiting-colors.txt
t@@ -14,14 +14,14 @@ ways.
Without any further commenting, let's see how it works with this magnificent
picture, randomly taken from the internet:
-[](/pub/img/20150609-bamboo.png)
+[](http://pub.z3bra.org/monochromatic/img/20150609-bamboo.png)
`colors` allow you to choose the number of clusters you want to see on the
output, so in our case, we'll output 16. It's possible that `colors` don't
output the number of clusters you asked for. You can "force" outputing empty
clusters with `-e`.
-
+
Then you can choose how to set your clusters (from the hue domain or pixel space
at the time of writing). Another solution when you don't get the number of
t@@ -29,14 +29,14 @@ colors you asked for (in my case, I only got 12 colors with -h), is to just ask
for more, and truncate the output. It might give better colors than with `-e`
sometimes.
-
-
+
+
And then you can randomize the output, if you feel in the mood! You could also
try using the [k-medians](https://en.wikipedia.org/wiki/K-medians) method, which
takes longer but provides a better output regarding the initial file
-
+
Try different pictures and flag combinations for better results!
t@@ -61,14 +61,14 @@ wallpaper. This works by outputing 32 colors, extracting the 16 colors in the
middle and randomizing them. this way, your colors will not be too dark or too
light.
-
+
You can then make a script to change your wall every now and then, and change
the colorscheme on the fly. Your colorscheme will ALWAYS match your current
mood!
<video controls>
- <source src="/pub/vid/20150609-matchlook.webm" type="video/webm">
+ <source src="http://pub.z3bra.org/monochromatic/vid/20150609-matchlook.webm" type="video/webm">
</video>
DIR diff --git a/2015/08/cross-compiling-with-pcc-and-musl.txt b/2015/08/cross-compiling-with-pcc-and-musl.txt
t@@ -1,7 +1,7 @@
# [cross-compiling with PCC and musl](#)
## — 16 August, 2015
-**TL;DR**: See the full script here: [cross-pcc.sh](/pub/misc/cross-pcc.sh). It will
+**TL;DR**: See the full script here: [cross-pcc.sh](http://pub.z3bra.org/monochromatic/misc/cross-pcc.sh). It will
create your toolchain in `$HOME/cross/pcc-x86_64` and name the tools
`x86_64-linux-musl-*`.
t@@ -31,10 +31,10 @@ software you want to use. Here is my list at the time of writing:
You can get the sources by following these links:
-ftp://pcc.ludd.ltu.se/pub/pcc-releases
+ftp://pcc.ludd.ltu.sehttp://pub.z3bra.org/monochromatic/pcc-releases
ftp://ftp.gnu.org/gnu
http://www.musl-libc.org/releases
-https://www.kernel.org/pub/linux/kernel/v4.x
+https://www.kernel.orghttp://pub.z3bra.org/monochromatic/linux/kernel/v4.x
Once you have all your tarballs, extract them somewhere.
t@@ -53,9 +53,9 @@ with an alternative libc. It *seems* to be fixed in 1.2.0 (DEVEL version), if
you're interrested. They fix the `configure` script to accept musl based
targets, and fix the default library pass of the compiler.
-+ [pcc-1.1.0-musl.diff](/pub/misc/pcc-1.1.0-musl.diff)
-+ [pcc-libs-1.1.0-musl.diff](/pub/misc/pcc-libs-1.1.0-musl.diff)
-+ [pcc-1.1.0-deflibdirs.diff](/pub/misc/pcc-1.1.0-deflibdirs.diff)
++ [pcc-1.1.0-musl.diff](http://pub.z3bra.org/monochromatic/misc/pcc-1.1.0-musl.diff)
++ [pcc-libs-1.1.0-musl.diff](http://pub.z3bra.org/monochromatic/misc/pcc-libs-1.1.0-musl.diff)
++ [pcc-1.1.0-deflibdirs.diff](http://pub.z3bra.org/monochromatic/misc/pcc-1.1.0-deflibdirs.diff)
### 3,4,5,6. build everything
DIR diff --git a/2016/01/make-your-own-distro.txt b/2016/01/make-your-own-distro.txt
t@@ -65,7 +65,7 @@ In order to use it, add the path to the toolchain in your path. Calling
prefix.
<video controls>
- <source src="/pub/vid/20160131-osdev-xcompiler.webm" type="video/webm">
+ <source src="http://pub.z3bra.org/monochromatic/vid/20160131-osdev-xcompiler.webm" type="video/webm">
</video>
<span class='caption'>Using the cross-compiler to build a software statically
against musl libc.</span>
t@@ -93,7 +93,7 @@ port directory of your tool, eg `pm/pm#1.0.tar.bz`. Theses file are suitable for
installation via [pm](http://git.z3bra.org/pm/log.html).
<video controls>
- <source src="/pub/vid/20160131-osdev-mkports.webm" type="video/webm">
+ <source src="http://pub.z3bra.org/monochromatic/vid/20160131-osdev-mkports.webm" type="video/webm">
</video>
<span class='caption'>Show casing the creation of a port within the mk port-tree
and building/installing it under a specific directory</span>
t@@ -115,7 +115,7 @@ As of today, spawning gettys doesn't work. I'll need to figure out why, but othe
it's been a pretty successful (and fun!) experience.
<video controls>
- <source src="/pub/vid/20160131-osdev-containers.webm" type="video/webm">
+ <source src="http://pub.z3bra.org/monochromatic/vid/20160131-osdev-containers.webm" type="video/webm">
</video>
<span class='caption'>Demonstrating the whole testing process, from creating the
containers and saying "hello world!" from within this container</span>
DIR diff --git a/2016/09/pack-it-up.txt b/2016/09/pack-it-up.txt
t@@ -213,7 +213,7 @@ describing the actual workflow. So as usual. Here is a quick video to
show off the whole process!
<video controls>
- <source src="/pub/vid/20160916-skroll-install.webm" type="video/webm">
+ <source src="http://pub.z3bra.org/monochromatic/vid/20160916-skroll-install.webm" type="video/webm">
</video>
<span class='caption'>Packaging, deploying and installing
[`skroll`](http://z3bra.org/skroll) on my system</span>