summaryrefslogtreecommitdiff
path: root/i3blocks.conf
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2015-10-11 10:58:04 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2015-10-11 10:58:04 -0400
commit0f8273c5fb9c090b0a53715f2965f032885540c3 (patch)
treefbe2122597d38b13a52a6677b0ef75d56cd244a8 /i3blocks.conf
parentb48ff88a8b6ee94fd70e88127800fdbe29858805 (diff)
Add i3blocks config.
Diffstat (limited to 'i3blocks.conf')
-rw-r--r--i3blocks.conf106
1 files changed, 106 insertions, 0 deletions
diff --git a/i3blocks.conf b/i3blocks.conf
new file mode 100644
index 0000000..62df263
--- /dev/null
+++ b/i3blocks.conf
@@ -0,0 +1,106 @@
+# i3blocks config file
+# Global properties
+#
+# The top properties below are applied to every block, but can be overridden.
+# Each block command defaults to the script name to avoid boilerplate.
+command=/usr/lib/i3blocks/$BLOCK_NAME
+separator_block_width=15
+markup=none
+
+# Volume indicator
+#
+# The first parameter sets the step (and units to display)
+# The second parameter overrides the mixer selection
+# See the script for details.
+[volume]
+label=♪
+instance=Master
+#instance=PCM
+interval=once
+signal=10
+
+[brightness]
+label=☼
+command=xbacklight | awk -F. '{print $1}'
+interval=once
+signal=10
+
+[disk]
+label=/
+instance=/
+interval=30
+
+# Network interface monitoring
+#
+# If the instance is not specified, use the interface used for default route.
+# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
+[iface]
+#instance=wlan0
+color=#00FF00
+interval=10
+separator=false
+
+[wifi]
+#instance=wlp3s0
+interval=10
+separator=false
+
+[ipv6]
+label=
+command=ip -6 a show scope global | grep -q global && echo -e "ipv6\nipv6\n#A8FF00" || echo -e "ipv4\nipv4\n#cc0000"
+interval=10
+
+[bandwidth]
+#instance=eth0
+interval=5
+
+[load_average]
+interval=10
+
+# Battery indicator
+#
+# The battery instance defaults to 0.
+[battery]
+label=bat
+#label=⚡
+#instance=1
+interval=30
+separator=false
+
+[power]
+label=
+command=zsh -c '[[ $(cat /sys/class/power_supply/BAT0/status) == "Discharging" ]] && printf "%.2f W" $(( $(cat /sys/class/power_supply/BAT0/power_now) / 1000000.0 )) || echo ""'
+color=77bb33
+interval=30
+signal=10
+
+# Date Time
+#
+[time]
+command=date '+%Y-%m-%d %H:%M'
+interval=60
+
+# Temperature
+#
+# Support multiple chips, though lm-sensors.
+# The script may be called with -w and -c switches to specify thresholds,
+# see the script for details.
+[temperature]
+label=
+interval=10
+
+# Key indicators
+#
+# Add the following bindings to i3 config file:
+#
+# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
+# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
+#[keyindicator]
+#instance=CAPS
+#interval=once
+#signal=11
+
+#[keyindicator]
+#instance=NUM
+#interval=once
+#signal=11