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