mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-06 07:19:27 -05:00
Update option for plasma integration (#341)
This commit is contained in:
+23
-4
@@ -21,14 +21,14 @@ read -p " " p
|
||||
case $p in "YES")sleep 0;; *)echo "Received \"$p\", aborting...";exit 1;;esac
|
||||
printf '\n'
|
||||
printf 'Do you want to confirm every time before a command executes?\n'
|
||||
printf ' y = Yes, ask me before executing each of them. (RECOMMENDED)\n'
|
||||
printf ' y = Yes, ask me before executing each of them. (DEFAULT)\n'
|
||||
printf ' n = No, just execute them automatically.\n'
|
||||
printf ' a = Abort. (DEFAULT)\n'
|
||||
printf ' a = Abort.\n'
|
||||
read -p "====> " p
|
||||
case $p in
|
||||
y)ask=true;;
|
||||
n)ask=false;;
|
||||
*)exit 1;;
|
||||
a)exit 1;;
|
||||
*)ask=true;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -89,6 +89,25 @@ else
|
||||
v $AUR_HELPER -S --needed --noconfirm ${pkglist[*]}
|
||||
fi
|
||||
|
||||
## Optional dependencies
|
||||
case $SKIP_PLASMAINTG in
|
||||
true) sleep 0;;
|
||||
*)
|
||||
if $ask;then
|
||||
echo -e "\e[33m[$0]: NOTE: The size of \"plasma-browser-integration\" is about 250 MiB.\e[0m"
|
||||
echo -e "\e[33mIt is needed if you want playtime of media in Firefox to be shown on the music controls widget.\e[0m"
|
||||
echo -e "\e[33mInstall it? [y/N]\e[0m"
|
||||
read -p "====> " p
|
||||
else
|
||||
p=y
|
||||
fi
|
||||
case $p in
|
||||
y) x sudo pacman -S --needed --noconfirm plasma-browser-integration ;;
|
||||
*) echo "Ok, not install it."
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
v sudo usermod -aG video,input "$(whoami)"
|
||||
|
||||
#####################################################################################
|
||||
|
||||
+3
-1
@@ -17,6 +17,7 @@ If no option is specified, run default install process.
|
||||
--skip-ags Skip installing ags and its config
|
||||
--skip-hyprland Skip installing the config for Hyprland
|
||||
--skip-fish Skip installing the config for Fish
|
||||
--skip-plasmaintg Skip installing plasma-browser-integration
|
||||
--skip-miscconf Skip copying the dirs and files to \".configs\" except for AGS, Fish and Hyprland
|
||||
--deplistfile <path> Specify a dependency list file. By default \"./scriptdata/dependencies.conf\"
|
||||
--fontset <set> (Unavailable yet) Use a set of pre-defined font and config
|
||||
@@ -30,7 +31,7 @@ cleancache(){
|
||||
# `man getopt` to see more
|
||||
para=$(getopt \
|
||||
-o hfk:cs \
|
||||
-l help,force,fontset:,deplistfile:,clean,skip-sysupdate,skip-ags,skip-fish,skip-hyprland,skip-miscconf \
|
||||
-l help,force,fontset:,deplistfile:,clean,skip-sysupdate,skip-ags,skip-fish,skip-hyprland,skip-plasmaintg,skip-miscconf \
|
||||
-n "$0" -- "$@")
|
||||
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
|
||||
#####################################################################################
|
||||
@@ -61,6 +62,7 @@ while true ; do
|
||||
--skip-hyprland) SKIP_HYPRLAND=true;shift;;
|
||||
--skip-fish) SKIP_FISH=true;shift;;
|
||||
--skip-miscconf) SKIP_MISCCONF=true;shift;;
|
||||
--skip-plasmaintg) SKIP_PLASMAINTG=true;shift;;
|
||||
## Ones with parameter
|
||||
|
||||
--deplistfile)
|
||||
|
||||
Reference in New Issue
Block a user