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 | |
| PATH_MEDIA="/media" | |
| PATH_HOME="/home" | |
| # Declare a custom array of dirs | |
| declare -A dirs | |
| dirs["dir:category:subcategory"]="$PATH_MEDIA/public-repos" | |
| dirs["dir:category:subcategory"]="$PATH_MEDIA/private-repos" |
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 | |
| # Rofi prompt for website URL | |
| website_url=$(rofi -dmenu -p "Enter the website URL:") | |
| # Extract the website name | |
| website_name=$(echo "$website_url" | awk -F[/:] '{print $4}') | |
| # Rofi prompt for folder name | |
| folder_name=$(rofi -dmenu -p "Enter folder name for $website_name:") |
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 | |
| DEFAULT_BROWSER="brave" | |
| # Declare a custom array of websites | |
| declare -A websites | |
| websites["google"]="google.com" | |
| websites["github"]="github.com" | |
| websites["twitter"]="twitter.com" | |
| # websites[""]="https://%s" |
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 | |
| declare -A websites | |
| websites["ai-perplexity"]="https://www.perplexity.ai/search" | |
| websites["ai-ms-copilot"]="https://copilot.microsoft.com/" | |
| websites["ai-youcom"]="https://you.com/search" | |
| websites["ai-huggingface"]="https://huggingface.co/chat" | |
| websites["ai-claude-ai"]="https://claude.ai/chat" | |
| websites["ai-google-bard"]="https://bard.google.com/chat" |
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 | |
| declare -A websites | |
| websites["google"]="https://www.google.com" | |
| websites["twitter"]="https://twitter.com" | |
| # Get website names as a list | |
| website_names=$(printf "%s\n" "${!websites[@]}") | |
| # Use Rofi to select a website |
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
| local map = vim.api.nvim_set_keymap | |
| local function map_numeric_keys() | |
| local numeric_mappings = {} | |
| for i = 1, 9 do | |
| table.insert(numeric_mappings, { | |
| key = tostring(i), | |
| cmd = string.format('<cmd> lua require("harpoon.ui").nav_file(%d)<CR>', i), | |
| desc = string.format("Harpoon Bind #%d", i), |
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 | |
| # INFO: | |
| # using fzf to show tmux-window-list (active session) | |
| # select and kill the selected-window | |
| # Get the current tmux session | |
| TMUX_SESSION=$(tmux display-message -p '#S') | |
| # Get a list of windows in the current session |
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 | |
| # INFO: | |
| # using fzf to show tmux-session-list | |
| # select and kill the selected-session | |
| # Get a list of active tmux sessions | |
| tmux_list=$(tmux list-sessions -F "#S") | |
| # Check if there are no active sessions |
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 | |
| # INFO: | |
| # using fzf to show jump between tmux-window | |
| # Get a list of active tmux sessions | |
| tmux_sessions=$(tmux list-sessions -F "#S") | |
| # Check if there are no active sessions | |
| if [ -z "$tmux_sessions" ]; 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 | |
| # Script to switch tmux sessions using fzf | |
| # Get a list of active tmux sessions (excluding the current session) | |
| session_list=$(tmux list-sessions | sed -E 's/:.*$//' | grep -v "^$(tmux display-message -p '#S')\$") | |
| # Check if there are no active sessions | |
| if [ -z "$session_list" ]; then | |
| echo "No other active tmux sessions found." |