Updated posts with proper markup
This commit is contained in:
		
							parent
							
								
									8850c0bcc5
								
							
						
					
					
						commit
						9fa059a16b
					
				
					 2 changed files with 114 additions and 133 deletions
				
			
		| 
						 | 
				
			
			@ -11,13 +11,13 @@ body:
 | 
			
		|||
<table border="0" cellpadding="0" cellspacing="0" id="string_entity" style="width:100%">
 | 
			
		||||
	<tbody>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td colspan="4"><strong>String entity</strong></td>
 | 
			
		||||
			<th colspan="4"><strong>String entity</strong></th>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td><strong>Type</strong></td>
 | 
			
		||||
			<td><strong>Name</strong></td>
 | 
			
		||||
			<td><strong>Description</strong></td>
 | 
			
		||||
			<td><strong>Null value</strong></td>
 | 
			
		||||
			<th><strong>Type</strong></th>
 | 
			
		||||
			<th><strong>Name</strong></th>
 | 
			
		||||
			<th><strong>Description</strong></th>
 | 
			
		||||
			<th><strong>Null value</strong></th>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td>uint16</td>
 | 
			
		||||
| 
						 | 
				
			
			@ -34,17 +34,15 @@ body:
 | 
			
		|||
	</tbody>
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
<p> </p>
 | 
			
		||||
 | 
			
		||||
<table border="0" cellpadding="0" cellspacing="0" id="property_entity" style="width:100%">
 | 
			
		||||
	<tbody>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td colspan="3"><strong>Property entity</strong></td>
 | 
			
		||||
			<th colspan="3"><strong>Property entity</strong></th>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td><strong>Type</strong></td>
 | 
			
		||||
			<td><strong>Name</strong></td>
 | 
			
		||||
			<td><strong>Description</strong></td>
 | 
			
		||||
			<th><strong>Type</strong></th>
 | 
			
		||||
			<th><strong>Name</strong></th>
 | 
			
		||||
			<th><strong>Description</strong></th>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td><a href="#string_entity">string</a></td>
 | 
			
		||||
| 
						 | 
				
			
			@ -59,18 +57,16 @@ body:
 | 
			
		|||
	</tbody>
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
<p> </p>
 | 
			
		||||
 | 
			
		||||
<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
 | 
			
		||||
	<tbody>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td colspan="4"><strong>Record entity</strong></td>
 | 
			
		||||
			<th colspan="4"><strong>Record entity</strong></th>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td><strong>Type</strong></td>
 | 
			
		||||
			<td><strong>Field name</strong></td>
 | 
			
		||||
			<td><strong>Description</strong></td>
 | 
			
		||||
			<td><strong>Null value</strong></td>
 | 
			
		||||
			<th><strong>Type</strong></th>
 | 
			
		||||
			<th><strong>Field name</strong></th>
 | 
			
		||||
			<th><strong>Description</strong></th>
 | 
			
		||||
			<th><strong>Null value</strong></th>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td><a href="#string_entity">string</a></td>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,3 @@
 | 
			
		|||
 | 
			
		||||
title: The penguin trials after two weeks
 | 
			
		||||
---
 | 
			
		||||
body:
 | 
			
		||||
| 
						 | 
				
			
			@ -19,23 +18,21 @@ not so long ago when I tried to install linux on my home computer and that
 | 
			
		|||
happened, luckily it had a solution, I just needed to install `lightdm-gtk-
 | 
			
		||||
greeter` and replace it at the lightdm configuration.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # /etc/lightdm/lightdm.conf
 | 
			
		||||
    # ...
 | 
			
		||||
    greeter-session=lightdm-gtk-greeter
 | 
			
		||||
    # ...
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# /etc/lightdm/lightdm.conf
 | 
			
		||||
# ...
 | 
			
		||||
greeter-session=lightdm-gtk-greeter
 | 
			
		||||
# ...
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Better font rendering for i3
 | 
			
		||||
 | 
			
		||||
The default fonts for the i3bar and so on are a bit clunky for my personal
 | 
			
		||||
