jthomaschewski / i3-cinnamon

Use i3 with Cinnamon Session integration.
MIT License
54 stars 12 forks source link

Cinnamon keyboard shortcuts (including volume/media/brightness keys) are not working #5

Open ytzemih opened 7 months ago

ytzemih commented 7 months ago

Hi,

thank you so much for this i3-gnome fork. It works swiftly. I just wanted to contribute a preliminary solution to the problem. I'm using LMDE6 and use the following snippet in my .config/i3/config file:

bindcode 121 exec --no-startup-id pactl set-sink-mute 0 toggle # XF86AudioMute
bindcode 122 exec --no-startup-id pactl set-sink-volume 0 -5% # XF86AudioLowerVolume
bindcode 123 exec --no-startup-id pactl set-sink-volume 0 +5% # XF86AudioRaiseVolume
# XF86MonBrightnessDown
bindcode 232 exec --no-startup-id gdbus call --session --dest org.cinnamon.SettingsDaemon.Power --object-path /org/cinnamon/SettingsDaemon/Power --method org.cinnamon.SettingsDaemon.Power.Screen.StepDown
# XF86MonBrightnessUp
bindcode 233 exec --no-startup-id gdbus call --session --dest org.cinnamon.SettingsDaemon.Power --object-path /org/cinnamon/SettingsDaemon/Power --method org.cinnamon.SettingsDaemon.Power.Screen.StepUp

It works for me, though without the nice visual feedback you'd have in the Cinnamon default session. Also, I'm using pactl because I haven't found a corresponding DBUS service.

Is there perhaps a possibility to include a variant of this in i3-cinnamon?

I've used the following sources to get this done: