organize dirs
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# SOURCES
|
||||
source /usr/share/git/completion/git-completion.bash
|
||||
source $HOME/.config/bash-wakatime/bash-wakatime.sh
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
# ALIASES
|
||||
alias ls='ls --color=auto'
|
||||
alias df='df -h'
|
||||
alias du='du -h'
|
||||
alias ..='cd ..'
|
||||
|
||||
alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir
|
||||
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
|
||||
|
||||
# NVM
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
export PATH="$PATH:node_modules/.bin:$HOME/.bin"
|
||||
|
||||
# StarShip
|
||||
eval "$(starship init bash)"
|
||||
@@ -0,0 +1,33 @@
|
||||
## WakaTime
|
||||
```bash
|
||||
sudo pip3 install wakatime
|
||||
```
|
||||
|
||||
```bash
|
||||
git clone https://github.com/gjsheep/bash-wakatime.git
|
||||
```
|
||||
|
||||
Include the `bash-wakatime.sh` file in your `~/.bashrc` file.
|
||||
|
||||
```bash
|
||||
source $HOME/.config/bash-wakatime/bash-wakatime.sh
|
||||
```
|
||||
|
||||
Make sure your [API Key](https://wakatime.com/settings/api-key) is in your `~/.wakatime.cfg` file.
|
||||
|
||||
**Note:**
|
||||
|
||||
Need WakaTime install [in system](https://github.com/wakatime/vscode-wakatime/issues/146#issuecomment-895506716) by sudo.
|
||||
|
||||
Installing to `$HOME/.local/bin` [not working](https://github.com/wakatime/vscode-wakatime/issues/146).
|
||||
|
||||
## StarShip
|
||||
```bash
|
||||
pacman -S starship
|
||||
```
|
||||
|
||||
```bash
|
||||
# ~/.bashrc
|
||||
|
||||
eval "$(starship init bash)"
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
# ~/.config/starship.toml
|
||||
|
||||
scan_timeout = 10
|
||||
add_newline = false
|
||||
@@ -0,0 +1,4 @@
|
||||
# Скрипты (упрощалки) для `certbot`
|
||||
|
||||
- `new.sh` - создаёт новый сертификат [Let’s Encrypt](https://letsencrypt.org/)
|
||||
- `renew.sh` - продлевает (обновляет) сертификаты
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
certbot certonly --config-dir /home/user/_certbot/config --work-dir /home/user/_certbot --logs-dir /home/user/_certbot/logs
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
certbot renew --config-dir /home/user/_certbot/config --work-dir /home/user/_certbot --logs-dir /home/user/_certbot/logs
|
||||
@@ -0,0 +1,24 @@
|
||||
[alias]
|
||||
co = checkout
|
||||
cm = commit
|
||||
br = branch
|
||||
st = status
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[user]
|
||||
name = Alexander Popov
|
||||
email = iiiypuk@fastmail.fm
|
||||
signingkey = 3F76816AEE08F908
|
||||
[core]
|
||||
eol = lf
|
||||
autocrlf = input
|
||||
excludesFile = ~/.gitignore
|
||||
[commit]
|
||||
gpgsign = true
|
||||
[gpg]
|
||||
program = /usr/bin/gpg
|
||||
[init]
|
||||
defaultBranch = master
|
||||
@@ -0,0 +1,2 @@
|
||||
venv/
|
||||
vendor/
|
||||
@@ -0,0 +1,35 @@
|
||||
## global .gitignore
|
||||
**Windows `cmd.exe`:**
|
||||
```cmd
|
||||
git config --global core.excludesFile "%USERPROFILE%\.gitignore"
|
||||
```
|
||||
**or PowerShell:**
|
||||
```powershell
|
||||
git config --global core.excludesFile "$Env:USERPROFILE\.gitignore"
|
||||
```
|
||||
|
||||
**Linux:**
|
||||
```bash
|
||||
git config --global core.excludesFile '~/.gitignore'
|
||||
```
|
||||
|
||||
## git push remote all
|
||||
**Как отправлять исходники в несколько репозиториев одной командой:**
|
||||
|
||||
1. Создаем новый remote например `all`
|
||||
```bash
|
||||
git remote add "all" git@github.com:username/my-repo.git
|
||||
```
|
||||
|
||||
2. Добавляем в него несколько адресов для пуша
|
||||
```bash
|
||||
git remote set-url --add --push "all" git@username/my-repo.git
|
||||
git remote set-url --add --push "all" git@bitbucket.org:username/my-repo.git
|
||||
```
|
||||
|
||||
3. Чтобы запушить сразу в два репозитория выполняем
|
||||
```bash
|
||||
git push all
|
||||
```
|
||||
|
||||
[Thanks, oleglomako](https://gist.github.com/oleglomako/eaacd8670bda3720a37de2c8acaf910e).
|
||||
@@ -0,0 +1,38 @@
|
||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_direction=-1
|
||||
tree_sort_key=0
|
||||
tree_sort_direction=1
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=0
|
||||
shadow_other_users=0
|
||||
show_thread_names=0
|
||||
show_program_path=0
|
||||
highlight_base_name=1
|
||||
highlight_megabytes=1
|
||||
highlight_threads=1
|
||||
highlight_changes=0
|
||||
highlight_changes_delay_secs=5
|
||||
find_comm_in_cmdline=1
|
||||
strip_exe_from_cmdline=1
|
||||
show_merged_command=1
|
||||
tree_view=0
|
||||
tree_view_always_by_pid=0
|
||||
all_branches_collapsed=0
|
||||
header_margin=1
|
||||
detailed_cpu_time=0
|
||||
cpu_count_from_one=0
|
||||
show_cpu_usage=1
|
||||
show_cpu_frequency=1
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=0
|
||||
color_scheme=0
|
||||
enable_mouse=1
|
||||
delay=15
|
||||
left_meters=System DateTime Uptime Battery
|
||||
left_meter_modes=2 2 2 2
|
||||
right_meters=AllCPUs Memory Tasks
|
||||
right_meter_modes=1 1 2
|
||||
hide_function_bar=0
|
||||
@@ -0,0 +1,4 @@
|
||||
## WakaTime plugin
|
||||
```bash
|
||||
$ micro -plugin install wakatime
|
||||
```
|
||||
@@ -0,0 +1,8 @@
|
||||
set number
|
||||
|
||||
" Plugins
|
||||
call plug#begin()
|
||||
Plug 'wakatime/vim-wakatime'
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
call plug#end()
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# ~/.kshrc
|
||||
|
||||
export PATH=$PATH:$HOME/.bin
|
||||
|
||||
alias ls='ls -lh'
|
||||
alias ..='cd ../'
|
||||
# Volume aliases
|
||||
alias vU='sndioctl output.level=+0.1'
|
||||
alias vD='sndioctl output.level=-0.1'
|
||||
|
||||
PS1='\w > '
|
||||
@@ -0,0 +1,6 @@
|
||||
# ~/.xsession
|
||||
|
||||
ENV='$HOME/.kshrc'; export ENV
|
||||
export LANG=ru_RU.UTF-8
|
||||
|
||||
exec i3
|
||||
@@ -0,0 +1,5 @@
|
||||
# OpenBSD Post-Install Setup
|
||||
|
||||
## Hostname
|
||||
`cat /etc/myname`
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[BASIC]
|
||||
good-names = f
|
||||
max-line-length = 100
|
||||
@@ -0,0 +1,13 @@
|
||||
[distutils]
|
||||
index-servers =
|
||||
pypi
|
||||
testpypi
|
||||
|
||||
[pypi]
|
||||
repository = https://upload.pypi.org/legacy/
|
||||
username = IIIypuk
|
||||
|
||||
[testpypi]
|
||||
repository = https://test.pypi.org/legacy/
|
||||
username = __token__
|
||||
password = pypi-AgENdGVzdC5weXBpLm9yZwIkNzAzMjEwYzMtYjhjOC00NDBlLTlmYWItMmYxMTJkNzI4ZGUwAAIleyJwZXJtaXNzaW9ucyI6ICJ1c2VyIiwgInZlcnNpb24iOiAxfQAABiDXPiC4n3XZ-fa93tjjR14E2KfTelxuieNp-Lr-DJ4sxA
|
||||
@@ -0,0 +1,7 @@
|
||||
[build-system]
|
||||
requires = ["flit_core >=2,<4"]
|
||||
build-backend = "flit_core.buildapi"
|
||||
requires-python = ">=3"
|
||||
|
||||
[tool.black]
|
||||
line-length = 99
|
||||
@@ -0,0 +1,13 @@
|
||||
Host github.com
|
||||
User iiiypuk
|
||||
IdentityFile /home/user/.ssh/github
|
||||
|
||||
Host kvm5
|
||||
User alex
|
||||
HostName 92.63.105.65
|
||||
IdentityFile C:\Users\User\.ssh\kvm5
|
||||
ServerAliveInterval 59
|
||||
|
||||
Host git.a2s.su
|
||||
User gitea
|
||||
IdentityFile /home/user/.ssh/gitea
|
||||
@@ -0,0 +1,12 @@
|
||||
statusbar.visible=1
|
||||
save.recent=1
|
||||
font.monospace=font:Cascadia Code,size:12
|
||||
font.base=font:Cascadia Code,size:12
|
||||
font.override=$(font.monospace)
|
||||
|
||||
line.margin.visible=1
|
||||
|
||||
use.tabs=0
|
||||
indent.size=2
|
||||
tabsize=4
|
||||
view.whitespace=1
|
||||
@@ -0,0 +1,47 @@
|
||||
[
|
||||
{
|
||||
"caption": "_@",
|
||||
"id": "me.iiiypuk",
|
||||
"children":
|
||||
[
|
||||
{
|
||||
"caption": "Open ♥",
|
||||
"command": "open_file", "args": { "file": "" },
|
||||
},
|
||||
{
|
||||
"caption": "Open GPG",
|
||||
"command": "open_file", "args": { "file": "" },
|
||||
},
|
||||
{
|
||||
"caption": "-"
|
||||
},
|
||||
{
|
||||
"caption": "Open Recent",
|
||||
"mnemonic": "R",
|
||||
"children":
|
||||
[
|
||||
{ "command": "reopen_last_file", "caption": "Reopen Closed File" },
|
||||
{ "caption": "-" },
|
||||
{ "command": "open_recent_file", "args": {"index": 0 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 1 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 2 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 3 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 4 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 5 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 6 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 7 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 8 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 9 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 10 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 11 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 12 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 13 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 14 } },
|
||||
{ "command": "open_recent_file", "args": {"index": 15 } },
|
||||
{ "caption": "-" },
|
||||
{ "command": "clear_recent_files", "caption": "Clear Items" }
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"theme": "auto",
|
||||
"ui_scale": 1.0,
|
||||
"bold_folder_labels": true,
|
||||
"font_face": "Cascadia Code",
|
||||
"font_size": 13,
|
||||
"font_options": ["gdi"], // only Windows
|
||||
"show_encoding": true,
|
||||
"draw_centered": false,
|
||||
"word_wrap": false,
|
||||
"always_show_minimap_viewport": true,
|
||||
"remember_full_screen": false,
|
||||
"show_line_endings": true,
|
||||
"highlight_line": true,
|
||||
"folder_exclude_patterns": [".git", "node_modules", "venv"],
|
||||
"file_exclude_patterns": [],
|
||||
"ignored_packages":
|
||||
[
|
||||
"Vintage",
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
[settings]
|
||||
debug = true
|
||||
api_key =
|
||||
status_bar_icon = true
|
||||
status_bar_coding_activity = true
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
# ~/.config/i3/config
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
exec --no-startup-id $HOME/.fehbg
|
||||
exec "setxkbmap -layout us,ru"
|
||||
exec "setxkbmap -option 'grp:alt_shift_toggle'"
|
||||
|
||||
gaps inner 5
|
||||
|
||||
font pango:Cascadia Code 10
|
||||
|
||||
set $up l
|
||||
set $down k
|
||||
set $left j
|
||||
set $right semicolon
|
||||
|
||||
floating_modifier $mod
|
||||
|
||||
bindsym $mod+Return exec /usr/local/bin/st -f "Cascadia Code:size=11"
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+d exec --no-startup-id /usr/local/bin/dmenu_run
|
||||
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
bindsym $mod+h split h
|
||||
bindsym $mod+v split v
|
||||
bindsym $mod+f fullscreen toggle
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
bindsym $mod+Shift+minus move scratchpad
|
||||
bindsym $mod+minus scratchpad show
|
||||
|
||||
set $ws1 "1. daily"
|
||||
set $ws2 "2. gemini"
|
||||
set $ws3 "3. coding"
|
||||
set $ws4 "4. terminal"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9. fun"
|
||||
set $ws10 "0. mail"
|
||||
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+r restart
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'This will end your X session.' -B 'Yes' 'i3-msg exit'"
|
||||
|
||||
mode "resize" {
|
||||
bindsym $left resize shrink width 10 px or 10 ppt
|
||||
bindsym $down resize grow height 10 px or 10 ppt
|
||||
bindsym $up resize shrink height 10 px or 10 ppt
|
||||
bindsym $right resize grow width 10 px or 10 ppt
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
default_border pixel 4
|
||||
default_floating_border pixel 4
|
||||
@@ -0,0 +1,24 @@
|
||||
# ~/.i3status.conf
|
||||
|
||||
general {
|
||||
output_format = "i3bar"
|
||||
interval = 5
|
||||
colors = true
|
||||
}
|
||||
|
||||
#order += "battery all"
|
||||
order += "tztime local"
|
||||
order += "volume master"
|
||||
|
||||
battery all {
|
||||
format = "%status %percentage %remaining"
|
||||
}
|
||||
|
||||
volume master {
|
||||
format = "vol: %volume"
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = "%Y-%m-%d %H:%M"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user