-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtui.sh.yaml
131 lines (131 loc) · 4.57 KB
/
tui.sh.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
bkit: # root name.
_sha256sum: https://pastebin.com/raw/qpWzB2GD # hash for normal operation/ tui.sh, yaml, web.tar.gz
_tui_sh_config:
tui_httpd_bin: darkhttpd # darkhttpd or caddy
tui_web_dir: ./.tui_web
tui_log_dir: ./.tui_web/var/log
tui_access_log: access.log
tui_binding_ip: 127.0.0.1
tui_posting_address: localhost
tui_web_port: 58080
tui_basic_auth: test:test
tui_run_dir: ./.tui_web/var/run
tui_net_dir: ./.tui_web/var/net
transfer_field: url # or useragent
_globalkeycode: "" # ctrl-t => push together, ctrl+t => ctrl keyup and t keydown
_keycode: k
_description: various setup scripts for security. # menu description
_cmd:
- echo "bkit" && echo " - secured services like nextdns in your environment." && echo " - offer install, configure, control easily in TUI and WEB" && printf '\n\n'
- declare -p
- env
status:
_keycode: s
_description: system status info from neofetch by dylanaraps.
_cmd:
- echo "status" && echo " - fun: fun things with bash." && printf '\n\n'
- ./tui_sh_yaml_tools/neofetch ---backend off --no_config --stdout
fun:
_keycode: f
_description: fun elements written in bash.
bloks:
_keycode: b
_description: bloks in colors. provided by owl4ce.
_cmd: ./tui_sh_yaml_tools/fun/bloks
colorscheme:
_keycode: c
_description: coloful scheme. provided by xero.
_cmd: ./tui_sh_yaml_tools/fun/colorscheme
ghosts:
_keycode: g
_description: ghosts in multiple colors. provided by lolilolicon.
_cmd: ./tui_sh_yaml_tools/fun/ghosts
sysinfo:
_keycode: s
_description: sysinfo. provided by xero.
_cmd: ./tui_sh_yaml_tools/fun/sysinfo
setup:
_keycode: e
_description: various setup scripts for security.
SYSTEM:
_keycode: S
_description: utilities for system.
bash-it:
_keycode: b
_description: a framework for using, developing and maintaining shell scripts and custom commands for your daily work.
ohmybash:
_keycode: o
_description: managing your bash configuration.
cdc:
_keycode: d
_description: cd to user-defined directories from anywhere.
lvim:
_keycode: v
_description: full featured editor like vim using neovim.
defender_update:
_keycode: f
_description: windows defender malware definition updates.
melody_scripts:
_keycode: m
_description: windows bloatware remover + system tweak scripts.
DNS:
_keycode: D
_description: DNS Setup.
dnscrypt-proxy2:
_keycode: d
_description: various setup scripts for security.
install:
_keycode: i
q:
_keycode: q
massdns:
_keycode: m
IP:
_keycode: I
APP:
_keycode: A
FILE:
_keycode: F
MONITOR:
_keycode: M
configure:
utils:
_keycode: l
_description: tui web is web version of the tui app.
netstat:
_type: toggle
_check_cmd: if [ -z ${tui_status_toggle+x} ]; then echo 1 && tui_status_toggle=1; else echo 0 && unset tui_status_toggle; fi
_disable_cmd: echo ""
_keycode: t
_description: "show running port and process."
_cmd: $(exec 1>{{ tty }} && watch -C -n 1 -t "netstat -nltp")
cat:
_keycode: c
_description: view log on lvim editor
_cmd: cat ./.tui_web/var/log/access.log
lvim:
_keycode: l
_description: view log on lvim editor
_cmd: $(exec 1>{{ tty }} && ~/.local/bin/lvim ./.tui_web/var/run/system)
top:
_type: ["toggle", "overtty"]
_check_cmd: if [ -z ${tui_top_toggle+x} ]; then echo 1 && tui_top_toggle=1; else echo 0 && unset tui_top_toggle; fi
_disable_cmd: echo ""
_keycode: p
_description: top using watch.
_cmd: $(exec 1>{{ tty }} && watch -C -n 1 -t "top -b") # https://unix.stackexchange.com/a/512979
# nano:
# _type: toggle
# _check_cmd: if [ -z ${tui_nano_toggle+x} ]; then echo 1 && tui_nano_toggle=1; else echo 0 && unset tui_nano_toggle; fi
# _disable_cmd: echo ""
# _keycode: o
# _description: nano processor watch.
# _cmd: $(exec 1>{{ tty }} && (IFS=$'\n'; set -o noglob; nano))
# darkstatd:
# _type: toggle
# _check_cmd: if [ -z ${tui_darkstatd_toggle+x} ]; then echo 1 && tui_darkstatd_toggle=1; else echo 0 && unset tui_darkstatd_toggle; fi
# _disable_cmd: echo ""
# _keycode: d
# _description: darkstatd show network bandwidth.
# _cmd: sudo darkstat -i eth0