#!/bin/bash # Switch between dark and light themes in Termux THEME=${1:-dark} TERMUX_DIR="$HOME/.termux" case $THEME in dark|onedark) cp "$TERMUX_DIR/colors.properties" "$TERMUX_DIR/colors-current.properties.bak" 2>/dev/null cp "$TERMUX_DIR/colors.properties" "$TERMUX_DIR/colors-current.properties" echo "Switched to One Dark theme" ;; light|onelight) cp "$TERMUX_DIR/colors.properties" "$TERMUX_DIR/colors-current.properties.bak" 2>/dev/null cp "$TERMUX_DIR/colors-light.properties" "$TERMUX_DIR/colors.properties" echo "Switched to One Light theme" ;; *) echo "Usage: $0 {dark|light}" echo " dark/onedark - Switch to One Dark theme" echo " light/onelight - Switch to One Light theme" exit 1 ;; esac # Reload Termux styling termux-reload-settings 2>/dev/null || echo "Run 'termux-reload-settings' or restart Termux to apply changes"