A conkybar for i3wm (setup)

For those who’d like to try using conkybar, here is what I finally settled on for my i3wm setup.

Here’s what it looks like (top bar minus the workspace labels; they’re from i3bar).

Here’s the conkybar code:

--[[
                               
# Based on Erik Dubois' original config (http://erikdubois.be)
# and Addy's work (dots-almighty)
# Add'l Color, functional and branding changes were made by 
# Mark Rabideau (ManyRoads)... and everything I broke was fixed 
# and made better by Packrat (many thanks!)
# 

]]

conky.config = {
	out_to_console = true,
	out_to_x = false,
	background = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_stderr = false,
	update_interval = 3.0,
	uppercase = false,
	use_spacer = 'none',

};

conky.text = [[

[
    {
    "full_text": "   rch i3  ",
    "color": "\#81A1C1",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    }, 
    {
    "full_text": " ",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
	{ 
	"full_text" : "      ${exec ps -e | grep $(xdotool getwindowpid $(xdotool getwindowfocus -f)) | grep -v grep | awk '{print $4}'}     ", 
	"background": "\#81A1C1",
    "color": "\#000000",
    "separator": true,
    "separator_block_width": 0
	},
	{
    "full_text": " ",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
#	{ "full_text" : "${exec cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm}  ", "color" : "\#CDCDCD" },
#	{ "full_text" : "${exec ~/.local/bin/activewindow.sh}  ", "color" : "\#33aacc" },
#	{ "full_text" : "${exec ~/.local/bin/window001.sh}  ", "background" : "\#ffffff", "color" : "\#33aacc" },
    {
    "full_text": "  ${cpu cpu0}%, ${execi 4 sensors|grep 'Core 0'|awk '{print $3}'} ",
    "background": "\#2F343F",
    "color": "\#BF616A",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "  ${mem}/${memmax} ",
    "color": "\#A3BE8C",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text":"  ${wireless_essid wlan0}${wireless_link_qual_perc wlan0}% ",
    "color": "\#B48EAD",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "  ${execi 2 amixer get Master | grep % | awk '{print $5}' | sed 's/[^0-9\%]//g' | head -n1} ",
    "color": "\#EBCB8B",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "  ${time %A ~ %d %b. %Y} ",
    "color": "\#81A1C1",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
    {
    "full_text": "  ${time %H:%M} ",
    "color": "\#D08770",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    },
	{
    "full_text": "",
    "color": "\#BFBFBF",
    "background": "\#2F343F",
    "separator": true,
    "separator_block_width": 0
    }
],

]];
4 Likes

Top work again @manyroads

2 Likes

Thanks @manyroads, and that’s such a coincidence mate, I was trying to setup something just like that a few days ago.

2 Likes

Here is a few different styles of the same bar.
Coloured
Plane
present

1 Like