diff --git a/mango/README.md b/mango/README.md new file mode 100644 index 0000000..79c7616 --- /dev/null +++ b/mango/README.md @@ -0,0 +1,8 @@ +# Mangowm Reminders + +## Monitors + +Kanshi + +config: ~/.config/kanshi/config +startup: inside mangowm startup script, in autostart.sh diff --git a/mango/rofi/help-manager/system-keybinds.txt b/mango/rofi/help-manager/system-keybinds.txt index 6915dbc..546233f 100644 --- a/mango/rofi/help-manager/system-keybinds.txt +++ b/mango/rofi/help-manager/system-keybinds.txt @@ -20,3 +20,4 @@ Alt + (0-9) → Move Window To Workspace# Alt + a → Toggle Maximize Window Alt + f → Toggle Fullscreen Window Alt + tab → Toggle Overview Mode +mpv → Media/Image/Video Player diff --git a/scripts/enablefkeys b/scripts/enablefkeys deleted file mode 100755 index e9b3aca..0000000 --- a/scripts/enablefkeys +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode diff --git a/scripts/git-token b/scripts/git-token deleted file mode 100755 index 9a84f43..0000000 --- a/scripts/git-token +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Simple script to inject token:name into existing git remote URL -# Usage: git-token - -[ $# -ne 2 ] && { echo "Usage: git-token "; exit 1; } - -NAME="$1" -TOKEN="$2" - -REMOTE=$(git remote get-url origin 2>/dev/null) || { echo "No origin remote found"; exit 1; } - -# if ssh convert, else normal -if [[ $REMOTE =~ ^git@([^:]+):(.+)$ ]]; then - # SSH format: git@host:path -> https://token:name@host/path - HOST="${BASH_REMATCH[1]}" - PATH="${BASH_REMATCH[2]}" - NEW_URL="https://${NAME}:${TOKEN}@${HOST}/${PATH}" -elif [[ $REMOTE =~ ^https://(.+)$ ]]; then - # HTTPS format: https://rest -> https://token:name@rest - NEW_URL="https://${NAME}:${TOKEN}@${BASH_REMATCH[1]}" -else - echo "Unsupported remote format: $REMOTE" - exit 1 -fi - -# Set new remote -git remote set-url origin "$NEW_URL" - -echo "Remote updated: $NEW_URL" diff --git a/scripts/init.sh b/scripts/init.sh deleted file mode 100755 index 77639d2..0000000 --- a/scripts/init.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# init needs to be ran in this specific script's folder -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - -imp() { - local path="$1" - if [ -f "$path" ]; then - set -a - source $path - set +a - fi -} -imp "utils/import_print" -current_script=$(basename "$0") - -if [ ! -d "$HOME/.local/bin" ]; then - print_status "INFO" "~/.local/bin directory does not exist" - mkdir -p ~/.local/bin - print_status "INFO" "Created ~/.local/bin ..." -fi - -changed_count=0 -unchanged_count=0 - -for file in *; do - [ "$file" = "$current_script" ] && continue - [ ! -f "$file" ] && continue - - target_path="$HOME/.local/bin/$file" - - if [ -e "$target_path" ]; then - # dont change - ((unchanged_count++)) - else - ln -s "${SCRIPT_DIR}/$file" "$target_path" - ((changed_count++)) - print_status "OK" "Added $target_path" - fi -done - -print_status "OK" "Ignored: $unchanged_count, Added: $changed_count scripts" diff --git a/scripts/playlist.sh b/scripts/playlist.sh deleted file mode 100755 index f2a9399..0000000 --- a/scripts/playlist.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -if ! command -v mpv &> /dev/null; then - echo "mpv is not installed" - exit 1 -fi -echo "space = play/pause" -echo "<,> = back,next" -echo "q = quit" -echo "left/right = skip seconds" -mpv --shuffle --loop-playlist=inf "$@" diff --git a/scripts/update-discord.sh b/scripts/update-discord.sh deleted file mode 100755 index a202529..0000000 --- a/scripts/update-discord.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -if [ -z "$1" ]; then - echo "Usage: $0 " - echo "Example: $0 discord-0.0.20.tar.gz" - exit 1 -fi - -func_validate_filename() { - # Convert to lowercase for case-insensitive matching - local lower_input=$(echo "$1" | tr '[:upper:]' '[:lower:]') - - # Check if both "discord" and ".deb" are present - if [[ "$lower_input" == *"discord"* ]] && [[ "$lower_input" == *".tar.gz"* ]]; then - echo "✓ Updated Discord with file: '$1'" - return 0 - else - echo "✗ No match: '$1' does not contain both 'discord' and '.tar.gz'" - - # Provide specific feedback - if [[ "$lower_input" != *"discord"* ]]; then - echo " - Missing 'discord' ✗" - fi - - if [[ "$lower_input" != *".deb"* ]]; then - echo " - Missing '.deb' ✗" - fi - - return 1 - fi -} - -if func_validate_filename "$1"; then - sudo tar -xzf "$1" - sudo rm -rf /opt/discord - sudo mv Discord /opt/discord - sudo ln -sf /opt/discord/Discord /usr/bin/discord -fi - -#TODO check for .desktop file and create if not exists diff --git a/scripts/utils/import_print b/scripts/utils/import_print deleted file mode 100644 index bf45079..0000000 --- a/scripts/utils/import_print +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# print colors -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -print_status() { - local status=$1 - local message=$2 - case $status in - "OK") echo -e "${GREEN}[OK]${NC} $message" >&2 ;; - "WARN") echo -e "${YELLOW}[WARN]${NC} $message" >&2 ;; - "ERROR") echo -e "${RED}[ERROR]${NC} $message" >&2 ;; - "INFO") echo -e "${BLUE}[INFO]${NC} $message" >&2 ;; - esac -}