GithubHelp home page GithubHelp logo

Comments (17)

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024

oh and cargo/rust:

 $ rustc --version
rustc 1.17.0 (56124baa9 2017-04-24)
 $ cargo --version
cargo 0.18.0 (fe7b0cdcf 2017-04-24)

from i3status-rust.

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024

also, I installed the font awesome fonts via:

sudo apt install fonts-font-awesome

My bar is:

bar {
  font pango:DejaVu Sans Mono, Icons 8

  status_command /home/me/.i3/i3status-rust/target/release/i3status-rs /home/me/.i3/i3status-rust.json --icons awesome --theme solarized-dark

  position top
  colors {
    separator #666666
    background #222222
    statusline #dddddd
    focused_workspace #0088CC #0088CC #ffffff
    active_workspace #333333 #333333 #ffffff
    inactive_workspace #333333 #333333 #888888
    urgent_workspace #2f343a #900000 #ffffff
  }
}

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

Hey, start by removing the sound block from your config, I'll fix it tomorrow.

from i3status-rust.

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024

thanks!

2017-05-23-212113_876x30_scrot

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

What's the output of amixer get Master on your system? The sound block currently only supports amixer.

from i3status-rust.

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024
$ amixer get Master
amixer: Unable to find simple control 'Master',0

my regular i3status (which has a work volume indicator) is formatted like this:

volume master {
	device = "default"
	mixer = "Master"
	mixer_idx = 0
	format = "♪ %volume "
}

not sure if that helps

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

Just $ amixer please... Currently the sound block only uses Master, which doesn't seem to work...

from i3status-rust.

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024
$ amixer
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 52
  Mono: Capture 44 [85%] [-27.00dB] [on]

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

See, I'm not very familiar with the sound systems in Linux. Your main audio output is apparently not using amixer, so you can either switch to a system that enables you to use amixer or add functionality for your setup to the sound block, and hit me with a PR, that way others with your setup may profit. Good luck, I hope for contributions! :)

from i3status-rust.

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024

I'm not familiar with linux sound either. seems to be a bit of a mess.

I think I'm using pulseaudio

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

I am, too. But there are usually multiple subsystems working together, going from hardware to the highest software level abstractions, provided by pulse.

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

Looking through the sound system part of the Arch wiki, it appears the Alsa system is indeed very ubiquitous. The arch wiki also suggests using amixer or alsamixer to adjust volume etc.. I'd suggest you check your setup, maybe you can fix it easily :) There definitely should be a 'Master' output listed when calling $ amixer.

from i3status-rust.

NullVoxPopuli avatar NullVoxPopuli commented on August 14, 2024

Cool, I'll do some googlin' and post my findings here

from i3status-rust.

jm355 avatar jm355 commented on August 14, 2024

I fixed this issue by installing pulseaudio-alsa on manjaro linux, maybe that'll work for others as well

from i3status-rust.

moritzheiber avatar moritzheiber commented on August 14, 2024

@greshake Is there are reason you're not using alsa-rs but instead are calling amixer directly? I would need to pass additional parameters to amixer on my system (my soundcard is on index 1 instead of 0), I would reckon a proper API would make it easier to add other configuration options?

from i3status-rust.

atheriel avatar atheriel commented on August 14, 2024

@moritzheiber I don't believe we were familiar with that project at the time, but it's a nice find. I'd be happy to see some work moving towards using that library instead of shelling out. It might fix some of the issues I've encountered when hotplugging audio devices, too.

from i3status-rust.

atheriel avatar atheriel commented on August 14, 2024

I consider this closed by #245.

from i3status-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.