Compare commits
2 Commits
ecf0c6ddf5
...
termux
| Author | SHA1 | Date | |
|---|---|---|---|
| c379f7a204 | |||
| ed82588786 |
@@ -1,17 +0,0 @@
|
|||||||
# .bash_profile
|
|
||||||
|
|
||||||
# Get the aliases and functions
|
|
||||||
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
|
||||||
|
|
||||||
export _JAVA_AWT_WM_NOREPARENTING=1
|
|
||||||
export PATH="$PATH:/opt/texlive/2023/bin/x86_64-linux/"
|
|
||||||
|
|
||||||
# SSHAGENT
|
|
||||||
export SSH_AUTH_SOCK=${HOME}/.ssh/agent
|
|
||||||
if ! pgrep -u ${USER} ssh-agent > /dev/null; then
|
|
||||||
rm -f ${SSH_AUTH_SOCK}
|
|
||||||
fi
|
|
||||||
if [ ! -S ${SSH_AUTH_SOCK} ]; then
|
|
||||||
eval $(ssh-agent -a ${SSH_AUTH_SOCK} 2> /dev/null)
|
|
||||||
fi
|
|
||||||
|
|
||||||
74
.bashrc
74
.bashrc
@@ -14,9 +14,6 @@ source /etc/profile
|
|||||||
|
|
||||||
|
|
||||||
# PS1 shell color
|
# PS1 shell color
|
||||||
## simple white ps1 without git
|
|
||||||
#PS1='\[\e[0m\][\[\e[0m\]\u\[\e[0m\]@\[\e[0m\]\H \[\e[0m\]\W\[\e[0m\]]\[\e[0m\]\$ \[\e[0m\]'
|
|
||||||
|
|
||||||
## based on: https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
|
## based on: https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
|
||||||
## get current branch in git repo
|
## get current branch in git repo
|
||||||
function parse_git_branch() {
|
function parse_git_branch() {
|
||||||
@@ -82,14 +79,6 @@ killport () {
|
|||||||
kill $(lsof -t -i:"$1")
|
kill $(lsof -t -i:"$1")
|
||||||
}
|
}
|
||||||
|
|
||||||
## Enable runit service (for Void Linux)
|
|
||||||
function sv-enable () {
|
|
||||||
if test -e /etc/sv/$1; then
|
|
||||||
doas ln -sv /etc/sv/$1 /var/service/
|
|
||||||
else
|
|
||||||
echo "Error: /etc/sv/$1 does not exist"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
## Switch keyboard layouts
|
## Switch keyboard layouts
|
||||||
function xkb-switch () {
|
function xkb-switch () {
|
||||||
@@ -126,65 +115,33 @@ m3u8-download() {
|
|||||||
youtube-dl -f $format_code --hls-prefer-native "$1"
|
youtube-dl -f $format_code --hls-prefer-native "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
## GPG functions
|
|
||||||
gpg_encrypt () {
|
|
||||||
output=~/"${1}".$(date +%s).enc
|
|
||||||
#gpg --encrypt --armor --output ${output} -r 0x0000 -r 0x0001 -r 0x0002 "${1}" && echo "${1} -> ${output}"
|
|
||||||
gpg --encrypt --armor --output ${output} "${1}" && echo "${1} -> ${output}"
|
|
||||||
}
|
|
||||||
|
|
||||||
gpg_decrypt () {
|
|
||||||
output=$(echo "${1}" | rev | cut -c16- | rev)
|
|
||||||
gpg --decrypt --output ${output} "${1}" && echo "${1} -> ${output}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# for spawning new terminal instances in the current working directory in foot terminal
|
|
||||||
osc7_cwd() {
|
|
||||||
local strlen=${#PWD}
|
|
||||||
local encoded=""
|
|
||||||
local pos c o
|
|
||||||
for (( pos=0; pos<strlen; pos++ )); do
|
|
||||||
c=${PWD:$pos:1}
|
|
||||||
case "$c" in
|
|
||||||
[-/:_.!\'\(\)~[:alnum:]] ) o="${c}" ;;
|
|
||||||
* ) printf -v o '%%%02X' "'${c}" ;;
|
|
||||||
esac
|
|
||||||
encoded+="${o}"
|
|
||||||
done
|
|
||||||
printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}"
|
|
||||||
}
|
|
||||||
PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }osc7_cwd
|
|
||||||
|
|
||||||
|
|
||||||
# Aliases and Exports
|
# Aliases and Exports
|
||||||
## utility
|
## utility
|
||||||
alias cal="cal -m"
|
alias cal="cal -m"
|
||||||
|
|
||||||
## shell
|
## shell
|
||||||
#set -o vi # vim keybinding in terminal
|
set -o vi # vim keybinding in terminal
|
||||||
EDITOR=vim # prefered editor
|
EDITOR=vim # prefered editor
|
||||||
stty -ixon # reverse i search bash
|
stty -ixon # reverse i search bash
|
||||||
complete -cf doas # doas completion
|
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
alias ll="ls -lFh"
|
alias ll="ls -lFh"
|
||||||
alias la="ls -alh"
|
alias la="ls -alh"
|
||||||
alias l="ls -CF"
|
alias l="ls -CF"
|
||||||
alias ld="ls -d -F */"
|
alias ld="ls -d -F */"
|
||||||
alias lda="ls -l -d -p */"
|
alias lda="ls -l -d -p */"
|
||||||
export HISTCONTROL=ignoredups # fuckin history identical vole
|
|
||||||
|
|
||||||
## network
|
## network
|
||||||
|
|
||||||
## shortcuts
|
## shortcuts
|
||||||
alias lgfr="cd ~/git/fr/"
|
alias lgfr="cd ~/git/filiprojek/"
|
||||||
alias lgfw="cd ~/git/fofrweb/"
|
alias lgfw="cd ~/git/fofrweb/"
|
||||||
alias lbc="cd ~/git/fr/pedf/bc"
|
alias lbc="cd ~/git/fr/pedf/bc"
|
||||||
|
|
||||||
## programs
|
## programs
|
||||||
#alias r="ranger"
|
alias r="ranger"
|
||||||
alias r="yazi"
|
|
||||||
alias feh="feh --scale-down"
|
alias feh="feh --scale-down"
|
||||||
#alias dragon="dragon-drop"
|
alias dragon="dragon-drop"
|
||||||
alias xclip="xclip -selection c"
|
alias xclip="xclip -selection c"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias passmenu="passmenu -l 10"
|
alias passmenu="passmenu -l 10"
|
||||||
@@ -192,7 +149,6 @@ alias speedtest="speedtest-cli"
|
|||||||
alias "cd.."="cd .."
|
alias "cd.."="cd .."
|
||||||
alias df='df -h' # human-readable sizes
|
alias df='df -h' # human-readable sizes
|
||||||
alias free='free -m' # show sizes in MB
|
alias free='free -m' # show sizes in MB
|
||||||
#alias tldr='tldr -t base16' # colors
|
|
||||||
|
|
||||||
## gpg encryption
|
## gpg encryption
|
||||||
# verify signature for isos
|
# verify signature for isos
|
||||||
@@ -225,12 +181,11 @@ alias wttrfull="curl -s wttr.in/Prague?qM"
|
|||||||
alias whatsmyip="dig +short myip.opendns.com @resolver1.opendns.com"
|
alias whatsmyip="dig +short myip.opendns.com @resolver1.opendns.com"
|
||||||
alias htmlvlna="vlna -s -r -x 266E6273703B"
|
alias htmlvlna="vlna -s -r -x 266E6273703B"
|
||||||
alias fuck='doas $(history -p \!\!)'
|
alias fuck='doas $(history -p \!\!)'
|
||||||
alias sudo="doas"
|
alias doas="sudo"
|
||||||
|
|
||||||
## void xbps aliases
|
## void xbps aliases
|
||||||
#alias xi="doas xbps-install"
|
alias xi="doas xbps-install"
|
||||||
alias xi="doas xi"
|
alias xq="doas xbps-query -Rs"
|
||||||
alias xq="xbps-query -Rs"
|
|
||||||
alias xr="doas xbps-remove"
|
alias xr="doas xbps-remove"
|
||||||
alias xrd="doas xbps-remove -R" # remove all dependencies
|
alias xrd="doas xbps-remove -R" # remove all dependencies
|
||||||
alias xu="doas xbps-install -Suv" # update
|
alias xu="doas xbps-install -Suv" # update
|
||||||
@@ -238,27 +193,18 @@ alias xreinstall="doas xbps-install -f"
|
|||||||
alias xlu="xbps-install -Suvn" # list packages requiring updates
|
alias xlu="xbps-install -Suvn" # list packages requiring updates
|
||||||
|
|
||||||
## random
|
## random
|
||||||
|
#alias vim="nvim"
|
||||||
alias todo="vim ~/_todo.md"
|
alias todo="vim ~/_todo.md"
|
||||||
alias schm="~/.screenlayout/home.sh"
|
alias schm="~/.screenlayout/home.sh"
|
||||||
alias sclp="~/.screenlayout/laptop.sh"
|
alias sclp="~/.screenlayout/laptop.sh"
|
||||||
|
|
||||||
### bare git repo alias for dotfiles
|
### bare git repo alias for dotfiles
|
||||||
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
|
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
|
||||||
|
|
||||||
|
|
||||||
# Exports
|
# Exports
|
||||||
export PATH="$PATH:$HOME/.cargo/bin"
|
export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
export PATH="$PATH:/var/lib/flatpak/exports/bin"
|
export PATH="$PATH:/var/lib/flatpak/exports/bin"
|
||||||
export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin"
|
export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin"
|
||||||
export PATH="$PATH:/home/fr/git/microlab/wpa_tui/dmenu_scripts"
|
|
||||||
|
|
||||||
# Locales Exports
|
|
||||||
export LC_ALL=en_US.UTF-8
|
|
||||||
export LANG=en_US.UTF-8
|
|
||||||
export LANGUAGE=en_US.UTF-8
|
|
||||||
|
|
||||||
# autologin on tty1
|
|
||||||
# if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
|
|
||||||
# exec startx
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
neofetch
|
||||||
|
|||||||
1
.config/alacritty/.gitignore
vendored
1
.config/alacritty/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
alacritty.yml
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
font:
|
|
||||||
normal:
|
|
||||||
family: LiterationMono Nerd Font Mono
|
|
||||||
style: Regular
|
|
||||||
|
|
||||||
bold:
|
|
||||||
family: LiterationMono Nerd Font Mono
|
|
||||||
style: Bold
|
|
||||||
|
|
||||||
italic:
|
|
||||||
family: LiterationMono Nerd Font Mono
|
|
||||||
style: Italic
|
|
||||||
|
|
||||||
bold_italic:
|
|
||||||
family: LiterationMono Nerd Font Mono
|
|
||||||
style: Bold Italic
|
|
||||||
|
|
||||||
|
|
||||||
size: 8
|
|
||||||
|
|
||||||
# Base16 Default Dark - alacritty color config
|
|
||||||
# Chris Kempson (http://chriskempson.com)
|
|
||||||
colors:
|
|
||||||
# Default colors
|
|
||||||
primary:
|
|
||||||
background: '0x181818'
|
|
||||||
# foreground: '0xd8d8d8'
|
|
||||||
# background: '0x000000'
|
|
||||||
foreground: '0xffffff'
|
|
||||||
|
|
||||||
# Colors the cursor will use if `custom_cursor_colors` is true
|
|
||||||
cursor:
|
|
||||||
text: '0x181818'
|
|
||||||
cursor: '0xd8d8d8'
|
|
||||||
|
|
||||||
# Normal colors
|
|
||||||
normal:
|
|
||||||
black: '0x181818'
|
|
||||||
red: '0xab4642'
|
|
||||||
green: '0xa1b56c'
|
|
||||||
yellow: '0xf7ca88'
|
|
||||||
blue: '0x7cafc2'
|
|
||||||
magenta: '0xba8baf'
|
|
||||||
cyan: '0x86c1b9'
|
|
||||||
white: '0xd8d8d8'
|
|
||||||
|
|
||||||
bright:
|
|
||||||
black: '0x181818'
|
|
||||||
red: '0xab4642'
|
|
||||||
green: '0xa1b56c'
|
|
||||||
yellow: '0xf7ca88'
|
|
||||||
blue: '0x7cafc2'
|
|
||||||
magenta: '0xba8baf'
|
|
||||||
cyan: '0x86c1b9'
|
|
||||||
white: '0xd8d8d8'
|
|
||||||
|
|
||||||
# Bright colors
|
|
||||||
# bright:
|
|
||||||
# black: '0x585858'
|
|
||||||
# red: '0xdc9656'
|
|
||||||
# green: '0x282828'
|
|
||||||
# yellow: '0x383838'
|
|
||||||
# blue: '0xb8b8b8'
|
|
||||||
# magenta: '0xe8e8e8'
|
|
||||||
# cyan: '0xa16946'
|
|
||||||
# white: '0xf8f8f8'
|
|
||||||
|
|
||||||
indexed_colors:
|
|
||||||
- { index: 16, color: '0xdc9656' }
|
|
||||||
- { index: 17, color: '0xa16946' }
|
|
||||||
- { index: 18, color: '0x282828' }
|
|
||||||
- { index: 19, color: '0x383838' }
|
|
||||||
- { index: 20, color: '0xb8b8b8' }
|
|
||||||
- { index: 21, color: '0xe8e8e8' }
|
|
||||||
|
|
||||||
draw_bold_text_with_bright_colors: false
|
|
||||||
|
|
||||||
window:
|
|
||||||
opacity: 0.9
|
|
||||||
|
|
||||||
key_bindings:
|
|
||||||
- { key: Return, mods: Control|Shift, action: SpawnNewInstance }
|
|
||||||
|
|
||||||
env:
|
|
||||||
TERM: xterm-256color
|
|
||||||
|
|
||||||
@@ -1,875 +0,0 @@
|
|||||||
{
|
|
||||||
"input": {
|
|
||||||
"autogain#0": {
|
|
||||||
"bypass": true,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"maximum-history": 15,
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"reference": "Geometric Mean (MSI)",
|
|
||||||
"silence-threshold": -70.0,
|
|
||||||
"target": -18.999999999999943
|
|
||||||
},
|
|
||||||
"blocklist": [],
|
|
||||||
"compressor#0": {
|
|
||||||
"attack": 10.0,
|
|
||||||
"boost-amount": 6.0,
|
|
||||||
"boost-threshold": -72.0,
|
|
||||||
"bypass": false,
|
|
||||||
"dry": -100.0,
|
|
||||||
"hpf-frequency": 10.0,
|
|
||||||
"hpf-mode": "off",
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"knee": -6.0,
|
|
||||||
"lpf-frequency": 20000.0,
|
|
||||||
"lpf-mode": "off",
|
|
||||||
"makeup": 0.0,
|
|
||||||
"mode": "Downward",
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"ratio": 4.0,
|
|
||||||
"release": 200.0,
|
|
||||||
"release-threshold": -100.0,
|
|
||||||
"sidechain": {
|
|
||||||
"lookahead": 0.0,
|
|
||||||
"mode": "RMS",
|
|
||||||
"preamp": 0.0,
|
|
||||||
"reactivity": 10.0,
|
|
||||||
"source": "Middle",
|
|
||||||
"stereo-split-source": "Left/Right",
|
|
||||||
"type": "Feed-forward"
|
|
||||||
},
|
|
||||||
"stereo-split": false,
|
|
||||||
"threshold": -10.0,
|
|
||||||
"wet": 0.0
|
|
||||||
},
|
|
||||||
"deepfilternet#0": {
|
|
||||||
"attenuation-limit": 100.0,
|
|
||||||
"max-df-processing-threshold": 20.0,
|
|
||||||
"max-erb-processing-threshold": 30.0,
|
|
||||||
"min-processing-buffer": 0,
|
|
||||||
"min-processing-threshold": -10.0,
|
|
||||||
"post-filter-beta": 0.02
|
|
||||||
},
|
|
||||||
"deesser#0": {
|
|
||||||
"bypass": true,
|
|
||||||
"detection": "RMS",
|
|
||||||
"f1-freq": 6000.0,
|
|
||||||
"f1-level": 0.0,
|
|
||||||
"f2-freq": 4500.0,
|
|
||||||
"f2-level": 12.0,
|
|
||||||
"f2-q": 1.0,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"laxity": 15,
|
|
||||||
"makeup": 0.0,
|
|
||||||
"mode": "Wide",
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"ratio": 3.0,
|
|
||||||
"sc-listen": false,
|
|
||||||
"threshold": -18.0
|
|
||||||
},
|
|
||||||
"equalizer#0": {
|
|
||||||
"balance": 0.0,
|
|
||||||
"bypass": true,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"left": {
|
|
||||||
"band0": {
|
|
||||||
"frequency": 22.4,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band1": {
|
|
||||||
"frequency": 27.8,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band10": {
|
|
||||||
"frequency": 194.06,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band11": {
|
|
||||||
"frequency": 240.81,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band12": {
|
|
||||||
"frequency": 298.834,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band13": {
|
|
||||||
"frequency": 370.834,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band14": {
|
|
||||||
"frequency": 460.182,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band15": {
|
|
||||||
"frequency": 571.057,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band16": {
|
|
||||||
"frequency": 708.647,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band17": {
|
|
||||||
"frequency": 879.387,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band18": {
|
|
||||||
"frequency": 1091.26,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band19": {
|
|
||||||
"frequency": 1354.19,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band2": {
|
|
||||||
"frequency": 34.51,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band20": {
|
|
||||||
"frequency": 1680.47,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band21": {
|
|
||||||
"frequency": 2085.35,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band22": {
|
|
||||||
"frequency": 2587.79,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band23": {
|
|
||||||
"frequency": 3211.29,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band24": {
|
|
||||||
"frequency": 3985.01,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band25": {
|
|
||||||
"frequency": 4945.15,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band26": {
|
|
||||||
"frequency": 6136.63,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band27": {
|
|
||||||
"frequency": 7615.17,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band28": {
|
|
||||||
"frequency": 9449.96,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band29": {
|
|
||||||
"frequency": 11726.8,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band3": {
|
|
||||||
"frequency": 42.82,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band30": {
|
|
||||||
"frequency": 14552.2,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band31": {
|
|
||||||
"frequency": 18058.4,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band4": {
|
|
||||||
"frequency": 53.14,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band5": {
|
|
||||||
"frequency": 65.95,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band6": {
|
|
||||||
"frequency": 81.83,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band7": {
|
|
||||||
"frequency": 101.55,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band8": {
|
|
||||||
"frequency": 126.0,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band9": {
|
|
||||||
"frequency": 156.38,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mode": "IIR",
|
|
||||||
"num-bands": 32,
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"pitch-left": 0.0,
|
|
||||||
"pitch-right": 0.0,
|
|
||||||
"right": {
|
|
||||||
"band0": {
|
|
||||||
"frequency": 22.4,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band1": {
|
|
||||||
"frequency": 27.8,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band10": {
|
|
||||||
"frequency": 194.06,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band11": {
|
|
||||||
"frequency": 240.81,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band12": {
|
|
||||||
"frequency": 298.834,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band13": {
|
|
||||||
"frequency": 370.834,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band14": {
|
|
||||||
"frequency": 460.182,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band15": {
|
|
||||||
"frequency": 571.057,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band16": {
|
|
||||||
"frequency": 708.647,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band17": {
|
|
||||||
"frequency": 879.387,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band18": {
|
|
||||||
"frequency": 1091.26,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band19": {
|
|
||||||
"frequency": 1354.19,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band2": {
|
|
||||||
"frequency": 34.51,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band20": {
|
|
||||||
"frequency": 1680.47,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band21": {
|
|
||||||
"frequency": 2085.35,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band22": {
|
|
||||||
"frequency": 2587.79,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band23": {
|
|
||||||
"frequency": 3211.29,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band24": {
|
|
||||||
"frequency": 3985.01,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band25": {
|
|
||||||
"frequency": 4945.15,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band26": {
|
|
||||||
"frequency": 6136.63,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band27": {
|
|
||||||
"frequency": 7615.17,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band28": {
|
|
||||||
"frequency": 9449.96,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band29": {
|
|
||||||
"frequency": 11726.8,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band3": {
|
|
||||||
"frequency": 42.82,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band30": {
|
|
||||||
"frequency": 14552.2,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band31": {
|
|
||||||
"frequency": 18058.4,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band4": {
|
|
||||||
"frequency": 53.14,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band5": {
|
|
||||||
"frequency": 65.95,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band6": {
|
|
||||||
"frequency": 81.83,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band7": {
|
|
||||||
"frequency": 101.55,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band8": {
|
|
||||||
"frequency": 126.0,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
},
|
|
||||||
"band9": {
|
|
||||||
"frequency": 156.38,
|
|
||||||
"gain": 0.0,
|
|
||||||
"mode": "RLC (BT)",
|
|
||||||
"mute": false,
|
|
||||||
"q": 4.36,
|
|
||||||
"slope": "x1",
|
|
||||||
"solo": false,
|
|
||||||
"type": "Bell",
|
|
||||||
"width": 4.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"split-channels": false
|
|
||||||
},
|
|
||||||
"gate#0": {
|
|
||||||
"attack": 25.0,
|
|
||||||
"bypass": false,
|
|
||||||
"curve-threshold": -45.0,
|
|
||||||
"curve-zone": -6.0,
|
|
||||||
"dry": -100.0,
|
|
||||||
"hpf-frequency": 10.0,
|
|
||||||
"hpf-mode": "off",
|
|
||||||
"hysteresis": false,
|
|
||||||
"hysteresis-threshold": -12.0,
|
|
||||||
"hysteresis-zone": -6.0,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"lpf-frequency": 20000.0,
|
|
||||||
"lpf-mode": "off",
|
|
||||||
"makeup": 0.0,
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"reduction": -24.0,
|
|
||||||
"release": 250.0,
|
|
||||||
"sidechain": {
|
|
||||||
"input": "Internal",
|
|
||||||
"lookahead": 0.0,
|
|
||||||
"mode": "RMS",
|
|
||||||
"preamp": 0.0,
|
|
||||||
"reactivity": 10.0,
|
|
||||||
"source": "Middle",
|
|
||||||
"stereo-split-source": "Left/Right"
|
|
||||||
},
|
|
||||||
"stereo-split": false,
|
|
||||||
"wet": 0.0
|
|
||||||
},
|
|
||||||
"plugins_order": [
|
|
||||||
"stereo_tools#0",
|
|
||||||
"gate#0",
|
|
||||||
"compressor#0",
|
|
||||||
"autogain#0",
|
|
||||||
"rnnoise#0",
|
|
||||||
"deepfilternet#0",
|
|
||||||
"speex#0",
|
|
||||||
"equalizer#0",
|
|
||||||
"deesser#0"
|
|
||||||
],
|
|
||||||
"rnnoise#0": {
|
|
||||||
"bypass": false,
|
|
||||||
"enable-vad": false,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"model-name": "",
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"release": 20.0,
|
|
||||||
"vad-thres": 50.0,
|
|
||||||
"wet": 0.0
|
|
||||||
},
|
|
||||||
"speex#0": {
|
|
||||||
"bypass": true,
|
|
||||||
"enable-agc": false,
|
|
||||||
"enable-denoise": true,
|
|
||||||
"enable-dereverb": false,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"noise-suppression": -70,
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"vad": {
|
|
||||||
"enable": true,
|
|
||||||
"probability-continue": 90,
|
|
||||||
"probability-start": 95
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stereo_tools#0": {
|
|
||||||
"balance-in": 0.0,
|
|
||||||
"balance-out": 0.0,
|
|
||||||
"bypass": false,
|
|
||||||
"delay": 0.0,
|
|
||||||
"input-gain": 0.0,
|
|
||||||
"middle-level": 0.0,
|
|
||||||
"middle-panorama": 0.0,
|
|
||||||
"mode": "LR > LL (Mono Left Channel)",
|
|
||||||
"mutel": false,
|
|
||||||
"muter": false,
|
|
||||||
"output-gain": 0.0,
|
|
||||||
"phasel": false,
|
|
||||||
"phaser": false,
|
|
||||||
"sc-level": 1.0,
|
|
||||||
"side-balance": 0.0,
|
|
||||||
"side-level": 0.0,
|
|
||||||
"softclip": false,
|
|
||||||
"stereo-base": 0.0,
|
|
||||||
"stereo-phase": 0.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
font=monospace:size=12
|
|
||||||
font=JetBrainsMono Nerd Font:size=12
|
|
||||||
dpi-aware=no
|
|
||||||
pad=10x10
|
|
||||||
|
|
||||||
#https://codeberg.org/dnkl/foot/pulls/1090
|
|
||||||
#[mouse-bindings]
|
|
||||||
#launch-url=Shift+BTN_LEFT
|
|
||||||
|
|
||||||
[colors]
|
|
||||||
alpha=0.96
|
|
||||||
background=181818
|
|
||||||
foreground=d8d8d8
|
|
||||||
regular0=484f58
|
|
||||||
regular1=ff7b72
|
|
||||||
regular2=3fb950
|
|
||||||
regular3=d29922
|
|
||||||
regular4=58a6ff
|
|
||||||
regular5=bc8cff
|
|
||||||
regular6=39c5cf
|
|
||||||
regular7=b1bac4
|
|
||||||
bright0=6e7681
|
|
||||||
bright1=ffa198
|
|
||||||
bright2=56d364
|
|
||||||
bright3=e3b341
|
|
||||||
bright4=79c0ff
|
|
||||||
bright5=d2a8ff
|
|
||||||
bright6=56d4dd
|
|
||||||
bright7=ffffff
|
|
||||||
|
|
||||||
[key-bindings]
|
|
||||||
spawn-terminal=Control+Shift+Return
|
|
||||||
|
|
||||||
2
.config/nvim/.gitignore
vendored
Normal file
2
.config/nvim/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
lazy-lock.json
|
||||||
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"neodev": {
|
|
||||||
"library": {
|
|
||||||
"enabled": true,
|
|
||||||
"plugins": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"neoconf": {
|
|
||||||
"plugins": {
|
|
||||||
"lua_ls": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lspconfig": {
|
|
||||||
"lua_ls": {
|
|
||||||
"Lua.format.enable": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
column_width = 120
|
|
||||||
line_endings = "Unix"
|
|
||||||
indent_type = "Spaces"
|
|
||||||
indent_width = 2
|
|
||||||
quote_style = "AutoPreferDouble"
|
|
||||||
call_parentheses = "None"
|
|
||||||
collapse_simple_statement = "Always"
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# AstroNvim Template
|
|
||||||
|
|
||||||
**NOTE:** This is for AstroNvim v4+
|
|
||||||
|
|
||||||
A template for getting started with [AstroNvim](https://github.com/AstroNvim/AstroNvim)
|
|
||||||
|
|
||||||
## System dependencies
|
|
||||||
- `lazygit` for lazygit integration
|
|
||||||
- `typescript-language-server` and `typescript` installed globally from npm
|
|
||||||
```bash
|
|
||||||
npm install -g typescript-language-server typescript
|
|
||||||
```
|
|
||||||
|
|
||||||
## 🛠️ Installation
|
|
||||||
|
|
||||||
#### Make a backup of your current nvim and shared folder
|
|
||||||
|
|
||||||
```shell
|
|
||||||
mv ~/.config/nvim ~/.config/nvim.bak
|
|
||||||
mv ~/.local/share/nvim ~/.local/share/nvim.bak
|
|
||||||
mv ~/.local/state/nvim ~/.local/state/nvim.bak
|
|
||||||
mv ~/.cache/nvim ~/.cache/nvim.bak
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Create a new user repository from this template
|
|
||||||
|
|
||||||
Press the "Use this template" button above to create a new repository to store your user configuration.
|
|
||||||
|
|
||||||
You can also just clone this repository directly if you do not want to track your user configuration in GitHub.
|
|
||||||
|
|
||||||
#### Clone the repository
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git clone https://github.com/<your_user>/<your_repository> ~/.config/nvim
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Start Neovim
|
|
||||||
|
|
||||||
```shell
|
|
||||||
nvim
|
|
||||||
```
|
|
||||||
@@ -1,20 +1,20 @@
|
|||||||
-- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
-- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk.
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
vim.fn.system({
|
||||||
if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then
|
"git",
|
||||||
-- stylua: ignore
|
"clone",
|
||||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
-- validate that lazy is available
|
vim.g.mapleader = ' '
|
||||||
if not pcall(require, "lazy") then
|
vim.g.maplocalleader = ' '
|
||||||
-- stylua: ignore
|
|
||||||
vim.api.nvim_echo({ { ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
require('lazy').setup('plugins')
|
||||||
vim.fn.getchar()
|
require('config')
|
||||||
vim.cmd.quit()
|
require('completion')
|
||||||
end
|
|
||||||
|
|
||||||
require "lazy_setup"
|
|
||||||
require "polish"
|
|
||||||
require "autocmds"
|
|
||||||
|
|||||||
@@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
"AstroNvim": { "branch": "main", "commit": "c5e610f614e74c9dd9bf11760c4d0ad2c98c0abe" },
|
|
||||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
|
||||||
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
|
|
||||||
"aerial.nvim": { "branch": "master", "commit": "6ab1a0ce4874d21610fc5a67a6c82c7b943c635b" },
|
|
||||||
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
|
|
||||||
"astrocommunity": { "branch": "main", "commit": "d451f1d8e90e21c0cad730add858d8f952c66f01" },
|
|
||||||
"astrocore": { "branch": "main", "commit": "44a3dc0bf1591022b2a6bc89dccdfac1be17bec9" },
|
|
||||||
"astrolsp": { "branch": "main", "commit": "909fbe64f3f87d089ff3777751261544557117cc" },
|
|
||||||
"astrotheme": { "branch": "main", "commit": "4a2af93815e4e6adfe69c836e46047a9451de858" },
|
|
||||||
"astroui": { "branch": "main", "commit": "e923a84c488d879a260fc9cfb2dc27dd870fb6ac" },
|
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
|
||||||
"cmp-dap": { "branch": "master", "commit": "ea92773e84c0ad3288c3bc5e452ac91559669087" },
|
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
|
||||||
"dressing.nvim": { "branch": "master", "commit": "3a45525bb182730fe462325c99395529308f431e" },
|
|
||||||
"flutter-tools.nvim": { "branch": "main", "commit": "6faf2c70bd56f1fe78620591a2bb73f4dc6f4870" },
|
|
||||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" },
|
|
||||||
"guess-indent.nvim": { "branch": "main", "commit": "6cd61f7a600bb756e558627cd2e740302c58e32d" },
|
|
||||||
"heirline.nvim": { "branch": "master", "commit": "fae936abb5e0345b85c3a03ecf38525b0828b992" },
|
|
||||||
"hover.nvim": { "branch": "main", "commit": "3b49066e09e03e63be6d6f43ae2b8bcd58301f63" },
|
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "f59bd14a852ca43db38e3662395354cb2a9b13e0" },
|
|
||||||
"lsp_signature.nvim": { "branch": "master", "commit": "a793d02b6a5e639fa9d3f2a89a839fa688ab2d0a" },
|
|
||||||
"lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
|
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
|
||||||
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
|
|
||||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "4c2cdc69d69fe00c15ae8648f7e954d99e5de3ea" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
|
||||||
"mini.animate": { "branch": "main", "commit": "8ce6df739aa9d14c876bace722af28c3d09e9971" },
|
|
||||||
"mini.bufremove": { "branch": "main", "commit": "285bdac9596ee7375db50c0f76ed04336dcd2685" },
|
|
||||||
"neo-tree.nvim": { "branch": "main", "commit": "c4c168e459395275c552179a1baf9c3d885d6a74" },
|
|
||||||
"neoconf.nvim": { "branch": "main", "commit": "f630568a4d04154803886f21ca60923f12709f0f" },
|
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "a117163db44c256d53c3be8717f3e1a2a28e6299" },
|
|
||||||
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "68f0e5c3dab23261a945272032ee6700af86227a" },
|
|
||||||
"nvim-cmp": { "branch": "main", "commit": "1e1900b0769324a9675ef85b38f99cca29e203b3" },
|
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "517df88cf2afb36652830df2c655df2da416a0ae" },
|
|
||||||
"nvim-dap": { "branch": "master", "commit": "6a5bba0ddea5d419a783e170c20988046376090d" },
|
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" },
|
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "185b2af444b27d6541c02d662b5b68190e5cf0c4" },
|
|
||||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
|
||||||
"nvim-notify": { "branch": "master", "commit": "a3020c2cf4dfc4c4f390c4a21e84e35e46cf5d17" },
|
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "f8aaf5ce4e27cd20de917946b2ae5c968a2c2858" },
|
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" },
|
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
|
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
|
||||||
"nvim-ufo": { "branch": "main", "commit": "61463090a4f55f5d080236ea62f09d1cd8976ff3" },
|
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
|
|
||||||
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
|
||||||
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
|
||||||
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
|
||||||
"resession.nvim": { "branch": "master", "commit": "cc819b0489938d03e4f3532a583354f0287c015b" },
|
|
||||||
"schemastore.nvim": { "branch": "main", "commit": "960a5cf992c033170499ccc7003df59734ed40a8" },
|
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "ddb23c1a1cf1507bda487cda7f6e4690965ef9f5" },
|
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
|
||||||
"telescope.nvim": { "branch": "master", "commit": "a17d611a0e111836a1db5295f04945df407c5135" },
|
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
|
||||||
"trouble.nvim": { "branch": "main", "commit": "c098362fe603d3922095e7db595961e020bdf2d0" },
|
|
||||||
"vim-illuminate": { "branch": "master", "commit": "19cb21f513fc2b02f0c66be70107741e837516a1" },
|
|
||||||
"which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" },
|
|
||||||
"zen-mode.nvim": { "branch": "main", "commit": "863f150ca321b3dd8aa1a2b69b5f411a220e144f" }
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
-- Autocommand: trigger Flutter hot reload on save
|
|
||||||
--
|
|
||||||
-- This runs whenever you save a *.dart file (BufWritePost).
|
|
||||||
-- It checks if a tmux session named "flutter" exists.
|
|
||||||
-- If it does, it sends the keys "r<Enter>" to the "app" window
|
|
||||||
-- of that session, which tells `flutter run` to hot-reload.
|
|
||||||
--
|
|
||||||
-- Workflow:
|
|
||||||
-- 1. Start tmux: tmux new -s flutter -n app
|
|
||||||
-- 2. Inside tmux "app" window, run: flutter run
|
|
||||||
-- 3. Open another window/pane for nvim.
|
|
||||||
-- 4. Whenever you :w a Dart file in nvim, hot reload will fire.
|
|
||||||
--
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
|
||||||
pattern = "*.dart",
|
|
||||||
callback = function()
|
|
||||||
local result = vim.fn.system({ "tmux", "send-keys", "-t", "flutter:app", "r", "Enter" })
|
|
||||||
vim.notify("Flutter hot reload triggered", vim.log.levels.INFO)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
-- AstroCommunity: import any community modules here
|
|
||||||
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
|
|
||||||
-- This guarantees that the specs are processed before any user plugins.
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
"AstroNvim/astrocommunity",
|
|
||||||
{ import = "astrocommunity.pack.lua" },
|
|
||||||
-- import/override with your plugins folder
|
|
||||||
{ import = "astrocommunity.utility.hover-nvim" },
|
|
||||||
{ import = "astrocommunity.diagnostics.trouble-nvim" },
|
|
||||||
{ import = "astrocommunity.scrolling.mini-animate" },
|
|
||||||
}
|
|
||||||
128
.config/nvim/lua/completion.lua
Normal file
128
.config/nvim/lua/completion.lua
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
local cmp_status_ok, cmp = pcall(require, "cmp")
|
||||||
|
if not cmp_status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local snip_status_ok, luasnip = pcall(require, "luasnip")
|
||||||
|
if not snip_status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
require("luasnip/loaders/from_vscode").lazy_load()
|
||||||
|
|
||||||
|
local check_backspace = function()
|
||||||
|
local col = vim.fn.col "." - 1
|
||||||
|
return col == 0 or vim.fn.getline("."):sub(col, col):match "%s"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- פּ ﯟ some other good icons
|
||||||
|
local kind_icons = {
|
||||||
|
Text = "",
|
||||||
|
Method = "m",
|
||||||
|
Function = "",
|
||||||
|
Constructor = "",
|
||||||
|
Field = "",
|
||||||
|
Variable = "",
|
||||||
|
Class = "",
|
||||||
|
Interface = "",
|
||||||
|
Module = "",
|
||||||
|
Property = "",
|
||||||
|
Unit = "",
|
||||||
|
Value = "",
|
||||||
|
Enum = "",
|
||||||
|
Keyword = "",
|
||||||
|
Snippet = "",
|
||||||
|
Color = "",
|
||||||
|
File = "",
|
||||||
|
Reference = "",
|
||||||
|
Folder = "",
|
||||||
|
EnumMember = "",
|
||||||
|
Constant = "",
|
||||||
|
Struct = "",
|
||||||
|
Event = "",
|
||||||
|
Operator = "",
|
||||||
|
TypeParameter = "",
|
||||||
|
}
|
||||||
|
-- find more here: https://www.nerdfonts.com/cheat-sheet
|
||||||
|
|
||||||
|
cmp.setup {
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
luasnip.lsp_expand(args.body) -- For `luasnip` users.
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
mapping = {
|
||||||
|
["<C-k>"] = cmp.mapping.select_prev_item(),
|
||||||
|
["<C-j>"] = cmp.mapping.select_next_item(),
|
||||||
|
["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }),
|
||||||
|
["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }),
|
||||||
|
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
|
||||||
|
["<C-y>"] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
|
||||||
|
["<C-e>"] = cmp.mapping {
|
||||||
|
i = cmp.mapping.abort(),
|
||||||
|
c = cmp.mapping.close(),
|
||||||
|
},
|
||||||
|
-- Accept currently selected item. If none selected, `select` first item.
|
||||||
|
-- Set `select` to `false` to only confirm explicitly selected items.
|
||||||
|
["<CR>"] = cmp.mapping.confirm { select = false },
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_next_item()
|
||||||
|
elseif luasnip.expandable() then
|
||||||
|
luasnip.expand()
|
||||||
|
elseif luasnip.expand_or_jumpable() then
|
||||||
|
luasnip.expand_or_jump()
|
||||||
|
elseif check_backspace() then
|
||||||
|
fallback()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, {
|
||||||
|
"i",
|
||||||
|
"s",
|
||||||
|
}),
|
||||||
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_prev_item()
|
||||||
|
elseif luasnip.jumpable(-1) then
|
||||||
|
luasnip.jump(-1)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, {
|
||||||
|
"i",
|
||||||
|
"s",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
formatting = {
|
||||||
|
fields = { "kind", "abbr", "menu" },
|
||||||
|
format = function(entry, vim_item)
|
||||||
|
-- Kind icons
|
||||||
|
vim_item.kind = string.format("%s", kind_icons[vim_item.kind])
|
||||||
|
-- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind
|
||||||
|
vim_item.menu = ({
|
||||||
|
luasnip = "[Snippet]",
|
||||||
|
buffer = "[Buffer]",
|
||||||
|
path = "[Path]",
|
||||||
|
})[entry.source.name]
|
||||||
|
return vim_item
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
{ name = "luasnip" },
|
||||||
|
{ name = "buffer" },
|
||||||
|
{ name = "path" },
|
||||||
|
},
|
||||||
|
confirm_opts = {
|
||||||
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
|
select = false,
|
||||||
|
},
|
||||||
|
-- documentation = {
|
||||||
|
-- border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||||
|
-- },
|
||||||
|
-- experimental = {
|
||||||
|
-- ghost_text = false,
|
||||||
|
-- native_menu = false,
|
||||||
|
-- },
|
||||||
|
}
|
||||||
|
|
||||||
47
.config/nvim/lua/config.lua
Normal file
47
.config/nvim/lua/config.lua
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
local set = vim.opt
|
||||||
|
|
||||||
|
set.mouse = 'a'
|
||||||
|
set.encoding = 'utf-8'
|
||||||
|
set.fileencoding = 'UTF-8'
|
||||||
|
|
||||||
|
set.number = true
|
||||||
|
set.relativenumber = true
|
||||||
|
set.showcmd = true
|
||||||
|
vim.o.syntax = true
|
||||||
|
|
||||||
|
set.ignorecase = true
|
||||||
|
set.smartcase = true
|
||||||
|
|
||||||
|
set.cursorline = true
|
||||||
|
-- bold line number at cursor
|
||||||
|
vim.cmd [[ highlight CursorLineNr cterm=bold ]]
|
||||||
|
|
||||||
|
set.linebreak = true
|
||||||
|
|
||||||
|
-- special characters
|
||||||
|
set.list = true
|
||||||
|
set.listchars = 'tab:→ ,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨'
|
||||||
|
|
||||||
|
set.tabstop = 4
|
||||||
|
set.shiftwidth = 4
|
||||||
|
vim.o.expandtab = false
|
||||||
|
vim.o.smartindent = true
|
||||||
|
|
||||||
|
set.swapfile = false
|
||||||
|
|
||||||
|
-- spellcheck (enable with `set spell`)
|
||||||
|
vim.o.spelllang = 'cs,en_gb'
|
||||||
|
vim.cmd [[ hi SpellBad cterm=bold ctermbg=red ctermfg=white ]]
|
||||||
|
|
||||||
|
-- cursor padding from top and bottom
|
||||||
|
vim.o.scrolloff = 5
|
||||||
|
|
||||||
|
-- better navigation in split windows
|
||||||
|
vim.keymap.set('n', '<C-h>', '<C-w>h')
|
||||||
|
vim.keymap.set('n', '<C-j>', '<C-w>j')
|
||||||
|
vim.keymap.set('n', '<C-k>', '<C-w>k')
|
||||||
|
vim.keymap.set('n', '<C-h>', '<C-w>l')
|
||||||
|
|
||||||
|
-- colorscheme
|
||||||
|
vim.cmd [[ color base16-default-dark ]]
|
||||||
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
require("lazy").setup({
|
|
||||||
{
|
|
||||||
"AstroNvim/AstroNvim",
|
|
||||||
version = "^4", -- Remove version tracking to elect for nightly AstroNvim
|
|
||||||
import = "astronvim.plugins",
|
|
||||||
opts = { -- AstroNvim options must be set here with the `import` key
|
|
||||||
mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up
|
|
||||||
maplocalleader = ",", -- This ensures the localleader key must be configured before Lazy is set up
|
|
||||||
icons_enabled = true, -- Set to false to disable icons (if no Nerd Font is available)
|
|
||||||
pin_plugins = nil, -- Default will pin plugins when tracking `version` of AstroNvim, set to true/false to override
|
|
||||||
update_notifications = true, -- Enable/disable notification about running `:Lazy update` twice to update pinned plugins
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ import = "community" },
|
|
||||||
{ import = "plugins" },
|
|
||||||
} --[[@as LazySpec]], {
|
|
||||||
-- Configure any other `lazy.nvim` configuration options here
|
|
||||||
install = { colorscheme = { "astrotheme", "habamax" } },
|
|
||||||
ui = { backdrop = 100 },
|
|
||||||
performance = {
|
|
||||||
rtp = {
|
|
||||||
-- disable some rtp plugins, add more to your liking
|
|
||||||
disabled_plugins = {
|
|
||||||
"gzip",
|
|
||||||
"netrwPlugin",
|
|
||||||
"tarPlugin",
|
|
||||||
"tohtml",
|
|
||||||
"zipPlugin",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} --[[@as LazyConfig]])
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
-- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
|
|
||||||
-- Configuration documentation can be found with `:h astrocore`
|
|
||||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
|
||||||
-- as this provides autocomplete and documentation while editing
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
"AstroNvim/astrocore",
|
|
||||||
---@type AstroCoreOpts
|
|
||||||
opts = {
|
|
||||||
-- Configure core features of AstroNvim
|
|
||||||
features = {
|
|
||||||
large_buf = { size = 1024 * 256, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
|
|
||||||
autopairs = true, -- enable autopairs at start
|
|
||||||
cmp = true, -- enable completion at start
|
|
||||||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
|
||||||
highlighturl = true, -- highlight URLs at start
|
|
||||||
notifications = true, -- enable notifications at start
|
|
||||||
},
|
|
||||||
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
|
||||||
diagnostics = {
|
|
||||||
virtual_text = true,
|
|
||||||
underline = true,
|
|
||||||
},
|
|
||||||
-- vim options can be configured here
|
|
||||||
options = {
|
|
||||||
opt = { -- vim.opt.<key>
|
|
||||||
relativenumber = true, -- sets vim.opt.relativenumber
|
|
||||||
number = true, -- sets vim.opt.number
|
|
||||||
spell = false, -- sets vim.opt.spell
|
|
||||||
signcolumn = "yes", -- sets vim.opt.signcolumn to yes
|
|
||||||
wrap = false, -- sets vim.opt.wrap
|
|
||||||
scrolloff = 8,
|
|
||||||
},
|
|
||||||
g = { -- vim.g.<key>
|
|
||||||
-- configure global vim variables (vim.g)
|
|
||||||
-- NOTE: `mapleader` and `maplocalleader` must be set in the AstroNvim opts or before `lazy.setup`
|
|
||||||
-- This can be found in the `lua/lazy_setup.lua` file
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- Mappings can be configured through AstroCore as well.
|
|
||||||
-- NOTE: keycodes follow the casing in the vimdocs. For example, `<Leader>` must be capitalized
|
|
||||||
mappings = {
|
|
||||||
-- first key is the mode
|
|
||||||
n = {
|
|
||||||
-- second key is the lefthand side of the map
|
|
||||||
|
|
||||||
-- navigate buffer tabs
|
|
||||||
["]b"] = { function() require("astrocore.buffer").nav(vim.v.count1) end, desc = "Next buffer" },
|
|
||||||
["[b"] = { function() require("astrocore.buffer").nav(-vim.v.count1) end, desc = "Previous buffer" },
|
|
||||||
|
|
||||||
-- mappings seen under group name "Buffer"
|
|
||||||
["<Leader>bd"] = {
|
|
||||||
function()
|
|
||||||
require("astroui.status.heirline").buffer_picker(
|
|
||||||
function(bufnr) require("astrocore.buffer").close(bufnr) end
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
desc = "Close buffer from tabline",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- tables with just a `desc` key will be registered with which-key if it's installed
|
|
||||||
-- this is useful for naming menus
|
|
||||||
-- ["<Leader>b"] = { desc = "Buffers" },
|
|
||||||
|
|
||||||
-- setting a mapping to false will disable it
|
|
||||||
-- ["<C-S>"] = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
-- AstroLSP allows you to customize the features in AstroNvim's LSP configuration engine
|
|
||||||
-- Configuration documentation can be found with `:h astrolsp`
|
|
||||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
|
||||||
-- as this provides autocomplete and documentation while editing
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
"AstroNvim/astrolsp",
|
|
||||||
---@type AstroLSPOpts
|
|
||||||
opts = {
|
|
||||||
-- Configuration table of features provided by AstroLSP
|
|
||||||
features = {
|
|
||||||
codelens = true, -- enable/disable codelens refresh on start
|
|
||||||
inlay_hints = false, -- enable/disable inlay hints on start
|
|
||||||
semantic_tokens = true, -- enable/disable semantic token highlighting
|
|
||||||
},
|
|
||||||
-- customize lsp formatting options
|
|
||||||
formatting = {
|
|
||||||
-- control auto formatting on save
|
|
||||||
format_on_save = {
|
|
||||||
enabled = true, -- enable or disable format on save globally
|
|
||||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
|
||||||
-- "go",
|
|
||||||
},
|
|
||||||
ignore_filetypes = { -- disable format on save for specified filetypes
|
|
||||||
-- "python",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
disabled = { -- disable formatting capabilities for the listed language servers
|
|
||||||
-- disable lua_ls formatting capability if you want to use StyLua to format your lua code
|
|
||||||
-- "lua_ls",
|
|
||||||
},
|
|
||||||
timeout_ms = 1000, -- default format timeout
|
|
||||||
-- filter = function(client) -- fully override the default formatting function
|
|
||||||
-- return true
|
|
||||||
-- end
|
|
||||||
},
|
|
||||||
-- enable servers that you already have installed without mason
|
|
||||||
servers = {
|
|
||||||
-- "pyright"
|
|
||||||
},
|
|
||||||
-- customize language server configuration options passed to `lspconfig`
|
|
||||||
---@diagnostic disable: missing-fields
|
|
||||||
config = {
|
|
||||||
ts_ls = {},
|
|
||||||
-- clangd = { capabilities = { offsetEncoding = "utf-8" } },
|
|
||||||
},
|
|
||||||
-- customize how language servers are attached
|
|
||||||
handlers = {
|
|
||||||
-- a function without a key is simply the default handler, functions take two parameters, the server name and the configured options table for that server
|
|
||||||
-- function(server, opts) require("lspconfig")[server].setup(opts) end
|
|
||||||
|
|
||||||
-- the key is the server that is being setup with `lspconfig`
|
|
||||||
-- rust_analyzer = false, -- setting a handler to false will disable the set up of that language server
|
|
||||||
-- pyright = function(_, opts) require("lspconfig").pyright.setup(opts) end -- or a custom handler function can be passed
|
|
||||||
},
|
|
||||||
-- Configure buffer local auto commands to add when attaching a language server
|
|
||||||
autocmds = {
|
|
||||||
-- first key is the `augroup` to add the auto commands to (:h augroup)
|
|
||||||
lsp_codelens_refresh = {
|
|
||||||
-- Optional condition to create/delete auto command group
|
|
||||||
-- can either be a string of a client capability or a function of `fun(client, bufnr): boolean`
|
|
||||||
-- condition will be resolved for each client on each execution and if it ever fails for all clients,
|
|
||||||
-- the auto commands will be deleted for that buffer
|
|
||||||
cond = "textDocument/codeLens",
|
|
||||||
-- cond = function(client, bufnr) return client.name == "lua_ls" end,
|
|
||||||
-- list of auto commands to set
|
|
||||||
{
|
|
||||||
-- events to trigger
|
|
||||||
event = { "InsertLeave", "BufEnter" },
|
|
||||||
-- the rest of the autocmd options (:h nvim_create_autocmd)
|
|
||||||
desc = "Refresh codelens (buffer)",
|
|
||||||
callback = function(args)
|
|
||||||
if require("astrolsp").config.features.codelens then vim.lsp.codelens.refresh { bufnr = args.buf } end
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- mappings to be set up on attaching of a language server
|
|
||||||
mappings = {
|
|
||||||
n = {
|
|
||||||
-- a `cond` key can provided as the string of a server capability to be required to attach, or a function with `client` and `bufnr` parameters from the `on_attach` that returns a boolean
|
|
||||||
gD = {
|
|
||||||
function() vim.lsp.buf.declaration() end,
|
|
||||||
desc = "Declaration of current symbol",
|
|
||||||
cond = "textDocument/declaration",
|
|
||||||
},
|
|
||||||
["<Leader>uY"] = {
|
|
||||||
function() require("astrolsp.toggles").buffer_semantic_tokens() end,
|
|
||||||
desc = "Toggle LSP semantic highlight (buffer)",
|
|
||||||
cond = function(client)
|
|
||||||
return client.supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens ~= nil
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- A custom `on_attach` function to be run after the default `on_attach` function
|
|
||||||
-- takes two parameters `client` and `bufnr` (`:h lspconfig-setup`)
|
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
-- this would disable semanticTokensProvider for all clients
|
|
||||||
-- client.server_capabilities.semanticTokensProvider = nil
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
|
||||||
|
|
||||||
-- AstroUI provides the basis for configuring the AstroNvim User Interface
|
|
||||||
-- Configuration documentation can be found with `:h astroui`
|
|
||||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
|
||||||
-- as this provides autocomplete and documentation while editing
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
"AstroNvim/astroui",
|
|
||||||
---@type AstroUIOpts
|
|
||||||
opts = {
|
|
||||||
-- change colorscheme
|
|
||||||
colorscheme = "astrodark",
|
|
||||||
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
|
|
||||||
highlights = {
|
|
||||||
init = { -- this table overrides highlights in all themes
|
|
||||||
-- Normal = { bg = "#000000" },
|
|
||||||
},
|
|
||||||
astrodark = { -- a table of overrides/changes when applying the astrotheme theme
|
|
||||||
-- Normal = { bg = "#000000" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- Icons can be configured throughout the interface
|
|
||||||
icons = {
|
|
||||||
-- configure the loading of the lsp in the status line
|
|
||||||
LSPLoading1 = "⠋",
|
|
||||||
LSPLoading2 = "⠙",
|
|
||||||
LSPLoading3 = "⠹",
|
|
||||||
LSPLoading4 = "⠸",
|
|
||||||
LSPLoading5 = "⠼",
|
|
||||||
LSPLoading6 = "⠴",
|
|
||||||
LSPLoading7 = "⠦",
|
|
||||||
LSPLoading8 = "⠧",
|
|
||||||
LSPLoading9 = "⠇",
|
|
||||||
LSPLoading10 = "⠏",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
return {
|
|
||||||
-- Add the community repository of plugin specifications
|
|
||||||
"AstroNvim/astrocommunity",
|
|
||||||
{ import = "astrocommunity.pack.dart" },
|
|
||||||
-- Configure flutter-tools
|
|
||||||
{ "akinsho/flutter-tools.nvim",
|
|
||||||
opts = {
|
|
||||||
...
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
17
.config/nvim/lua/plugins/git.lua
Normal file
17
.config/nvim/lua/plugins/git.lua
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
'f-person/git-blame.nvim',
|
||||||
|
config = function()
|
||||||
|
vim.g.gitblame_date_format = '%r'
|
||||||
|
vim.g.gitblame_message_when_not_committed = ''
|
||||||
|
vim.g.gitblame_display_virtual_text = 0
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
config = function()
|
||||||
|
require('gitsigns').setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
48
.config/nvim/lua/plugins/init.lua
Normal file
48
.config/nvim/lua/plugins/init.lua
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
return {
|
||||||
|
'RRethy/nvim-base16',
|
||||||
|
'tpope/vim-commentary',
|
||||||
|
|
||||||
|
-- completion
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
'hrsh7th/cmp-buffer',
|
||||||
|
'hrsh7th/cmp-path',
|
||||||
|
'hrsh7th/cmp-cmdline',
|
||||||
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
|
||||||
|
-- snippets
|
||||||
|
'L3MON4D3/LuaSnip',
|
||||||
|
'rafamadriz/friendly-snippets',
|
||||||
|
|
||||||
|
-- emmet
|
||||||
|
'mattn/emmet-vim',
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
'neovim/nvim-lspconfig',
|
||||||
|
|
||||||
|
-- LSP, DAP, linters and formatters
|
||||||
|
-- 'jose-elias-alvarez/null-ls.nvim',
|
||||||
|
{
|
||||||
|
'dense-analysis/ale',
|
||||||
|
config = function()
|
||||||
|
vim.cmd [[ g:ale_sign_column_always = 1 ]]
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
-- management for LSP, DAP, linters and formatters
|
||||||
|
{
|
||||||
|
'williamboman/mason.nvim',
|
||||||
|
config = function()
|
||||||
|
require('mason').setup({
|
||||||
|
ui = {
|
||||||
|
icons = {
|
||||||
|
package_installed = "✓",
|
||||||
|
package_pending = "➜",
|
||||||
|
package_uninstalled = "✗"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
},
|
||||||
|
'williamboman/mason-lspconfig.nvim',
|
||||||
|
}
|
||||||
|
|
||||||
16
.config/nvim/lua/plugins/lualine.lua
Normal file
16
.config/nvim/lua/plugins/lualine.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
return {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
dependencies = { 'kyazdani42/nvim-web-devicons', lazy = true },
|
||||||
|
config = function()
|
||||||
|
local git_blame = require('gitblame')
|
||||||
|
require('lualine').setup({
|
||||||
|
sections = {
|
||||||
|
lualine_c = {
|
||||||
|
{ git_blame.get_current_blame_text, cond = git_blame.is_blame_text_available }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
vim.o.showmode = false
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
-- Customize Mason plugins
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
-- use mason-lspconfig to configure LSP installations
|
|
||||||
{
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
-- overrides `require("mason-lspconfig").setup(...)`
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"lua_ls",
|
|
||||||
-- add more arguments for adding more language servers
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
|
|
||||||
{
|
|
||||||
"jay-babu/mason-null-ls.nvim",
|
|
||||||
-- overrides `require("mason-null-ls").setup(...)`
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"stylua",
|
|
||||||
-- add more arguments for adding more null-ls sources
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jay-babu/mason-nvim-dap.nvim",
|
|
||||||
-- overrides `require("mason-nvim-dap").setup(...)`
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"python",
|
|
||||||
-- add more arguments for adding more debuggers
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
19
.config/nvim/lua/plugins/neo-tree.lua
Normal file
19
.config/nvim/lua/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
return {
|
||||||
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
|
cmd = 'Neotree',
|
||||||
|
branch = 'v2.x',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>ft', '<cmd>Neotree toggle<cr>', desc = 'NeoTree' },
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
filesystem = {
|
||||||
|
follow_current_file = true,
|
||||||
|
hijack_netrw_behavior = 'open_current',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
|
||||||
|
|
||||||
-- Customize Treesitter
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"lua",
|
|
||||||
"vim",
|
|
||||||
-- add more arguments for adding more treesitter parsers
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
-- You can also add or configure plugins by creating files in this `plugins/` folder
|
|
||||||
-- Here are some examples:
|
|
||||||
|
|
||||||
---@type LazySpec
|
|
||||||
return {
|
|
||||||
|
|
||||||
-- == Examples of Adding Plugins ==
|
|
||||||
|
|
||||||
"andweeb/presence.nvim",
|
|
||||||
{
|
|
||||||
"ray-x/lsp_signature.nvim",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function() require("lsp_signature").setup() end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- == Examples of Overriding Plugins ==
|
|
||||||
|
|
||||||
-- customize alpha options
|
|
||||||
{
|
|
||||||
"goolord/alpha-nvim",
|
|
||||||
opts = function(_, opts)
|
|
||||||
-- customize the dashboard header
|
|
||||||
opts.section.header.val = {
|
|
||||||
" █████ ███████ ████████ ██████ ██████",
|
|
||||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
|
||||||
"███████ ███████ ██ ██████ ██ ██",
|
|
||||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
|
||||||
"██ ██ ███████ ██ ██ ██ ██████",
|
|
||||||
" ",
|
|
||||||
" ███ ██ ██ ██ ██ ███ ███",
|
|
||||||
" ████ ██ ██ ██ ██ ████ ████",
|
|
||||||
" ██ ██ ██ ██ ██ ██ ██ ████ ██",
|
|
||||||
" ██ ██ ██ ██ ██ ██ ██ ██ ██",
|
|
||||||
" ██ ████ ████ ██ ██ ██",
|
|
||||||
}
|
|
||||||
return opts
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- You can disable default plugins as follows:
|
|
||||||
{ "max397574/better-escape.nvim", enabled = false },
|
|
||||||
|
|
||||||
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
|
|
||||||
{
|
|
||||||
"L3MON4D3/LuaSnip",
|
|
||||||
config = function(plugin, opts)
|
|
||||||
require "astronvim.plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call
|
|
||||||
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
|
||||||
local luasnip = require "luasnip"
|
|
||||||
luasnip.filetype_extend("javascript", { "javascriptreact" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
config = function(plugin, opts)
|
|
||||||
require "astronvim.plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call
|
|
||||||
-- add more custom autopairs configuration such as custom rules
|
|
||||||
local npairs = require "nvim-autopairs"
|
|
||||||
local Rule = require "nvim-autopairs.rule"
|
|
||||||
local cond = require "nvim-autopairs.conds"
|
|
||||||
npairs.add_rules(
|
|
||||||
{
|
|
||||||
Rule("$", "$", { "tex", "latex" })
|
|
||||||
-- don't add a pair if the next character is %
|
|
||||||
:with_pair(cond.not_after_regex "%%")
|
|
||||||
-- don't add a pair if the previous character is xxx
|
|
||||||
:with_pair(
|
|
||||||
cond.not_before_regex("xxx", 3)
|
|
||||||
)
|
|
||||||
-- don't move right when repeat character
|
|
||||||
:with_move(cond.none())
|
|
||||||
-- don't delete if the next character is xx
|
|
||||||
:with_del(cond.not_after_regex "xx")
|
|
||||||
-- disable adding a newline when you press <cr>
|
|
||||||
:with_cr(cond.none()),
|
|
||||||
},
|
|
||||||
-- disable for .vim files, but it work for another filetypes
|
|
||||||
Rule("a", "a", "-vim")
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
8
.config/nvim/lua/plugins/which-key.lua
Normal file
8
.config/nvim/lua/plugins/which-key.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
config = function()
|
||||||
|
vim.o.timeout = true
|
||||||
|
vim.o.timeoutlen = 300
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,10 +1,29 @@
|
|||||||
return {
|
return {
|
||||||
{
|
'folke/zen-mode.nvim',
|
||||||
"folke/zen-mode.nvim",
|
config = {
|
||||||
opts = {
|
window = {
|
||||||
-- your configuration comes here
|
backdrop = 1,
|
||||||
-- or leave it empty to use the default settings
|
width = 80,
|
||||||
-- refer to the configuration section below
|
height = .9,
|
||||||
|
options = {
|
||||||
|
signcolumn = "no",
|
||||||
|
number = false,
|
||||||
|
relativenumber = false,
|
||||||
|
cursorline = false,
|
||||||
|
cursorcolumn = false,
|
||||||
|
foldcolumn = "0",
|
||||||
|
list = false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
opts = {
|
||||||
|
alacritty = {
|
||||||
|
enabled = true,
|
||||||
|
font = "13",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ '<leader>fg', '<cmd>ZenMode<cr>', desc = 'Zen Mode' },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
|
||||||
|
|
||||||
-- This will run last in the setup process and is a good place to configure
|
|
||||||
-- things like custom filetypes. This is just pure lua so anything that doesn't
|
|
||||||
-- fit in the normal config locations above can go here
|
|
||||||
|
|
||||||
-- Set up custom filetypes
|
|
||||||
vim.filetype.add {
|
|
||||||
extension = {
|
|
||||||
foo = "fooscript",
|
|
||||||
},
|
|
||||||
filename = {
|
|
||||||
["Foofile"] = "fooscript",
|
|
||||||
},
|
|
||||||
pattern = {
|
|
||||||
["~/%.config/foo/.*"] = "fooscript",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
base: lua51
|
|
||||||
|
|
||||||
globals:
|
|
||||||
vim:
|
|
||||||
any: true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
std = "neovim"
|
|
||||||
|
|
||||||
[rules]
|
|
||||||
global_usage = "allow"
|
|
||||||
if_same_then_else = "allow"
|
|
||||||
incorrect_standard_library_use = "allow"
|
|
||||||
mixed_table = "allow"
|
|
||||||
multiple_statements = "allow"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# If a config.py file exists, this file is ignored unless it's explicitly loaded
|
|
||||||
# via config.load_autoconfig(). For more information, see:
|
|
||||||
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml
|
|
||||||
# DO NOT edit this file by hand, qutebrowser will overwrite it.
|
|
||||||
# Instead, create a config.py - see :help for details.
|
|
||||||
|
|
||||||
config_version: 2
|
|
||||||
settings:
|
|
||||||
tabs.show:
|
|
||||||
global: always
|
|
||||||
@@ -1,186 +0,0 @@
|
|||||||
# Autogenerated config.py
|
|
||||||
#
|
|
||||||
# NOTE: config.py is intended for advanced users who are comfortable
|
|
||||||
# with manually migrating the config file on qutebrowser upgrades. If
|
|
||||||
# you prefer, you can also configure qutebrowser using the
|
|
||||||
# :set/:bind/:config-* commands without having to write a config.py
|
|
||||||
# file.
|
|
||||||
#
|
|
||||||
# Documentation:
|
|
||||||
# qute://help/configuring.html
|
|
||||||
# qute://help/settings.html
|
|
||||||
|
|
||||||
# Change the argument to True to still load settings configured via autoconfig.yml
|
|
||||||
config.load_autoconfig(False)
|
|
||||||
|
|
||||||
# setting dark mode
|
|
||||||
config.set("colors.webpage.darkmode.enabled", True)
|
|
||||||
|
|
||||||
# Which cookies to accept. With QtWebEngine, this setting also controls
|
|
||||||
# other features with tracking capabilities similar to those of cookies;
|
|
||||||
# including IndexedDB, DOM storage, filesystem API, service workers, and
|
|
||||||
# AppCache. Note that with QtWebKit, only `all` and `never` are
|
|
||||||
# supported as per-domain values. Setting `no-3rdparty` or `no-
|
|
||||||
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
|
|
||||||
# `all`. If this setting is used with URL patterns, the pattern gets
|
|
||||||
# applied to the origin/first party URL of the page making the request,
|
|
||||||
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
|
|
||||||
# from URLs, so URL patterns using paths will not match. With
|
|
||||||
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
|
|
||||||
# you will typically need to set this setting for `example.com` when the
|
|
||||||
# cookie is set on `somesubdomain.example.com` for it to work properly.
|
|
||||||
# To debug issues with this setting, start qutebrowser with `--debug
|
|
||||||
# --logfilter network --debug-flag log-cookies` which will show all
|
|
||||||
# cookies being set.
|
|
||||||
# Type: String
|
|
||||||
# Valid values:
|
|
||||||
# - all: Accept all cookies.
|
|
||||||
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
|
|
||||||
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
|
|
||||||
# - never: Don't accept cookies at all.
|
|
||||||
config.set('content.cookies.accept', 'all', 'chrome-devtools://*')
|
|
||||||
|
|
||||||
# Which cookies to accept. With QtWebEngine, this setting also controls
|
|
||||||
# other features with tracking capabilities similar to those of cookies;
|
|
||||||
# including IndexedDB, DOM storage, filesystem API, service workers, and
|
|
||||||
# AppCache. Note that with QtWebKit, only `all` and `never` are
|
|
||||||
# supported as per-domain values. Setting `no-3rdparty` or `no-
|
|
||||||
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
|
|
||||||
# `all`. If this setting is used with URL patterns, the pattern gets
|
|
||||||
# applied to the origin/first party URL of the page making the request,
|
|
||||||
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
|
|
||||||
# from URLs, so URL patterns using paths will not match. With
|
|
||||||
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
|
|
||||||
# you will typically need to set this setting for `example.com` when the
|
|
||||||
# cookie is set on `somesubdomain.example.com` for it to work properly.
|
|
||||||
# To debug issues with this setting, start qutebrowser with `--debug
|
|
||||||
# --logfilter network --debug-flag log-cookies` which will show all
|
|
||||||
# cookies being set.
|
|
||||||
# Type: String
|
|
||||||
# Valid values:
|
|
||||||
# - all: Accept all cookies.
|
|
||||||
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
|
|
||||||
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
|
|
||||||
# - never: Don't accept cookies at all.
|
|
||||||
config.set('content.cookies.accept', 'all', 'devtools://*')
|
|
||||||
|
|
||||||
# Value to send in the `Accept-Language` header. Note that the value
|
|
||||||
# read from JavaScript is always the global value.
|
|
||||||
# Type: String
|
|
||||||
config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*')
|
|
||||||
|
|
||||||
# User agent to send. The following placeholders are defined: *
|
|
||||||
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
|
||||||
# The underlying WebKit version (set to a fixed value with
|
|
||||||
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
|
||||||
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
|
||||||
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
|
||||||
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
|
||||||
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
|
||||||
# running qutebrowser version. The default value is equal to the
|
|
||||||
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
|
||||||
# read from JavaScript is always the global value. With QtWebEngine
|
|
||||||
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
|
||||||
# JavaScript requires a restart.
|
|
||||||
# Type: FormatString
|
|
||||||
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/')
|
|
||||||
|
|
||||||
# User agent to send. The following placeholders are defined: *
|
|
||||||
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
|
||||||
# The underlying WebKit version (set to a fixed value with
|
|
||||||
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
|
||||||
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
|
||||||
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
|
||||||
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
|
||||||
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
|
||||||
# running qutebrowser version. The default value is equal to the
|
|
||||||
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
|
||||||
# read from JavaScript is always the global value. With QtWebEngine
|
|
||||||
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
|
||||||
# JavaScript requires a restart.
|
|
||||||
# Type: FormatString
|
|
||||||
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0', 'https://accounts.google.com/*')
|
|
||||||
|
|
||||||
# User agent to send. The following placeholders are defined: *
|
|
||||||
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
|
||||||
# The underlying WebKit version (set to a fixed value with
|
|
||||||
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
|
||||||
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
|
||||||
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
|
||||||
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
|
||||||
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
|
||||||
# running qutebrowser version. The default value is equal to the
|
|
||||||
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
|
||||||
# read from JavaScript is always the global value. With QtWebEngine
|
|
||||||
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
|
||||||
# JavaScript requires a restart.
|
|
||||||
# Type: FormatString
|
|
||||||
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')
|
|
||||||
|
|
||||||
# Load images automatically in web pages.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.images', True, 'chrome-devtools://*')
|
|
||||||
|
|
||||||
# Load images automatically in web pages.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.images', True, 'devtools://*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'chrome-devtools://*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'devtools://*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'chrome://*/*')
|
|
||||||
|
|
||||||
# Enable JavaScript.
|
|
||||||
# Type: Bool
|
|
||||||
config.set('content.javascript.enabled', True, 'qute://*/*')
|
|
||||||
|
|
||||||
# Allow websites to show notifications.
|
|
||||||
# Type: BoolAsk
|
|
||||||
# Valid values:
|
|
||||||
# - true
|
|
||||||
# - false
|
|
||||||
# - ask
|
|
||||||
config.set('content.notifications.enabled', False, 'https://www.youtube.com')
|
|
||||||
|
|
||||||
# Position of the tab bar.
|
|
||||||
# Type: Position
|
|
||||||
# Valid values:
|
|
||||||
# - top
|
|
||||||
# - bottom
|
|
||||||
# - left
|
|
||||||
# - right
|
|
||||||
c.tabs.position = 'left'
|
|
||||||
|
|
||||||
# Value to use for `prefers-color-scheme:` for websites. The "light"
|
|
||||||
# value is only available with QtWebEngine 5.15.2+. On older versions,
|
|
||||||
# it is the same as "auto". The "auto" value is broken on QtWebEngine
|
|
||||||
# 5.15.2 due to a Qt bug. There, it will fall back to "light"
|
|
||||||
# unconditionally.
|
|
||||||
# Type: String
|
|
||||||
# Valid values:
|
|
||||||
# - auto: Use the system-wide color scheme setting.
|
|
||||||
# - light: Force a light theme.
|
|
||||||
# - dark: Force a dark theme.
|
|
||||||
c.colors.webpage.preferred_color_scheme = 'dark'
|
|
||||||
|
|
||||||
# Render all web contents using a dark theme. Example configurations
|
|
||||||
# from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based
|
|
||||||
# inversion": Set `colors.webpage.darkmode.algorithm` accordingly. -
|
|
||||||
# "With selective image inversion": Set
|
|
||||||
# `colors.webpage.darkmode.policy.images` to `smart`. - "With selective
|
|
||||||
# inversion of non-image elements": Set
|
|
||||||
# `colors.webpage.darkmode.threshold.text` to 150 and
|
|
||||||
# `colors.webpage.darkmode.threshold.background` to 205. - "With
|
|
||||||
# selective inversion of everything": Combines the two variants above.
|
|
||||||
# Type: Bool
|
|
||||||
c.colors.webpage.darkmode.enabled = False
|
|
||||||
|
|
||||||
|
|
||||||
config.bind('xt', 'config-cycle tabs.show always never')
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
set preview_images true
|
set preview_images true
|
||||||
set preview_images_method ueberzug
|
set preview_images alacritty
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
FIFO="$XDG_RUNTIME_DIR/sandbar"
|
|
||||||
[ -e "$FIFO" ] && rm -f "$FIFO"
|
|
||||||
mkfifo "$FIFO"
|
|
||||||
|
|
||||||
while cat "$FIFO"; do :; done | sandbar \
|
|
||||||
-font "LiterationMono Nerd Font:size=24" \
|
|
||||||
-active-bg-color "#9D3232" \
|
|
||||||
-inactive-bg-color "#222222" \
|
|
||||||
-title-bg-color "#222222" \
|
|
||||||
-bottom
|
|
||||||
@@ -1,226 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# See the river(1), riverctl(1), and rivertile(1) man pages for complete
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
# Fix screen share
|
|
||||||
export XDG_CURRENT_DESKTOP=river
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
|
|
||||||
## Start portals
|
|
||||||
dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
||||||
xdg-desktop-portal-wlr &
|
|
||||||
xdg-desktop-portal &
|
|
||||||
|
|
||||||
## Start easyeffects
|
|
||||||
flatpak run com.github.wwmm.easyeffects --gapplication-service &
|
|
||||||
|
|
||||||
# Mod1+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
|
|
||||||
riverctl map normal Mod1+Shift Return spawn foot
|
|
||||||
|
|
||||||
# Menu
|
|
||||||
#riverctl map normal Mod1 p spawn "bemenu-run --fn 'LiterationMono Nerd Font 12'"
|
|
||||||
#riverctl map normal Mod1 p spawn "wmenu_run -f 'LiterationMono Nerd Font 12'"
|
|
||||||
#riverctl map normal Mod1 p spawn "wmenu-run -il 16 -p 'Run:' -f 'LiterationMono Nerd Font 12'"
|
|
||||||
#riverctl map normal Mod1 p spawn "wmenu-run -il 16 -f 'LiterationMono Nerd Font 12' -n bbbbbbff -N 222222ff -s eeeeeeff -S 444444ff -m eeeeeeff -M 444444ff"
|
|
||||||
riverctl map normal Mod1 p spawn "wmenu-run -F -il 16 -f 'LiterationMono Nerd Font 12' -n bbbbbbff -N 222222ff -s eeeeeeff -S 444444ff -m eeeeeeff -M 444444ff"
|
|
||||||
|
|
||||||
# Mod1+Q to close the focused view
|
|
||||||
riverctl map normal Mod1+Shift C close
|
|
||||||
|
|
||||||
# Mod1+Shift+E to exit river
|
|
||||||
riverctl map normal Mod1+Shift E exit
|
|
||||||
|
|
||||||
# Mod1+J and Super+K to focus the next/previous view in the layout stack
|
|
||||||
riverctl map normal Mod1 J focus-view next
|
|
||||||
riverctl map normal Mod1 K focus-view previous
|
|
||||||
|
|
||||||
# Mod1+Shift+J and Super+Shift+K to swap the focused view with the next/previous
|
|
||||||
# view in the layout stack
|
|
||||||
riverctl map normal Mod1+Shift J swap next
|
|
||||||
riverctl map normal Mod1+Shift K swap previous
|
|
||||||
|
|
||||||
# Mod1+Period and Super+Comma to focus the next/previous output
|
|
||||||
riverctl map normal Mod1 Period focus-output next
|
|
||||||
riverctl map normal Mod1 Comma focus-output previous
|
|
||||||
|
|
||||||
# Mod1+Shift+{Period,Comma} to send the focused view to the next/previous output
|
|
||||||
riverctl map normal Mod1+Shift Period send-to-output next
|
|
||||||
riverctl map normal Mod1+Shift Comma send-to-output previous
|
|
||||||
|
|
||||||
# Mod1+Tab to cycle between the last 2 tags
|
|
||||||
riverctl map normal Mod1 Tab focus-previous-tags
|
|
||||||
|
|
||||||
# Mod1+Return to bump the focused view to the top of the layout stack
|
|
||||||
riverctl map normal Mod1 Return zoom
|
|
||||||
|
|
||||||
# Increment/decrement the main count
|
|
||||||
riverctl map normal Mod1 i send-layout-cmd filtile "main-count +1"
|
|
||||||
riverctl map normal Mod1 d send-layout-cmd filtile "main-count -1"
|
|
||||||
|
|
||||||
# Mod1+Super+{H,J,K,L} to move views
|
|
||||||
riverctl map normal Mod1+Super H move left 100
|
|
||||||
riverctl map normal Mod1+Super J move down 100
|
|
||||||
riverctl map normal Mod1+Super K move up 100
|
|
||||||
riverctl map normal Mod1+Super L move right 100
|
|
||||||
|
|
||||||
# Mod1+Super+Control+{H,J,K,L} to snap views to screen edges
|
|
||||||
riverctl map normal Mod1+Super+Control H snap left
|
|
||||||
riverctl map normal Mod1+Super+Control J snap down
|
|
||||||
riverctl map normal Mod1+Super+Control K snap up
|
|
||||||
riverctl map normal Mod1+Super+Control L snap right
|
|
||||||
|
|
||||||
# Mod1+Super+Shift+{H,J,K,L} to resize views
|
|
||||||
riverctl map normal Mod1+Super+Shift H resize horizontal -100
|
|
||||||
riverctl map normal Mod1+Super+Shift J resize vertical 100
|
|
||||||
riverctl map normal Mod1+Super+Shift K resize vertical -100
|
|
||||||
riverctl map normal Mod1+Super+Shift L resize horizontal 100
|
|
||||||
|
|
||||||
# Mod1 + Left Mouse Button to move views
|
|
||||||
riverctl map-pointer normal Mod1 BTN_LEFT move-view
|
|
||||||
|
|
||||||
# Mod1 + Right Mouse Button to resize views
|
|
||||||
riverctl map-pointer normal Mod1 BTN_RIGHT resize-view
|
|
||||||
|
|
||||||
# Mod1 + Middle Mouse Button to toggle float
|
|
||||||
riverctl map-pointer normal Mod1 BTN_MIDDLE toggle-float
|
|
||||||
|
|
||||||
for i in $(seq 1 9)
|
|
||||||
do
|
|
||||||
tags=$((1 << ($i - 1)))
|
|
||||||
riverctl map normal Mod1 $i set-focused-tags $tags
|
|
||||||
riverctl map normal Mod1+Shift $i set-view-tags $tags
|
|
||||||
riverctl map normal Mod1+Control $i toggle-focused-tags $tags
|
|
||||||
riverctl map normal Mod1+Shift+Control $i toggle-view-tags $tags
|
|
||||||
done
|
|
||||||
|
|
||||||
# Mod1+0 to focus all tags
|
|
||||||
# Mod1+Shift+0 to tag focused view with all tags
|
|
||||||
all_tags=$(((1 << 32) - 1))
|
|
||||||
riverctl map normal Mod1 0 set-focused-tags $all_tags
|
|
||||||
riverctl map normal Mod1+Shift 0 set-view-tags $all_tags
|
|
||||||
|
|
||||||
# Mod1+Space to toggle float
|
|
||||||
riverctl map normal Mod1+Shift Space toggle-float
|
|
||||||
|
|
||||||
# Mod1+F to toggle fullscreen
|
|
||||||
riverctl map normal Mod1 F toggle-fullscreen
|
|
||||||
|
|
||||||
# Mod1+{Up,Right,Down,Left} to change layout orientation
|
|
||||||
riverctl map normal Mod1 Up send-layout-cmd rivertile "main-location top"
|
|
||||||
riverctl map normal Mod1 Right send-layout-cmd rivertile "main-location right"
|
|
||||||
riverctl map normal Mod1 Down send-layout-cmd rivertile "main-location bottom"
|
|
||||||
riverctl map normal Mod1 Left send-layout-cmd rivertile "main-location left"
|
|
||||||
|
|
||||||
# Declare a passthrough mode. This mode has only a single mapping to return to
|
|
||||||
# normal mode. This makes it useful for testing a nested wayland compositor
|
|
||||||
riverctl declare-mode passthrough
|
|
||||||
|
|
||||||
# Mod1+F11 to enter passthrough mode
|
|
||||||
riverctl map normal Mod1 F11 enter-mode passthrough
|
|
||||||
|
|
||||||
# Mod1+F11 to return to normal mode
|
|
||||||
riverctl map passthrough Mod1 F11 enter-mode normal
|
|
||||||
|
|
||||||
# Lock screen
|
|
||||||
riverctl map normal Mod1+Shift L spawn waylock
|
|
||||||
|
|
||||||
# Various media key mapping examples for both normal and locked mode which do
|
|
||||||
# not have a modifier
|
|
||||||
for mode in normal locked
|
|
||||||
do
|
|
||||||
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
|
||||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
|
|
||||||
riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
|
|
||||||
riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
|
|
||||||
|
|
||||||
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
|
||||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
|
||||||
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
|
|
||||||
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
|
|
||||||
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
|
||||||
done
|
|
||||||
|
|
||||||
# Grim
|
|
||||||
riverctl map normal None Print spawn 'file="/home/$USER/Pictures/Screenshots/$(date +%F_%T).png"; grim -g "$(slurp -d)" "$file" && wl-copy --type text/uri-list "file://$file"'
|
|
||||||
riverctl map normal Mod1 Print spawn 'grim - | tee /home/$USER/Pictures/Screenshots/$(date +"%F_%T").png | wl-copy'
|
|
||||||
riverctl map normal Mod1+Shift Print spawn "grim -g \"\$(slurp -p)\" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | grep -o '#[0-9A-F]\{6\}' | tr -d '\n' | wl-copy"
|
|
||||||
|
|
||||||
# Passmenu
|
|
||||||
#riverctl map normal Mod1 o spawn 'passmenu -l 10'
|
|
||||||
|
|
||||||
# Focus follows mouse
|
|
||||||
riverctl focus-follows-cursor normal
|
|
||||||
|
|
||||||
# Borders & Colors
|
|
||||||
riverctl background-color 0x002b36
|
|
||||||
riverctl border-color-focused 0x93a1a1
|
|
||||||
riverctl border-color-unfocused 0x586e75
|
|
||||||
riverctl border-width 1
|
|
||||||
|
|
||||||
# Set keyboard repeat rate
|
|
||||||
riverctl set-repeat 30 200
|
|
||||||
|
|
||||||
# Keyboard layouts
|
|
||||||
riverctl keyboard-layout -options "grp:win_space_toggle" "us,cz(qwerty)"
|
|
||||||
#riverctl keyboard-layout CShack
|
|
||||||
|
|
||||||
# Make all views with an app-id that starts with "float" and title "foo" start floating.
|
|
||||||
riverctl rule-add -app-id 'float*' -title 'foo' float
|
|
||||||
|
|
||||||
# Make all views with app-id "bar" and any title use client-side decorations
|
|
||||||
riverctl rule-add -app-id "bar" csd
|
|
||||||
|
|
||||||
# File manager
|
|
||||||
riverctl rule-add -title 'yazi' float
|
|
||||||
riverctl map normal Mod1 r spawn 'foot -T yazi -W 150x50 -e yazi'
|
|
||||||
|
|
||||||
# Audio (wireplumber runs automatically)
|
|
||||||
riverctl spawn pipewire
|
|
||||||
riverctl spawn pipewire-pulse
|
|
||||||
riverctl spawn wireplumber
|
|
||||||
|
|
||||||
# Services
|
|
||||||
riverctl spawn dunst
|
|
||||||
#riverctl spawn blueman-applet
|
|
||||||
riverctl spawn "udiskie -ANt"
|
|
||||||
|
|
||||||
# Color temp
|
|
||||||
riverctl spawn "wlsunset -l 50.08 -L 14.42 -t 5000 -T 6500"
|
|
||||||
|
|
||||||
# Wallpaper
|
|
||||||
riverctl spawn "swaybg -c 1D1F21"
|
|
||||||
#[[ -e ~/.config/wallpaper.png ]] &&
|
|
||||||
#riverctl spawn "swaybg -m fill -i ~/.config/wallpaper.png"
|
|
||||||
|
|
||||||
# Clock
|
|
||||||
riverctl spawn "wlclock --layer background --background-colour '#00000000' --clock-colour '#ffffff' --border-size 0 --hand-width 2 --size 300"
|
|
||||||
|
|
||||||
# Statusbar
|
|
||||||
#riverctl spawn "$HOME/.config/river/status"
|
|
||||||
#riverctl spawn "$HOME/.config/river/bar"
|
|
||||||
riverctl spawn waybar
|
|
||||||
|
|
||||||
# Idle configuration
|
|
||||||
riverctl spawn "swayidle -w timeout 1200 'wlopm --off \"*\"' resume 'wlopm --on \"*\"' before-sleep 'waylock -fork-on-lock'"
|
|
||||||
|
|
||||||
# Displays
|
|
||||||
# way-displays > /tmp/way-displays.${XDG_VTNR}.${USER}.log 2>&1 &
|
|
||||||
riverctl spawn kanshi
|
|
||||||
|
|
||||||
# riverctl default-layout rivertile
|
|
||||||
# rivertile -view-padding 0 -outer-padding 0 &
|
|
||||||
|
|
||||||
# Filtile
|
|
||||||
riverctl map normal Mod1 H send-layout-cmd filtile "main-ratio -5"
|
|
||||||
riverctl map normal Mod1 L send-layout-cmd filtile "main-ratio +5"
|
|
||||||
riverctl map normal Mod1 M send-layout-cmd filtile "monocle"
|
|
||||||
|
|
||||||
riverctl default-layout filtile
|
|
||||||
filtile \
|
|
||||||
pad off, \
|
|
||||||
view-padding 5, \
|
|
||||||
outer-padding 5, \
|
|
||||||
smart-padding 0, \
|
|
||||||
main-ratio 55, \
|
|
||||||
main-location left
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
# !/bin/env sh
|
|
||||||
|
|
||||||
cpu() {
|
|
||||||
cpu="$(grep -o "^[^ ]*" /proc/loadavg)"
|
|
||||||
}
|
|
||||||
|
|
||||||
memory() {
|
|
||||||
memory="$(free -h | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p")"
|
|
||||||
}
|
|
||||||
|
|
||||||
disk() {
|
|
||||||
disk="$(df -h | awk 'NR==2{print $4}')"
|
|
||||||
}
|
|
||||||
|
|
||||||
datetime() {
|
|
||||||
datetime="$(date "+%F %a %H:%M")"
|
|
||||||
}
|
|
||||||
|
|
||||||
bat() {
|
|
||||||
read -r bat_status </sys/class/power_supply/BAT0/status
|
|
||||||
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
|
|
||||||
bat="$bat_status $bat_capacity%"
|
|
||||||
}
|
|
||||||
|
|
||||||
vol() {
|
|
||||||
vol="$([ "$(pamixer --get-mute)" = "false" ] && printf "%s%%" "$(pamixer --get-volume)" || printf '-')"
|
|
||||||
}
|
|
||||||
|
|
||||||
display() {
|
|
||||||
# echo "all status [$memory $cpu $disk] [$bat] [$vol] [$datetime]" >"$FIFO"
|
|
||||||
echo "all status 🔈$vol $datetime" >"$FIFO"
|
|
||||||
}
|
|
||||||
|
|
||||||
printf "%s" "$$" > "$XDG_RUNTIME_DIR/status_pid"
|
|
||||||
FIFO="$XDG_RUNTIME_DIR/sandbar"
|
|
||||||
[ -e "$FIFO" ] || mkfifo "$FIFO"
|
|
||||||
sec=0
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
sleep 1 &
|
|
||||||
wait && {
|
|
||||||
#[ $((sec % 15)) -eq 0 ] && memory
|
|
||||||
#[ $((sec % 15)) -eq 0 ] && cpu
|
|
||||||
#[ $((sec % 15)) -eq 0 ] && disk
|
|
||||||
#[ $((sec % 60)) -eq 0 ] && bat
|
|
||||||
[ $((sec % 5)) -eq 0 ] && vol
|
|
||||||
[ $((sec % 5)) -eq 0 ] && datetime
|
|
||||||
|
|
||||||
[ $((sec % 5)) -eq 0 ] && display
|
|
||||||
|
|
||||||
sec=$((sec + 1))
|
|
||||||
}
|
|
||||||
done
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
{
|
|
||||||
"position": "bottom",
|
|
||||||
"modules-left": ["river/tags", "river/window"],
|
|
||||||
"modules-center": [],
|
|
||||||
"modules-right": ["tray", "network", "custom/audio", "clock"],
|
|
||||||
|
|
||||||
"river/tags": {
|
|
||||||
"num-tags": 9
|
|
||||||
},
|
|
||||||
|
|
||||||
"river/window": {
|
|
||||||
"max-length": 80
|
|
||||||
},
|
|
||||||
|
|
||||||
"clock": {
|
|
||||||
//"format": "{:%d.%m. %b, %a %H:%M}",
|
|
||||||
"format": "{:%b %d (%a) %I:%M:%S %p}",
|
|
||||||
"timezone": "Europe/Prague",
|
|
||||||
"locale": "en_US.UTF-8",
|
|
||||||
"interval": 1,
|
|
||||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
|
||||||
"calendar": {
|
|
||||||
"mode" : "year",
|
|
||||||
"mode-mon-col" : 3,
|
|
||||||
"weeks-pos" : "right",
|
|
||||||
"on-scroll" : 1,
|
|
||||||
"format": {
|
|
||||||
"months": "<span color='#ffead3'><b>{}</b></span>",
|
|
||||||
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
||||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
||||||
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
||||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"actions": {
|
|
||||||
"on-click-right": "mode",
|
|
||||||
"on-click-forward": "tz_up",
|
|
||||||
"on-click-backward": "tz_down",
|
|
||||||
"on-scroll-up": "shift_up",
|
|
||||||
"on-scroll-down": "shift_down"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"network": {
|
|
||||||
"interface": "eth0",
|
|
||||||
"format-ethernet": " {ifname}: {ipaddr}",
|
|
||||||
"format-disconnected": " ",
|
|
||||||
"tooltip-format-ethernet": "{ifname}: {ipaddr}",
|
|
||||||
"tooltip-format-disconnected": "Disconnected",
|
|
||||||
//"on-click": "foot -e nmtui",
|
|
||||||
//"on-click-right": "~/.scripts/restart_network.sh"
|
|
||||||
},
|
|
||||||
|
|
||||||
//"bluetooth": {
|
|
||||||
// "on-click": "foot bluetuith",
|
|
||||||
// "on-click-right": "~/.scripts/toggle_bluetooth.sh",
|
|
||||||
// "format-on": "",
|
|
||||||
// "format-off": "",
|
|
||||||
// "format-disabled": "",
|
|
||||||
// "format-connected": ""
|
|
||||||
//},
|
|
||||||
|
|
||||||
//"wireplumber": {
|
|
||||||
// "format": "{icon} {volume}%",
|
|
||||||
// "format-muted": " muted",
|
|
||||||
// "on-click": "pavucontrol -t 3",
|
|
||||||
// "on-click-right": "pamixer --toggle-mute",
|
|
||||||
// "max-volume": 125,
|
|
||||||
// "format-icons": ["", "", ""]
|
|
||||||
//},
|
|
||||||
|
|
||||||
"custom/audio": {
|
|
||||||
"exec": "~/.local/bin/waybar_audio.sh",
|
|
||||||
"return-type": "json",
|
|
||||||
"format": "{icon} {text}",
|
|
||||||
"format-icons": {
|
|
||||||
"speaker": " ",
|
|
||||||
"speaker-muted": "",
|
|
||||||
"headphones": "",
|
|
||||||
"headphones-muted": ""
|
|
||||||
},
|
|
||||||
"interval": 2,
|
|
||||||
"on-click": "~/.local/bin/toggle_audio",
|
|
||||||
"on-click-right": "pamixer --toggle-mute"
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/audio": {
|
|
||||||
"exec": "~/.local/bin/waybar_audio.sh",
|
|
||||||
"return-type": "json",
|
|
||||||
"format": "{icon} {text}",
|
|
||||||
"format-icons": {
|
|
||||||
"speaker": ["", "", " "],
|
|
||||||
"speaker-muted": "",
|
|
||||||
"headphones": "",
|
|
||||||
"headphones-muted": ""
|
|
||||||
},
|
|
||||||
"interval": 2,
|
|
||||||
"on-click": "~/.local/bin/toggle_audio",
|
|
||||||
"on-click-right": "pamixer --toggle-mute",
|
|
||||||
"on-scroll-up": "pamixer --increase 5",
|
|
||||||
"on-scroll-down": "pamixer --decrease 5"
|
|
||||||
},
|
|
||||||
|
|
||||||
//"battery": {
|
|
||||||
// "states": {
|
|
||||||
// "good": 95,
|
|
||||||
// "warning": 30,
|
|
||||||
// "critical": 15
|
|
||||||
// },
|
|
||||||
// "format":"{icon} {capacity}%",
|
|
||||||
// "format-charging": " {capacity}%",
|
|
||||||
// "format-plugged": "",
|
|
||||||
// "format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
|
||||||
// "interval": 30,
|
|
||||||
// "tooltip-format": "{time}",
|
|
||||||
//},
|
|
||||||
|
|
||||||
"tray": {
|
|
||||||
"spacing": 10
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
/* https://github.com/realcharmer/waybar-ferrum-theme */
|
|
||||||
/* https://github.com/LunarVim/Colorschemes/blob/master/lua/ferrum/palette.lua */
|
|
||||||
|
|
||||||
@define-color fg #c3c6c4;
|
|
||||||
@define-color bg #1D1F21;
|
|
||||||
@define-color alt_bg #252525;
|
|
||||||
@define-color dark #222222;
|
|
||||||
@define-color accent #BBBBBB;
|
|
||||||
@define-color popup_back #2D2D30;
|
|
||||||
@define-color search_orange #613214;
|
|
||||||
@define-color search_blue #083C5A;
|
|
||||||
@define-color white #D8DEE9;
|
|
||||||
@define-color gray #808080;
|
|
||||||
@define-color dark_gray #3e3e3e;
|
|
||||||
@define-color context #606060;
|
|
||||||
@define-color light_gray #cccccc;
|
|
||||||
@define-color tree_gray #252526;
|
|
||||||
@define-color blue #81a2be;
|
|
||||||
@define-color vivid_blue #D16969;
|
|
||||||
@define-color dark_blue #223E55;
|
|
||||||
@define-color folder_blue #42A5F5;
|
|
||||||
@define-color light_blue #c3c6c4;
|
|
||||||
@define-color green #969896;
|
|
||||||
@define-color cyan #de935f;
|
|
||||||
@define-color light_green #B5CEA8;
|
|
||||||
@define-color red #F44747;
|
|
||||||
@define-color orange #b5bd68;
|
|
||||||
@define-color light_red #D16969;
|
|
||||||
@define-color yellow #8abeb7;
|
|
||||||
@define-color yellow_orange #D7BA7D;
|
|
||||||
@define-color purple #b294bb;
|
|
||||||
@define-color magenta #D16D9E;
|
|
||||||
@define-color cursor_fg #515052;
|
|
||||||
@define-color cursor_bg #AEAFAD;
|
|
||||||
@define-color sign_add #587c0c;
|
|
||||||
@define-color sign_change #0c7d9d;
|
|
||||||
@define-color sign_delete #94151b;
|
|
||||||
@define-color tree_sign_add #73C991;
|
|
||||||
@define-color tree_sign_change #CCA700;
|
|
||||||
@define-color error_red #F44747;
|
|
||||||
@define-color warning_orange #ff8800;
|
|
||||||
@define-color info_yellow #FFCC66;
|
|
||||||
@define-color hint_blue #4FC1FF;
|
|
||||||
@define-color success_green #14C50B;
|
|
||||||
@define-color purple_test #ff007c;
|
|
||||||
@define-color cyan_test #00dfff;
|
|
||||||
@define-color ui_blue #264F78;
|
|
||||||
@define-color ui2_blue #042E48;
|
|
||||||
@define-color ui3_blue #0195F7;
|
|
||||||
@define-color ui4_blue #75BEFF;
|
|
||||||
@define-color ui_orange #E8AB53;
|
|
||||||
@define-color ui_purple #B180D7;
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
@define-color rosewater #f5e0dc;
|
|
||||||
@define-color flamingo #f2cdcd;
|
|
||||||
@define-color pink #f5c2e7;
|
|
||||||
@define-color mauve #cba6f7;
|
|
||||||
@define-color red #f38ba8;
|
|
||||||
@define-color maroon #eba0ac;
|
|
||||||
@define-color peach #fab387;
|
|
||||||
@define-color yellow #f9e2af;
|
|
||||||
@define-color green #a6e3a1;
|
|
||||||
@define-color teal #94e2d5;
|
|
||||||
@define-color sky #89dceb;
|
|
||||||
@define-color sapphire #74c7ec;
|
|
||||||
@define-color blue #89b4fa;
|
|
||||||
@define-color lavender #b4befe;
|
|
||||||
@define-color text #cdd6f4;
|
|
||||||
@define-color subtext1 #bac2de;
|
|
||||||
@define-color subtext0 #a6adc8;
|
|
||||||
@define-color overlay2 #9399b2;
|
|
||||||
@define-color overlay1 #7f849c;
|
|
||||||
@define-color overlay0 #6c7086;
|
|
||||||
@define-color surface2 #585b70;
|
|
||||||
@define-color surface1 #45475a;
|
|
||||||
@define-color surface0 #313244;
|
|
||||||
@define-color base #1e1e2e;
|
|
||||||
@define-color mantle #181825;
|
|
||||||
@define-color crust #11111b;
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
@import "ferrum.css";
|
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: "LiterationMono Nerd Font";
|
|
||||||
/* font-family: "Source Han Sans HW,源ノ角ゴシック HW"; */
|
|
||||||
color: @fg;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background-color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags {
|
|
||||||
font-family: "Source Han Sans HW,源ノ角ゴシック HW";
|
|
||||||
font-weight: normal;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
#tags button {
|
|
||||||
padding: 3px .4em;
|
|
||||||
border-radius: 0px;
|
|
||||||
}
|
|
||||||
#tags button.occupied {
|
|
||||||
border-bottom: 1px solid @fg;
|
|
||||||
border-top: 1px solid transparent;
|
|
||||||
}
|
|
||||||
#tags button.focused {
|
|
||||||
background-color: #9d3232;
|
|
||||||
}
|
|
||||||
#tags button.urgent {
|
|
||||||
background-color: shade(@popup_back, 1.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
color: @gray;
|
|
||||||
font-size: .9em;
|
|
||||||
margin-left: 3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network,
|
|
||||||
#bluetooth,
|
|
||||||
#wireplumber,
|
|
||||||
#battery,
|
|
||||||
#tray,
|
|
||||||
#clock {
|
|
||||||
font-size: 15px;
|
|
||||||
padding: .15em 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock {
|
|
||||||
padding: 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.warning {
|
|
||||||
background-color: @yellow;
|
|
||||||
color: @bg;
|
|
||||||
}
|
|
||||||
#battery.critical {
|
|
||||||
background-color: @red;
|
|
||||||
color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu {
|
|
||||||
border-radius: 0;
|
|
||||||
color: @fg;
|
|
||||||
background-color: shade(@bg, 0.9);
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# ~/.config/wmenu/config
|
|
||||||
# try to mimic your suckless/dmenu look
|
|
||||||
|
|
||||||
# placement
|
|
||||||
-b
|
|
||||||
|
|
||||||
# vertical list with 10 lines
|
|
||||||
-l 10
|
|
||||||
|
|
||||||
# case-insensitive matching
|
|
||||||
-i
|
|
||||||
|
|
||||||
# font (match dmenu's monospace:size=10)
|
|
||||||
-f monospace:size=10
|
|
||||||
|
|
||||||
# prompt text color and background (like SchemeNorm)
|
|
||||||
-n bbbbbbFF # normal fg (#bbbbbb)
|
|
||||||
-N 222222FF # normal bg (#222222)
|
|
||||||
|
|
||||||
# selection colors (like SchemeSel)
|
|
||||||
-s eeeeeeFF # selected fg (#eeeeee)
|
|
||||||
-S 005577FF # selected bg (#005577)
|
|
||||||
|
|
||||||
# optional prompt colors (like SchemeSel so it pops)
|
|
||||||
-m eeeeeeFF
|
|
||||||
-M 005577FF
|
|
||||||
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Toggle default PipeWire sink between Steinberg UR22mkII and Starship/Matisse
|
|
||||||
|
|
||||||
# sinks
|
|
||||||
#STEINBERG_ID=60
|
|
||||||
#STARSHIP_ID=59
|
|
||||||
SINKS=$(wpctl status | sed -n '/Sinks:/,/Sources:/p')
|
|
||||||
|
|
||||||
# Extract IDs (ignore default *) and match specific names
|
|
||||||
STARSHIP_ID=$(echo "$SINKS" | tr -d '*' | grep -i "Starship" | grep -v "Easy Effects" | awk '{print $2}' | tr -d '.')
|
|
||||||
STEINBERG_ID=$(echo "$SINKS" | tr -d '*' | grep -i "Steinberg" | grep -v "Easy Effects" | awk '{print $2}' | tr -d '.')
|
|
||||||
|
|
||||||
# Get current default sink name (not just the ID)
|
|
||||||
CURRENT_SINK=$(wpctl status | awk '/Audio\/Sink/ {print $3}')
|
|
||||||
|
|
||||||
# Detect which sink is active and toggle
|
|
||||||
if [[ "$CURRENT_SINK" == *"Steinberg"* ]]; then
|
|
||||||
echo "Switching to Starship/Matisse output..."
|
|
||||||
wpctl set-default "$STARSHIP_ID"
|
|
||||||
else
|
|
||||||
echo "Switching to Steinberg UR22mkII output..."
|
|
||||||
wpctl set-default "$STEINBERG_ID"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Optionally move active streams
|
|
||||||
echo "Moving active streams to new sink..."
|
|
||||||
for stream in $(wpctl status | awk '/\. Stream/{print $1}'); do
|
|
||||||
wpctl move-stream "$stream" @DEFAULT_AUDIO_SINK@ 2>/dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
# Confirm new default
|
|
||||||
echo "New default sink:"
|
|
||||||
wpctl status | grep "Audio/Sink"
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Get default sink name and volume
|
|
||||||
sink_info=$(pamixer --get-default-sink)
|
|
||||||
sink_name=$(echo "$sink_info" | awk '{print $3}')
|
|
||||||
volume=$(pamixer --get-volume)
|
|
||||||
muted=$(pamixer --get-mute)
|
|
||||||
|
|
||||||
# Determine alt value for Waybar
|
|
||||||
if [ "$muted" = "true" ]; then
|
|
||||||
case "$sink_name" in
|
|
||||||
*Steinberg*) alt="headphones-muted" ;;
|
|
||||||
*) alt="speaker-muted" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
case "$sink_name" in
|
|
||||||
*Steinberg*) alt="headphones" ;;
|
|
||||||
*) alt="speaker" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Output JSON for Waybar
|
|
||||||
printf '{"text": "%s%%", "alt": "%s", "class": "%s", "percentage": %s }\n' \
|
|
||||||
"$volume" "$alt" "$alt" "$volume"
|
|
||||||
|
|
||||||
36
.xinitrc
36
.xinitrc
@@ -1,36 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Make sure this is before the 'exec' command or it won't be sourced.
|
|
||||||
[ -f /etc/xprofile ] && . /etc/xprofile
|
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
|
||||||
[ -f ~/.Xresources ] && xrdb -merge -I$HOME ~/.Xresources
|
|
||||||
|
|
||||||
# OPTIMUS SHITS
|
|
||||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
|
||||||
xrandr --auto
|
|
||||||
|
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
||||||
|
|
||||||
eval "$(dbus-launch --sh-syntax --exit-with-session)"
|
|
||||||
|
|
||||||
#feh --bg-center "$HOME/Pictures/bg.png" &
|
|
||||||
feh --bg-scale "$HOME/Pictures/bg.png" &
|
|
||||||
|
|
||||||
xautolock -locker lock-us -secure -time 1 &
|
|
||||||
|
|
||||||
#pipewire &
|
|
||||||
dbus-run-session pipewire &
|
|
||||||
pipewire-pulse &
|
|
||||||
wireplumber &
|
|
||||||
|
|
||||||
dwmblocks &
|
|
||||||
|
|
||||||
clipmenud &
|
|
||||||
|
|
||||||
mpd --no-daemon &
|
|
||||||
|
|
||||||
pw-metadata -n settings 0 clock.force-rate 44100
|
|
||||||
pw-metadata -n settings 0 clock.force-quantum 1024
|
|
||||||
|
|
||||||
dbus-launch --sh-syntax --exit-with-session dwm
|
|
||||||
|
|
||||||
24
.xprofile
24
.xprofile
@@ -1,24 +0,0 @@
|
|||||||
#gentoo-pipewire-launcher &
|
|
||||||
ssh-agent &
|
|
||||||
TPADID=$(xinput | grep "Synaptics" | awk '{print $5}' | awk -F "=" '{print $2}')
|
|
||||||
xinput disable $TPADID
|
|
||||||
xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" 0.9
|
|
||||||
|
|
||||||
xdg-settings set default-web-browser firefox.desktop
|
|
||||||
xdg-mime default mupdf.desktop application/pdf
|
|
||||||
xdg-mime default thunar.desktop inode/directory
|
|
||||||
|
|
||||||
#xrandr --output HDMI-0 --mode 2560x1440 --rate 143.91
|
|
||||||
#xrandr --output DP-3 --mode 1920x1080 --pos 0x180 --rotate normal --output HDMI-0 --mode 2560x1440 --rate 143.91 --pos 1920x0 --rotate normal
|
|
||||||
#xrandr --output DP-3 --mode 1920x1080 --pos 0x180 --rotate normal --output HDMI-0 --mode 2560x1440 --rate 143.91 --pos 1920x0 --rotate normal --primary
|
|
||||||
##nvidia-settings --assign 'CurrentMetaMode=DPY-4: 2560x1440_144 @2560x1440 +1920+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0, ForceCompositionPipeline=On}, DPY-3: nvidia-auto-select @1920x1080 +0+180 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0, ForceCompositionPipeline=On}'
|
|
||||||
#nvidia-settings --assign 'CurrentMetaMode=DPY-5: 2560x1440_170 @2560x1440 +1920+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0, ForceCompositionPipeline=On}, DPY-1: nvidia-auto-select @1920x1080 +0+138 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0, ForceCompositionPipeline=On}'
|
|
||||||
|
|
||||||
xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x180 --rotate normal
|
|
||||||
xrandr --output DisplayPort-2 --set "scaling mode" Full
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ -d ~/.sv ]; then
|
|
||||||
runsvdir -P ~/.sv &
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user