Skip to content

Commit f51fe02

Browse files
Add more apps to Installation Options script
1 parent 8999781 commit f51fe02

File tree

6 files changed

+50
-2
lines changed

6 files changed

+50
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Version 2.9.6.6
22
--------------------------------------------------------
33
- Compatible with Hyprland 0.45.0. Replaced legacy variables for drop shadows with new ones in hypr/conf/decorations
4+
- Zen Browser added to Installation Options browsers
5+
- Suggested additional default apps added to section others in Installation Options script
46

57
Version 2.9.6.5
68
--------------------------------------------------------

lib/options/options.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ _selectCategory() {
8080
echo "- System monitor:" $(_checkCurrent system-monitor.sh)
8181
echo
8282
if [[ ! $(_isInstalledAUR "xdg-desktop-portal-gtk") == 0 ]]; then
83-
category=$(gum choose "xdg-desktop-portal-gtk" "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "REBOOT" "CANCEL")
83+
category=$(gum choose "xdg-desktop-portal-gtk" "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "other" "REBOOT" "CANCEL")
8484
else
85-
category=$(gum choose "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "REBOOT" "CANCEL")
85+
category=$(gum choose "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "other" "REBOOT" "CANCEL")
8686
fi
8787
case ${category} in
8888
xdg-desktop-portal-gtk)
@@ -100,6 +100,9 @@ _selectCategory() {
100100
browser)
101101
source $options_directory/options/browser.sh
102102
;;
103+
other)
104+
source $options_directory/options/other.sh
105+
;;
103106
shell)
104107
source $options_directory/options/shell.sh
105108
;;

lib/options/options/browser.sh

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ else
2121
fi
2222
if [ $optionalSelect == "brave-bin" ]; then
2323
echo 'brave' > "$HOME/.config/ml4w/settings/browser.sh"
24+
elif [ $optionalSelect == "zen-browser-bin" ]; then
25+
echo 'zen-browser' > "$HOME/.config/ml4w/settings/browser.sh"
2426
else
2527
echo "$optionalSelect" > "$HOME/.config/ml4w/settings/browser.sh"
2628
fi

lib/options/options/other.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
clear
3+
echo -e "${GREEN}"
4+
figlet -f smslant "Other"
5+
echo -e "${NONE}"
6+
source $packages_directory/options/other.sh
7+
toInstall=""
8+
selectedInstall=""
9+
10+
_checkPackages
11+
12+
optionalSelect=$(gum choose $toInstall "CANCEL")
13+
if [ -z "$optionalSelect" ] ;then
14+
_selectCategory
15+
elif [ $optionalSelect == "CANCEL" ]; then
16+
_selectCategory
17+
else
18+
if [[ ! $(_isInstalledAUR "$optionalSelect") == 0 ]]; then
19+
$aur_helper -S $optionalSelect
20+
fi
21+
if [ $optionalSelect == "pinta" ]; then
22+
echo 'pinta' > "$HOME/.config/ml4w/settings/screenshot-editor.sh"
23+
fi
24+
if [ $optionalSelect == "smile" ]; then
25+
echo 'pinta' > "$HOME/.config/ml4w/emojipicker.sh"
26+
fi
27+
if [ $optionalSelect == "gnome-text-editor" ]; then
28+
echo 'gnome-text-editor' > "$HOME/.config/ml4w/editor.sh"
29+
fi
30+
if [ $optionalSelect == "gnome-calculator" ]; then
31+
echo 'gnome-calculator' > "$HOME/.config/ml4w/calculator.sh"
32+
fi
33+
_selectCategory
34+
fi

share/packages/options/browser.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ optdepends=(
22
"firefox"
33
"chromium"
44
"brave-bin"
5+
"zen-browser-bin"
56
);

share/packages/options/other.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
optdepends=(
2+
"pinta"
3+
"smile"
4+
"gnome-text-editor"
5+
"gnome-calculator"
6+
);

0 commit comments

Comments
 (0)