From ae4849ce0eda4a99d5f9dcfb2d96609ff1450e67 Mon Sep 17 00:00:00 2001 From: RaptaG Date: Wed, 27 Mar 2024 14:21:05 +0200 Subject: [PATCH 1/3] Feat: Add Bluetooth driver & Blueman support Signed-off-by: RaptaG --- cbpp-welcome/data/usr/lib/lib-cbpp-welcome/install-bluetooth | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cbpp-welcome/data/usr/lib/lib-cbpp-welcome/install-bluetooth diff --git a/cbpp-welcome/data/usr/lib/lib-cbpp-welcome/install-bluetooth b/cbpp-welcome/data/usr/lib/lib-cbpp-welcome/install-bluetooth new file mode 100644 index 0000000..783fb98 --- /dev/null +++ b/cbpp-welcome/data/usr/lib/lib-cbpp-welcome/install-bluetooth @@ -0,0 +1,3 @@ +installPage $"Bluetooth Support" \ + $"By default, CrunchBangPlusPlus does not come with Bluetooth support. Would you like to install the Bluetooth drivers and their user interface now?" \ + 'blueman' From e82306a5fe8bdb4ed6d86d26e687c8ce916197ca Mon Sep 17 00:00:00 2001 From: RaptaG Date: Wed, 27 Mar 2024 14:48:03 +0200 Subject: [PATCH 2/3] Autostart the blueman applet on login if bluetooth is selected to be installed Signed-off-by: RaptaG --- cbpp-welcome/data/usr/bin/cbpp-welcome | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cbpp-welcome/data/usr/bin/cbpp-welcome b/cbpp-welcome/data/usr/bin/cbpp-welcome index 17d3b9b..de51ff3 100755 --- a/cbpp-welcome/data/usr/bin/cbpp-welcome +++ b/cbpp-welcome/data/usr/bin/cbpp-welcome @@ -2,7 +2,6 @@ # Post installation script TEXTDOMAIN=cbpp-welcome - CB_WELCOME_LIBDIR='/usr/lib/lib-cbpp-welcome' STEPS_BASIC=('apt-update' 'apt-dist-upgrade' 'install-printer-packages' 'install-java-packages' 'install-libreoffice' 'devel') STEPS_DEVEL=('devel-install-version-control-tools' 'devel-install-ssh-server' 'devel-install-lamp-stack' 'devel-install-packaging-tools') @@ -55,8 +54,15 @@ installPage() { if setupPage "$title" "$text" "$prompt"; then sudo apt-get install -y "${@:3}" + + if ["${a:3}" = "blueman"]; then + # Autostart the Blueman systray applet + printf "%s\n" "# Start blueman-applet for systray" "blueman-applet &" >> $HOME/.config/openbox/autostart + fi + return 0 fi + return 1 } From f4de5b30c22b69eb4980418a64967062c03a481e Mon Sep 17 00:00:00 2001 From: RaptaG Date: Wed, 27 Mar 2024 14:51:22 +0200 Subject: [PATCH 3/3] Add install-bluetooth to the STEPS_BASIC list Signed-off-by: RaptaG --- cbpp-welcome/data/usr/bin/cbpp-welcome | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbpp-welcome/data/usr/bin/cbpp-welcome b/cbpp-welcome/data/usr/bin/cbpp-welcome index de51ff3..19235ca 100755 --- a/cbpp-welcome/data/usr/bin/cbpp-welcome +++ b/cbpp-welcome/data/usr/bin/cbpp-welcome @@ -3,7 +3,7 @@ TEXTDOMAIN=cbpp-welcome CB_WELCOME_LIBDIR='/usr/lib/lib-cbpp-welcome' -STEPS_BASIC=('apt-update' 'apt-dist-upgrade' 'install-printer-packages' 'install-java-packages' 'install-libreoffice' 'devel') +STEPS_BASIC=('apt-update' 'apt-dist-upgrade' 'install-bluetooth' 'install-printer-packages' 'install-java-packages' 'install-libreoffice' 'devel') STEPS_DEVEL=('devel-install-version-control-tools' 'devel-install-ssh-server' 'devel-install-lamp-stack' 'devel-install-packaging-tools') createFlag() {