fix i3blocks and pomodoro

This commit is contained in:
thek4n 2025-10-23 23:25:04 +03:00
parent bdbf3f9359
commit fdb8fab853
3 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 20
bindsym XF86MonBrightnessDown exec xbacklight -dec 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 $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 bindsym --release $mod+z exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ 1 ## Release to mute

View File

@ -47,10 +47,10 @@ interval=1
signal=10 signal=10
[pomodoro] [pomodoro]
command=pomodoro formatted command=i3blocks_helper pomodoro
interval=1 interval=1
signal=10 signal=10
[time] [time]
command=env LC_ALL=C date '+ %d.%m.%y %a  %H:%M' command=i3blocks_helper time
interval=5 interval=5

View File

@ -21,7 +21,7 @@ cmd_battery() {
} }
cmd_disk_root() { cmd_disk_root() {
df -h / | awk '/\// {print "/ "$2"/"$3}' df -h / | awk '/\// {print "/ "$3"/"$2}'
} }
cmd_disk_home() { cmd_disk_home() {
@ -29,7 +29,7 @@ cmd_disk_home() {
if [ "$(echo "${res}" | awk '/\// {print $6}')" != "/home" ]; then if [ "$(echo "${res}" | awk '/\// {print $6}')" != "/home" ]; then
return 1 return 1
fi fi
df -h /home | awk '/\// {print " "$2"/"$3}' df -h /home | awk '/\// {print " "$3"/"$2}'
} }
cmd_memory() { cmd_memory() {
@ -61,7 +61,7 @@ cmd_volume() {
} }
cmd_pomodoro() { cmd_pomodoro() {
pomodoro formatted pomodoro get
} }
cmd_bluetooth_battery() { cmd_bluetooth_battery() {