chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit 30d7d8b2a25c67ed636a2bfe11882d5ff192dc7b
parent 70d7760a5abd0fc395368675fa3a48e9c5d17639
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sun, 25 Oct 2026 23:14:25 -0400

lighter: blueman's tray icon only on computers with bluetooth, 58 MB less on the rest

Diffstat:
Aoverlay/etc/skel/.config/autostart/blueman.desktop | 4++++
Aoverlay/etc/xdg/autostart/chamesle-bluetooth.desktop | 8++++++++
Aoverlay/usr/lib/chamesle/if-bluetooth | 6++++++
3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/overlay/etc/skel/.config/autostart/blueman.desktop b/overlay/etc/skel/.config/autostart/blueman.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Blueman Applet +Hidden=true diff --git a/overlay/etc/xdg/autostart/chamesle-bluetooth.desktop b/overlay/etc/xdg/autostart/chamesle-bluetooth.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Bluetooth +Comment=The bluetooth icon, on computers that have bluetooth +Icon=blueman +Exec=/usr/lib/chamesle/if-bluetooth blueman-applet +TryExec=blueman-applet +NoDisplay=true diff --git a/overlay/usr/lib/chamesle/if-bluetooth b/overlay/usr/lib/chamesle/if-bluetooth @@ -0,0 +1,6 @@ +#!/bin/sh +# runs a program only on computers with bluetooth: blueman's tray icon is 60 MB for nothing without it +for a in /sys/class/bluetooth/hci*; do + [ -e "$a" ] && exec "$@" +done +exit 0