Skip to content

Instantly share code, notes, and snippets.

View AvinashReddy3108's full-sized avatar

Avinash Reddy AvinashReddy3108

  • Visakhapatnam, India.
View GitHub Profile
@AvinashReddy3108
AvinashReddy3108 / gogh2Termux.sh
Last active April 12, 2023 08:47
A dirty script to convert Gogh Terminal script to the Termux colorscheme format
#!/usr/bin/env bash
current=1
current_dir=$(pwd)
total=$(ls ../Gogh/themes/*.sh | wc -l)
cd ../Gogh && git pull --ff-only; cd $current_dir
for x in ../Gogh/themes/*.sh
do
filename=$(basename -- "$x")
scheme_file="${filename%.*}"
scheme_name=$(grep -Po '(?<=export PROFILE_NAME=).*' "$x" | tr -d '"')
@AvinashReddy3108
AvinashReddy3108 / mkwall.sh
Created October 13, 2022 04:23
Simple script to convert some videos for use as a wallpaper in KDE 5.26+
#!/bin/bash
# Simple script to convert some Anime Live Wallpapers for use in KDE 5.26+
# Files
INPUT_FILENAME="$1" # path to the input video.
OUTPUT_FILENAME="${INPUT_FILENAME%.*}.avif"
# Configuration
OUTPUT_WIDTH=1280; OUTPUT_HEIGHT=720 # Output Resolution
@AvinashReddy3108
AvinashReddy3108 / kcal.md
Last active June 22, 2022 18:39
KCAL Profiles Collection, for use (primarily) with SmartPack Kernel Manager.
Profile Name Red Green Blue Minimum RGB Value Saturation Intensity Screen Value Screen Contrast Screen Hue
Banged Up 239 243 255 35 33 127 127 0
Cool AMOLED 236 248 255 35 50 123 130 0
Deep Black and White 250 250 255 35 60 117 136 0
Deep Black Colourful 230 232 252 35 33 127 127 0
Deep Natural 250 250 255 35 33 117 136 0
Extreme AMOLED 255 255 255 35 65 114 136 0
Franco
#!/usr/bin/env bash
_require () {
for pkg in "$@"
do
command -v $pkg >/dev/null 2>&1 || { echo >&2 "I require '$pkg' but it's not installed. Aborting."; exit 1; }
done
}
_require jq curl fzf

Keybase proof

I hereby claim:

To claim this, I am signing this object: