Difference between revisions of "Desktop/i3"

From LunaSys
Jump to navigation Jump to search
(Created page with "== i3 == For more information, see [http://i3wm.org/docs/userguide.html the official doc] === i3status === <pre> general { #output_format = "dzen2" #colors = true interv...")
 
Line 4: Line 4:
  
 
=== i3status ===
 
=== i3status ===
 +
 +
Example ''.i3status.conf''
  
 
<pre>
 
<pre>
Line 28: Line 30:
 
format = "%5min"
 
format = "%5min"
 
}
 
}
 +
</pre>
 +
 +
Custom i3status command:
 +
 +
'''/usr/bin/i3custombar'''
 +
<pre>
 +
i3status | while :
 +
do
 +
  read line
 +
  echo "새해복많이받으새요 $line" || exit 1
 +
done
 +
</pre>
 +
 +
'''.i3/config'''
 +
<pre>
 +
...
 +
bar {
 +
status_command /usr/bin/i3custombar
 +
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
 +
font pango:DejaVu Sans Mono 10
 +
}
 +
...
 
</pre>
 
</pre>

Revision as of 15:07, 4 January 2013

i3

For more information, see the official doc

i3status

Example .i3status.conf

general {
	#output_format = "dzen2"
	#colors = true
	interval = 5
}

order += "disk /"
order += "ethernet eth0"
order += "load"
order += "time"

ethernet eth0 {
	# if you use %speed, i3status requires the cap_net_admin capability
	format_up = "E: %ip (%speed)"
	format_down = "E: down"
}
time {
	format = "%Y-%m-%d %H:%M"
}
load {
	format = "%5min"
}

Custom i3status command:

/usr/bin/i3custombar

i3status | while :
do
   read line
   echo "새해복많이받으새요 $line" || exit 1
done

.i3/config

...
bar {
	status_command /usr/bin/i3custombar
	font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
	font pango:DejaVu Sans Mono 10
}
...