termux-tools: add dummy termux.properties file
Hopefully makes it easier for users to learn about the available settings.
This commit is contained in:
parent
327f691eea
commit
5c106a4225
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://termux.com/
|
||||
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.103
|
||||
TERMUX_PKG_VERSION=0.104
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_ESSENTIAL=true
|
||||
@ -53,4 +53,20 @@ termux_step_make_install() {
|
||||
$TERMUX_PKG_BUILDER_DIR/termux.1.md.in > $TERMUX_PKG_TMPDIR/termux.1.md
|
||||
pandoc --standalone --to man --output $TERMUX_PREFIX/share/man/man1/termux.1 \
|
||||
$TERMUX_PKG_TMPDIR/termux.1.md
|
||||
|
||||
mkdir -p $TERMUX_PREFIX/share/examples/termux
|
||||
install -Dm600 $TERMUX_PKG_BUILDER_DIR/termux.properties $TERMUX_PREFIX/share/examples/termux/
|
||||
}
|
||||
|
||||
termux_step_create_debscripts() {
|
||||
cat <<- EOF > ./postinst
|
||||
#!${TERMUX_PREFIX}/bin/bash
|
||||
if [ -f "${TERMUX_ANDROID_HOME}/.termux/termux.properties" ]; then
|
||||
exit 0
|
||||
fi
|
||||
echo "Installing default termux.properties to ~/.termux/"
|
||||
mkdir -p ~/.termux
|
||||
cp ${TERMUX_PREFIX}/share/examples/termux/termux.properties ~/.termux/
|
||||
exit 0
|
||||
EOF
|
||||
}
|
||||
|
88
packages/termux-tools/termux.properties
Normal file
88
packages/termux-tools/termux.properties
Normal file
@ -0,0 +1,88 @@
|
||||
### After making changes and saving you need to run `termux-reload-settings`
|
||||
### to update the terminal. All information here can also be found on the
|
||||
### wiki: https://wiki.termux.com/wiki/Terminal_Settings
|
||||
|
||||
###############
|
||||
# Extra keys
|
||||
###############
|
||||
|
||||
### Settings for choosing which set of symbols to use for illustrating keys.
|
||||
### Choose between default, arrows-only, arrows-all, all and none
|
||||
# extra-keys-style = default
|
||||
|
||||
### Default extra-key configuration
|
||||
# extra-keys = [[ESC, TAB, CTRL, ALT, {key: '-', popup: '|'}, DOWN, UP]]
|
||||
|
||||
### Two rows with more keys
|
||||
# extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'], \
|
||||
# ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]
|
||||
|
||||
### Configuration with additional popup keys (swipe up from an extra key)
|
||||
# extra-keys = [[ \
|
||||
# {key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \
|
||||
# {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \
|
||||
# {key: ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, \
|
||||
# {key: TAB, popup: {macro: "ALT a", display: A-a}}, \
|
||||
# {key: LEFT, popup: HOME}, \
|
||||
# {key: DOWN, popup: PGDN}, \
|
||||
# {key: UP, popup: PGUP}, \
|
||||
# {key: RIGHT, popup: END}, \
|
||||
# {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, \
|
||||
# {key: KEYBOARD, popup: {macro: "CTRL d", display: exit}} \
|
||||
# ]]
|
||||
|
||||
###############
|
||||
# Colors/themes
|
||||
###############
|
||||
|
||||
### Force black colors for drawer and dialogs
|
||||
# use-black-ui = true
|
||||
|
||||
###############
|
||||
# Keyboard shortcuts
|
||||
###############
|
||||
|
||||
### Open a new terminal with ctrl + t (volume down + t)
|
||||
# shortcut.create-session = ctrl + t
|
||||
|
||||
### Go one session down with (for example) ctrl + 2
|
||||
# shortcut.next-session = ctrl + 2
|
||||
|
||||
### Go one session up with (for example) ctrl + 1
|
||||
# shortcut.previous-session = ctrl + 1
|
||||
|
||||
### Rename a session with (for example) ctrl + n
|
||||
# shortcut.rename-session = ctrl + n
|
||||
|
||||
###############
|
||||
# Bell key
|
||||
###############
|
||||
|
||||
### Vibrate device (default).
|
||||
# bell-character = vibrate
|
||||
|
||||
### Beep with a sound.
|
||||
# bell-character = beep
|
||||
|
||||
### Ignore bell character.
|
||||
# bell-character = ignore
|
||||
|
||||
###############
|
||||
# Back key
|
||||
###############
|
||||
|
||||
### Send the Escape key.
|
||||
# back-key=escape
|
||||
|
||||
### Hide keyboard or leave app (default).
|
||||
# back-key=back
|
||||
|
||||
###############
|
||||
# Keyboard issue workarounds
|
||||
###############
|
||||
|
||||
### Letters might not appear until enter is pressed on Samsung devices
|
||||
# enforce-char-based-input = true
|
||||
|
||||
### ctrl+space (for marking text in emacs) does not work on some devices
|
||||
# ctrl-space-workaround = true
|
Loading…
x
Reference in New Issue
Block a user