Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conky #222

Closed
feliwyn opened this issue Nov 12, 2015 · 26 comments
Closed

Conky #222

feliwyn opened this issue Nov 12, 2015 · 26 comments

Comments

@feliwyn
Copy link

feliwyn commented Nov 12, 2015

Hi!

Totally no support of conky?
No conky-bar, and no conky on my desktop. :)

@ddevault
Copy link
Contributor

I haven't tried. I wouldn't expect much.

@kon14
Copy link
Contributor

kon14 commented Nov 21, 2015

almost works with xwayland enabled, positioning is somewhat broken (edit2: come to think of it that was due to my tiling 2 separate instances)

edit: not that each conky instance acting like a window (check your conky config) won't work as expected sway (and possibly tiling wms for X too) unless you set a rule and let the window class float.

@juju2143
Copy link
Contributor

Conky works quite fine for me. I even wrote a lua script to get the current workspace. Allow me to share my config I did after many trial and error: https://gist.github.com/juju2143/aece6992955462333712

Of course, starting from commit 6596582, you can set out_to_x = false and out_to_console = true in conky.conf and do a exec "swaybar 0 conky" instead in your sway config, but it will look less good.

@ddevault
Copy link
Contributor

Adding something along the lines of exec swaybar to your sway config is not a future proof solution, by the way. Sometime in the near future, sway will run swaybar itself (and the command line usage of swaybar is undocumented and likely to change).

@juju2143
Copy link
Contributor

Yeah, I know. You gotta follow the development of swaybar and make the necessary changes in your config as soon as they come out. Right now, swaybar only serves to reserve some space at the bottom so I can draw conky on it, but that would be nice if you can do that directly in conky somehow.

@onny
Copy link

onny commented Dec 14, 2015

Wow juju2143, do you mind sharing a screenshot of a working example? Looking forward to trying it out!

@juju2143
Copy link
Contributor

Sure. (Sorry for the ponies, though. xD)

screenshot-201512141305

Edit: Also I see bar { } getting implemented in the commit log today, gotta try this out.

@onny
Copy link

onny commented Dec 21, 2015

Now I'm using sway with i3status and this configuration:
status_command i3status
Unfortunately I don't have the colors of i3status in the swaybar :(
2015-12-21-152519_swaygrab

@mikkeloscar
Copy link
Collaborator

@onny The colors hasn't been implemented yet, but I'm sure it will happen soon.

@onny
Copy link

onny commented Dec 21, 2015

Thanks for the info, sounds awesome :)

@juju2143
Copy link
Contributor

Colors would be nice. Are they supposed to be the standard ANSI escape codes?

@mikkeloscar
Copy link
Collaborator

@juju2143 no, swaybar is supposed to implement the i3bar protocol: http://i3wm.org/docs/i3bar-protocol.html so the colors should be provided as part of the json data.

@onny
Copy link

onny commented Dec 22, 2015

Looks like there's already a pull request for that #394 (comment) :)

@onny
Copy link

onny commented Dec 22, 2015

I changed i3status output_format to i3bar but unfortunately swaybar doesn't render it :(

@progandy
Copy link
Contributor

This is how it looks for me:
2015-12-22-200819_1366x768_scrot

@onny
Copy link

onny commented Dec 22, 2015

Do you have i3status as input? And how did you configure it?

@feliwyn
Copy link
Author

feliwyn commented Dec 22, 2015

conky_bar
Wooow! I don't understand why are you speaking about i3bar. I can't use sway without conky. I like my conky bar :<

@progandy
Copy link
Contributor

@onny: Yes, I have i3status. I configured it with output_format=i3bar, colors=true and interval=5.
@feliwyn: Works with conky, too. Currently you have to send everything on a single line with less than 1024 characters total. I guess there might be some problems with buffers.

@feliwyn
Copy link
Author

feliwyn commented Dec 22, 2015

Ow... Some prob for me. My conky conf is here : https://github.com/feliwyn/i3config

@onny
Copy link

onny commented Dec 22, 2015

i3status config:

general {
        output_format = i3bar
        colors = true
        interval = 5
}

sway config:

    bar {
        status_command i3status
        font pango:DejaVu Sans Mono 8
    }

i3status output:

{"version":1}
[
[{"name":"ipv6","color":"#00FF00","full_text":"2a02:8071:****"},{"name":"disk_info","instance":"/","full_text":"1.0 GiB"},{"name":"run_watch","instance":"/var/run/dhclient*.pid","color":"#FF0000","full_text":"DHCP: no"},{"name":"run_watch","instance":"/var/run/vpnc/pid","color":"#FF0000","full_text":"VPN: no"},{"name":"wireless","instance":"wlp2s0","color":"#00FF00","full_text":"W: (077% at ***) 192.168.1.33"},{"name":"ethernet","instance":"enp3s0","color":"#FF0000","full_text":"E: down"},{"name":"battery","instance":"/sys/class/power_supply/BAT1/uevent","full_text":"FULL 93.18%"},{"name":"load","full_text":"0.25"},{"name":"tztime","full_text":"2015-12-22 22:33:28"}]

But whole swaybar is somehow broken after that :(

@juju2143
Copy link
Contributor

@progandy Oh, that might be why I couldn't see anything in the bar after switching to the JSON format in my Conky config.

Otherwise, fun fact, if you switch to the Lua config format, you can put somewhere in your config these lines, before config.text:

print([[{"version":1},
[
[],]])

and you can directly put exec conky in status_command in your bar config.

@juju2143
Copy link
Contributor

Oh, it works as of 23df7ed now. Looks like a pretty simple fix.

@onny
Copy link

onny commented Dec 23, 2015

Yep nice, it works for me now! Thank you!

@progandy
Copy link
Contributor

@feliwyn Can you try it with these changes #402?

@feliwyn
Copy link
Author

feliwyn commented Dec 24, 2015

@progandy Yeah! It's works!

But found another probleme. (I can open a new issue, if necessary)
Mode doesn't show their 'menu'

https://paste.feliwyn.fr/?f11f28ed7b8123f2#1yzDh9Tfar5EZPo3hKvshoLp0qnuTPF9dq4btkGd09c=

For exemple, in this paste, the text : "resize" isn't show. So, you don't really now if you are in the mode or no.
Like here : http://i.imgur.com/oAj31Fl.png

@ddevault
Copy link
Contributor

That's covered by this issue:

#343

@Kommynct Kommynct mentioned this issue Feb 11, 2016
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants