forked from basecamp/omakub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fresh-docker
- Loading branch information
Showing
24 changed files
with
103 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,44 @@ | ||
# Pick a preconfigured theme | ||
FONT=$(gum choose "Cascadia Mono" "Fira Mono" "JetBrains Mono" "Meslo" --header "Choose your programming font:" --height 6 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g') | ||
set_font() { | ||
local font_name=$1 | ||
local url=$2 | ||
local file_type=$3 | ||
local file_name="${font_name/ Nerd Font/}" | ||
|
||
[ ! -n "$FONT" ] && exit 0 | ||
if ! $(fc-list | grep -i "$font_name" > /dev/null); then | ||
cd /tmp | ||
wget -O "$file_name.zip" "$url" | ||
unzip "$file_name.zip" -d "$file_name" | ||
cp "$file_name"/*."$file_type" ~/.local/share/fonts | ||
rm -rf "$file_name.zip" "$file_name" | ||
fc-cache | ||
cd - | ||
fi | ||
|
||
if [ "$FONT" == "cascadia-mono" ]; then | ||
NERD_FONT="CaskaydiaMono Nerd Font" | ||
elif [ "$FONT" == "fira-mono" ]; then | ||
NERD_FONT="FiraMono Nerd Font" | ||
elif [ "$FONT" == "jetbrains-mono" ]; then | ||
NERD_FONT="JetBrainsMono NFM" | ||
elif [ "$FONT" == "meslo" ]; then | ||
NERD_FONT="MesloLGLDZ Nerd Font" | ||
gsettings set org.gnome.desktop.interface monospace-font-name "$font_name 10" | ||
cp "$OMAKUB_PATH/fonts/alacritty/$file_name.toml" ~/.config/alacritty/font.toml | ||
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$font_name\"/g" ~/.config/Code/User/settings.json | ||
} | ||
|
||
if [ "$#" -gt 0 ]; then | ||
choice=${!#} | ||
else | ||
choice=$(gum choose "Cascadia Mono" "Fira Mono" "JetBrains Mono" "Meslo" --height 6) | ||
fi | ||
|
||
gsettings set org.gnome.desktop.interface monospace-font-name "$NERD_FONT 10" | ||
cp $OMAKUB_PATH/fonts/alacritty/$FONT.toml ~/.config/alacritty/font.toml | ||
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$NERD_FONT\"/g" ~/.config/Code/User/settings.json | ||
case $choice in | ||
"Cascadia Mono") | ||
set_font "CaskaydiaMono Nerd Font" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaMono.zip" "ttf" | ||
;; | ||
"Fira Mono") | ||
set_font "FiraMono Nerd Font" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FiraMono.zip" "otf" | ||
;; | ||
"JetBrains Mono") | ||
set_font "JetBrainsMono Nerd Font" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip" "ttf" | ||
;; | ||
"Meslo") | ||
set_font "MesloLGS Nerd Font" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Meslo.zip" "Meslo" "ttf" | ||
;; | ||
* ) | ||
exit 0 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
theme "tokyo-night" | ||
default_layout "compact" | ||
on_force_close "quit" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch | ||
sudo apt update | ||
sudo apt install -y fastfetch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,3 @@ wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | sudo tee /etc/apt/ | |
echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main" | sudo tee /etc/apt/sources.list.d/mise.list | ||
sudo apt update | ||
sudo apt install -y mise | ||
|
||
# Install default languages | ||
mise use --global [email protected] | ||
mise use --global node@lts | ||
mise use --global go@latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Install default programming languages | ||
languages=$(gum choose "Ruby" "Node.js" "Go" "Python" "Java" --no-limit --selected "Ruby","Node.js" --height 7 --header "Select programming languages") | ||
|
||
for language in $languages; do | ||
case $language in | ||
Ruby) | ||
mise use --global [email protected] | ||
;; | ||
Node.js) | ||
mise use --global node@lts | ||
;; | ||
Go) | ||
mise use --global go@latest | ||
;; | ||
Java) | ||
mise use --global java@latest | ||
;; | ||
Python) | ||
mise use --global python@latest | ||
;; | ||
esac | ||
done | ||
|
||
# Install default databases | ||
dbs=$(gum choose "MySQL" "Redis" "PostgreSQL" --no-limit --selected "MySQL","Redis" --height 5 --header "Select databases (runs in Docker)") | ||
|
||
for db in $dbs; do | ||
case $db in | ||
MySQL) | ||
sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 | ||
;; | ||
Redis) | ||
sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 | ||
;; | ||
PostgreSQL) | ||
sudo docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres16 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:16 | ||
;; | ||
esac | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ gext install [email protected] | |
gext install just-perfection-desktop@just-perfection | ||
gext install blur-my-shell@aunetx | ||
gext install space-bar@luchrioh | ||
gext install [email protected]@gmail.com | ||
|
||
# Compile gsettings schemas in order to be able to set them | ||
sudo cp ~/.local/share/gnome-shell/extensions/[email protected]/schemas/org.gnome.shell.extensions.tactile.gschema.xml /usr/share/glib-2.0/schemas/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sudo apt remove -y fastfetch |