- Opens for text-input-v3 fields, terminals, launcher search, Network password, emoji picker and the password dialog; a KB pill summons it manually. - Enabled on CHASSIS=handset; CHANDRA_OSK=1|0 overrides, and it stays off under CHANDRA_TEST_CONFIG. - Work area and panel popups shrink above the keyboard so focused content stays visible. - Keys send evdev codes with Shift, Ctrl and Alt modifiers. - chandra-ctl: `screenshot [PATH]` saves a PNG without opening the editor. - Key names cover the full punctuation set and shifted symbols. - Launcher plasmoid min width drops from 60 to 36.
This commit is contained in:
1 parent
1205329abd
commit
905dab8725
21 files changed
+1335
-68
No files matched your search
@@ -212,6 +212,7 @@ pub fn ChandraCompositor::control_command(self : ChandraCompositor, line : Strin
|
||||
"kiosk [lock|unlock|status] kiosk mode (--kiosk): lock it down or unlock it for admin work",
|
||||
"launch ID start desktop app ID (e.g. org.kde.kwi) as the dock does; a failed start shows its notice",
|
||||
"windows each window: frame, layout, box, shadow, size limits; and what is under the pointer",
|
||||
"screenshot [PATH] save a full-screen PNG directly (without opening the editor)",
|
||||
"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",
|
||||
@@ -329,6 +330,35 @@ pub fn ChandraCompositor::control_command(self : ChandraCompositor, line : Strin
|
||||
out.push("ok " + self.windows.length().to_string() + " windows")
|
||||
(out, true)
|
||||
}
|
||||
"screenshot" => {
|
||||
if words.length() > 2 {
|
||||
return (["error usage: screenshot [PATH]"], false)
|
||||
}
|
||||
match self.capture_png() {
|
||||
None => (["error could not capture screen"], false)
|
||||
Some(png) =>
|
||||
if words.length() == 2 {
|
||||
let path = words[1]
|
||||
if @sys.write_file_bytes(path, png) == 0 {
|
||||
(["ok " + path], true)
|
||||
} else {
|
||||
(["error could not write " + path], false)
|
||||
}
|
||||
} else {
|
||||
let dir = if self.shot_dir.length() > 0 {
|
||||
self.shot_dir
|
||||
} else {
|
||||
pictures_dir() + "/Screenshots"
|
||||
}
|
||||
let path = save_png(dir, png)
|
||||
if path != "" {
|
||||
(["ok " + path], true)
|
||||
} else {
|
||||
(["error could not save screenshot in " + dir], false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
other => (["error unknown command '" + other + "' (try: help)"], false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user