Add a camera app: photo and video on libcamera or V4L2
CI / test (push) Failing after 52s

- Discover libcamera cameras, falling back to V4L2; label them Back, Front or External and pick the rear sensor first
- Photo mode: JPEG saves to ~/Pictures/Camera, with an optional high-res still capture
- Video mode: H.264 MP4 recording through ffmpeg, saved to ~/Videos/Camera
- Rear torch LED toggle via sysfs, falling back to logind SetBrightness
- GTK3 + Cairo Wayland UI with a viewfinder, timer, grid, camera switch and gallery view
- Add the desktop entry, icon and camera tests
This commit is contained in:
nandi committed 2026-11-28 12:22:36 -08:00
1 parent 74235cb0ca
commit 1c954aa657
10 files changed
+3479 -8

No files matched your search

+27
View File
@@ -216,6 +216,7 @@ pub fn ChandraCompositor::control_command(self : ChandraCompositor, line : Strin
"rotate [cw|ccw|flip|0|90|180|270|status] rotate or flip the display",
"screen [on|off|toggle|status] blank or wake the display",
"brightness [PCT|status] read or set display backlight percent (5..100)",
"settings [TAB] open Settings popup (session, desktop, panel, power, shortcuts, apps)",
"auth-demo [MODE] show the password dialog with a pretend check (password \"demo\"); MODE: " +
@polkit.demo_modes.join(", "),
"auth-status the password dialog's agent: running, registered, or why not",
@@ -458,6 +459,32 @@ pub fn ChandraCompositor::control_command(self : ChandraCompositor, line : Strin
}
}
}
"settings" => {
let arg = if words.length() >= 2 { words[1] } else { "session" }
if words.length() > 2 {
return (["error usage: settings [session|desktop|panel|power|shortcuts|apps]"], false)
}
let tab : @shell.SettingsTab? = match arg {
"session" => Some(Session)
"desktop" => Some(Desktop)
"panel" => Some(Panel)
"power" => Some(Power)
"shortcuts" => Some(Shortcuts)
"apps" => Some(Apps)
_ => None
}
match tab {
None => (["error usage: settings [session|desktop|panel|power|shortcuts|apps]"], false)
Some(t) =>
if self.shell.open_settings(t) {
self.frame_changed = true
self.damage.mark_full()
(["ok " + arg], true)
} else {
(["error settings module not loaded"], false)
}
}
}
other => (["error unknown command '" + other + "' (try: help)"], false)
}
}