Fennec OS 0.3.2: one app at a time, Raspberry Pi shell packages
- sf-core: only one app runs. Home, another app or a cast closes the app
on screen (after the switch animation) instead of freezing it in the
background. A frozen app that held a sound stream stalled PipeWire, so
the next app could not play at all ("Failed to connect stream: No such
entity" in Netflex after YouTube was sent home mid-video). The
background limit and the low-memory watcher go with the freezing.
- Raspberry Pi: image/pi (installer on Raspberry Pi OS), aarch64 shell
packages (sf-shell-<v>-aarch64, arch in pkg.toml, sf-update installs only
its own architecture), CI builds the aarch64 shell too.
- sf-compositor: volume OSD, screencopy for remote view, blank cursor.
- SDK v0.1.2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
36
image/mkosi.extra/usr/lib/smartfox/blank-cursor.py
Normal file
36
image/mkosi.extra/usr/lib/smartfox/blank-cursor.py
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python3
|
||||
# Invisible mouse cursor: the TV only has a keyboard and the remote. Every
|
||||
# cursor name is a 1x1 transparent image; the compositor, the launcher and
|
||||
# Chromium all load cursors from this theme (XCURSOR_THEME in sf-session, and
|
||||
# "default"). Run as root by mkosi.postinst.chroot and image/pi/install.sh.
|
||||
import os, struct
|
||||
|
||||
d = "/usr/share/icons/smartfox-blank/cursors"
|
||||
os.makedirs(d, exist_ok=True)
|
||||
img = struct.pack("<9I", 36, 0xFFFD0002, 24, 1, 1, 1, 0, 0, 0) + struct.pack("<I", 0)
|
||||
data = b"Xcur" + struct.pack("<3I", 16, 0x10000, 1) + struct.pack("<3I", 0xFFFD0002, 24, 28) + img
|
||||
with open(f"{d}/default", "wb") as f:
|
||||
f.write(data)
|
||||
names = """
|
||||
left_ptr arrow top_left_arrow right_ptr pointer hand hand1 hand2 pointing_hand
|
||||
text xterm ibeam vertical-text wait watch progress left_ptr_watch half-busy
|
||||
crosshair cross tcross cell move fleur all-scroll grab grabbing openhand
|
||||
closedhand dnd-move dnd-copy dnd-link dnd-none dnd-ask copy alias no-drop
|
||||
not-allowed forbidden crossed_circle circle help question_arrow whats_this
|
||||
context-menu zoom-in zoom-out col-resize row-resize sb_h_double_arrow
|
||||
sb_v_double_arrow h_double_arrow v_double_arrow ew-resize ns-resize
|
||||
nesw-resize nwse-resize e-resize w-resize n-resize s-resize ne-resize
|
||||
nw-resize se-resize sw-resize right_side left_side top_side bottom_side
|
||||
top_right_corner top_left_corner bottom_right_corner bottom_left_corner
|
||||
size_hor size_ver size_bdiag size_fdiag split_h split_v sb_left_arrow
|
||||
sb_right_arrow sb_up_arrow sb_down_arrow center_ptr pencil draft X_cursor
|
||||
""".split()
|
||||
for n in names:
|
||||
p = f"{d}/{n}"
|
||||
if not os.path.lexists(p):
|
||||
os.symlink("default", p)
|
||||
with open("/usr/share/icons/smartfox-blank/index.theme", "w") as f:
|
||||
f.write("[Icon Theme]\nName=smartfox-blank\nComment=Invisible cursor\n")
|
||||
os.makedirs("/usr/share/icons/default", exist_ok=True)
|
||||
with open("/usr/share/icons/default/index.theme", "w") as f:
|
||||
f.write("[Icon Theme]\nInherits=smartfox-blank\n")
|
||||
Reference in New Issue
Block a user