Bring up SSD2092 display/touch, USB NCM, HiDPI XLibre/DWM, and USB charging

This commit is contained in:
Luxferre committed 2026-11-22 15:49:38 +02:00
1 parent 034c1f61b1
commit 9db15e30ce
150 files changed
+2356 -446

No files matched your search

+17 -1
View File
@@ -2,6 +2,22 @@
# Geminux application and quick-action launcher using Pango/HarfBuzz dmenu.
set -eu
LOCK_DIR="/tmp/geminux-launcher-${USER:-user}.lock"
if ! mkdir "$LOCK_DIR" 2>/dev/null; then
oldpid="$(cat "$LOCK_DIR/pid" 2>/dev/null || true)"
if [ -n "$oldpid" ] && kill -0 "$oldpid" 2>/dev/null; then
exit 0
fi
rm -rf "$LOCK_DIR"
mkdir "$LOCK_DIR" 2>/dev/null || exit 0
fi
printf '%s\n' "$$" > "$LOCK_DIR/pid"
trap 'rm -rf "$LOCK_DIR"' EXIT INT TERM HUP
if pidof dmenu >/dev/null 2>&1; then
exit 0
fi
LAUNCHER_LIST="
 Terminal|st
 Dialer|geminux-dialer
@@ -31,7 +47,7 @@ build_menu() {
fi
}
choice="$(build_menu | awk '!seen[$0]++' | dmenu -l 12 -i -p 'Geminux:')"
choice="$(build_menu | awk '!seen[$0]++' | dmenu -f -l 9 -i -p 'Geminux:')"
[ -n "$choice" ] || exit 0
pinned_cmd="$(printf '%s\n' "$LAUNCHER_LIST" | awk -F'|' -v sel="$choice" '$1 == sel {print $2; exit}')"
+6 -5
View File
@@ -11,10 +11,11 @@ if [ -r /etc/profile.d/10-geminux-env.sh ]; then
. /etc/profile.d/10-geminux-env.sh
fi
if [ ! -f "$HOME_DIR/.Xresources" ] && [ -f /etc/skel/.Xresources ]; then
cp -f /etc/skel/.Xresources "$HOME_DIR/.Xresources"
fi
if [ ! -d "$HOME_DIR/.xthemes" ] && [ -d /etc/skel/.xthemes ]; then
if [ ! -f "$HOME_DIR/.Xresources" ] || \
grep -qE '^(Xcursor\.size:[[:space:]]*42|dmenu\.font:.*pixelsize=)' "$HOME_DIR/.Xresources" 2>/dev/null; then
[ -f /etc/skel/.Xresources ] && cp -f /etc/skel/.Xresources "$HOME_DIR/.Xresources"
[ -d /etc/skel/.xthemes ] && rm -rf "$HOME_DIR/.xthemes" && cp -a /etc/skel/.xthemes "$HOME_DIR/.xthemes"
elif [ ! -d "$HOME_DIR/.xthemes" ] && [ -d /etc/skel/.xthemes ]; then
cp -a /etc/skel/.xthemes "$HOME_DIR/.xthemes"
fi
@@ -41,7 +42,7 @@ EOF
fi
if command -v setxkbmap >/dev/null 2>&1; then
setxkbmap -rules evdev -model pc105 -layout 'planet_vndr/geminux' -variant us 2>/dev/null || true
setxkbmap -rules evdev -model pc105 -layout 'planet_vndr/geminux' -variant us -option -option 'custom:types' 2>/dev/null || true
fi
if command -v geminux-sync-dunst-theme >/dev/null 2>&1; then
+17 -17
View File
@@ -42,15 +42,15 @@ DANGER="$(get_xres "theme.danger" "#f07178")"
DANGER_BG="$(get_xres "theme.dangerBg" "#4c1d24")"
FONT_FACE="$(get_xres "theme.fontFace" "Fira Code")"
BASE_SIZE="$(get_xres "theme.baseFontSize" "22")"
BASE_SIZE="$(get_xres "theme.baseFontSize" "32")"
case "$BASE_SIZE" in
''|*[!0-9]*) BASE_SIZE=22 ;;
''|*[!0-9]*) BASE_SIZE=32 ;;
esac
PT_SIZE="$(awk -v b="$BASE_SIZE" 'BEGIN {
pt = b * 0.55
if (pt < 9.0) pt = 9.0
if (pt > 16.0) pt = 16.0
printf "%.1f", pt
PX_SIZE="$(awk -v b="$BASE_SIZE" 'BEGIN {
px = int(b + 2)
if (px < 30) px = 30
if (px > 44) px = 44
printf "%dpx", px
}')"
OUT_CONF="${GEMINUX_DUNSTRC:-$HOME_DIR/.config/dunst/dunstrc}"
@@ -61,21 +61,21 @@ cat > "$OUT_CONF.tmp" <<EOF
[global]
monitor = 0
follow = mouse
width = 560
height = (0, 220)
width = 720
height = (0, 360)
origin = top-right
offset = (16, 48)
offset = (20, 88)
notification_limit = 5
progress_bar = true
padding = 12
horizontal_padding = 16
text_icon_padding = 12
frame_width = 2
padding = 18
horizontal_padding = 22
text_icon_padding = 16
frame_width = 3
frame_color = "$ACCENT"
separator_color = "$BORDER"
corner_radius = 6
corner_radius = 8
idle_threshold = 120
font = $FONT_FACE $PT_SIZE
font = $FONT_FACE $PX_SIZE
markup = full
format = "<b>%s</b>\n%b"
alignment = left
@@ -83,7 +83,7 @@ cat > "$OUT_CONF.tmp" <<EOF
show_age_threshold = 60
word_wrap = yes
icon_position = left
max_icon_size = 48
max_icon_size = 64
dmenu = /usr/bin/dmenu -p dunst:
mouse_left_click = do_action, close_current
mouse_middle_click = close_current
@@ -6,11 +6,13 @@ partial hidden alphanumeric_keys modifier_keys
xkb_symbols "modifiers" {
key <LWIN> {
type[Group1] = "GEMINUX_FN",
[ ISO_Level3_Shift, ISO_Level3_Shift, Super_L ]
symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, Super_L ],
actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), SetMods(modifiers=Mod4) ]
};
key <LALT> {
type[Group1] = "GEMINUX_LALT",
[ Alt_L, Meta_L, Super_L ]
symbols[Group1] = [ Alt_L, Meta_L, Super_L ],
actions[Group1] = [ SetMods(modifiers=Alt), SetMods(modifiers=Alt), SetMods(modifiers=Mod4) ]
};
modifier_map Mod1 { Alt_L, Meta_L };
modifier_map Mod4 { Super_L };
@@ -0,0 +1,27 @@
// XKB key types for Gemini PDA physical keyboard (Fn+Alt = Super_L / Mod4)
default partial xkb_types "custom" {
virtual_modifiers LevelThree, Alt;
type "GEMINUX_LALT" {
modifiers = Shift + LevelThree;
map[None] = Level1;
map[Shift] = Level2;
map[LevelThree] = Level3;
map[Shift+LevelThree] = Level3;
level_name[Level1] = "Base";
level_name[Level2] = "Shift";
level_name[Level3] = "Fn+Alt (Mod4)";
};
type "GEMINUX_FN" {
modifiers = Shift + Alt;
map[None] = Level1;
map[Shift] = Level2;
map[Alt] = Level3;
map[Shift+Alt] = Level3;
level_name[Level1] = "Base";
level_name[Level2] = "Shift";
level_name[Level3] = "Alt+Fn (Mod4)";
};
};
@@ -0,0 +1 @@
fleur
+1
View File
@@ -0,0 +1 @@
left_ptr
@@ -0,0 +1 @@
sb_h_double_arrow
+1
View File
@@ -0,0 +1 @@
crosshair
@@ -0,0 +1 @@
left_ptr
@@ -0,0 +1 @@
sb_h_double_arrow
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
fleur
@@ -0,0 +1 @@
fleur
@@ -0,0 +1 @@
sb_h_double_arrow
+1
View File
@@ -0,0 +1 @@
hand2
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
xterm
@@ -0,0 +1 @@
left_ptr
+1
View File
@@ -0,0 +1 @@
fleur
@@ -0,0 +1 @@
bottom_left_corner
@@ -0,0 +1 @@
sb_v_double_arrow
@@ -0,0 +1 @@
bottom_right_corner
@@ -0,0 +1 @@
hand2
@@ -0,0 +1 @@
hand2
@@ -0,0 +1 @@
sb_v_double_arrow
@@ -0,0 +1 @@
bottom_right_corner
@@ -0,0 +1 @@
bottom_right_corner
@@ -0,0 +1 @@
bottom_left_corner
@@ -0,0 +1 @@
crosshair
+1
View File
@@ -0,0 +1 @@
xterm
@@ -0,0 +1 @@
left_ptr
@@ -0,0 +1 @@
bottom_right_corner
@@ -0,0 +1 @@
bottom_left_corner
@@ -0,0 +1 @@
sb_v_double_arrow
+1
View File
@@ -0,0 +1 @@
watch
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
[Icon Theme]
Name=Default
Comment=Geminux HiDPI X11 Cursor Theme