Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #~/.config/i3/startup_conky
- ## both files below belong in ~/.config/i3 directory
- #!/bin/sh
- # Send the header so that i3bar knows we want to use JSON:
- echo '{"version":1}'
- # Begin the endless array.
- echo '['
- # We send an empty first array of blocks to make the loop simpler:
- echo '[],'
- # Now send blocks with information forever:
- exec conky -c $HOME/.config/i3/conkyrc
- -------------------------------------------END---------------------------------------------------
- #~/.config/i3/conkyrc
- out_to_x no
- own_window no
- out_to_console yes
- background no
- max_text_width 10920
- # Update interval in seconds
- update_interval 1
- # This is the number of times Conky will update before quitting.
- # Set to zero to run forever.
- total_run_times 0
- # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
- short_units yes
- # How strict should if_up be when testing an interface for being up?
- # The value is one of up, link or address, to check for the interface
- # being solely up, being up and having link or being up, having link
- # and an assigned IP address.
- if_up_strictness address
- # Add spaces to keep things from moving about? This only affects certain objects.
- # use_spacer should have an argument of left, right, or none
- use_spacer left
- # Force UTF8? note that UTF8 support required XFT
- override_utf8_locale no
- # number of cpu samples to average
- # set to 1 to disable averaging
- cpu_avg_samples 4 4 4 4
- template0 80FF00
- template1 808080
- # Stuff after 'TEXT' will be formatted on screen
- TEXT
- # JSON for i3bar
- [\
- # Music
- ${if_match "Playing" == "$mpd_status"}
- {"full_text":"мρđ αυđίσ οùτρυτ ▶ ♪","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"$mpd_artist - $mpd_title | $mpd_album","color":"\#${template0}","separator":false,"separator_block_width":6},\
- $endif
- # Volume:
- {"full_text":"♬ ▏νσιυмε →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}","color":"\#${template0}","separator":false,"separator_block_width":6},\
- # LOAD:
- {"full_text":"▏ ℓσαđ →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${cpu cpu0}%","color":"\#${template0}","separator":false,"separator_block_width":6},\
- # Memory:
- {"full_text":"▏ғяεε мεмσяү →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${memeasyfree}","color":"\#${template0}","separator":false,"separator_block_width":6},\
- #Disk
- {"full_text":"▏яσσт:","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${fs_used /}/${fs_size /}","color":"\#${template0}","separator":false,"separator_block_width":6},\
- {"full_text":"▏нσмε:","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${fs_used /home/}/${fs_size /home/}","color":"\#${template0}","separator":false,"separator_block_width":6},\
- # NETWORK:
- ${if_up eth0}
- {"full_text":"▏εтнεяηεт ├","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${addr eth0}","color":"\#${template0}","separator":false,"separator_block_width":6},\
- ${endif}
- # DateTime:
- {"full_text":"├ тίмε ","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
- {"full_text":"${time %d.%m.%Y %H:%M}","color":"\#993232","separator":false,"separator_block_width":6}\
- ],
- -------------------------------END-----------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement