Skip to content
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/omakub-sub/manual.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

xdg-open "https://manual.omakub.org" &>/dev/null
xdg-open "https://learn.omacom.io/1/read" &>/dev/null
source $OMAKUB_PATH/bin/omakub-sub/menu.sh
10 changes: 5 additions & 5 deletions install/desktop/optional/app-asdcontrol.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# Install asdcontrol
git clone https://github.com/nikosdion/asdcontrol.git /tmp/asdcontrol
cd /tmp/asdcontrol
make
sudo make install
cd /tmp
ASDCONTROL_VERSION=$(curl -s https://api.github.com/repos/omakasui/asdcontrol/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
wget -O asdcontrol.deb "https://github.com/omakasui/asdcontrol/releases/latest/download/asdcontrol_${ASDCONTROL_VERSION}_amd64.deb"
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
sudo apt install -y ./asdcontrol.deb
rm asdcontrol.deb
Comment thread
Kasui92 marked this conversation as resolved.
cd -
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
rm -rf /tmp/asdcontrol

# Setup sudo-less controls
echo 'KERNEL=="hiddev*", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="9243", GROUP="users", OWNER="root", MODE="0660"' | sudo tee /etc/udev/rules.d/50-apple-xdr.rules >/dev/null
Expand Down
12 changes: 11 additions & 1 deletion install/desktop/set-gnome-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ gext install AlphabeticalAppGrid@stuarthayhurst
sudo cp ~/.local/share/gnome-shell/extensions/tactile@lundal.io/schemas/org.gnome.shell.extensions.tactile.gschema.xml /usr/share/glib-2.0/schemas/
sudo cp ~/.local/share/gnome-shell/extensions/just-perfection-desktop\@just-perfection/schemas/org.gnome.shell.extensions.just-perfection.gschema.xml /usr/share/glib-2.0/schemas/
sudo cp ~/.local/share/gnome-shell/extensions/blur-my-shell\@aunetx/schemas/org.gnome.shell.extensions.blur-my-shell.gschema.xml /usr/share/glib-2.0/schemas/
sudo cp ~/.local/share/gnome-shell/extensions/space-bar\@luchrioh/schemas/org.gnome.shell.extensions.space-bar.gschema.xml /usr/share/glib-2.0/schemas/
if [ -f ~/.local/share/gnome-shell/extensions/space-bar\@luchrioh/schemas/org.gnome.shell.extensions.space-bar.gschema.xml ]; then
sudo cp ~/.local/share/gnome-shell/extensions/space-bar\@luchrioh/schemas/org.gnome.shell.extensions.space-bar.gschema.xml /usr/share/glib-2.0/schemas/
else
space_bar_schema_glob=~/.local/share/gnome-shell/extensions/space-bar\@luchrioh/schemas/org.gnome.shell.extensions.space-bar.*.gschema.xml
if ls $space_bar_schema_glob >/dev/null 2>&1; then
sudo cp $space_bar_schema_glob /usr/share/glib-2.0/schemas/
else
echo "Error: No Space Bar schema files were found under ~/.local/share/gnome-shell/extensions/space-bar@luchrioh/schemas/" >&2
exit 1
fi
fi
sudo cp ~/.local/share/gnome-shell/extensions/tophat@fflewddur.github.io/schemas/org.gnome.shell.extensions.tophat.gschema.xml /usr/share/glib-2.0/schemas/
sudo cp ~/.local/share/gnome-shell/extensions/AlphabeticalAppGrid\@stuarthayhurst/schemas/org.gnome.shell.extensions.AlphabeticalAppGrid.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
Expand Down
66 changes: 51 additions & 15 deletions install/terminal/select-dev-language.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,74 @@ else
languages=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --height 10 --header "Select programming languages")
fi

install_php() {
echo -e "Installing PHP...\n"
sudo apt-get -y install php composer --no-install-recommends

# Install commonly used PHP extensions if available
local extensions_to_install=(
Comment thread
Kasui92 marked this conversation as resolved.
curl
apcu
intl
mbstring
Comment thread
Kasui92 marked this conversation as resolved.
opcache
pgsql
mysql
sqlite3
redis
xml
Comment thread
Kasui92 marked this conversation as resolved.
zip
)

for extension in "${extensions_to_install[@]}"; do
if apt-cache show "php-$extension" &>/dev/null; then
sudo apt-get install -y "php-$extension" --no-install-recommends
fi
Comment thread
Kasui92 marked this conversation as resolved.
done
Comment thread
Kasui92 marked this conversation as resolved.
}
Comment thread
Kasui92 marked this conversation as resolved.

