i3wm-config/i3status-rust.toml

93 lines
1.8 KiB
TOML
Raw Normal View History

2020-08-04 14:51:05 +03:00
#theme = "solarized-dark"
[[theme]]
name = "modern"
[theme.overrides]
idle_bg = "#123456"
idle_fg = "#abcdef"
[[icons]]
name = "awesome"
[[block]]
block = "toggle"
interval = 3
text = "NO BLANK"
command_state = "xset q | grep 'DPMS is Disabled'"
2020-09-30 16:55:02 +03:00
command_on = "xset s off -dpms"
command_off = "xset s on +dpms"
#command_on = "xset dpms force on"
#command_off = "xset reset"
2020-08-04 14:51:05 +03:00
[[block]]
block = "toggle"
interval = 1
text = "ZOOM"
command_state = "pactl list short | grep bluez_sink.2C_4D_79_47_42_9F.headset_head_unit"
command_on = "pactl set-card-profile bluez_card.2C_4D_79_47_42_9F headset_head_unit"
command_off = "pactl set-card-profile bluez_card.2C_4D_79_47_42_9F a2dp_sink"
[[block]]
block = "custom"
command = '''
case "$(xset -q|grep LED| awk '{ print $10 }')" in
"00000002") KBD="En" ;;
"00000000") KBD="En" ;;
"00001002") KBD="Ru" ;;
"00001000") KBD="Ru" ;;
*) KBD="unknown" ;;
esac; echo $KBD
'''
interval = 0.5
on_click = '''
case "$(xset -q|grep LED| awk '{ print $10 }')" in
"00000002") NEXT_KBD="ru" ;;
"00000000") NEXT_KBD="ru" ;;
"00001002") NEXT_KBD="us" ;;
"00001000") NEXT_KBD="us" ;;
*) NEXT_KBD="unknown" ;;
esac; xkb-switch -s $NEXT_KBD
'''
[[block]]
block = "backlight"
device = "intel_backlight"
2020-06-25 12:41:50 +03:00
[[block]]
block = "disk_space"
path = "/"
alias = "/"
info_type = "available"
unit = "GB"
interval = 20
warning = 20.0
alert = 10.0
[[block]]
block = "memory"
display_type = "memory"
format_mem = "{Mup}%"
format_swap = "{SUp}%"
[[block]]
block = "cpu"
interval = 1
[[block]]
2020-08-04 14:51:05 +03:00
block = "sound"
on_click = "amixer -D pulse sset Master toggle"
2020-06-25 12:41:50 +03:00
[[block]]
2020-08-04 14:51:05 +03:00
block = "bluetooth"
mac = "2C:4D:79:47:42:9F"
label = " BT"
2020-06-25 12:41:50 +03:00
2020-09-30 16:55:02 +03:00
[[block]]
block = "custom"
2020-10-08 20:52:04 +03:00
command = "echo 'pair >'"
2020-09-30 16:55:02 +03:00
interval = 600
on_click = "~/.config/i3/rofi-btooth"
2020-06-25 12:41:50 +03:00
[[block]]
block = "time"
interval = 60
format = "%a %d/%m %R"