update
This commit is contained in:
parent
8eddfb6c1e
commit
d2320d2823
4 changed files with 157 additions and 3 deletions
1
arch.md
1
arch.md
|
|
@ -1,2 +1,3 @@
|
|||
0. arch install script
|
||||
1. apparmor
|
||||
2. firewalld
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
spotdl "$1" --output ~/storage/music
|
||||
wait
|
||||
read
|
||||
|
|
|
|||
145
termux.properties
Normal file
145
termux.properties
Normal file
|
|
@ -0,0 +1,145 @@
|
|||
### 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
|
||||
|
||||
###############
|
||||
# General
|
||||
###############
|
||||
|
||||
### Allow external applications to execute arbitrary commands within Termux.
|
||||
### This potentially could be a security issue, so option is disabled by
|
||||
### default. Uncomment to enable.
|
||||
allow-external-apps = true
|
||||
|
||||
### Default working directory that will be used when launching the app.
|
||||
# default-working-directory = /data/data/com.termux/files/home
|
||||
|
||||
### Uncomment to disable toasts shown on terminal session change.
|
||||
# disable-terminal-session-change-toast = true
|
||||
|
||||
### Uncomment to not show soft keyboard on application start.
|
||||
# hide-soft-keyboard-on-startup = true
|
||||
|
||||
### Uncomment to let keyboard toggle button to enable or disable software
|
||||
### keyboard instead of showing/hiding it.
|
||||
# soft-keyboard-toggle-behaviour = enable/disable
|
||||
|
||||
### Adjust terminal scrollback buffer. Max is 50000. May have negative
|
||||
### impact on performance.
|
||||
# terminal-transcript-rows = 2000
|
||||
|
||||
### Uncomment to use volume keys for adjusting volume and not for the
|
||||
### extra keys functionality.
|
||||
# volume-keys = volume
|
||||
|
||||
###############
|
||||
# Fullscreen mode
|
||||
###############
|
||||
|
||||
### Uncomment to let Termux start in full screen mode.
|
||||
fullscreen = true
|
||||
|
||||
### Uncomment to attempt workaround layout issues when running in
|
||||
### full screen mode.
|
||||
# use-fullscreen-workaround = true
|
||||
|
||||
###############
|
||||
# Cursor
|
||||
###############
|
||||
|
||||
### Cursor blink rate. Values 0, 100 - 2000.
|
||||
# terminal-cursor-blink-rate = 100
|
||||
|
||||
### Cursor style: block, bar, underline.
|
||||
terminal-cursor-style = block
|
||||
|
||||
###############
|
||||
# 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}} \
|
||||
# ]]
|
||||
|
||||
###############
|
||||
# Colors/themes
|
||||
###############
|
||||
|
||||
### Force black colors for drawer and dialogs
|
||||
# use-black-ui = true
|
||||
|
||||
###############
|
||||
# HW keyboard shortcuts
|
||||
###############
|
||||
|
||||
### Disable hardware keyboard shortcuts.
|
||||
# disable-hardware-keyboard-shortcuts = 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
|
||||
|
||||
###############
|
||||
# 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
|
||||
10
tmux.conf
10
tmux.conf
|
|
@ -14,10 +14,18 @@ set -g destroy-unattached on
|
|||
|
||||
set -g @minimal-tmux-expanded-icon " "
|
||||
set -g @minimal-tmux-show-expanded-icons-for-all-tabs true
|
||||
set -g @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]#(playerctl metadata --format '{{artist}} - {{title}}')#[fg=color150,bg=default]#[bg=default] "
|
||||
set -g @minimal-tmux-status-right-extra ""
|
||||
if-shell 'command -v termux-battery-status' {
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]BAT: #(termux-battery-status | jq -r \".level\")#[fg=color150,bg=default]#[bg=default] "
|
||||
}
|
||||
if-shell 'command -v playerctl' {
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]#(playerctl metadata --format '{{artist}} - {{title}}')#[fg=color150,bg=default]#[bg=default] "
|
||||
}
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]CPU:#(uptime | awk -F'load average:' '{ print \$2 }' | cut -d',' -f1)#[fg=color150,bg=default]#[bg=default] "
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]RAM: #(free -h | awk '/^Mem:/ {print \$3 \"/\" \$2}')#[fg=color150,bg=default]#[bg=default] "
|
||||
if-shell 'command -v nvidia-smi' {
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]GPU: #(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits)%#[fg=color150,bg=default]#[bg=default] "
|
||||
}
|
||||
set -ag @minimal-tmux-status-right-extra "#[fg=color150]#[bg=color150,fg=black]#(date)#[fg=color150,bg=default]#[bg=default]"
|
||||
set -g @minimal-tmux-status-left-extra "#{pane_title}"
|
||||
set -g @minimal-tmux-use-arrow true
|
||||
|
|
|
|||
Loading…
Reference in a new issue