if [[ -n "$languages" ]]; then
for language in $languages; do
mapfile -t selected_languages <<< "$languages"
for language in "${selected_languages[@]}"; do
Comment thread
Kasui92 marked this conversation as resolved.
case $language in
Comment thread
Kasui92 marked this conversation as resolved.
Ruby)
mise use --global ruby@latest
"Ruby on Rails")
echo -e "Installing Ruby on Rails...\n"
Comment thread
Kasui92 marked this conversation as resolved.
mise settings add ruby.compile false
mise settings add idiomatic_version_file_enable_tools ruby
mise use --global ruby@latest
Comment thread
Kasui92 marked this conversation as resolved.
echo "gem: --no-document" >~/.gemrc
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
mise x ruby -- gem install rails --no-document
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
echo -e "\nYou can now run: rails new myproject"
;;
Comment thread
Kasui92 marked this conversation as resolved.
Node.js)
mise use --global node@lts
"Node.js")
echo -e "Installing Node.js...\n"
mise use --global node
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
;;
Go)
"Go")
echo -e "Installing Go...\n"
mise use --global go@latest
;;
PHP)
sudo apt -y install php php-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip} --no-install-recommends
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --quiet && sudo mv composer.phar /usr/local/bin/composer
rm composer-setup.php
"PHP")
install_php
;;
Python)
"Python")
echo -e "Installing Python...\n"
mise use --global python@latest
echo -e "\nInstalling uv...\n"
mise use --global uv@latest
;;
Comment thread
Kasui92 marked this conversation as resolved.
Elixir)
"Elixir")
echo -e "Installing Elixir...\n"
mise use --global erlang@latest
mise use --global elixir@latest
mise x elixir -- mix local.hex --force
;;
Rust)
"Rust")
echo -e "Installing Rust...\n"
bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y
;;
Java)
"Java")
echo -e "Installing Java...\n"
mise use --global java@latest
;;
esac
Expand Down
65 changes: 43 additions & 22 deletions uninstall/dev-language.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,57 @@ else
languages=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --height 10 --header "Select programming languages to uninstall")
fi

if [[ -n $languages ]]; then
for language in $languages; do
if [[ -n "$languages" ]]; then
mapfile -t selected_languages <<< "$languages"
for language in "${selected_languages[@]}"; do
case $language in
Ruby)
mise uninstall ruby@3.4
mise x ruby -- gem uninstall rails
"Ruby on Rails")
echo -e "Removing Ruby on Rails...\n"
mise uninstall ruby --all
mise rm -g ruby
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
rm -f ~/.gemrc
Comment thread
Kasui92 marked this conversation as resolved.
;;
Node.js)
mise uninstall node@lts
"Node.js")
echo -e "Removing Node.js...\n"
mise uninstall node --all
mise rm -g node
;;
Go)
mise uninstall go@latest
"Go")
echo -e "Removing Go...\n"
mise uninstall go --all
mise rm -g go
;;
PHP)
sudo apt -y purge php php-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip}
sudo apt -y autoremove
sudo rm /usr/local/bin/composer
"PHP")
echo -e "Removing PHP...\n"
Comment thread
Kasui92 marked this conversation as resolved.
mapfile -t php_packages < <(dpkg-query -W -f='${binary:Package}\n' 'php-*' 2>/dev/null || true)
if ((${#php_packages[@]})); then
sudo apt-get remove -y php "${php_packages[@]}" composer
else
sudo apt-get remove -y php composer
fi
Comment thread
Kasui92 marked this conversation as resolved.
sudo apt-get autoremove -y
;;
Python)
mise uninstall python@latest
"Python")
echo -e "Removing Python...\n"
mise uninstall python --all
mise rm -g python
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
Comment thread
Kasui92 marked this conversation as resolved.
rm -rf ~/.local/bin/uv ~/.local/bin/uvx ~/.cargo/bin/uv 2>/dev/null || true
;;
Elixir)
mise uninstall elixir@latest
mise uninstall erlang@latest
"Elixir")
echo -e "Removing Elixir...\n"
mise uninstall elixir --all
mise uninstall erlang --all
mise rm -g elixir
mise rm -g erlang
;;
Rust)
rustup self uninstall -y
"Rust")
echo -e "Removing Rust...\n"
rustup self uninstall -y 2>/dev/null || true
;;
Java)
mise uninstall java@latest
"Java")
echo -e "Removing Java...\n"
mise uninstall java --all
mise rm -g java
;;
esac
done
Expand Down
Loading