taste so I changed the rendering from `pango` to `xft` and now it looks nice.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    font xft:monospace 8
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
font xft:monospace 8
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Better font rendering system wide (ala. OS X)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -50,10 +47,9 @@ Wiki entry](https://wiki.archlinux.org/index.php/Infinality) on the subject
 | 
			
		|||
and used the setup for the _Soft of OS X_ appareance editing the
 | 
			
		||||
`/etc/profile.d/infinality-settings.sh` using the `ultimate5` configuration.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    export INFINALITY_FT="ultimate5"
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
export INFINALITY_FT="ultimate5"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Just restart X to the settings to take effect. I haven't seen problems with
 | 
			
		||||
the infinality patch until now.
 | 
			
		||||
| 
						 | 
				
			
			@ -68,10 +64,9 @@ file and use that as wallpaper.
 | 
			
		|||
 | 
			
		||||
Just adding this to my i3 config file:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    exec_always feh --bg ~/.config/i3/wallpaper.png
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
exec_always feh --bg ~/.config/i3/wallpaper.png
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
I want to improve it having a script that will iterate over png images inside
 | 
			
		||||
a folder and using one at random but since I don't need fancy stuff this will
 | 
			
		||||
| 
						 | 
				
			
			@ -82,11 +77,10 @@ work for now.
 | 
			
		|||
To start programs when you log in at your session adding them to your i3
 | 
			
		||||
configuration seems like the way to go:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # Startup programs
 | 
			
		||||
    exec dropbox
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# Startup programs
 | 
			
		||||
exec dropbox
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Adding a lock screen with i3lock
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -95,26 +89,24 @@ one can, just say, put a David Hasselhoff wallpaper on it or something, so
 | 
			
		|||
with `i3lock`, `scrut`, a bash script and a key binding I have a very nice
 | 
			
		||||
screen locker in place!
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# Take screenshot
 | 
			
		||||
scrot /tmp/lockscreen.png
 | 
			
		||||
 | 
			
		||||
    #!/bin/sh
 | 
			
		||||
 | 
			
		||||
    # Take screenshot
 | 
			
		||||
    scrot /tmp/lockscreen.png
 | 
			
		||||
 | 
			
		||||
    # Pixellate
 | 
			
		||||
    mogrify -scale 10% -scale 1000% /tmp/lockscreen.png
 | 
			
		||||
 | 
			
		||||
    # Lock screen with the image
 | 
			
		||||
    i3lock -i /tmp/lockscreen.png
 | 
			
		||||
# Pixellate
 | 
			
		||||
mogrify -scale 10% -scale 1000% /tmp/lockscreen.png
 | 
			
		||||
 | 
			
		||||
# Lock screen with the image
 | 
			
		||||
i3lock -i /tmp/lockscreen.png
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
And in the i3 config file:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    bindsym $mod+l ~/.config/i3/i3lock.sh
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
bindsym $mod+l ~/.config/i3/i3lock.sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### More integrated notifications with dunst
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -133,12 +125,11 @@ This was easy since I just need to bind the X media volume up and down to the
 | 
			
		|||
alsa mixer control app so I can use the keyboard to control the system volume
 | 
			
		||||
easily.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # Media keys
 | 
			
		||||
    bindsym XF86AudioRaiseVolume exec amixer -q set Master 4%+ unmute
 | 
			
		||||
    bindsym XF86AudioLowerVolume exec amixer -q set Master 4%- unmute
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# Media keys
 | 
			
		||||
bindsym XF86AudioRaiseVolume exec amixer -q set Master 4%+ unmute
 | 
			
		||||
bindsym XF86AudioLowerVolume exec amixer -q set Master 4%- unmute
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Using the media keys for media players with playerctl
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -148,14 +139,13 @@ Just installed `playerctl` and every app I used until now worked out of the
 | 
			
		|||
box. Even the forward/backwards keys for `mpv` which wasn't working for mpv
 | 
			
		||||
with mps-youtube on OS X are functional on my linux box!
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # Media player controls
 | 
			
		||||
    bindsym XF86AudioPlay exec playerctl play-pause
 | 
			
		||||
    #bindsym XF86AudioPause exec playerctl pause
 | 
			
		||||
    bindsym XF86AudioNext exec playerctl next
 | 
			
		||||
    bindsym XF86AudioPrev exec playerctl previous
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# Media player controls
 | 
			
		||||
bindsym XF86AudioPlay exec playerctl play-pause
 | 
			
		||||
# bindsym XF86AudioPause exec playerctl pause
 | 
			
		||||
bindsym XF86AudioNext exec playerctl next
 | 
			
		||||
bindsym XF86AudioPrev exec playerctl previous
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Removing the title bars for the windows
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -164,11 +154,10 @@ at the titlebar of the app you're using? Some like the browsers didn't even
 | 
			
		|||
have one! So I've removed the titlebars and left only 2px borders for the
 | 
			
		||||
application windows.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # Windows without titlebars
 | 
			
		||||
    for_window [class="^.*"] border pixel 2
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# Windows without titlebars
 | 
			
		||||
for_window [class="^.*"] border pixel 2
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Auto enable floating for pop-up windows
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -176,11 +165,10 @@ It was really annoying watching a google login window take half of the desktop
 | 
			
		|||
just for a moment to login into a service, so every window with the role of
 | 
			
		||||
popup is now floating by default.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # Browser popups floating
 | 
			
		||||
    for_window [window_role="pop-up"] floating enable
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# Browser popups floating
 | 
			
		||||
for_window [window_role="pop-up"] floating enable
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Using a custom i3bar with i3pystatus
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -188,59 +176,58 @@ Since most of the default information the i3bar was unnecesary I found out
 | 
			
		|||
about i3pystatus that allows you to use python modules to customize the i3bar
 | 
			
		||||
at will. Below are my config file and the i3bar.py I use for it.
 | 
			
		||||
 | 
			
		||||
``` python
 | 
			
		||||
from i3pystatus import Status
 | 
			
		||||
from i3pystatus.updates import pacman, yaourt
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    from i3pystatus import Status
 | 
			
		||||
    from i3pystatus.updates import pacman, yaourt
 | 
			
		||||
status = Status()
 | 
			
		||||
 | 
			
		||||
# Pacman/Yaourt updates
 | 
			
		||||
status.register("updates",
 | 
			
		||||
                format="Updates: {count}",
 | 
			
		||||
                format_no_updates="No updates",
 | 
			
		||||
                backends=[pacman.Pacman(), yaourt.Yaourt()])
 | 
			
		||||
 | 
			
		||||
    status = Status()
 | 
			
		||||
# Displays clock like this:
 | 
			
		||||
status.register("clock",
 | 
			
		||||
                format="%a %-d %b %H:%M",)
 | 
			
		||||
 | 
			
		||||
    # Pacman/Yaourt updates
 | 
			
		||||
    status.register("updates",
 | 
			
		||||
                    format="Updates: {count}",
 | 
			
		||||
                    format_no_updates="No updates",
 | 
			
		||||
                    backends=[pacman.Pacman(), yaourt.Yaourt()])
 | 
			
		||||
# CPU
 | 
			
		||||
status.register('cpu_usage')
 | 
			
		||||
 | 
			
		||||
    # Displays clock like this:
 | 
			
		||||
    status.register("clock",
 | 
			
		||||
                    format="%a %-d %b %H:%M",)
 | 
			
		||||
# Memory
 | 
			
		||||
status.register('mem',
 | 
			
		||||
                format='{used_mem}/{total_mem}')
 | 
			
		||||
 | 
			
		||||
    # CPU
 | 
			
		||||
    status.register('cpu_usage')
 | 
			
		||||
# Shows the average load of the last minute and the last 5 minutes
 | 
			
		||||
# (the default value for format is used)
 | 
			
		||||
status.register("load", color='#00ff00')
 | 
			
		||||
 | 
			
		||||
    # Memory
 | 
			
		||||
    status.register('mem',
 | 
			
		||||
                    format='{used_mem}/{total_mem}')
 | 
			
		||||
# Shows the address and up/down state of enp6s0
 | 
			
		||||
status.register("network",
 | 
			
		||||
                interface="enp6s0",
 | 
			
		||||
                format_up="{v4cidr}")
 | 
			
		||||
 | 
			
		||||
    # Shows the average load of the last minute and the last 5 minutes
 | 
			
		||||
    # (the default value for format is used)
 | 
			
		||||
    status.register("load", color='#00ff00')
 | 
			
		||||
# Shows disk usage of /
 | 
			
		||||
status.register("disk",
 | 
			
		||||
                path="/",
 | 
			
		||||
                format="{used}/{total}G [{avail}G]",)
 | 
			
		||||
 | 
			
		||||
    # Shows the address and up/down state of enp6s0
 | 
			
		||||
    status.register("network",
 | 
			
		||||
                    interface="enp6s0",
 | 
			
		||||
                    format_up="{v4cidr}")
 | 
			
		||||
# Shows pulseaudio default sink volume
 | 
			
		||||
status.register("pulseaudio",
 | 
			
		||||
                format="♪{volume}",)
 | 
			
		||||
 | 
			
		||||
    # Shows disk usage of /
 | 
			
		||||
    status.register("disk",
 | 
			
		||||
                    path="/",
 | 
			
		||||
                    format="{used}/{total}G [{avail}G]",)
 | 
			
		||||
 | 
			
		||||
    # Shows pulseaudio default sink volume
 | 
			
		||||
    status.register("pulseaudio",
 | 
			
		||||
                    format="♪{volume}",)
 | 
			
		||||
 | 
			
		||||
    status.run()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # .config/i3/config
 | 
			
		||||
    bar {
 | 
			
		||||
        status_command ~/.config/i3/i3bar.py
 | 
			
		||||
        position up
 | 
			
		||||
    }
 | 
			
		||||
status.run()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# .config/i3/config
 | 
			
		||||
bar {
 | 
			
		||||
    status_command ~/.config/i3/i3bar.py
 | 
			
		||||
    position up
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Hide the mouse cursor when not needed
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -251,17 +238,16 @@ there when I don't need it so I installed
 | 
			
		|||
[unclutter](https://wiki.archlinux.org/index.php/unclutter) and running it on
 | 
			
		||||
startup was very relieving.
 | 
			
		||||
 | 
			
		||||
``` bash
 | 
			
		||||
# .config/i3/unclutter.sh
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
unclutter &
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # .config/i3/unclutter.sh
 | 
			
		||||
    #!/bin/bash
 | 
			
		||||
    unclutter &
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # .config/i3/config
 | 
			
		||||
    exec ~/.config/i3/unclutter.sh
 | 
			
		||||
 | 
			
		||||
``` text
 | 
			
		||||
# .config/i3/config
 | 
			
		||||
exec ~/.config/i3/unclutter.sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## What's next?
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -277,7 +263,6 @@ customization is far from over! There are still stuff I miss a lot, like:
 | 
			
		|||
 | 
			
		||||
See ya in two weeks!
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
pub_date: 2016-04-27
 | 
			
		||||
---
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue