- Map VolumeUp, VolumeDown, and Mute keys to wpctl (PipeWire) or pactl, run asynchronously so the compositor never blocks - Hold a volume key to repeat it; volume keys also work while the screen is off, without waking it - Keep volume keys as the shutter when chandra-camera has focus; Mute still toggles system audio - Add `chandra-ctl volume [up|down|mute|unmute|toggle|PCT|status]` and a transient Volume OSD - Add volume-up, volume-down, and volume-mute entries to the shortcut table
This commit is contained in:
1 parent
ebdd330eb5
commit
68912f6d64
11 files changed
+909
-1
No files matched your search
@@ -383,6 +383,7 @@ pub fn run(args : Array[String]) -> Int {
|
||||
fds.push(pfd)
|
||||
}
|
||||
fds.append(comp.auth_fds()) // polkit asking for a password, and its helper
|
||||
fds.append(comp.volume_fds()) // active audio volume commands
|
||||
fds.append(comp.shell.launch_fds()) // launched apps' monitors reporting an exit
|
||||
ignore(@sys.wait_readable(fds, comp.wake_timeout(idle.timeout())))
|
||||
} else {
|
||||
@@ -404,6 +405,7 @@ pub fn run(args : Array[String]) -> Int {
|
||||
let wait_fds = comp.server.wait_fds()
|
||||
wait_fds.append(comp.control_fds()) // chandra-ctl
|
||||
wait_fds.append(comp.auth_fds()) // polkit asking for a password, and its helper
|
||||
wait_fds.append(comp.volume_fds()) // active audio volume commands
|
||||
wait_fds.append(comp.shell.launch_fds()) // launched apps' monitors reporting an exit
|
||||
match nested {
|
||||
Some(n) => {
|
||||
|
||||
@@ -7,6 +7,9 @@ pub fn run(Array[String]) -> Int32
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
type IdleClock
|
||||
|
||||
type Pacer
|
||||
|
||||
// Type aliases
|
||||
|
||||
|
||||
Reference in new issue
Block a user