2025 refresh
This commit is contained in:
24
android/.config/nvim/init.lua
Normal file
24
android/.config/nvim/init.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
vim.g.mapleader = ' '
|
||||
vim.o.wrap = true
|
||||
vim.g.maplocalleader = ' '
|
||||
vim.o.number = true
|
||||
vim.o.relativenumber = true
|
||||
vim.o.mouse = 'a'
|
||||
vim.schedule(function()
|
||||
vim.o.clipboard = 'unnamedplus'
|
||||
|
||||
end )
|
||||
vim.o.breakindent = true
|
||||
vim.o.undofile = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
vim.o.signcolumn = 'yes'
|
||||
vim.o.splitright = true
|
||||
vim.o.splitbelow = true
|
||||
vim.olist = true
|
||||
vim.o.inccommand = 'split'
|
||||
vim.o.scrolloff = 10
|
||||
vim.o.autoindent = true
|
||||
vim.o.hlsearch = true
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
||||
93
android/.config/termux/termux.properties
Normal file
93
android/.config/termux/termux.properties
Normal file
@@ -0,0 +1,93 @@
|
||||
### This is a `.properties` [https://en.wikipedia.org/wiki/.properties] file
|
||||
### for termux app properties and is loaded with the `java.util.Properties.load()`
|
||||
### [https://developer.android.com/reference/java/util/Properties#load(java.io.Reader)]
|
||||
### call by the termux app and must be formatted as per its spec.
|
||||
### To make changes to a property value, uncomment the property line by removing
|
||||
### any hash `#` characters at the start of the line.
|
||||
### After making required changes, save the file and run `termux-reload-settings`
|
||||
### in the terminal for changes to take effect. Some properties require app
|
||||
### process to be restarted to be updated which can be done by force stopping
|
||||
### the app from Android app settings.
|
||||
### 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
|
||||
|
||||
### Force capitalize all text in extra keys row button labels.
|
||||
# extra-keys-text-all-caps = true
|
||||
|
||||
### 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}} \
|
||||
# ]]
|
||||
|
||||
### Another configuration with advanced popup key usage designed for more
|
||||
### specific use-cases. In this case, it is designed for working with Vim-like
|
||||
### editors for faster navigation
|
||||
#extra-keys = [ \
|
||||
# [ \
|
||||
# { key: ESC, popup: { macro: ":q\n", display: "QuickExit" } }, \
|
||||
# { key: '/', popup: '\\\\' }, \
|
||||
# { key: '-', popup: '_' }, \
|
||||
# { key: HOME, popup: { macro: "CTRL HOME", display: "Top" } }, \
|
||||
# { key: UP, popup: { macro: "CTRL UP", display: "UP" } }, \
|
||||
# { key: END, popup: { macro: "CTRL END", display: "End" } }, \
|
||||
# { key: ":", popup: ";" }, \
|
||||
# { key: "(", popup: "{" } \
|
||||
# ], \
|
||||
# [ \
|
||||
# { key: TAB, popup: { macro: ":wq\n", display: "Write And Exit" } }, \
|
||||
# { key: CTRL, popup: { macro: ":w\n", display: "Write" } }, \
|
||||
# ALT, \
|
||||
# { key: LEFT, popup: { macro: "CTRL LEFT", display: "Left" } }, \
|
||||
# { key: DOWN, popup: { macro: "CTRL DOWN", display: "Bottom" } }, \
|
||||
# { key: RIGHT, popup: { macro: "CTRL RIGHT", display: "Right" } }, \
|
||||
# { key: "#", popup: "$" }, \
|
||||
# { key: ")", popup: "}" } \
|
||||
# ] \
|
||||
#]
|
||||
|
||||
###############
|
||||
# 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
|
||||
5
android/.shortcuts/1sshd.sh
Normal file
5
android/.shortcuts/1sshd.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
/data/data/com.termux/files/usr/bin/sshd
|
||||
echo "We need to pause this or the sshd will be killed with Termux."
|
||||
read -p "press enter to continue"
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
targetpath=/data/data/com.termux/files/home/storage/documents/
|
||||
|
||||
cd ${targetpath}logseq-gitea/logseq
|
||||
|
||||
git stash
|
||||
37
android/.shortcuts/5it-status.sh
Normal file
37
android/.shortcuts/5it-status.sh
Normal file
@@ -0,0 +1,37 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
data=`/data/data/com.termux/files/usr/bin/curl -s -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/status`
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
|
||||
air_conditioner_mode=`echo ${data} | /data/data/com.termux/files/usr/bin/jq .components.main.airConditionerMode.airConditionerMode.value`
|
||||
echo "Air conditioner mode: ${air_conditioner_mode}"
|
||||
echo
|
||||
|
||||
|
||||
cooling_setpoint=`echo ${data} | /data/data/com.termux/files/usr/bin/jq .components.main.thermostatCoolingSetpoint.coolingSetpoint.value`
|
||||
echo "Cooling setpoint: ${cooling_setpoint}"
|
||||
echo
|
||||
|
||||
|
||||
switch=`echo ${data} | /data/data/com.termux/files/usr/bin/jq .components.main.switch.switch.value`
|
||||
echo "Switch (power): ${switch}"
|
||||
echo
|
||||
|
||||
|
||||
current_temperature=`echo ${data} | /data/data/com.termux/files/usr/bin/jq .components.main.temperatureMeasurement.temperature.value`
|
||||
echo "Current temperature: ${current_temperature}"
|
||||
echo
|
||||
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
|
||||
read -p "Press enter to continue" throwaway
|
||||
|
||||
4
android/.shortcuts/6it-on.sh
Normal file
4
android/.shortcuts/6it-on.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
data=`/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"switch","command":"on","arguments":[]}]}'`
|
||||
|
||||
4
android/.shortcuts/7it-off.sh
Normal file
4
android/.shortcuts/7it-off.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
data=`/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"switch","command":"off","arguments":[]}]}'`
|
||||
|
||||
8
android/.shortcuts/8it-config-auto.sh
Normal file
8
android/.shortcuts/8it-config-auto.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"thermostatCoolingSetpoint","command":"setCoolingSetpoint","arguments":[24]}]}'
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"airConditionerFanMode","command":"setFanMode","arguments":["low"]}]}'
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"airConditionerMode","command":"setAirConditionerMode","arguments":["cool"]}]}'
|
||||
|
||||
8
android/.shortcuts/8it-config-max.sh
Normal file
8
android/.shortcuts/8it-config-max.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"thermostatCoolingSetpoint","command":"setCoolingSetpoint","arguments":[18]}]}'
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"airConditionerFanMode","command":"setFanMode","arguments":["turbo"]}]}'
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"airConditionerMode","command":"setAirConditionerMode","arguments":["cool"]}]}'
|
||||
|
||||
8
android/.shortcuts/8it-config-stepan.sh
Normal file
8
android/.shortcuts/8it-config-stepan.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"thermostatCoolingSetpoint","command":"setCoolingSetpoint","arguments":[24]}]}'
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"airConditionerFanMode","command":"setFanMode","arguments":["low"]}]}'
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -s -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d '{"commands":[{"component":"main","capability":"airConditionerMode","command":"setAirConditionerMode","arguments":["cool"]}]}'
|
||||
|
||||
22
android/.shortcuts/9it-set-temp.sh
Normal file
22
android/.shortcuts/9it-set-temp.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#/data/data/com.termux/files/usr/bin/bash
|
||||
|
||||
read -p "Enter desired temperature and press enter: " temperature
|
||||
|
||||
echo
|
||||
echo "Temperature set to: ${temperature}"
|
||||
|
||||
begging='{"commands":[{"component":"main","capability":"thermostatCoolingSetpoint","command":"setCoolingSetpoint","arguments":['
|
||||
rest="]}]}"
|
||||
command=${begging}${temperature}${rest}
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Command is:"
|
||||
echo ${command}
|
||||
echo
|
||||
echo
|
||||
|
||||
/data/data/com.termux/files/usr/bin/curl -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d ${command} | /data/data/com.termux/files/usr/bin/jq
|
||||
|
||||
read -p "press enter to continue" throwaway
|
||||
|
||||
4
android/.shortcuts/termux-bck.sh
Normal file
4
android/.shortcuts/termux-bck.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
tar -zcf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files ./home ./usr
|
||||
|
||||
|
||||
7
android/.shortcuts/termux-restore.sh
Normal file
7
android/.shortcuts/termux-restore.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
termux-setup-storage
|
||||
|
||||
tar -zxf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files --recursive-unlink --preserve-permissions
|
||||
|
||||
|
||||
|
||||
2
android/.ssh/authorized_keys
Normal file
2
android/.ssh/authorized_keys
Normal file
@@ -0,0 +1,2 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDW3/GxmjErPWJp0KIEyY2rC0yQI2urrmf3Y/4NIyF++Ap3iad5FzfK09ZgCIAPKYvwnibOQL93k2OBKCARRQBH5dyiBJf/J6oqCCWuyn7oY05MMGTkFaRijC3qUNeH9lZpzZMK+aaM1RS2geqR+9xYR9RmgPweAfxL8OYYXjPY5nl1jAEbUg4BrWQ61MBxzPYTyYhI8sN1H4kqRAXlzm4TQZq3bvLT5bxLskZCG9NEuk06zrNpOJDaIgN22JdT1KqgQbH6pejm6NP1KVLz59iZ66IXpj1utBuSuDORzdCEi67Q1tq1WXk8aU07MkbHCkWU70GolR0oZNYukB1Ti6Dx+St0UpGhjL3UVtm51SuebbW3u99vTJShavbD5uW3M6HEFbwI2y+MbRUHp6MTjgsjpg88XF7o8gZZ3qYTLpLXkGwdIsfO262E6b8KSeaAQ+CvpI1YVY9A0tC7Iiwn5Wi9wpZB/EaLMvYk89B+eTZWO0bwW2RvJZ58Orhodavgr19xYQEAU7M7C2QNVYWWXSdsp132qHBn0Q4KaHTlrc1fikXh7630FHHTLSuVWFpfpSLaPZa/Vl2P3nzviWlqoIPvI0pThMTDlXsAB0WLM/qR9AqCx76FOGaZnJZbdIyRbqgiJli/mOCzCzmeSfxZj5FVHcmWI7MQJEkt5ADhqqzHew== StepanKuklis@github/122190469 # ssh-import-id gh:StepanKuklis
|
||||
|
||||
3
android/.ssh/known_hosts
Normal file
3
android/.ssh/known_hosts
Normal file
@@ -0,0 +1,3 @@
|
||||
[gitea.panpanika.eu]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICgQxm9EvJBr9CkbX6WQUXTD+AHqmIRjQjcweYxerRt0
|
||||
[gitea.panpanika.eu]:2222 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzuObGHAqs0KACpfw1WSqz68x8svgSH1xQ4z2thG9+YyBwAfQI4Tukj6/fSFV0mNR5QHixJq0wIP3LuLtMxUo6GQFjsXLV0XOMVWVUcVnOlI6WELFUepzqniZXBFrVMbWOA1V2O5jRaqCP8mqrhfUT9pI4WrrGbhyaeP5eYBUU8uHug4PBDHW8M8Kz1Xqk6+LFfCjzFSxXny6GMszvQPtE3V+bck0zH48xS4r239MixwEfsxdzTcq2u6KRkNCizaQK+GQpc1T6rfNqgekmvfbOQqRIUfQwDSzWle8k4vUPf/Qkt/idf1J9bICXzk+FLnfmBC5bavePTTa+jDTEXorB
|
||||
[gitea.panpanika.eu]:2222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEcofL0HJSjZ9esJMj9emO/wfE/nmlNc9xViVlETorAmJUKZE/Sob9tfDfJJv7ftsfRzwBrPbKygb4R7pMcODNY=
|
||||
33
android/.termux/colors.properties
Normal file
33
android/.termux/colors.properties
Normal file
@@ -0,0 +1,33 @@
|
||||
## Name: TokyoNight
|
||||
|
||||
# Special
|
||||
foreground = #c0caf5
|
||||
background = #1a1b26
|
||||
cursor = #c0caf5
|
||||
# Black/Grey
|
||||
color0 = #15161e
|
||||
color8 = #414868
|
||||
# Red
|
||||
color1 = #f7768e
|
||||
color9 = #f7768e
|
||||
# Green
|
||||
color2 = #9ece6a
|
||||
color10 = #9ece6a
|
||||
# Yellow
|
||||
color3 = #e0af68
|
||||
color11 = #e0af68
|
||||
# Blue
|
||||
color4 = #7aa2f7
|
||||
color12 = #7aa2f7
|
||||
# Magenta
|
||||
color5 = #bb9af7
|
||||
color13 = #bb9af7
|
||||
# Cyan
|
||||
color6 = #7dcfff
|
||||
color14 = #7dcfff
|
||||
# White/Grey
|
||||
color7 = #a9b1d6
|
||||
color15 = #c0caf5
|
||||
# Other
|
||||
color16 = #ff9e64
|
||||
color17 = #db4b4b
|
||||
BIN
android/.termux/font.ttf
Normal file
BIN
android/.termux/font.ttf
Normal file
Binary file not shown.
3
android/.termux/termux.properties
Normal file
3
android/.termux/termux.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
bell-character = vibrate
|
||||
terminal-margin-horizontal = 3
|
||||
terminal-margin-vertical = 1
|
||||
35
android/README.md
Normal file
35
android/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Logseq on adnroid
|
||||
# Also how to setup busybox
|
||||
- We must install termux from f-droid
|
||||
- Google play version is somehow flawed
|
||||
- https://github.com/termux/termux-app#f-droid
|
||||
- https://f-droid.org/en/packages/com.termux/
|
||||
- https://f-droid.org/en/packages/com.termux.styling
|
||||
- for JetBrains font
|
||||
- https://f-droid.org/en/packages/com.termux.widget
|
||||
- https://f-droid.org/en/packages/com.termux.api
|
||||
- not sure if it does something or is needed at all
|
||||
|
||||
## Restore
|
||||
- We restore former settings from backup
|
||||
- https://wiki.termux.com/wiki/Backing_up_Termux
|
||||
- nextcloud / backup / termux-backup.tar.gz
|
||||
- ```termux-setup-storage```
|
||||
- ```tar -zxf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files --recursive-unlink --preserve-permissions```
|
||||
|
||||
## Fresh install
|
||||
- for fresh install we can use ```logseq-gitea-init.sh```
|
||||
- copy files from this repo to the home
|
||||
|
||||
|
||||
## Useful links for reference and further exploration
|
||||
- https://termux.dev/en/
|
||||
- https://github.com/termux/termux-widget
|
||||
- https://wiki.termux.com/wiki/Hardware_Keyboard
|
||||
- https://wiki.termux.com/wiki/Terminal_Settings
|
||||
- https://f-droid.org/en/packages/juloo.keyboard2
|
||||
|
||||
|
||||
- https://f-droid.org/en/packages/com.termux.nix
|
||||
- https://f-droid.org/en/packages/com.termux.boot
|
||||
|
||||
Reference in New Issue
Block a user