From fdb8fab8537e9880284c57b86b888ea601d8550b Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 23 Oct 2025 23:25:04 +0300 Subject: [PATCH] fix i3blocks and pomodoro --- home/user/.config/i3/config | 2 +- home/user/.config/i3blocks/config | 4 ++-- home/user/.local/bin/i3blocks_helper | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/home/user/.config/i3/config b/home/user/.config/i3/config index 7e2815a..403ee3b 100644 --- a/home/user/.config/i3/config +++ b/home/user/.config/i3/config @@ -50,7 +50,7 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 20 bindsym XF86MonBrightnessDown exec xbacklight -dec 20 -bindsym $mod+p exec pomodoro switch && $refresh_i3blocks +bindsym $mod+p exec pomodoro toggle && $refresh_i3blocks bindsym $mod+z exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ 0 ## Hold to talk bindsym --release $mod+z exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ 1 ## Release to mute diff --git a/home/user/.config/i3blocks/config b/home/user/.config/i3blocks/config index 08db338..223a83e 100644 --- a/home/user/.config/i3blocks/config +++ b/home/user/.config/i3blocks/config @@ -47,10 +47,10 @@ interval=1 signal=10 [pomodoro] -command=pomodoro formatted +command=i3blocks_helper pomodoro interval=1 signal=10 [time] -command=env LC_ALL=C date '+ %d.%m.%y %a  %H:%M' +command=i3blocks_helper time interval=5 diff --git a/home/user/.local/bin/i3blocks_helper b/home/user/.local/bin/i3blocks_helper index 9dd856c..c955a0b 100755 --- a/home/user/.local/bin/i3blocks_helper +++ b/home/user/.local/bin/i3blocks_helper @@ -21,7 +21,7 @@ cmd_battery() { } cmd_disk_root() { - df -h / | awk '/\// {print "/ "$2"/"$3}' + df -h / | awk '/\// {print "/ "$3"/"$2}' } cmd_disk_home() { @@ -29,7 +29,7 @@ cmd_disk_home() { if [ "$(echo "${res}" | awk '/\// {print $6}')" != "/home" ]; then return 1 fi - df -h /home | awk '/\// {print " "$2"/"$3}' + df -h /home | awk '/\// {print " "$3"/"$2}' } cmd_memory() { @@ -61,7 +61,7 @@ cmd_volume() { } cmd_pomodoro() { - pomodoro formatted + pomodoro get } cmd_bluetooth_battery() {