This file contains hidden or 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
#!/bin/bash | |
# Set font installation directory | |
font_install_dir="$HOME/.local/share/fonts" | |
# List of available Nerd Font options | |
nerd_fonts=( | |
"Hack" | |
"FiraCode" | |
"Meslo" |
This file contains hidden or 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
#!/bin/bash | |
# Set font installation directory | |
font_install_dir="$HOME/.local/share/fonts" | |
# List of popular Google Fonts available until September 2021 | |
google_fonts=( | |
"Work Sans" | |
"Open Sans" | |
"Roboto" |
This file contains hidden or 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
# conditional zsh startup | |
status_01="ENV: mobile | INTERNET: ☑️" | |
status_02="ENV: mobile | INTERNET: ❎" | |
status_03="ENV: desktop | INTERNET: ☑️" | |
status_04="ENV: desktop | INTERNET: ❎" | |
if [[ -n "$TERMUX_VERSION" ]]; then | |
alias pbcopy="termux-clipboard-set" | |
alias pbpaste="termux-clipboard-get" |
This file contains hidden or 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
# autorun tmux | |
if [[ -z "$TMUX" ]]; then | |
tmux has-session -t main 2>/dev/null | |
if [ "$?" != 0 ]; then | |
tmux new-session -s main | |
else | |
tmux attach-session -t main |
This file contains hidden or 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
#!/bin/bash | |
status_01="ENV: mobile | INTERNET: ☑️" | |
status_02="ENV: mobile | INTERNET: ❎" | |
status_03="ENV: desktop | INTERNET: ☑️" | |
status_04="ENV: desktop | INTERNET: ❎" | |
# conditional tmux statusbar | |
if [[ $TERMUX_VERSION ]]; then |
This file contains hidden or 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
#!/bin/bash | |
# Check if the script was invoked with at least one argument | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 <GitHub Repository URL> [Custom Repository Name]" | |
exit 1 | |
fi | |
# Extract the repository name from the source URL | |
source_url="$1" |
This file contains hidden or 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
#!/bin/bash | |
# Check if screenkey is running | |
if ! pgrep -x "screenkey" >/dev/null; then | |
# Check if screenkey package is installed | |
if ! command -v screenkey &>/dev/null; then | |
# If it's not installed, try to install it | |
echo "Screenkey is not installed. Installing..." | |
# Check the package manager and use the appropriate command |
This file contains hidden or 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
#!/bin/bash | |
# Check if we're in an Awesome WM session | |
if [ -z "$DESKTOP_SESSION" ] || [ "$DESKTOP_SESSION" != "awesome" ]; then | |
echo "You are not in an Awesome WM session." | |
exit 1 | |
fi | |
# Function to toggle fullscreen with Control+Shift+F11 | |
toggle_fullscreen() { |
This file contains hidden or 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
#!/bin/bash | |
# Define the directory where Zsh plugins will be installed | |
ZSH_CUSTOM="$HOME/.oh-my-zsh/custom/plugins" | |
# Define an array of plugin names | |
plugins=("zsh-autosuggestions" "zsh-completions" "zsh-syntax-highlighting") | |
# Loop through the plugins and clone their repositories | |
for plugin in "${plugins[@]}"; do |