The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

bindings related to pactl aren't working in config

asked 2015-09-19 17:30:08 +0000

saterhater gravatar image

I have the standard configuration file (for the most part, I added a script to enable touchpad tap-clicking), and yet my sound does not work. That is to say, it's muted, and unless I issue pactl set-sink-mute 0 1, It stays muted, as none of the volume key bindings have been enabled. I can confirm (since I haven't changed much) that the key bindings are in there.

I've even included my own script to un-mute my system at the get-go, that doesn't work when I put it in the i3 config either. However, if I run the script myself, it works just fine.

Does anyone know what's going on here. Everything else works just fine. I've tried reloading the config, and that doesn't do anything either. i3 just isn't playing with pulse, or vise versa.

edit retag flag offensive close merge delete

Comments

This has nothing to do with i3 whatsoever. I suggest you ask it in a more appropriate place which is also more active than this faq.

Airblader gravatar imageAirblader ( 2015-09-19 18:05:10 +0000 )edit

I'm unable to bind keys in I3, can you explain why this isn't an issue regarding i3? If this community claims no ability to troubleshoot an issue I've isolated with this wm, then I guess I've made a mistake in choosing i3.

saterhater gravatar imagesaterhater ( 2015-09-19 20:23:20 +0000 )edit

Sorry, I do think I misread your question at first. So first off, you are entirely sure that any other changes to the config file work, right? Just to make sure you're editing the correct file. If so, then what you'll need to do first is give us the config file you're trying to use.

Airblader gravatar imageAirblader ( 2015-09-19 20:43:49 +0000 )edit

A log file as described in the debugging docs on i3wm.org would also be helpful. Just restart i3, try to trigger the bindings and pull the log file and I'll take a look at it.

Airblader gravatar imageAirblader ( 2015-09-19 20:44:31 +0000 )edit

gnome 3 has the properly assigned key bindings. The `pactl` commands work in the command line. Re-instating the configs (ctrl+shift+e) does not assign any of the desired keys. I'm looking at the log files shortly, and if I'm worth my salt, I'll get back to this thread (and question) shortly.

saterhater gravatar imagesaterhater ( 2015-09-19 23:25:56 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-20 00:28:43 +0000

saterhater gravatar image

updated 2015-09-20 00:29:47 +0000

I checked out my log file, turns out the commands in the config were firing, they just happened to be wrong (as in, they didn't work at all). I'm not sure why my script to toggle the mute wasn't working, that's a bit messed up. Here's what I did:

I enabled my i3 logs: i3-msg 'debuglog on; shmlog on; reload'. Then I watched to see what happens when I used my volume buttons: watch 'i3-dump-log | grep pactl'. I'd then press my volume control buttons, and I'd see the commands being issued. i3 was doing what it was told, so it must be told to do something that is incorrect.

Sure enough, the commands I had in the config (bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%) don't do anything. So I figured out the command that would, in fact, raise and lower my volume (pactl set-sink-volume 0 -- +5%), and that did the trick. I feel rather sheepish. Nothing was wrong i3, but the config wasn't quite written for my version of pulse audio.

TLDR: I'm using 4.0.0-kali1-amd64 with i3 v4.8. Just make sure the commands in your config are up to date. I was just being a noob.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-09-19 17:30:08 +0000

Seen: 73 times

Last updated: Sep 20