1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00
ansible_role_sway/templates/i3blocks_config.j2
L3D 761d8e1268
Improve i3wm role wit multiuser support
+ adding rofi themes
+ customize i3bar
+ multiuser support
+ cleanup
2023-08-01 18:31:01 +02:00

52 lines
1 KiB
Django/Jinja

command=~/.config/i3blocks/$BLOCK_NAME
separator_block_width=18
markup=pango
{% if i3_i3blocks_options.weather | bool %}
[weather]
command=curl -Ss 'https://wttr.in?format="%l:+%c%t+%w"' | xargs echo
interval=600
color=#A4C2F4
{% endif %}
{% if i3_i3blocks_options.audio_volume | bool %}
[volume]
command={{ i3wm_usr.home }}/.config/i3blocks/volume.sh
interval=30
signal=10
{% endif %}
{% if i3_i3blocks_options.wifisignal | bool %}
[wlan]
command={{ i3wm_usr.home }}/.config/i3blocks/wlan.sh
interval=1
signal=10
{% endif %}
{% if i3_i3blocks_options.ipaddress | bool %}
[ip]
command=hostname -i | awk '{ print " IPv4: " $1 }'
interval=120
label=🖥️
{% endif %}
{% if i3_i3blocks_options.clock | bool %}
[clock]
command=date --rfc-3339=seconds
color=#88ff0a
interval=1
{% endif %}
{% if i3_i3blocks_options.battery | bool %}
[battery]
command={{ i3wm_usr.home }}/.config/i3blocks/battery.py
markup=pango
interval=30
{% endif %}
{% if i3_i3blocks_options.ddate | bool %}
[ddate]
label=🚀
command=ddate +'%A, %d %B, %Y%N, Celebrate %H'
interval=120
{% endif %}