You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
899 B
65 lines
899 B
#!/bin/bash
|
|
|
|
version="5.2"
|
|
|
|
fontSize=0
|
|
|
|
dmenu_set_font_size()
|
|
{
|
|
color_start "themeUserINput"
|
|
read -p "What siez fint would you like (6 to 34): " fontSize
|
|
color_stop
|
|
sed -i -e "s/size=../size=$fontSize/g" config.h
|
|
}
|
|
|
|
intro()
|
|
{
|
|
cd $MAIN_DIR/programs/dmenu/dmenu_$version/
|
|
color_start "themeInstall"
|
|
echo ""
|
|
echo "Dmenu verison : $version Will be installed"
|
|
color_stop
|
|
color_start "themeIndication"
|
|
echo "Currently used mods are :"
|
|
ls | grep -oP '.*diff'
|
|
color_stop
|
|
}
|
|
|
|
outro()
|
|
{
|
|
color_start "themeInstall"
|
|
echo "Dmenu installation complete"
|
|
echo ""
|
|
color_stop
|
|
cd $MAIN_DIR
|
|
}
|
|
|
|
install_dmenu()
|
|
{
|
|
intro
|
|
|
|
case $OS in
|
|
debian)
|
|
dmenu_set_font_size
|
|
sudo make install
|
|
;;
|
|
|
|
arch)
|
|
dmenu_set_font_size
|
|
sudo make install
|
|
;;
|
|
|
|
rasberry)
|
|
dmenu_set_font_size
|
|
sudo make install
|
|
;;
|
|
|
|
*)
|
|
echo -n "Invalid os is selectred ofr Dmenu"
|
|
exit_abord
|
|
;;
|
|
esac
|
|
|
|
outro
|
|
}
|