Skip to content

Commit

Permalink
Add more apps to Installation Options script
Browse files Browse the repository at this point in the history
  • Loading branch information
mylinuxforwork committed Nov 11, 2024
1 parent 8999781 commit f51fe02
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Version 2.9.6.6
--------------------------------------------------------
- Compatible with Hyprland 0.45.0. Replaced legacy variables for drop shadows with new ones in hypr/conf/decorations
- Zen Browser added to Installation Options browsers
- Suggested additional default apps added to section others in Installation Options script

Version 2.9.6.5
--------------------------------------------------------
Expand Down
7 changes: 5 additions & 2 deletions lib/options/options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ _selectCategory() {
echo "- System monitor:" $(_checkCurrent system-monitor.sh)
echo
if [[ ! $(_isInstalledAUR "xdg-desktop-portal-gtk") == 0 ]]; then
category=$(gum choose "xdg-desktop-portal-gtk" "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "REBOOT" "CANCEL")
category=$(gum choose "xdg-desktop-portal-gtk" "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "other" "REBOOT" "CANCEL")
else
category=$(gum choose "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "REBOOT" "CANCEL")
category=$(gum choose "sddm toggle" "sddm theme" "shell" "terminal" "file manager" "browser" "pywalfox" "system monitor" "other" "REBOOT" "CANCEL")
fi
case ${category} in
xdg-desktop-portal-gtk)
Expand All @@ -100,6 +100,9 @@ _selectCategory() {
browser)
source $options_directory/options/browser.sh
;;
other)
source $options_directory/options/other.sh
;;
shell)
source $options_directory/options/shell.sh
;;
Expand Down
2 changes: 2 additions & 0 deletions lib/options/options/browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ else
fi
if [ $optionalSelect == "brave-bin" ]; then
echo 'brave' > "$HOME/.config/ml4w/settings/browser.sh"
elif [ $optionalSelect == "zen-browser-bin" ]; then
echo 'zen-browser' > "$HOME/.config/ml4w/settings/browser.sh"
else
echo "$optionalSelect" > "$HOME/.config/ml4w/settings/browser.sh"
fi
Expand Down
34 changes: 34 additions & 0 deletions lib/options/options/other.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
clear
echo -e "${GREEN}"
figlet -f smslant "Other"
echo -e "${NONE}"
source $packages_directory/options/other.sh
toInstall=""
selectedInstall=""

_checkPackages

optionalSelect=$(gum choose $toInstall "CANCEL")
if [ -z "$optionalSelect" ] ;then
_selectCategory
elif [ $optionalSelect == "CANCEL" ]; then
_selectCategory
else
if [[ ! $(_isInstalledAUR "$optionalSelect") == 0 ]]; then
$aur_helper -S $optionalSelect
fi
if [ $optionalSelect == "pinta" ]; then
echo 'pinta' > "$HOME/.config/ml4w/settings/screenshot-editor.sh"
fi
if [ $optionalSelect == "smile" ]; then
echo 'pinta' > "$HOME/.config/ml4w/emojipicker.sh"
fi
if [ $optionalSelect == "gnome-text-editor" ]; then
echo 'gnome-text-editor' > "$HOME/.config/ml4w/editor.sh"
fi
if [ $optionalSelect == "gnome-calculator" ]; then
echo 'gnome-calculator' > "$HOME/.config/ml4w/calculator.sh"
fi
_selectCategory
fi
1 change: 1 addition & 0 deletions share/packages/options/browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ optdepends=(
"firefox"
"chromium"
"brave-bin"
"zen-browser-bin"
);
6 changes: 6 additions & 0 deletions share/packages/options/other.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
optdepends=(
"pinta"
"smile"
"gnome-text-editor"
"gnome-calculator"
);

0 comments on commit f51fe02

Please sign in to comment.