fixed some i3 config and zshrc bluetooth alias

This commit is contained in:
2025-11-06 01:24:06 +01:00
parent 764b3a7f53
commit 2277906fdc
7 changed files with 180 additions and 68 deletions
+11 -26
View File
@@ -1,22 +1,22 @@
# i3blocks configuration file
#
# The i3blocks man page describes the usage of the binary,
# and its website describes the configuration:
#
# https://vivien.github.io/i3blocks
# Global properties
separator=true
separator_block_width=20
[greetings]
color=#f5af19
command=echo "$USER"
color=#00b894
command=echo "[$USER@$HOSTNAME ~]"
interval=once
[batteries_mouse]
command=/home/agres/.config/i3/scripts/mouse_battery.sh
interval=60
[batteries_keyboard]
command=/home/agres/.config/i3/scripts/keyboard_battery.sh
interval=60
[cpu]
command=mpstat 1 1 | awk '/Average/ {print 100 - $NF"%"}'
command=sh -c 'usage=$(mpstat 1 1 | awk "/Average/ {print 100 - \$NF}"); temp=$(sensors | awk "/^Tctl:/ {gsub(/[+°]C/, \"\", \$2); print \$2; exit}"); temp=${temp#+}; printf "%s%% %s°C\n" "$usage" "$temp"'
interval=5
label=CPU:
@@ -30,21 +30,6 @@ command=free -h | awk '/^Mem/ {print $3 "/" $2}'
interval=10
label=MEM:
#[down]
#command=vnstat -tr 2 | tail -n 3 | awk '/rx/ {print $2}'
#interval=5
#label=DOWN:
#[up]
#command=vnstat -tr 2 | tail -n 3 | awk '/tx/ {print $2}'
#interval=5
#label=UP:
[time]
command=date '+%d.%m %H:%M:%S'
interval=1