Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 04 2018 04:58
    vivien commented #311
  • Sep 04 2018 04:51

    vivien on dynamic-properties

    json: split generic JSON parsin… map: abstract properties struct… map: support dynamic properties… and 12 more (compare)

  • Sep 04 2018 04:07
    vivien closed #285
  • Sep 04 2018 04:07
    vivien commented #285
  • Sep 03 2018 23:22
    kittydoor starred vivien/i3blocks
  • Sep 02 2018 21:22
    onatto starred vivien/i3blocks
  • Sep 02 2018 19:22
    b1scu1t starred vivien/i3blocks
  • Sep 01 2018 05:26
    tkkcc commented #232
  • Sep 01 2018 05:26
    tkkcc commented #232
  • Sep 01 2018 04:56
    mvrozanti starred vivien/i3blocks
  • Aug 30 2018 13:01
  • Aug 30 2018 09:55
    batlac starred vivien/i3blocks
  • Aug 29 2018 20:55
    fturco opened #312
  • Aug 29 2018 20:52
  • Aug 28 2018 16:01
    x4m3 starred vivien/i3blocks
  • Aug 28 2018 15:18
    ageldama starred vivien/i3blocks
  • Aug 28 2018 15:13
  • Aug 27 2018 06:16
    tayusa starred vivien/i3blocks
  • Aug 24 2018 15:16
    kb100 edited #311
  • Aug 23 2018 20:48
    kb100 commented #311
Dany Marcoux
@dmarcoux

I have the following in my i3 config file and only the XF86 doesn't update my i3blocks. The weird thing is that the Raise and Lower volume both works.... Any idea? Cheers!

Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up && pkill -SIGRTMIN+1 i3blocks # increase sound volume by 5%
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down && pkill -SIGRTMIN+1 i3blocks # decrease sound volume by 5%
bindsym XF86AudioMute exec pulseaudio-ctl mute && pkill -SIGRTMIN+1 i3blocks # mute sound

Vivien Didelot
@vivien
Hi @dmarcoux

Can you try with the --release bindings? Here's what I use:

bindsym XF86AudioLowerVolume           exec BLOCK_BUTTON=5 /usr/local/libexec/i3blocks/volume
bindsym XF86AudioMute                  exec BLOCK_BUTTON=3 /usr/local/libexec/i3blocks/volume
bindsym XF86AudioRaiseVolume           exec BLOCK_BUTTON=4 /usr/local/libexec/i3blocks/volume

bindsym --release XF86AudioLowerVolume exec pkill -SIGRTMIN+10 i3blocks
bindsym --release XF86AudioMute        exec pkill -SIGRTMIN+10 i3blocks
bindsym --release XF86AudioRaiseVolume exec pkill -SIGRTMIN+10 i3blocks

(replace my exec command with your pulseaudio-ctl command for sure)

My related i3blocks config is:

[volume]
label=VOL
instance=Master
interval=once
signal=10
Dany Marcoux
@dmarcoux

Hey @vivien,

