For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
zsh users are advised to use the terminfo database as the most portable way to assign commands to particular keychords, but I haven't been able to find a database of which terminfo sigils correspond to which keys. Fortunately, I found enough information written in ancient Sumerian that I could translate it into something modern humans can comprehend.
Key Chord | Terminfo Name |
---|---|
Backspace | kbs |
Ctrl-Backspace | cub1 |
Insert | kich1 |
Shift-Insert | kIC |
Alt-Insert | kIC3 |
Shift-Alt-Insert | kIC4 |
This file contains 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
function adb() { | |
# Execute the actual command | |
local totalLines=$(command adb devices | wc -l | xargs) | |
local totalDeviceConnected=$(expr $totalLines - 2) | |
if [[ "$@" != *"-s "* && $totalDeviceConnected -gt 1 ]]; then | |
# Get the list of connected devices | |
devices=(`command adb devices | awk '$2 == "device" {print $1}'`) | |
devicesText="" |