Skip to content

Instantly share code, notes, and snippets.

View naranyala's full-sized avatar
🎯
F11 - back to the context

FMH (@gema_naranyala) naranyala

🎯
F11 - back to the context
View GitHub Profile
@naranyala
naranyala / install-font-from-nerdfont.sh
Last active August 8, 2023 03:07
easy-peasy installing font, directly from nerdfont
#!/bin/bash
# Set font installation directory
font_install_dir="$HOME/.local/share/fonts"
# List of available Nerd Font options
nerd_fonts=(
"Hack"
"FiraCode"
"Meslo"
@naranyala
naranyala / install-font-from-googlefont.sh
Created August 8, 2023 03:07
easy-peasy installing font, directly from nerdfont
#!/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"
# 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"
# 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
#!/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
#!/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"
@naranyala
naranyala / run-screenkey-at-bottom-screen.sh
Last active August 19, 2023 15:14
linux package "screenkey" for visualizing keypress
#!/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
@naranyala
naranyala / zenmode-awesomewm-and-tmux.sh
Last active August 28, 2023 08:44
make awesome window manager fullscreen and hide the tmux status bar (bonus: install neovim zen-mode && harpoon plugin)
#!/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() {
@naranyala
naranyala / setup-zsh-shell-plugins.sh
Created August 30, 2023 08:04
three main zsh plugins repo clones
#!/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
-- ultimate productivity
for i = 1, 9 do
global_keys = gears.table.join(
global_keys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, function()
local screen = awful.screen.focused()
local tag = screen.tags[i]
if tag then