summaryrefslogtreecommitdiff
path: root/i3blocks/config
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-12-08 11:42:24 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-12-08 11:42:24 +0100
commitbf27e87aa7332a3ec8e6332baf6349ed525d5e42 (patch)
tree859f7aab8a4c288d6ca39e914d83dc8b61837465 /i3blocks/config
parentb69a7f828213068f1de18158a369ad41d38ae1ca (diff)
i3: add initial config for i3 and i3blocks
Diffstat (limited to 'i3blocks/config')
-rw-r--r--i3blocks/config39
1 files changed, 39 insertions, 0 deletions
diff --git a/i3blocks/config b/i3blocks/config
new file mode 100644
index 0000000..6653643
--- /dev/null
+++ b/i3blocks/config
@@ -0,0 +1,39 @@
+command=/usr/share/i3blocks/$BLOCK_NAME
+separator_block_width=15
+
+[weather]
+command=curl -Ss 'https://wttr.in/Catania?0&T&Q' | cut -c 16- | head -2 | xargs echo
+interval=3600
+color=#A4C2F4
+
+[memory]
+label=MEM
+separator=false
+interval=30
+
+[disk]
+label=DISK
+interval=30
+
+[cpu_usage]
+label=CPU
+interval=10
+min_width=CPU: 100.00%
+
+[wifi]
+command=iwgetid -r | tr '\n' ' ' && grep $(iwgetid -m | awk '{ printf "%s", $1 }') /proc/net/wireless | awk '{ printf "%i%\n", int($3 * 100 / 70) }';exit 0 instance=wlp2s0
+interval=5
+label=
+
+[battery]
+command=i3_battery.sh
+interval=10
+
+[volume]
+command=pulsemixer --get-volume | cut -d " " -f 1; exit 0
+interval=1
+label=
+
+[time]
+command=date
+interval=1