termux shortcuts

This commit is contained in:
thek4n 2024-12-11 01:23:03 +03:00
parent 22b0280702
commit a5768d66d8
3 changed files with 20 additions and 4 deletions

View File

@ -1 +1,3 @@
#!/bin/sh
ssh pc DISPLAY=:0 xdotool key super+q

View File

@ -1,5 +1,16 @@
enforce-char-based-input = true
# 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
extra-keys = [ \
[ \

View File

@ -1,8 +1,11 @@
#!/bin/sh
if [ -d "$HOME/.shortcuts" ]; then
cp "$SUB/.shortcuts/*" "$HOME/.shortcuts"
if [ -d "${HOME}/.shortcuts" ]; then
cp "${SUB}/.shortcuts/"* "${HOME}/.shortcuts"
else
cp -r "$SUB/.shortcuts" "$HOME"
fi
cp -r "${SUB}/.shortcuts" "${HOME}"
fi
mkdir -p "${HOME}/bin"
ln -s "$(which "${EDITOR}")" "${HOME}/bin/termux-file-editor"