Thank you for your message. I tried with --release and it does work, but it doesn't seem to be as responsive as what I used in my previous message. My blocks isn't always updated and is sometimes out of sync with the real state of the sound (Displays mute when it isn't). If I then refresh i3, it displays the correct state.

Do have I to use the BLOCK_BUTTON=X in the first 3 lines?

Vivien Didelot
@vivien
Nope, the BLOCK_BUTTON is just there to simulate a click, that's how the default volume script in i3blocks works.
The --release bindsym is triggered when you leave your finger from the key, not when you press the key. That's a matter of choice, but I personally prefer this behavior (in addition to separating the 2 commands)
What is your block's command? Simply clicking on the block should trigger the command and sync the sound status
Dany Marcoux
@dmarcoux
Oh okay, I don't want to simulate clicks to I won't use it. My script doesn't work with this anyway.
I use a global property for all my blocks and it is the following: command=~/.config/i3blocks/blocks/$BLOCK_NAME
Dany Marcoux
@dmarcoux
This is my volume script if it can help somehow: http://pastebin.com/JW5ZdLVT
Jason Pleau
@jpleau
hmm i3blocks 1.4 doesn't build on debian-kfreebsd. I'll setup a freebsd VM and see if I can reproduce there. Logs: https://buildd.debian.org/status/package.php?p=i3blocks
Jason Pleau
@jpleau
@vivien I have done this: https://gist.github.com/jpleau/783bfeb9fb59af9b3e01 I'm still trying to figure how the siginfot.sisd (which is why I have put an idndef __FreeBSD around it
Vivien Didelot
@vivien
@jpleau sorry for the delay, I forget that somehow. Can you open a ticket on i3blocks (core) for the freeBSD compatibility issue?
Sebastien Bariteau
@numkem
I'm trying ot wrap my head around the BLOCK_INSTANCE thing. How would I use it to specify the mount point for a disk space check?
I know I can use it by doing something like BLOCK_INSTANCE='/home' /usr/lib/i3blocks/disk on the command line but I'd trying to reproduce the same thing in my configuration.
Vivien Didelot
@vivien
@numkem hi!
[mount]
command=/usr/lib/i3blocks/disk
instance=/home
interval=10
Sebastien Bariteau
@numkem
@vivien that worked! Turns out my problem was a typo in one block... Thanks!
Vivien Didelot
@vivien
Great!
Martín Cigorraga
@cig0
Hi all, it seems that the blocklets wiki page has been moved somewhere else, could you please point me where does it reside now?
Vivien Didelot
@vivien
Hi @msx, @Nycroth moved it to the contrib repository: https://github.com/vivien/i3blocks-contrib/wiki
Ethan Madison
@ethanmad
In the default config, I'm getting an extra space after the CPU readout. Is this intended?
Ethan Madison
@ethanmad
You can see the space in this screenshot: https://ptpb.pw/8cEK.png
Mike Lubinets
@mersinvald
Hi everyone.
Multiple times I've seen such i3blocks:
image
How is it possible and how can I draw items like these arrows?
Vivien Didelot
@vivien
lol is that i3blocks ? I did not even know you could do such drawing
Mike Lubinets
@mersinvald

lol there is C code doing this on screenshot, didn't noticed x)
Seems like it using i3blocksm but i'm not sure.

Anyway, thank you!

Vivien Didelot
@vivien
@mersinvald the code is i3's i3bar
Mike Lubinets
@mersinvald
I see)
It's unofficial fork of i3, trying it now.
https://github.com/Airblader/i3
Vivien Didelot
@vivien
@ethanmad yep the extra space is due to the min_width=CPU: 100.00% line in the conf. Get rid of it if you want. It's indeed useless if your CPU block is the first one one the left! :-)
Ethan Madison
@ethanmad
Thanks @vivien. That fixed it!
nikSFirefly
@niksfirefly
is there an option to reload i3blocks ?
Sebastien Bariteau
@numkem
@niksfirefly as far as I know no, you'll have to reload/restart i3. By default it's through $mod+shift+r
nikSFirefly
@niksfirefly
thx @numkem restart i3 do the trick
i cant force i3blocks to use FontAwesome
bar { font pango: FontAwesome 9 } in i3 config dont work
nikSFirefly
@niksfirefly
Ubuntu 14.04 & fonts-font-awesome installed
Nenad Ilic
@nenadilic84
hi guys, is there a way to have a keyboard layout in i3blocks?
and hen have it changed on click :)
Vivien Didelot
@vivien
Hi @nenadilic84! Somebody just emailed me such a script, I asked him to suggest it on i3blocks-contrib, I guess it'll come around soon, keep an eye opened ;-)
Sebastien Bariteau
@numkem
@nenadilic84 I use something called xkb-switch from git (under arch) to achive that kind of behavior. It calls the executable that returns the current keyboard layout code like us
indeedwatson
@indeedwatson
I'm having a problem trying to install i3block https://paste.fedoraproject.org/293539/ any ideas?
Nenad Ilic
@nenadilic84
Just for reference. This was the pull-request that solved my problem with the keyboard layout:
@indeedwatson from the code you posted I don't see any errors...
indeedwatson
@indeedwatson
@nenadilic84 im sorry i forgot the second part https://paste.fedoraproject.org/293691/13696144/
Nenad Ilic
@nenadilic84
It seems that you are missing ruby-ronn. You can do sudo apt-get install ruby-ronn if you are on debian :)
indeedwatson
@indeedwatson
I'm on Fedora, I tried doing that but it's not in the official repo, trying to figure out how to install it from other places
kb100
@kb100
@vivien Why is ruby-ronn even a dependency? It seems it is just used to make the man page which is just a static document. Would it be too inconvenient to go without ruby ronn, we could drop that whole dependency.
indeedwatson
@indeedwatson
@kb100 if that does happen let me know so i can save some hassle trying to solve this with my limited knowledge :)
Nenad Ilic
@nenadilic84
@kb100 I completlly agree
archshift
@archshift
Is it possible for me to output pango markup within a json-encoded string? Or, for that matter, does i3blocks respect escape characters within json? I don't seem to be able to include an escaped double quote within my persistent script output.