├── .conkyrc ├── bash ├── .bashrc └── .inputrc ├── bash_and_zsh ├── .aliases └── .functions ├── git └── .gitconfig ├── mate └── mate_terminal.conf ├── mc ├── ini └── panels.ini ├── tmux ├── .tmux.conf └── vpn_ip.sh ├── vim └── .vimrc ├── xfce4 └── xfce4-terminal │ └── xfce4-terminal.xml └── zsh ├── .zprofile └── .zshrc /.conkyrc: -------------------------------------------------------------------------------- 1 | conky.config = { 2 | alignment = 'top_right', 3 | background = false, 4 | border_width = 1, 5 | cpu_avg_samples = 2, 6 | default_color = 'white', 7 | default_outline_color = 'white', 8 | default_shade_color = 'white', 9 | double_buffer = true, 10 | draw_borders = false, 11 | draw_graph_borders = true, 12 | draw_outline = false, 13 | draw_shades = false, 14 | extra_newline = false, 15 | font = 'CaskaydiaCoveNerdFontPropo-SemiBold:size=10', 16 | gap_x = 30, 17 | gap_y = 30, 18 | minimum_height = 10, 19 | minimum_width = 300, 20 | net_avg_samples = 2, 21 | no_buffers = true, 22 | out_to_console = false, 23 | out_to_ncurses = false, 24 | out_to_stderr = false, 25 | out_to_wayland = false, 26 | out_to_x = true, 27 | own_window = true, 28 | own_window_class = 'Conky', 29 | own_window_type = 'normal', 30 | own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager', 31 | own_window_transparent = true, 32 | own_window_argb_visual = true, 33 | show_graph_range = false, 34 | show_graph_scale = false, 35 | stippled_borders = 0, 36 | update_interval = 1.0, 37 | uppercase = false, 38 | use_spacer = 'none', 39 | use_xft = true, 40 | } 41 | 42 | conky.text = [[ 43 | Сетевая активность: 44 | 45 | ${color green}eth0:${color} 46 | Скорость: ${goto 100}↓ ${downspeedf eth0} KB/s ${goto 215}↑ ${upspeedf eth0} KB/s 47 | Всего: ${goto 100}↓ ${totaldown eth0} ${goto 215}↑ ${totalup eth0} 48 | 49 | ${color green}tun0:${color} 50 | Скорость: ${goto 100}↓ ${downspeedf tun0} KB/s ${goto 215}↑ ${upspeedf tun0} KB/s 51 | Всего: ${goto 100}↓ ${totaldown tun0} ${goto 215}↑ ${totalup tun0} 52 | ]] 53 | -------------------------------------------------------------------------------- /bash/.bashrc: -------------------------------------------------------------------------------- 1 | stty -ixon 2 | 3 | HISTCONTROL=ignoreboth 4 | HISTSIZE=10000 5 | HISTFILESIZE=10000 6 | HISTIGNORE="history:ls:lla:la:ll:cd:clear:cls" 7 | HISTTIMEFORMAT='%d.%m.%Y %H:%M:%S ' 8 | 9 | shopt -s histappend 10 | shopt -s checkwinsize 11 | shopt -s autocd 12 | shopt -s cmdhist 13 | 14 | PROMPT_COMMAND='history -a' 15 | 16 | case "$TERM" in 17 | xterm-color|*-256color) color_prompt=yes;; 18 | esac 19 | 20 | # force_color_prompt=yes 21 | 22 | if [ -n "$force_color_prompt" ]; then 23 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 24 | color_prompt=yes 25 | else 26 | color_prompt= 27 | fi 28 | fi 29 | 30 | if [ "$color_prompt" = yes ]; then 31 | _COLOR1="\[\e[01;38;5;167m\]" 32 | _COLOR2="\[\e[01;38;5;144m\]" 33 | _COLOR3="\[\e[01;38;5;216m\]" 34 | _COLOR4="\[\e[01;38;5;109m\]" 35 | _COLOR_RESET="\[\e[0m\]" 36 | if [ "$(id -u)" != "0" ]; then 37 | PS1="[${_COLOR1}\u${_COLOR2}㉿${_COLOR3}\H ${_COLOR4}\w${_COLOR_RESET}]\n\\$ " 38 | else 39 | _ROOT_WARNING="\[\e[01;38;5;160m\]" 40 | PS1="${_ROOT_WARNING}!!! ROOT !!! ${_COLOR_RESET}[${_COLOR1}\u${_COLOR2}㉿${_COLOR3}\H ${_COLOR4}\w${_COLOR_RESET}]\n\\$ " 41 | fi 42 | else 43 | PS1="[\u@\H \w]\n\\$ " 44 | fi 45 | unset color_prompt force_color_prompt 46 | 47 | if [ -x /usr/bin/dircolors ]; then 48 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 49 | alias ls='ls --color=auto' 50 | alias grep='grep --color=auto' 51 | alias fgrep='fgrep --color=auto' 52 | alias egrep='egrep --color=auto' 53 | fi 54 | 55 | for config_file in $HOME/.{aliases,functions}; do 56 | if [[ -r "$config_file" ]] && [[ -f "$config_file" ]]; then 57 | source "$config_file" 58 | fi 59 | done 60 | unset config_file 61 | 62 | if ! shopt -oq posix; then 63 | if [[ -f /usr/share/bash-completion/bash_completion ]]; then 64 | source /usr/share/bash-completion/bash_completion 65 | elif [[ -f /etc/bash_completion ]]; then 66 | source /etc/bash_completion 67 | elif [[ -f /usr/local/etc/bash_completion ]]; then 68 | source /usr/local/etc/bash_completion 69 | fi 70 | fi 71 | 72 | if [[ -d /etc/bash_completion.d/ ]]; then 73 | for file in /etc/bash_completion.d/* ; do 74 | source "$file" 75 | done 76 | fi 77 | 78 | export VISUAL=vim 79 | export EDITOR=vim 80 | 81 | # [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 82 | [ -x /usr/bin/lesspipe ] && export LESSOPEN="|lesspipe %s" 83 | 84 | export GREP_COLORS='ms=01;33' 85 | 86 | export EXA_COLORS="" 87 | EXA_PREFIX="1;38;5" # Жирный кастомный цвет 88 | EXA_R="107" # Цвет: полномочие чтения 89 | EXA_W="131" # Цвет: полномочие записи 90 | EXA_X="172" # Цвет: полномочие исполнения 91 | 92 | EXA_SETTINGS=( 93 | "ur=$EXA_PREFIX;$EXA_R" # Полномочие чтения пользователя 94 | "uw=$EXA_PREFIX;$EXA_W" # Полномочие записи пользователя 95 | "ux=$EXA_PREFIX;$EXA_X" # Полномочие исполнения пользователя для обычных файлов 96 | "ue=$EXA_PREFIX;$EXA_X" # Полномочие исполнения пользователя для других файлов 97 | "gr=$EXA_PREFIX;$EXA_R" # Полномочие чтения группы 98 | "gw=$EXA_PREFIX;$EXA_W" # Полномочие записи группы 99 | "gx=$EXA_PREFIX;$EXA_X" # Полномочие исполнения группы 100 | "tr=$EXA_PREFIX;$EXA_R" # Полномочие чтения для иных 101 | "tw=$EXA_PREFIX;$EXA_W" # Полномочие записи для иных 102 | "tx=$EXA_PREFIX;$EXA_X" # Полномочие исполнения для иных 103 | "uu=$EXA_PREFIX;65" # Ваш пользотватель 104 | "uR=$EXA_PREFIX;124" # Пользователь root 105 | "un=$EXA_PREFIX;142" # Пользователь не ваш и не root 106 | "gu=$EXA_PREFIX;65" # Ваша группа 107 | "gR=$EXA_PREFIX;124" # Группа root 108 | "gn=$EXA_PREFIX;142" # Группа не ваша и не root 109 | "da=$EXA_PREFIX;60" # Дата файла 110 | "di=$EXA_PREFIX;31" # Тип сущности: директория 111 | "ex=$EXA_PREFIX;$EXA_X" # Тип сущности: исполняемый файл 112 | "bd=$EXA_PREFIX;217" # Тип сущности: блочное устройство 113 | "cd=$EXA_PREFIX;229" # Тип сущности: символьное устройство 114 | "ln=$EXA_PREFIX;73" # Тип сущности: симлинк 115 | "xa=$EXA_PREFIX;96" # Индикатор расширенных аттрибутов 116 | ) 117 | 118 | for EXA_SETTING in ${EXA_SETTINGS[*]} 119 | do 120 | export EXA_COLORS=$EXA_COLORS:$EXA_SETTING 121 | done 122 | 123 | export LESS_TERMCAP_mb=$'\e[1;36m' 124 | export LESS_TERMCAP_md=$'\e[1;32m' 125 | export LESS_TERMCAP_me=$'\e[0m' 126 | export LESS_TERMCAP_mu=$'\e[1;37m' 127 | export LESS_TERMCAP_se=$'\e[0m' 128 | export LESS_TERMCAP_so=$'\e[1;91m' 129 | export LESS_TERMCAP_ue=$'\e[0m' 130 | export LESS_TERMCAP_us=$'\e[1;36m' 131 | 132 | if [ -d ~/.bashrc.d ]; then 133 | for rc in ~/.bashrc.d/*; do 134 | if [ -f "$rc" ]; then 135 | source "$rc" 136 | fi 137 | done 138 | fi 139 | 140 | unset rc 141 | -------------------------------------------------------------------------------- /bash/.inputrc: -------------------------------------------------------------------------------- 1 | set completion-ignore-case 2 | set echo-control-characters off 3 | 4 | "\e[Z": menu-complete 5 | "\e[A": history-search-backward 6 | "\e[B": history-search-forward 7 | "\es": "\C-asudo \C-e" 8 | -------------------------------------------------------------------------------- /bash_and_zsh/.aliases: -------------------------------------------------------------------------------- 1 | alias ls='ls --color=auto' 2 | 3 | # Uncomment for eza on server 4 | # alias ls='eza --group --time-style="+%d.%m.%Y %H:%M:%S" --color=always --header --git ' 5 | 6 | # Uncomment for eza on workstation with nerd fonts 7 | # alias ls='eza --group --time-style="+%d.%m.%Y %H:%M:%S" --color=always --header --git --icons=always' 8 | 9 | alias l='ls --oneline' 10 | alias la='ls -a' 11 | alias ll='ls -l' 12 | alias lla='ll -a' 13 | alias lg='ls --grid' 14 | alias lga='lg -a ' 15 | alias llg='ll --grid' 16 | alias llga='llg -a' 17 | alias llm='ll --sort=modified --reverse' 18 | alias llma='llm -a' 19 | alias lt='ls --tree --level 2' 20 | alias lta='lt -a' 21 | alias lx='lla --created --modified --changed --accessed' 22 | alias lxs='lx --total-size' 23 | alias cls='clear' 24 | alias clshist='truncate -s 0 $HISTFILE && reset' 25 | alias ip='ip -color=auto' 26 | alias diff='diff --color=auto' 27 | alias grep='grep --color=auto' 28 | alias egrep='grep -E' 29 | alias fgrep='grep -F' 30 | alias igrep='grep -i' 31 | alias less='less -R -s -M +Gg' 32 | alias dmesg='dmesg --color=always' 33 | alias mkdir='mkdir -p' 34 | alias md='mkdir' 35 | alias http='http --style material' 36 | alias systemctl-services='systemctl list-units --type=service' 37 | alias systemctl-services-running='systemctl list-units --type=service --state=running' 38 | alias ipt='iptables' 39 | alias iptlist='iptables -L -n --line-numbers' 40 | alias ip6t='ip6tables' 41 | alias ip6tlist='ip6tables -L -n --line-numbers' 42 | alias mc='env LANG=ru_RU.UTF-8 mc' 43 | alias sudomc='sudo env LANG=ru_RU.UTF-8 mc' 44 | alias hg='history | grep' 45 | alias path='echo -e ${PATH//:/\\n}' 46 | alias df='df -H' 47 | alias du='du -ch' 48 | alias free='free -h' 49 | alias wget='wget -c' 50 | alias cat-nocomments='grep -v "^$\|^#"' 51 | alias check-command='type -t' 52 | alias hosts='sudo vim /etc/hosts' 53 | alias dig-short='dig +short' 54 | alias dig-answer='dig +noall +answer' 55 | alias externalip-dig='dig +short myip.opendns.com @resolver1.opendns.com' 56 | alias externalip-curl='curl ifconfig.me' 57 | alias ping-windows='ping -c 4' 58 | alias flushdns='sudo systemd-resolve --flush-caches' 59 | alias certinfo='openssl x509 -text -noout -in' 60 | alias headers='curl -I' 61 | alias mountinfo='mount | column -t' 62 | alias datetime='date "+%A %d.%m.%Y %H:%M:%S"' 63 | alias venv-activate='source .venv/bin/activate' 64 | alias venv-deactivate='deactivate' 65 | alias what-packet='dpkg -S' 66 | alias docker-containers='docker container ls' 67 | alias docker-containers-all='docker container ls -a' 68 | 69 | # CD aliases 70 | alias ..='cd ..' 71 | alias ...='cd ../..' 72 | alias ....='cd ../../..' 73 | alias .....='cd ../../../..' 74 | alias ......='cd ../../../../..' 75 | alias .......='cd ../../../../../..' 76 | alias ........='cd ../../../../../../..' 77 | 78 | # Kali Linux 79 | # alias headers='http --headers' 80 | alias powershell='pwsh -NoLogo' 81 | alias msfconsole='msfconsole -q' 82 | alias handler-msf='msfconsole -q -x "use exploit/multi/handler"' 83 | alias handler-netcat='rlwrap ncat -nvlp' 84 | alias empire-server='docker container start -ia empire' 85 | alias www='list-ips && python3 -m http.server' 86 | alias smb='list-ips && impacket-smbserver -smb2support norden_smb .' 87 | alias havoc-server='havoc server --profile /usr/share/havoc/profiles/havoc.yaotl' 88 | alias what-hash='haiti' 89 | alias base64file='base64 -w0' 90 | alias villain='uv run --directory /opt/python-software/villain Villain.py' 91 | alias hoaxshell='uv run --directory /opt/python-software/hoaxshell hoaxshell.py' 92 | alias rustscan='rustscan --ulimit 5000' -------------------------------------------------------------------------------- /bash_and_zsh/.functions: -------------------------------------------------------------------------------- 1 | function github-show-last-release() { 2 | if [[ $# != 1 || "$1" == "-h" || "$1" == "--help" ]]; then 3 | echo "Usage: github-show-last-release " 4 | else 5 | curl -s https://api.github.com/repos/$1/releases/latest | jq '.assets[].browser_download_url' | sed "s/ /\\n/g" 6 | fi 7 | } 8 | 9 | function wg-generate-qr() { 10 | if [[ $# != 2 || "$1" == "-h" || "$1" == "--help" ]]; then 11 | echo "Usage: wg-generate-qr " 12 | else 13 | qrencode -r $1 -t png --foreground=85004B --size 16 --level H --margin 2 --dpi 300 -o $2 14 | fi 15 | } 16 | 17 | function list-ips() { 18 | ip a show scope global | awk '/^[0-9]+:/ { sub(/:/,"",$2); iface=$2 } /^[[:space:]]*inet / { split($2, a, "/"); print "[\033[96m" iface"\033[0m] "a[1] }' 19 | } 20 | 21 | function extract() { 22 | if [ -f $1 ]; then 23 | case $1 in 24 | *.tar.bz2) tar xvjf $1 ;; 25 | *.tar.gz) tar xvzf $1 ;; 26 | *.bz2) bunzip2 $1 ;; 27 | *.rar) unrar x $1 ;; 28 | *.gz) gunzip $1 ;; 29 | *.tar) tar xvf $1 ;; 30 | *.tbz2) tar xvjf $1 ;; 31 | *.tgz) tar xvzf $1 ;; 32 | *.zip) unzip $1 ;; 33 | *.Z) uncompress $1 ;; 34 | *.7z) 7z x $1 ;; 35 | *) echo "Неизвестный формат архива" ;; 36 | esac 37 | else 38 | echo "Файл '$1' не существует" 39 | fi 40 | } 41 | 42 | function generate-password() { 43 | if [[ $# != 1 || "$1" == "-h" || "$1" == "--help" ]]; then 44 | echo "Usage: generate-password " 45 | else 46 | openssl rand -base64 $1 47 | fi 48 | } 49 | 50 | function docker-shell() { 51 | if [[ $# != 1 || "$1" == "-h" || "$1" == "--help" ]]; then 52 | echo "Usage: docker-shell " 53 | else 54 | docker exec -it $1 /bin/bash 55 | fi 56 | } 57 | 58 | function history-view() { 59 | history | tac | less 60 | } 61 | 62 | function tracetcp() { 63 | if [[ $# != 2 || "$1" == "-h" || "$1" == "--help" ]]; then 64 | echo "Usage: tracetcp
" 65 | else 66 | traceroute -T $1 -p $2 67 | fi 68 | } 69 | 70 | function tmux-set-box-ip() { 71 | if [[ $# != 1 || "$1" == "-h" || "$1" == "--help" ]]; then 72 | echo "Usage: tmux-set-box-ip
" 73 | else 74 | STATUS_BACKUP=$(tmux show-option -gv status-left) 75 | STATUS_LENGTH_BACKUP=$(tmux show-option -gv status-left-length) 76 | STATUS_IP_COLOR="#[fg=colour16,bg=colour96]" 77 | tmux set-option -g status-left "$STATUS_BACKUP$STATUS_IP_COLOR BOX: $1 #[fg=default,bg=default] " 78 | set -g status-left-length $(($STATUS_LENGTH_BACKUP + 21)) 79 | fi 80 | } 81 | 82 | function ssh-stealth() { 83 | if [[ $# != 3 || "$1" == "-h" || "$1" == "--help" ]]; then 84 | echo "Usage: ssh-stealth
" 85 | else 86 | ssh $1@$2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$3" 87 | fi 88 | } 89 | 90 | function conky-reload() { 91 | if [[ $(pgrep -x conky) ]]; then 92 | killall conky; 93 | conky -q -d; 94 | else 95 | conky -q -d; 96 | fi 97 | } 98 | # Либо можно добавить значок Conky на панель задач и изменить команду запуска на: 99 | # bash -c "if [[ $(pgrep -x conky) ]]; then killall conky; conky -q -d; else conky -q -d; fi" 100 | # Не ставя CheckBox "Запускать в терминале" -------------------------------------------------------------------------------- /git/.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = NordeN 3 | email = sher-rom2013@yandex.ru 4 | [core] 5 | longpaths = true 6 | quotepath = off 7 | safecrlf = warn 8 | editor = vim 9 | [diff] 10 | tool = meld 11 | [difftool "meld"] 12 | cmd = meld $LOCAL $REMOTE 13 | [merge] 14 | tool = meld 15 | [mergetool "meld"] 16 | prompt = false 17 | keepBackup = false 18 | cmd = meld "$LOCAL" "$MERGED" "$REMOTE" --output="$MERGED" 19 | [alias] 20 | lore = log --all --pretty=format:'%C(174)%h%C(auto)%d %C(114)[%s]' 21 | df = difftool -t meld 22 | mt = mergetool -t meld -------------------------------------------------------------------------------- /mate/mate_terminal.conf: -------------------------------------------------------------------------------- 1 | [profiles/default] 2 | allow-bold=true 3 | background-darkness=0.8193979933110368 4 | background-type='transparent' 5 | bold-color='#EDEDEDEDEDED' 6 | copy-selection=true 7 | cursor-shape='ibeam' 8 | default-show-menubar=true 9 | default-size-columns=140 10 | default-size-rows=42 11 | font='FreeMono Bold 12' 12 | foreground-color='#EDEDEDEDEDED' 13 | palette='#21222C:#FF5555:#50FA7B:#F1FA8C:#BD93F9:#FF79C6:#8BE9FD:#F8F8F2:#6272A4:#FF6E6E:#69FF94:#FFFFA5:#D6ACFF:#FF92DF:#A4FFFF:#FFFFFF' 14 | scroll-on-output=true 15 | scrollback-unlimited=true 16 | silent-bell=true 17 | title='HACK THEM ALL' 18 | title-mode='ignore' 19 | use-custom-default-size=true 20 | use-system-font=false 21 | use-urls=false 22 | visible-name='По умолчанию' 23 | -------------------------------------------------------------------------------- /mc/ini: -------------------------------------------------------------------------------- 1 | [Midnight-Commander] 2 | verbose=true 3 | shell_patterns=true 4 | auto_save_setup=true 5 | preallocate_space=false 6 | auto_menu=false 7 | use_internal_view=false 8 | use_internal_edit=false 9 | clear_before_exec=true 10 | confirm_delete=true 11 | confirm_overwrite=true 12 | confirm_execute=false 13 | confirm_history_cleanup=true 14 | confirm_exit=false 15 | confirm_directory_hotlist_delete=false 16 | confirm_view_dir=false 17 | safe_delete=false 18 | safe_overwrite=false 19 | use_8th_bit_as_meta=false 20 | mouse_move_pages_viewer=true 21 | mouse_close_dialog=false 22 | fast_refresh=false 23 | drop_menus=false 24 | wrap_mode=true 25 | old_esc_mode=true 26 | cd_symlinks=true 27 | show_all_if_ambiguous=false 28 | use_file_to_guess_type=true 29 | alternate_plus_minus=false 30 | only_leading_plus_minus=true 31 | show_output_starts_shell=false 32 | xtree_mode=false 33 | file_op_compute_totals=true 34 | classic_progressbar=true 35 | use_netrc=true 36 | ftpfs_always_use_proxy=false 37 | ftpfs_use_passive_connections=true 38 | ftpfs_use_passive_connections_over_proxy=false 39 | ftpfs_use_unix_list_options=true 40 | ftpfs_first_cd_then_ls=true 41 | ignore_ftp_chattr_errors=true 42 | editor_fill_tabs_with_spaces=false 43 | editor_return_does_auto_indent=true 44 | editor_backspace_through_tabs=false 45 | editor_fake_half_tabs=true 46 | editor_option_save_position=true 47 | editor_option_auto_para_formatting=false 48 | editor_option_typewriter_wrap=false 49 | editor_edit_confirm_save=true 50 | editor_syntax_highlighting=true 51 | editor_persistent_selections=true 52 | editor_drop_selection_on_copy=true 53 | editor_cursor_beyond_eol=false 54 | editor_cursor_after_inserted_block=false 55 | editor_visible_tabs=true 56 | editor_visible_spaces=true 57 | editor_line_state=false 58 | editor_simple_statusbar=false 59 | editor_check_new_line=false 60 | editor_show_right_margin=false 61 | editor_group_undo=false 62 | editor_state_full_filename=false 63 | editor_ask_filename_before_edit=false 64 | nice_rotating_dash=true 65 | shadows=true 66 | mcview_remember_file_position=false 67 | auto_fill_mkdir_name=true 68 | copymove_persistent_attr=true 69 | pause_after_run=1 70 | mouse_repeat_rate=100 71 | double_click_speed=250 72 | old_esc_mode_timeout=1000000 73 | max_dirt_limit=10 74 | num_history_items_recorded=60 75 | vfs_timeout=60 76 | ftpfs_directory_timeout=900 77 | ftpfs_retry_seconds=30 78 | fish_directory_timeout=900 79 | editor_tab_spacing=8 80 | editor_word_wrap_line_length=72 81 | editor_option_save_mode=0 82 | editor_backup_extension=~ 83 | editor_filesize_threshold=64M 84 | editor_stop_format_chars=-+*\\,.;:&> 85 | mcview_eof= 86 | skin=dracula256 87 | 88 | filepos_max_saved_entries=1024 89 | 90 | [Layout] 91 | output_lines=0 92 | left_panel_size=97 93 | top_panel_size=0 94 | message_visible=false 95 | keybar_visible=true 96 | xterm_title=true 97 | command_prompt=true 98 | menubar_visible=true 99 | free_space=true 100 | horizontal_split=false 101 | vertical_equal=true 102 | horizontal_equal=true 103 | 104 | [Misc] 105 | timeformat_recent=%b %e %H:%M 106 | timeformat_old=%b %e %Y 107 | ftp_proxy_host=gate 108 | ftpfs_password=anonymous@ 109 | display_codepage=UTF-8 110 | source_codepage=Other_8_bit 111 | autodetect_codeset= 112 | clipboard_store= 113 | clipboard_paste= 114 | 115 | [Colors] 116 | base_color= 117 | screen-256color= 118 | color_terminals= 119 | 120 | xterm-256color= 121 | 122 | [Panels] 123 | simple_swap=false 124 | show_mini_info=true 125 | kilobyte_si=false 126 | mix_all_files=false 127 | show_backups=true 128 | show_dot_files=true 129 | fast_reload=false 130 | fast_reload_msg_shown=false 131 | mark_moves_down=true 132 | reverse_files_only=true 133 | auto_save_setup_panels=true 134 | navigate_with_arrows=true 135 | panel_scroll_pages=true 136 | panel_scroll_center=false 137 | mouse_move_pages=true 138 | filetype_mode=true 139 | permission_mode=true 140 | torben_fj_mode=false 141 | quick_search_mode=2 142 | select_flags=6 143 | 144 | [Panelize] 145 | Изменённые файлы под контролем git=git ls-files --modified 146 | Найти корректуры, отвергнутые командой patch=find . -name \\*.rej -print 147 | Найти оригиналы (*.orig) после команды patch=find . -name \\*.orig -print 148 | Найти программы с установленными SUID/SGID битами=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print 149 | -------------------------------------------------------------------------------- /mc/panels.ini: -------------------------------------------------------------------------------- 1 | [New Left Panel] 2 | display=listing 3 | reverse=false 4 | case_sensitive=true 5 | exec_first=false 6 | sort_order=name 7 | list_mode=full 8 | brief_cols=2 9 | user_format=half type name | size | perm 10 | user_status0=half type name | size | perm 11 | user_status1=half type name | size | perm 12 | user_status2=half type name | size | perm 13 | user_status3=half type name | size | perm 14 | user_mini_status=false 15 | list_format=full 16 | 17 | [New Right Panel] 18 | display=listing 19 | reverse=false 20 | case_sensitive=true 21 | exec_first=false 22 | sort_order=name 23 | list_mode=full 24 | brief_cols=2 25 | user_format=half type name | size | perm 26 | user_status0=half type name | size | perm 27 | user_status1=half type name | size | perm 28 | user_status2=half type name | size | perm 29 | user_status3=half type name | size | perm 30 | user_mini_status=false 31 | list_format=full 32 | 33 | [Dirs] 34 | current_is_left=true 35 | other_dir=/home/norden 36 | -------------------------------------------------------------------------------- /tmux/.tmux.conf: -------------------------------------------------------------------------------- 1 | set -g @plugin 'tmux-plugins/tpm' 2 | set -g @plugin 'tmux-plugins/tmux-yank' 3 | set -g @plugin 'sainnhe/tmux-fzf' 4 | 5 | unbind C-b 6 | unbind "\$" # rename-session 7 | unbind , # rename-window 8 | unbind % # split-window -h 9 | unbind '"' # split-window 10 | unbind '}' # swap-pane -D 11 | unbind '{' # swap-pane -U 12 | unbind & # kill-window 13 | unbind z # zoom-pane 14 | unbind ! # break-pane 15 | unbind ';' # last-pane 16 | 17 | bind C-b send-prefix 18 | bind x kill-pane 19 | bind X kill-window 20 | bind C-x set detach-on-destroy off \; kill-session 21 | bind ';' confirm-before -p "Kill other windows? (y/n)" "kill-window -a" 22 | bind Q kill-session 23 | bind _ split-window -v -c "#{pane_current_path}" 24 | bind | split-window -h -c "#{pane_current_path}" 25 | bind c new-window -c "#{pane_current_path}" 26 | bind tab last-window 27 | bind h select-pane -L 28 | bind j select-pane -D 29 | bind k select-pane -U 30 | bind l select-pane -R 31 | bind > swap-pane -D 32 | bind < swap-pane -U 33 | bind / copy-mode \; send-key / 34 | bind ? copy-mode \; send-key ? 35 | bind a set-window-option synchronize-panes\; display "Sync input now is: #{?pane_synchronized,on,off}" 36 | bind r command-prompt -I "#{window_name}" "rename-window '%%'" 37 | bind R command-prompt -I "#{session_name}" "rename-session '%%'" 38 | bind C-r source-file ~/.tmux.conf \; display "Tmux config reloaded!" 39 | bind + resize-pane -Z 40 | bind W break-pane 41 | bind C new-session -c "#{pane_current_path}" 42 | 43 | set -g prefix ` 44 | setw -g mode-keys vi 45 | set -g mouse on 46 | set -g base-index 1 47 | setw -g pane-base-index 1 48 | set -g history-limit 10000 49 | set -g renumber-windows on 50 | set -g status-interval 1 51 | set -g default-terminal "screen-256color" 52 | setw -g visual-bell on 53 | setw -g bell-action other 54 | set -sg escape-time 0 55 | set -g status-position top 56 | 57 | # Статусбар 58 | set -g status-left-length 30 59 | set -g status-left "#[fg=colour16,bg=colour220] #S #[fg=default,bg=default] " 60 | set -g status-right-length 45 61 | set -g status-right "#[fg=colour0,bg=colour109]#(/opt/scripts/vpn_ip.sh)#[fg=colour0,bg=colour109] %H:%M:%S %d.%m.%Y " 62 | set -g status-style "bg=default fg=colour107" 63 | 64 | # Уведомления 65 | set -g message-style "bg=colour75 fg=colour0" 66 | 67 | # Режим 68 | set -g mode-style "bg=colour227 fg=colour0" 69 | 70 | # Панели 71 | set -g pane-active-border-style "bg=default fg=colour9" 72 | 73 | # Окна 74 | setw -g window-status-format " #I:#W " 75 | setw -g window-status-current-format " #I:#W " 76 | setw -g window-status-current-style "bg=colour107 fg=colour0" 77 | setw -g window-status-bell-style "bg=colour223 fg=colour160,blink" 78 | 79 | run $HOME/.tmux/plugins/tpm/tpm 80 | -------------------------------------------------------------------------------- /tmux/vpn_ip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -d /proc/sys/net/ipv4/conf/tun0 ] && echo " VPN $({ ip -4 -br a sh dev tun0 | awk {'print $3'} | cut -f1 -d/; } 2>/dev/null) |" 3 | -------------------------------------------------------------------------------- /vim/.vimrc: -------------------------------------------------------------------------------- 1 | call plug#begin('~/.vim/plugins') 2 | Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} 3 | Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } 4 | Plug 'junegunn/fzf.vim' 5 | Plug 'vim-airline/vim-airline' 6 | Plug 'vim-airline/vim-airline-themes' 7 | Plug 'flazz/vim-colorschemes' 8 | Plug 'xolox/vim-colorscheme-switcher' 9 | Plug 'xolox/vim-misc' 10 | Plug 'psliwka/vim-smoothie' 11 | Plug 'catppuccin/nvim' 12 | call plug#end() 13 | 14 | syntax on 15 | set nocompatible 16 | set number 17 | set cursorline 18 | set tabstop=4 19 | set shiftwidth=4 20 | set smarttab 21 | set expandtab 22 | set autoindent 23 | set smartindent 24 | set hlsearch 25 | set incsearch 26 | set ignorecase 27 | set smartcase 28 | set showmatch 29 | set noerrorbells 30 | set nobackup 31 | set noswapfile 32 | set noundofile 33 | set listchars=tab:→\ ,trail:␣,extends:…,space:·,eol:$ 34 | set iminsert=0 35 | set mouse=a 36 | set wrap 37 | set linebreak 38 | set laststatus=2 39 | set clipboard=unnamedplus 40 | 41 | set t_Co=256 42 | "colorscheme gruvbox 43 | "colorscheme habamax 44 | colorscheme iceberg 45 | let g:airline_theme='wombat' 46 | set background=dark 47 | 48 | nnoremap k gk 49 | nnoremap gk k 50 | nnoremap j gj 51 | nnoremap gj j 52 | 53 | function! TogglePaste() 54 | if &paste 55 | set nopaste 56 | echo "🛑 Paste mode OFF" 57 | else 58 | set paste 59 | echo "✅ Paste mode ON" 60 | endif 61 | endfunction 62 | 63 | set laststatus=2 " Always show statusline 64 | set statusline=%f%m%r%h%w\ [%{&filetype}]\ %{&paste?'[PASTE]':''} 65 | 66 | nnoremap :call TogglePaste() 67 | inoremap :call TogglePaste() 68 | nmap :set list! 69 | nmap :w 70 | nmap :w! 71 | nmap :q 72 | nmap :q! 73 | nmap :tabnew 74 | nmap :tabprev 75 | nmap :tabnext -------------------------------------------------------------------------------- /xfce4/xfce4-terminal/xfce4-terminal.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /zsh/.zprofile: -------------------------------------------------------------------------------- 1 | export PATH="$PATH:/root/.local/bin" 2 | -------------------------------------------------------------------------------- /zsh/.zshrc: -------------------------------------------------------------------------------- 1 | typeset -A ZSH_HIGHLIGHT_STYLES 2 | 3 | DISABLE_AUTO_UPDATE=true 4 | HIST_STAMPS="%d.%m.%Y %H:%M:%S" 5 | 6 | export ZSH=$HOME/.oh-my-zsh 7 | export HISTFILE=$HOME/.zsh_history 8 | export SAVEHIST=5000 9 | export HISTSIZE=5000 10 | export VISUAL=/usr/bin/nvim 11 | export EDITOR=/usr/bin/nvim 12 | export MANPAGER='less -Mr +Gg' 13 | export ZSH_TMUX_AUTOSTART=true 14 | # Настройки fzf 15 | export FZF_ALT_C_COMMAND="fd --hidden --type d" 16 | export FZF_DEFAULT_OPTS='--bind alt-q:abort --color=pointer:227,hl:131,hl+:131 --no-info' 17 | export FZF_CTRL_R_OPTS='-e --cycle --prompt "Command: " --no-info --layout reverse --height 100% --color=fg:15,hl:9,hl+:9' 18 | export FZF_CTRL_T_OPTS='--preview "bat -n --color=always {}" --bind "ctrl-/:change-preview-window(down|hidden|)"' 19 | # Настройки плагина zsh-syntax-highlighting 20 | export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) 21 | export ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=160' 22 | export ZSH_HIGHLIGHT_STYLES[builtin]='fg=107' 23 | export ZSH_HIGHLIGHT_STYLES[precommand]='fg=107,underline' 24 | export ZSH_HIGHLIGHT_STYLES[command]='fg=107' 25 | export ZSH_HIGHLIGHT_STYLES[global-alias]='fg=107' 26 | export ZSH_HIGHLIGHT_STYLES[alias]='fg=107' 27 | export ZSH_HIGHLIGHT_STYLES[function]='fg=107' 28 | export ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=107' 29 | export ZSH_HIGHLIGHT_STYLES[arg0]='fg=107' 30 | export ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=208' 31 | export ZSH_HIGHLIGHT_STYLES[globbing]='fg=174' 32 | export ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=227' 33 | export ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=227' 34 | export ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=125' 35 | export ZSH_HIGHLIGHT_STYLES[path]='fg=248,underline' 36 | 37 | setopt SHARE_HISTORY 38 | setopt EXTENDED_HISTORY 39 | setopt INC_APPEND_HISTORY 40 | setopt HIST_IGNORE_ALL_DUPS 41 | setopt HIST_REDUCE_BLANKS 42 | setopt HIST_IGNORE_SPACE 43 | setopt HIST_NO_STORE 44 | setopt EXTENDED_GLOB 45 | setopt GLOBDOTS 46 | setopt NOTIFY 47 | setopt AUTOCD 48 | 49 | HISTORY_IGNORE="(history|ls|la|ll|lla|cd|clear|cls)" 50 | 51 | plugins=( 52 | git 53 | sudo 54 | tmux 55 | systemd 56 | httpie 57 | dirhistory 58 | fzf 59 | docker 60 | rsync 61 | python 62 | aliases 63 | emoji 64 | colored-man-pages 65 | colorize 66 | command-not-found 67 | copybuffer 68 | firewalld 69 | themes 70 | fzf-tab 71 | zsh-autosuggestions 72 | zsh-syntax-highlighting 73 | ) 74 | 75 | source $ZSH/oh-my-zsh.sh 76 | 77 | for config_file in $HOME/.{aliases,functions}; do 78 | if [[ -r "$config_file" ]] && [[ -f "$config_file" ]]; then 79 | source "$config_file" 80 | fi 81 | done 82 | unset config_file 83 | 84 | # Настройки автодополнения zsh 85 | zstyle ':completion:*' special-dirs false 86 | # Настройки плагина fzf-tab 87 | zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath' 88 | 89 | bindkey '^[[A' up-line-or-search 90 | bindkey '^[[B' down-line-or-search 91 | # Настройки плагина zsh-autosuggestions 92 | bindkey '^ ' autosuggest-accept 93 | 94 | # Настройки Shell Prompt 95 | function VENV_PROMPT { 96 | if [[ -n "$VIRTUAL_ENV" ]]; then 97 | echo ${VIRTUAL_ENV_PROMPT% } 98 | fi 99 | } 100 | export VIRTUAL_ENV_DISABLE_PROMPT=1 101 | export RESET_PROMPT="%{$reset_color%}" 102 | export PROMPT='┌─%B$FG[036]$(VENV_PROMPT)$RESET_PROMPT─[%B$FG[167]%n$FG[144]㉿$FG[216]%M $FG[109]%~%f%b] $(git_prompt_info) 103 | └─%# ' 104 | export ZSH_THEME_GIT_PROMPT_PREFIX="%B$FG[145]git:[$FG[228]" 105 | export ZSH_THEME_GIT_PROMPT_DIRTY="$FG[145]]:[$FG[228]✗$FG[145]] " 106 | export ZSH_THEME_GIT_PROMPT_CLEAN="$FG[145]] " 107 | export ZSH_THEME_GIT_PROMPT_SUFFIX=$RESET_PROMPT 108 | 109 | # Настройка плагина colored-man-pages 110 | typeset -AHg less_termcap 111 | less_termcap[mb]="${fg_bold[red]}" # 112 | less_termcap[md]="${fg_bold[green]}" # параметры 113 | less_termcap[me]="${reset_color}" 114 | less_termcap[se]="${reset_color}" 115 | less_termcap[so]="${fg_bold[yellow]}" # строка состояния 116 | less_termcap[ue]="${reset_color}" 117 | less_termcap[us]="${fg_bold[red]}" # аргументы параметров 118 | 119 | # Подгрузка кастомных автодополнений для zsh 120 | fpath=( 121 | $HOME/.zsh-custom-completions 122 | $fpath 123 | ) 124 | autoload -Uz compinit 125 | compinit 126 | 127 | zstyle ':completion:*:ssh:*' hosts 128 | zstyle ':completion:*:ssh:*' config ~/.ssh/config 129 | zstyle ':completion:*:ssh:*' known-hosts ~/.ssh/known_hosts 130 | 131 | eval "$(uv generate-shell-completion zsh)" --------------------------------------------------------------------------------