Battery script
This commit is contained in:
		@ -10,20 +10,26 @@
 | 
			
		||||
separator=true
 | 
			
		||||
separator_block_width=15
 | 
			
		||||
 | 
			
		||||
[documentation]
 | 
			
		||||
full_text=Documentation
 | 
			
		||||
website=https://vivien.github.io/i3blocks
 | 
			
		||||
command=xdg-open "$website"
 | 
			
		||||
color=#f12711
 | 
			
		||||
[battery1]
 | 
			
		||||
command=~/.dotfiles/bin/battery 0 
 | 
			
		||||
interval=30
 | 
			
		||||
 | 
			
		||||
[battery2]
 | 
			
		||||
command=~/.dotfiles/bin/battery 1 
 | 
			
		||||
interval=30
 | 
			
		||||
 | 
			
		||||
[tailscale]
 | 
			
		||||
command=echo TS: $(ip a show tailscale0 | rg "inet (\d+\.\d+\.\d+\.\d+)" -or '$1')
 | 
			
		||||
interval=30
 | 
			
		||||
 | 
			
		||||
[greetings]
 | 
			
		||||
color=#f5af19
 | 
			
		||||
command=echo "Hello, $USER!"
 | 
			
		||||
interval=once
 | 
			
		||||
[wthr]
 | 
			
		||||
command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
 | 
			
		||||
interval=3600
 | 
			
		||||
 | 
			
		||||
[layout]
 | 
			
		||||
command=/usr/lib/i3blocks/key_layout/key_layout
 | 
			
		||||
label=lang:
 | 
			
		||||
interval=1
 | 
			
		||||
 | 
			
		||||
[time]
 | 
			
		||||
command=date '+%Y-%m-%d %H:%M:%S'
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user