Compare commits
43 Commits
termux
...
054fd0803d
| Author | SHA1 | Date | |
|---|---|---|---|
| 054fd0803d | |||
| 58b459b669 | |||
| f68e382145 | |||
| 2ab219a245 | |||
| 76409072a4 | |||
| 8cb6e57cc6 | |||
| 11f14677c0 | |||
| 65f37424fd | |||
| 1fa42c3328 | |||
| b871dedb5c | |||
| c309ecdbb8 | |||
| 68874f46a0 | |||
| c3c4ef8bc1 | |||
| 2f07de753b | |||
| 60a2a61eab | |||
|
|
0beada7beb | ||
|
|
63c8911ada | ||
|
|
aa0a3c702c | ||
| dd0546309e | |||
| 59a7dc3d74 | |||
| 5542c53a39 | |||
| 064362bfb1 | |||
| ecdedf9df5 | |||
| ecf0c6ddf5 | |||
| cde6e39cec | |||
| 554a831af2 | |||
| cf333a77ff | |||
| bdd91a5013 | |||
| 03aa864753 | |||
| a5043907ff | |||
| b714d64b4f | |||
| 20d1b9e7f5 | |||
| 332a9513be | |||
| ba356f30ce | |||
| 1e85bda258 | |||
| e44bf09895 | |||
| 0e2d581a42 | |||
|
e49f872029
|
|||
| 269efeacd5 | |||
| 7fc48a5009 | |||
| 7a2d8666e7 | |||
| e88bca1023 | |||
| 5542bebfa8 |
17
.bash_profile
Normal file
17
.bash_profile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# .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
|
||||||
|
|
||||||
118
.bashrc
118
.bashrc
@@ -14,6 +14,9 @@ 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() {
|
||||||
@@ -79,10 +82,18 @@ 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 () {
|
||||||
LAYOUT=$(setxkbmap -query | grep layout | awk '{print $2}')
|
LAYOUT=$(setxkbmap -query | grep layout | awk '{print $2}')
|
||||||
if [[ $LAYOUT == "us" ]]; then
|
if [[ $LAYOUT == "us" ]]; then
|
||||||
setxkbmap cz qwerty
|
setxkbmap cz qwerty
|
||||||
else
|
else
|
||||||
@@ -109,39 +120,97 @@ function genpasswd() {
|
|||||||
|
|
||||||
## Download m3u8 stream
|
## Download m3u8 stream
|
||||||
m3u8-download() {
|
m3u8-download() {
|
||||||
youtube-dl --list-formats "$1"
|
yt-dlp --list-formats "$1"
|
||||||
echo "enter format code:"
|
echo "enter format code:"
|
||||||
read format_code
|
read format_code
|
||||||
youtube-dl -f $format_code --hls-prefer-native "$1"
|
yt-dlp -f $format_code --hls-prefer-native "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
md2pdf() {
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
echo "Usage: md2pdf input.md [output.pdf]"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
local input="$1"
|
||||||
|
local output="${2:-${input%.*}.pdf}"
|
||||||
|
|
||||||
|
# Adding -V mainfont resolves the empty font fallback error
|
||||||
|
pandoc "$input" -o "$output" --pdf-engine=typst -V mainfont="DejaVu Sans"
|
||||||
|
}
|
||||||
|
|
||||||
|
typstwatch() {
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
echo "Usage: tw <filename>"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Strip extension if provided and use the base name
|
||||||
|
local base="${1%.*}"
|
||||||
|
|
||||||
|
(zathura "${base}.pdf" &) && typst watch "${base}.typ"
|
||||||
|
}
|
||||||
|
|
||||||
|
## 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 */"
|
||||||
|
alias tree="tree -C"
|
||||||
|
export HISTCONTROL=ignoredups # fuckin history identical vole
|
||||||
|
|
||||||
## network
|
## network
|
||||||
|
|
||||||
## shortcuts
|
## shortcuts
|
||||||
alias lgfr="cd ~/git/filiprojek/"
|
alias lgfr="cd ~/git/fr/"
|
||||||
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"
|
||||||
@@ -149,6 +218,7 @@ 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
|
||||||
@@ -181,11 +251,13 @@ 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 doas="sudo"
|
alias sudo="doas"
|
||||||
|
alias treecat="tail -n +1 **/*"
|
||||||
|
|
||||||
## void xbps aliases
|
## void xbps aliases
|
||||||
alias xi="doas xbps-install"
|
#alias xi="doas xbps-install"
|
||||||
alias xq="doas xbps-query -Rs"
|
alias xi="doas xi"
|
||||||
|
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
|
||||||
@@ -193,18 +265,36 @@ 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"
|
||||||
|
export PATH="$PATH:$HOME/.local/bin/flutter/bin"
|
||||||
|
export PATH="$PATH:$HOME/.local/bin/cmdline-tools/bin"
|
||||||
|
export PATH="$PATH:$HOME/.config/emacs/bin"
|
||||||
|
|
||||||
|
export ANDROID_SDK_ROOT="$HOME/.local/android-sdk"
|
||||||
|
export ANDROID_HOME="$HOME/.local/android-sdk"
|
||||||
|
export PATH="$ANDROID_SDK_ROOT/platform-tools:$PATH"
|
||||||
|
export PATH="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
# 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
|
|
||||||
|
|||||||
9
.config/Simple-Signer/settings.ini
Normal file
9
.config/Simple-Signer/settings.ini
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[settings]
|
||||||
|
cert-path = /home/fr/docs/icz/certs/ICZUser_251118.pfx
|
||||||
|
stamp-path =
|
||||||
|
draw-stamp = 1
|
||||||
|
ask-dest-path = 0
|
||||||
|
stamp-background = 255,255,255
|
||||||
|
stamp-outline = 0,0,0
|
||||||
|
stamp-border = 2
|
||||||
|
|
||||||
1
.config/alacritty/.gitignore
vendored
Normal file
1
.config/alacritty/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
alacritty.yml
|
||||||
86
.config/alacritty/alacritty.yml.example
Normal file
86
.config/alacritty/alacritty.yml.example
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
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
|
||||||
|
|
||||||
75
.config/doom/config.el
Normal file
75
.config/doom/config.el
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; Place your private configuration here! Remember, you do not need to run 'doom
|
||||||
|
;; sync' after modifying this file!
|
||||||
|
|
||||||
|
|
||||||
|
;; Some functionality uses this to identify you, e.g. GPG configuration, email
|
||||||
|
;; clients, file templates and snippets. It is optional.
|
||||||
|
;; (setq user-full-name "John Doe"
|
||||||
|
;; user-mail-address "john@doe.com")
|
||||||
|
|
||||||
|
;; Doom exposes five (optional) variables for controlling fonts in Doom:
|
||||||
|
;;
|
||||||
|
;; - `doom-font' -- the primary font to use
|
||||||
|
;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
|
||||||
|
;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
|
||||||
|
;; presentations or streaming.
|
||||||
|
;; - `doom-symbol-font' -- for symbols
|
||||||
|
;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
|
||||||
|
;;
|
||||||
|
;; See 'C-h v doom-font' for documentation and more examples of what they
|
||||||
|
;; accept. For example:
|
||||||
|
;;
|
||||||
|
;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
|
||||||
|
;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
|
||||||
|
;;
|
||||||
|
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
||||||
|
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
||||||
|
;; refresh your font settings. If Emacs still can't find your font, it likely
|
||||||
|
;; wasn't installed correctly. Font issues are rarely Doom issues!
|
||||||
|
|
||||||
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
|
;; `load-theme' function. This is the default:
|
||||||
|
(setq doom-theme 'doom-one)
|
||||||
|
|
||||||
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
|
(setq display-line-numbers-type t)
|
||||||
|
|
||||||
|
;; If you use `org' and don't want your org files in the default location below,
|
||||||
|
;; change `org-directory'. It must be set before org loads!
|
||||||
|
(setq org-directory "~/org/")
|
||||||
|
|
||||||
|
|
||||||
|
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||||
|
;; `with-eval-after-load' block, otherwise Doom's defaults may override your
|
||||||
|
;; settings. E.g.
|
||||||
|
;;
|
||||||
|
;; (with-eval-after-load 'PACKAGE
|
||||||
|
;; (setq x y))
|
||||||
|
;;
|
||||||
|
;; The exceptions to this rule:
|
||||||
|
;;
|
||||||
|
;; - Setting file/directory variables (like `org-directory')
|
||||||
|
;; - Setting variables which explicitly tell you to set them before their
|
||||||
|
;; package is loaded (see 'C-h v VARIABLE' to look them up).
|
||||||
|
;; - Setting doom variables (which start with 'doom-' or '+').
|
||||||
|
;;
|
||||||
|
;; Here are some additional functions/macros that will help you configure Doom.
|
||||||
|
;;
|
||||||
|
;; - `load!' for loading external *.el files relative to this one
|
||||||
|
;; - `add-load-path!' for adding directories to the `load-path', relative to
|
||||||
|
;; this file. Emacs searches the `load-path' when you load packages with
|
||||||
|
;; `require' or `use-package'.
|
||||||
|
;; - `map!' for binding new keys
|
||||||
|
;;
|
||||||
|
;; To get information about any of these functions/macros, move the cursor over
|
||||||
|
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
|
||||||
|
;; This will open documentation for it, including demos of how they are used.
|
||||||
|
;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
|
||||||
|
;; etc).
|
||||||
|
;;
|
||||||
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||||
|
;; they are implemented.
|
||||||
200
.config/doom/init.el
Normal file
200
.config/doom/init.el
Normal file
@@ -0,0 +1,200 @@
|
|||||||
|
;;; init.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; This file controls what Doom modules are enabled and what order they load
|
||||||
|
;; in. Remember to run 'doom sync' after modifying it!
|
||||||
|
|
||||||
|
;; NOTE: Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
|
||||||
|
;; documentation. There you'll find a link to Doom's Module Index where all of
|
||||||
|
;; our modules are listed, including what flags they support.
|
||||||
|
|
||||||
|
;; NOTE: Move your cursor over a module's name (or its flags) and press 'K' (or
|
||||||
|
;; 'C-c c k' for non-vim users) to view its documentation. This works on flags
|
||||||
|
;; as well (those symbols that start with a plus).
|
||||||
|
;;
|
||||||
|
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
|
||||||
|
;; directory (for easy access to its source code).
|
||||||
|
|
||||||
|
(doom! :input
|
||||||
|
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
|
||||||
|
;;chinese
|
||||||
|
;;japanese
|
||||||
|
;;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
|
:completion
|
||||||
|
;;company ; the ultimate code completion backend
|
||||||
|
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
|
||||||
|
;;helm ; the *other* search engine for love and life
|
||||||
|
;;ido ; the other *other* search engine...
|
||||||
|
;;ivy ; a search engine for love and life
|
||||||
|
vertico ; the search engine of the future
|
||||||
|
|
||||||
|
:ui
|
||||||
|
;;deft ; notational velocity for Emacs
|
||||||
|
doom ; what makes DOOM look the way it does
|
||||||
|
dashboard ; a nifty splash screen for Emacs
|
||||||
|
;;doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||||
|
;;(emoji +unicode) ; 🙂
|
||||||
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
|
;;indent-guides ; highlighted indent columns
|
||||||
|
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||||
|
;;minimap ; show a map of the code on the side
|
||||||
|
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||||
|
nav-flash ; blink cursor line after big motions
|
||||||
|
;;neotree ; a project drawer, like NERDTree for vim
|
||||||
|
ophints ; highlight the region an operation acts on
|
||||||
|
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||||
|
smooth-scroll ; So smooth you won't believe it's not butter
|
||||||
|
tabs ; a tab bar for Emacs
|
||||||
|
treemacs ; a project drawer, like neotree but cooler
|
||||||
|
;;unicode ; extended unicode support for various languages
|
||||||
|
(vc-gutter +pretty) ; vcs diff in the fringe
|
||||||
|
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||||
|
;;window-select ; visually switch windows
|
||||||
|
workspaces ; tab emulation, persistence & separate workspaces
|
||||||
|
zen ; distraction-free coding or writing
|
||||||
|
|
||||||
|
:editor
|
||||||
|
(evil +everywhere); come to the dark side, we have cookies
|
||||||
|
file-templates ; auto-snippets for empty files
|
||||||
|
fold ; (nigh) universal code folding
|
||||||
|
;;(format +onsave) ; automated prettiness
|
||||||
|
;;god ; run Emacs commands without modifier keys
|
||||||
|
;;lispy ; vim for lisp, for people who don't like vim
|
||||||
|
;;multiple-cursors ; editing in many places at once
|
||||||
|
;;objed ; text object editing for the innocent
|
||||||
|
;;parinfer ; turn lisp into python, sort of
|
||||||
|
;;rotate-text ; cycle region at point between text candidates
|
||||||
|
snippets ; my elves. They type so I don't have to
|
||||||
|
(whitespace +guess +trim) ; a butler for your whitespace
|
||||||
|
;;word-wrap ; soft wrapping with language-aware indent
|
||||||
|
|
||||||
|
:emacs
|
||||||
|
dired ; making dired pretty [functional]
|
||||||
|
electric ; smarter, keyword-based electric-indent
|
||||||
|
;;eww ; the internet is gross
|
||||||
|
;;ibuffer ; interactive buffer management
|
||||||
|
tramp ; remote files at your arthritic fingertips
|
||||||
|
undo ; persistent, smarter undo for your inevitable mistakes
|
||||||
|
vc ; version-control and Emacs, sitting in a tree
|
||||||
|
|
||||||
|
:term
|
||||||
|
;;eshell ; the elisp shell that works everywhere
|
||||||
|
;;shell ; simple shell REPL for Emacs
|
||||||
|
;;term ; basic terminal emulator for Emacs
|
||||||
|
;;vterm ; the best terminal emulation in Emacs
|
||||||
|
|
||||||
|
:checkers
|
||||||
|
syntax ; tasing you for every semicolon you forget
|
||||||
|
;;(spell +flyspell) ; tasing you for misspelling mispelling
|
||||||
|
grammar ; tasing grammar mistake every you make
|
||||||
|
|
||||||
|
:tools
|
||||||
|
ansible
|
||||||
|
;;biblio ; Writes a PhD for you (citation needed)
|
||||||
|
;;collab ; buffers with friends
|
||||||
|
;;debugger ; stepping through code, to help you add bugs
|
||||||
|
;;direnv
|
||||||
|
docker
|
||||||
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
|
lookup ; navigate your code and its documentation
|
||||||
|
;;llm ; when I said you needed friends, I didn't mean...
|
||||||
|
;;(lsp +eglot) ; M-x vscode
|
||||||
|
magit ; a git porcelain for Emacs
|
||||||
|
;;make ; run make tasks from Emacs
|
||||||
|
;;pass ; password manager for nerds
|
||||||
|
;;pdf ; pdf enhancements
|
||||||
|
;;terraform ; infrastructure as code
|
||||||
|
;;tmux ; an API for interacting with tmux
|
||||||
|
;;tree-sitter ; syntax and parsing, sitting in a tree...
|
||||||
|
;;upload ; map local to remote projects via ssh/ftp
|
||||||
|
|
||||||
|
:os
|
||||||
|
(:if (featurep :system 'macos) macos) ; improve compatibility with macOS
|
||||||
|
;;tty ; improve the terminal Emacs experience
|
||||||
|
(tty +osc)
|
||||||
|
|
||||||
|
:lang
|
||||||
|
;;ada ; In strong typing we (blindly) trust
|
||||||
|
;;(agda +local) ; types of types of types of types...
|
||||||
|
;;beancount ; mind the GAAP
|
||||||
|
;;(cc +lsp) ; C > C++ == 1
|
||||||
|
;;clojure ; java with a lisp
|
||||||
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
|
;;coq ; proofs-as-programs
|
||||||
|
;;crystal ; ruby at the speed of c
|
||||||
|
;;csharp ; unity, .NET, and mono shenanigans
|
||||||
|
;;data ; config/data formats
|
||||||
|
;;(dart +flutter) ; paint ui and not much else
|
||||||
|
;;dhall
|
||||||
|
;;elixir ; erlang done right
|
||||||
|
;;elm ; care for a cup of TEA?
|
||||||
|
emacs-lisp ; drown in parentheses
|
||||||
|
;;erlang ; an elegant language for a more civilized age
|
||||||
|
;;ess ; emacs speaks statistics
|
||||||
|
;;factor
|
||||||
|
;;faust ; dsp, but you get to keep your soul
|
||||||
|
;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER)
|
||||||
|
;;fsharp ; ML stands for Microsoft's Language
|
||||||
|
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||||
|
;;gdscript ; the language you waited for
|
||||||
|
;;(go +lsp) ; the hipster dialect
|
||||||
|
;;(graphql +lsp) ; Give queries a REST
|
||||||
|
;;(haskell +lsp) ; a language that's lazier than I am
|
||||||
|
;;hy ; readability of scheme w/ speed of python
|
||||||
|
;;idris ; a language you can depend on
|
||||||
|
json ; At least it ain't XML
|
||||||
|
;;janet ; Fun fact: Janet is me!
|
||||||
|
;;(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||||
|
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
|
;;julia ; a better, faster MATLAB
|
||||||
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
|
;;latex ; writing papers in Emacs has never been so fun
|
||||||
|
;;lean ; for folks with too much to prove
|
||||||
|
;;ledger ; be audit you can be
|
||||||
|
lua ; one-based indices? one-based indices
|
||||||
|
markdown ; writing docs for people to ignore
|
||||||
|
;;nim ; python + lisp at the speed of c
|
||||||
|
;;nix ; I hereby declare "nix geht mehr!"
|
||||||
|
;;ocaml ; an objective camel
|
||||||
|
;;odin ; C, minus its footguns
|
||||||
|
org ; organize your plain life in plain text
|
||||||
|
php ; perl's insecure younger brother
|
||||||
|
;;plantuml ; diagrams for confusing people more
|
||||||
|
;;graphviz ; diagrams for confusing yourself even more
|
||||||
|
;;purescript ; javascript, but functional
|
||||||
|
python ; beautiful is better than ugly
|
||||||
|
;;qt ; the 'cutest' gui framework ever
|
||||||
|
;;racket ; a DSL for DSLs
|
||||||
|
;;raku ; the artist formerly known as perl6
|
||||||
|
;;rest ; Emacs as a REST client
|
||||||
|
;;rst ; ReST in peace
|
||||||
|
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||||
|
(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
|
;;scala ; java, but good
|
||||||
|
;;(scheme +guile) ; a fully conniving family of lisps
|
||||||
|
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||||
|
;;sml
|
||||||
|
;;solidity ; do you need a blockchain? No.
|
||||||
|
;;swift ; who asked for emoji variables?
|
||||||
|
;;terra ; Earth and Moon in alignment for performance.
|
||||||
|
web ; the tubes
|
||||||
|
yaml ; JSON, but readable
|
||||||
|
;;zig ; C, but simpler
|
||||||
|
|
||||||
|
:email
|
||||||
|
;;(mu4e +org +gmail)
|
||||||
|
;;notmuch
|
||||||
|
;;(wanderlust +gmail)
|
||||||
|
|
||||||
|
:app
|
||||||
|
;;calendar
|
||||||
|
;;emms
|
||||||
|
;;everywhere ; *leave* Emacs!? You must be joking
|
||||||
|
;;irc ; how neckbeards socialize
|
||||||
|
;;(rss +org) ; emacs as an RSS reader
|
||||||
|
|
||||||
|
:config
|
||||||
|
;;literate
|
||||||
|
(default +bindings +smartparens))
|
||||||
54
.config/doom/packages.el
Normal file
54
.config/doom/packages.el
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; $DOOMDIR/packages.el
|
||||||
|
|
||||||
|
;; To install a package:
|
||||||
|
;;
|
||||||
|
;; 1. Declare them here in a `package!' statement,
|
||||||
|
;; 2. Run 'doom sync' in the shell,
|
||||||
|
;; 3. Restart Emacs.
|
||||||
|
;;
|
||||||
|
;; Use 'C-h f package\!' to look up documentation for the `package!' macro.
|
||||||
|
|
||||||
|
|
||||||
|
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||||
|
;; (package! some-package)
|
||||||
|
|
||||||
|
;; To install a package directly from a remote git repo, you must specify a
|
||||||
|
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||||
|
;; https://github.com/radian-software/straight.el#the-recipe-format
|
||||||
|
;; (package! another-package
|
||||||
|
;; :recipe (:host github :repo "username/repo"))
|
||||||
|
|
||||||
|
;; If the package you are trying to install does not contain a PACKAGENAME.el
|
||||||
|
;; file, or is located in a subdirectory of the repo, you'll need to specify
|
||||||
|
;; `:files' in the `:recipe':
|
||||||
|
;; (package! this-package
|
||||||
|
;; :recipe (:host github :repo "username/repo"
|
||||||
|
;; :files ("some-file.el" "src/lisp/*.el")))
|
||||||
|
|
||||||
|
;; If you'd like to disable a package included with Doom, you can do so here
|
||||||
|
;; with the `:disable' property:
|
||||||
|
;; (package! builtin-package :disable t)
|
||||||
|
|
||||||
|
;; You can override the recipe of a built in package without having to specify
|
||||||
|
;; all the properties for `:recipe'. These will inherit the rest of its recipe
|
||||||
|
;; from Doom or MELPA/ELPA/Emacsmirror:
|
||||||
|
;; (package! builtin-package :recipe (:nonrecursive t))
|
||||||
|
;; (package! builtin-package-2 :recipe (:repo "myfork/package"))
|
||||||
|
|
||||||
|
;; Specify a `:branch' to install a package from a particular branch or tag.
|
||||||
|
;; This is required for some packages whose default branch isn't 'master' (which
|
||||||
|
;; our package manager can't deal with; see radian-software/straight.el#279)
|
||||||
|
;; (package! builtin-package :recipe (:branch "develop"))
|
||||||
|
|
||||||
|
;; Use `:pin' to specify a particular commit to install.
|
||||||
|
;; (package! builtin-package :pin "1a2b3c4d5e")
|
||||||
|
|
||||||
|
|
||||||
|
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||||
|
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||||
|
;; (unpin! pinned-package)
|
||||||
|
;; ...or multiple packages
|
||||||
|
;; (unpin! pinned-package another-pinned-package)
|
||||||
|
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||||
|
;; (unpin! t)
|
||||||
875
.config/easyeffects/input/mycfg.json
Normal file
875
.config/easyeffects/input/mycfg.json
Normal file
@@ -0,0 +1,875 @@
|
|||||||
|
{
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
33
.config/foot/foot.ini
Normal file
33
.config/foot/foot.ini
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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-dark]
|
||||||
|
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
|
||||||
|
|
||||||
15
.config/kanshi/config
Normal file
15
.config/kanshi/config
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
profile Laptop {
|
||||||
|
output eDP-1 enable
|
||||||
|
}
|
||||||
|
|
||||||
|
profile Work {
|
||||||
|
output eDP-1 disable
|
||||||
|
output DP-3 enable mode 2560x1440@59.951Hz position 0,0
|
||||||
|
output DP-5 enable mode 2560x1440@143.967Hz position 2560,0
|
||||||
|
}
|
||||||
|
|
||||||
|
profile Work2 {
|
||||||
|
output eDP-1 disable
|
||||||
|
output DP-4 enable mode 2560x1440@59.951Hz position 0,0
|
||||||
|
output DP-7 enable mode 2560x1440@143.967Hz position 2560,0
|
||||||
|
}
|
||||||
427
.config/mango/config.conf
Normal file
427
.config/mango/config.conf
Normal file
@@ -0,0 +1,427 @@
|
|||||||
|
# mango (0.12.9) configuration
|
||||||
|
# Keybindings mirror the user's river (~/.config/river/init) and dwm
|
||||||
|
# (~/git/dwm/config.h) setups: MOD1 (Alt) as primary modifier, dwm-style
|
||||||
|
# tag handling, river-style window movement.
|
||||||
|
#
|
||||||
|
# Reference: https://github.com/mangowm/mango/wiki
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Window effects (scenefx)
|
||||||
|
# ============================================================================
|
||||||
|
blur=0
|
||||||
|
blur_layer=0
|
||||||
|
blur_optimized=1
|
||||||
|
blur_params_num_passes=2
|
||||||
|
blur_params_radius=5
|
||||||
|
blur_params_noise=0.02
|
||||||
|
blur_params_brightness=0.9
|
||||||
|
blur_params_contrast=0.9
|
||||||
|
blur_params_saturation=1.2
|
||||||
|
|
||||||
|
shadows=0
|
||||||
|
layer_shadows=0
|
||||||
|
shadow_only_floating=1
|
||||||
|
shadows_size=10
|
||||||
|
shadows_blur=15
|
||||||
|
shadows_position_x=0
|
||||||
|
shadows_position_y=0
|
||||||
|
shadowscolor=0x000000ff
|
||||||
|
|
||||||
|
border_radius=0
|
||||||
|
no_radius_when_single=0
|
||||||
|
focused_opacity=1.0
|
||||||
|
unfocused_opacity=1.0
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Animations
|
||||||
|
# ============================================================================
|
||||||
|
animations=1
|
||||||
|
layer_animations=0
|
||||||
|
animation_type_open=zoom
|
||||||
|
animation_type_close=slide
|
||||||
|
layer_animation_type_open=slide
|
||||||
|
layer_animation_type_close=slide
|
||||||
|
animation_fade_in=1
|
||||||
|
animation_fade_out=1
|
||||||
|
tag_animation_direction=1
|
||||||
|
zoom_initial_ratio=0.3
|
||||||
|
zoom_end_ratio=0.8
|
||||||
|
fadein_begin_opacity=0.5
|
||||||
|
fadeout_begin_opacity=0.8
|
||||||
|
animation_duration_move=200
|
||||||
|
animation_duration_open=100
|
||||||
|
animation_duration_tag=0
|
||||||
|
animation_duration_close=200
|
||||||
|
animation_duration_focus=0
|
||||||
|
animation_curve_open=0.46,1.0,0.29,1
|
||||||
|
animation_curve_move=0.46,1.0,0.29,1
|
||||||
|
animation_curve_tag=0.46,1.0,0.29,1
|
||||||
|
animation_curve_close=0.08,0.92,0,1
|
||||||
|
animation_curve_focus=0.46,1.0,0.29,1
|
||||||
|
animation_curve_opafadeout=0.5,0.5,0.5,0.5
|
||||||
|
animation_curve_opafadein=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Layouts
|
||||||
|
# ============================================================================
|
||||||
|
# Scroller
|
||||||
|
scroller_structs=20
|
||||||
|
scroller_default_proportion=0.8
|
||||||
|
scroller_focus_center=0
|
||||||
|
scroller_prefer_center=0
|
||||||
|
edge_scroller_pointer_focus=1
|
||||||
|
scroller_default_proportion_single=1.0
|
||||||
|
scroller_proportion_preset=0.5,0.8,1.0
|
||||||
|
|
||||||
|
# Master-Stack (matches river filtile main-ratio 55, main-location left)
|
||||||
|
new_is_master=1
|
||||||
|
default_mfact=0.55
|
||||||
|
default_nmaster=1
|
||||||
|
smartgaps=1
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Overview
|
||||||
|
# ============================================================================
|
||||||
|
hotarea_size=10
|
||||||
|
enable_hotarea=1
|
||||||
|
hotarea_corner=0
|
||||||
|
ov_tab_mode=0
|
||||||
|
overviewgappi=5
|
||||||
|
overviewgappo=30
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Misc behaviour
|
||||||
|
# ============================================================================
|
||||||
|
no_border_when_single=1
|
||||||
|
axis_bind_apply_timeout=100
|
||||||
|
focus_on_activate=1
|
||||||
|
idleinhibit_ignore_visible=0
|
||||||
|
sloppyfocus=1
|
||||||
|
warpcursor=0
|
||||||
|
focus_cross_monitor=0
|
||||||
|
focus_cross_tag=0
|
||||||
|
enable_floating_snap=0
|
||||||
|
snap_distance=30
|
||||||
|
cursor_size=24
|
||||||
|
drag_tile_to_tile=1
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Keyboard (matches river: set-repeat 30 200, layout us,cz(qwerty))
|
||||||
|
# ============================================================================
|
||||||
|
repeat_rate=30
|
||||||
|
repeat_delay=200
|
||||||
|
numlockon=0
|
||||||
|
xkb_rules_layout=us,cz(qwerty)
|
||||||
|
#xkb_rules_options=grp:win_space_toggle
|
||||||
|
binds=alt,u,spawn,mmsg -s -d switch_keyboard_layout,1
|
||||||
|
binds=alt,c,spawn,mmsg -s -d switch_keyboard_layout,2
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Trackpad
|
||||||
|
# ============================================================================
|
||||||
|
disable_trackpad=0
|
||||||
|
tap_to_click=1
|
||||||
|
tap_and_drag=1
|
||||||
|
drag_lock=1
|
||||||
|
trackpad_natural_scrolling=0
|
||||||
|
disable_while_typing=1
|
||||||
|
left_handed=0
|
||||||
|
middle_button_emulation=0
|
||||||
|
swipe_min_threshold=1
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Mouse
|
||||||
|
# ============================================================================
|
||||||
|
mouse_natural_scrolling=0
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Appearance / colors (mostly preserved from previous config)
|
||||||
|
# ============================================================================
|
||||||
|
gappih=5
|
||||||
|
gappiv=5
|
||||||
|
gappoh=10
|
||||||
|
gappov=10
|
||||||
|
scratchpad_width_ratio=0.8
|
||||||
|
scratchpad_height_ratio=0.9
|
||||||
|
borderpx=1
|
||||||
|
rootcolor=0x1D1F21ff
|
||||||
|
bordercolor=0x586e75ff
|
||||||
|
focuscolor=0x93a1a1ff
|
||||||
|
maximizescreencolor=0x89aa61ff
|
||||||
|
urgentcolor=0xad401fff
|
||||||
|
scratchpadcolor=0x516c93ff
|
||||||
|
globalcolor=0xb153a7ff
|
||||||
|
overlaycolor=0x14a57cff
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Per-tag layout (default tile, matches dwm and river filtile)
|
||||||
|
# Layouts available: tile, scroller, grid, deck, monocle, center_tile,
|
||||||
|
# vertical_tile, vertical_scroller, dwindle
|
||||||
|
# ============================================================================
|
||||||
|
tagrule=id:1,layout_name:tile
|
||||||
|
tagrule=id:2,layout_name:tile
|
||||||
|
tagrule=id:3,layout_name:tile
|
||||||
|
tagrule=id:4,layout_name:tile
|
||||||
|
tagrule=id:5,layout_name:tile
|
||||||
|
tagrule=id:6,layout_name:tile
|
||||||
|
tagrule=id:7,layout_name:tile
|
||||||
|
tagrule=id:8,layout_name:tile
|
||||||
|
tagrule=id:9,layout_name:tile
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Window rules (mirrors river rule-add and dwm rules)
|
||||||
|
# ============================================================================
|
||||||
|
# Floating apps (from dwm config)
|
||||||
|
windowrule=isfloating:1,appid:Arandr
|
||||||
|
windowrule=isfloating:1,appid:Pavucontrol
|
||||||
|
windowrule=isfloating:1,appid:mpv
|
||||||
|
|
||||||
|
# River rules
|
||||||
|
windowrule=isfloating:1,appid:float.*
|
||||||
|
windowrule=isfloating:1,title:yazi
|
||||||
|
windowrule=isfloating:1,title:river
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Key Bindings
|
||||||
|
#
|
||||||
|
# Modifier convention follows river/dwm: MOD = ALT (Mod1)
|
||||||
|
# Format: bind=MODIFIERS,KEY,COMMAND,PARAMETERS
|
||||||
|
# Flags: bindl = works while screen locked
|
||||||
|
# ============================================================================
|
||||||
|
|
||||||
|
# --- Compositor control --------------------------------------------------
|
||||||
|
bind=SUPER,r,reload_config
|
||||||
|
# river: Mod1+Shift E exit
|
||||||
|
bind=ALT+SHIFT,e,quit
|
||||||
|
# river/dwm: Mod1+Shift C close
|
||||||
|
bind=ALT+SHIFT,c,killclient
|
||||||
|
|
||||||
|
# --- Launchers -----------------------------------------------------------
|
||||||
|
# river/dwm: Mod1 p (menu)
|
||||||
|
#bind=ALT,p,spawn,fuzzel
|
||||||
|
bind=ALT,p,spawn,wmenu-run -F -il 16 -f 'LiterationMono Nerd Font 12' -n bbbbbbff -N 222222ff -s eeeeeeff -S 444444ff -m eeeeeeff -M 444444ff
|
||||||
|
|
||||||
|
# river/dwm: Mod1+Shift Return
|
||||||
|
bind=ALT+SHIFT,Return,spawn,foot
|
||||||
|
|
||||||
|
# Yazi file manager in floating foot (river: Mod1 r)
|
||||||
|
#bind=ALT,r,spawn,foot -T yazi -W 150x50 -e yazi
|
||||||
|
bind=ALT,r,spawn,foot -T yazi -W 150x50 -e ranger
|
||||||
|
|
||||||
|
# --- Focus ---------------------------------------------------------------
|
||||||
|
# river: Mod1 J/K focus-view next/previous (dwm: focusstack +1/-1)
|
||||||
|
bind=ALT,j,focusstack,next
|
||||||
|
bind=ALT,k,focusstack,prev
|
||||||
|
|
||||||
|
# Direction-based focus (mango bonus, useful complement)
|
||||||
|
bind=ALT,Left,focusdir,left
|
||||||
|
bind=ALT,Right,focusdir,right
|
||||||
|
bind=ALT,Up,focusdir,up
|
||||||
|
bind=ALT,Down,focusdir,down
|
||||||
|
|
||||||
|
# --- Swap / move in stack ------------------------------------------------
|
||||||
|
# river: Mod1+Shift J/K swap next/previous (dwm: movestack)
|
||||||
|
bind=ALT+SHIFT,j,exchange_stack_client,next
|
||||||
|
bind=ALT+SHIFT,k,exchange_stack_client,prev
|
||||||
|
|
||||||
|
# Direction-based swap
|
||||||
|
bind=ALT+SHIFT,Left,exchange_client,left
|
||||||
|
bind=ALT+SHIFT,Right,exchange_client,right
|
||||||
|
bind=ALT+SHIFT,Up,exchange_client,up
|
||||||
|
bind=ALT+SHIFT,Down,exchange_client,down
|
||||||
|
|
||||||
|
# --- Master / layout tweaks (river filtile ↔ dwm) ------------------------
|
||||||
|
# river: Mod1 H/L send-layout-cmd filtile main-ratio -/+5
|
||||||
|
# dwm: MOD1 H/L setmfact -/+0.05
|
||||||
|
bind=ALT,h,setmfact,-0.05
|
||||||
|
bind=ALT,l,setmfact,+0.05
|
||||||
|
|
||||||
|
# river: Mod1 I/D main-count +/-1 dwm: incnmaster +/-1
|
||||||
|
bind=ALT,i,incnmaster,+1
|
||||||
|
bind=ALT,d,incnmaster,-1
|
||||||
|
|
||||||
|
# river: Mod1 Return zoom (bump to top of stack)
|
||||||
|
bind=ALT,Return,zoom
|
||||||
|
|
||||||
|
# river: Mod1 Tab focus-previous-tags dwm: MOD1 Tab view (last tags)
|
||||||
|
bind=ALT,Tab,view,-1
|
||||||
|
|
||||||
|
# --- Layout switching (dwm: t=tile, m=monocle; river: M=monocle) ---------
|
||||||
|
bind=ALT,t,setlayout,tile
|
||||||
|
bind=ALT,m,setlayout,monocle
|
||||||
|
# dwm: MOD1 Space cycles layout
|
||||||
|
bind=ALT,space,switch_layout
|
||||||
|
|
||||||
|
# --- Float / fullscreen --------------------------------------------------
|
||||||
|
# river: Mod1+Shift Space toggle-float dwm: MOD1+Shift Space togglefloating
|
||||||
|
bind=ALT+SHIFT,space,togglefloating
|
||||||
|
# river: Mod1 F toggle-fullscreen dwm: MOD1 F (was floating layout)
|
||||||
|
bind=ALT,f,togglefullscreen
|
||||||
|
bind=ALT+SHIFT,f,togglefakefullscreen
|
||||||
|
|
||||||
|
# --- Tags 1-9 (river/dwm identical scheme) -------------------------------
|
||||||
|
# Mod1+N : view tag N
|
||||||
|
# Mod1+Shift+N : send window to tag N
|
||||||
|
# Mod1+Ctrl+N : toggle view of tag N
|
||||||
|
# Mod1+Ctrl+Shift+N : toggle tag N on focused window
|
||||||
|
bind=ALT,1,view,1
|
||||||
|
bind=ALT,2,view,2
|
||||||
|
bind=ALT,3,view,3
|
||||||
|
bind=ALT,4,view,4
|
||||||
|
bind=ALT,5,view,5
|
||||||
|
bind=ALT,6,view,6
|
||||||
|
bind=ALT,7,view,7
|
||||||
|
bind=ALT,8,view,8
|
||||||
|
bind=ALT,9,view,9
|
||||||
|
|
||||||
|
bind=ALT+SHIFT,1,tag,1
|
||||||
|
bind=ALT+SHIFT,2,tag,2
|
||||||
|
bind=ALT+SHIFT,3,tag,3
|
||||||
|
bind=ALT+SHIFT,4,tag,4
|
||||||
|
bind=ALT+SHIFT,5,tag,5
|
||||||
|
bind=ALT+SHIFT,6,tag,6
|
||||||
|
bind=ALT+SHIFT,7,tag,7
|
||||||
|
bind=ALT+SHIFT,8,tag,8
|
||||||
|
bind=ALT+SHIFT,9,tag,9
|
||||||
|
|
||||||
|
bind=ALT+CTRL,1,toggleview,1
|
||||||
|
bind=ALT+CTRL,2,toggleview,2
|
||||||
|
bind=ALT+CTRL,3,toggleview,3
|
||||||
|
bind=ALT+CTRL,4,toggleview,4
|
||||||
|
bind=ALT+CTRL,5,toggleview,5
|
||||||
|
bind=ALT+CTRL,6,toggleview,6
|
||||||
|
bind=ALT+CTRL,7,toggleview,7
|
||||||
|
bind=ALT+CTRL,8,toggleview,8
|
||||||
|
bind=ALT+CTRL,9,toggleview,9
|
||||||
|
|
||||||
|
bind=ALT+CTRL+SHIFT,1,toggletag,1
|
||||||
|
bind=ALT+CTRL+SHIFT,2,toggletag,2
|
||||||
|
bind=ALT+CTRL+SHIFT,3,toggletag,3
|
||||||
|
bind=ALT+CTRL+SHIFT,4,toggletag,4
|
||||||
|
bind=ALT+CTRL+SHIFT,5,toggletag,5
|
||||||
|
bind=ALT+CTRL+SHIFT,6,toggletag,6
|
||||||
|
bind=ALT+CTRL+SHIFT,7,toggletag,7
|
||||||
|
bind=ALT+CTRL+SHIFT,8,toggletag,8
|
||||||
|
bind=ALT+CTRL+SHIFT,9,toggletag,9
|
||||||
|
|
||||||
|
# All tags (river/dwm: 0)
|
||||||
|
bind=ALT,0,view,0
|
||||||
|
bind=ALT+SHIFT,0,toggletag,0
|
||||||
|
|
||||||
|
# --- Monitor focus / move (river: Period/Comma; dwm: same) ---------------
|
||||||
|
bind=ALT,period,focusmon,right
|
||||||
|
bind=ALT,comma,focusmon,left
|
||||||
|
bind=ALT+SHIFT,period,tagmon,right
|
||||||
|
bind=ALT+SHIFT,comma,tagmon,left
|
||||||
|
|
||||||
|
# --- Overview (mango bonus) ----------------------------------------------
|
||||||
|
bind=SUPER,Tab,toggleoverview
|
||||||
|
|
||||||
|
# --- Scratchpad ----------------------------------------------------------
|
||||||
|
bind=ALT,z,toggle_scratchpad
|
||||||
|
bind=SUPER,i,minimized
|
||||||
|
bind=SUPER+SHIFT,i,restore_minimized
|
||||||
|
|
||||||
|
# --- Window state extras -------------------------------------------------
|
||||||
|
bind=SUPER,g,toggleglobal
|
||||||
|
bind=SUPER,o,toggleoverlay
|
||||||
|
bind=ALT,a,togglemaximizescreen
|
||||||
|
|
||||||
|
# --- Gaps ----------------------------------------------------------------
|
||||||
|
bind=ALT+SHIFT,x,incgaps,1
|
||||||
|
bind=ALT+SHIFT,z,incgaps,-1
|
||||||
|
bind=ALT+SHIFT,r,togglegaps
|
||||||
|
|
||||||
|
# --- Move / resize floating windows (river-style snap & arrow nudge) -----
|
||||||
|
# river: Mod1+Super H/J/K/L move 100 here: ctrl+shift arrows nudge 50
|
||||||
|
bind=CTRL+SHIFT,Up,movewin,+0,-50
|
||||||
|
bind=CTRL+SHIFT,Down,movewin,+0,+50
|
||||||
|
bind=CTRL+SHIFT,Left,movewin,-50,+0
|
||||||
|
bind=CTRL+SHIFT,Right,movewin,+50,+0
|
||||||
|
|
||||||
|
# river: Mod1+Super+Shift H/J/K/L resize
|
||||||
|
bind=CTRL+ALT,Up,resizewin,+0,-50
|
||||||
|
bind=CTRL+ALT,Down,resizewin,+0,+50
|
||||||
|
bind=CTRL+ALT,Left,resizewin,-50,+0
|
||||||
|
bind=CTRL+ALT,Right,resizewin,+50,+0
|
||||||
|
|
||||||
|
# --- Lock screen (river: Mod1+Shift L spawn waylock) ---------------------
|
||||||
|
# Wrapper script: locks immediately, then runs a 10 s idle blanker while
|
||||||
|
# locked (kanshi paused during blank to avoid Lenovo dock profile flip).
|
||||||
|
bindl=ALT+SHIFT,l,spawn,~/.config/mango/scripts/lock.sh
|
||||||
|
|
||||||
|
# --- Media keys (work in any mode) ---------------------------------------
|
||||||
|
bindl=NONE,XF86AudioRaiseVolume,spawn,pamixer -i 5
|
||||||
|
bindl=NONE,XF86AudioLowerVolume,spawn,pamixer -d 5
|
||||||
|
bindl=NONE,XF86AudioMute,spawn,pamixer --toggle-mute
|
||||||
|
bindl=NONE,XF86AudioPlay,spawn,playerctl play-pause
|
||||||
|
bindl=NONE,XF86AudioPrev,spawn,playerctl previous
|
||||||
|
bindl=NONE,XF86AudioNext,spawn,playerctl next
|
||||||
|
bindl=NONE,XF86AudioMedia,spawn,playerctl play-pause
|
||||||
|
|
||||||
|
# --- Screenshots (grim/slurp, mirrors river) -----------------------------
|
||||||
|
bind=NONE,Print,spawn_shell,grim - | tee /home/$USER/scrot/$(date +"%F_%T").png | wl-copy
|
||||||
|
bind=ALT,Print,spawn_shell,grim -g "$(slurp -d)" - | tee /home/$USER/scrot/$(date +"%F_%T").png | wl-copy
|
||||||
|
bind=ALT+SHIFT,Print,spawn,hyprpicker -anl
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Mouse bindings (river: Mod1 left=move, right=resize, middle=toggle float)
|
||||||
|
# ============================================================================
|
||||||
|
mousebind=ALT,btn_left,moveresize,curmove
|
||||||
|
mousebind=ALT,btn_right,moveresize,curresize
|
||||||
|
mousebind=ALT,btn_middle,togglefloating
|
||||||
|
|
||||||
|
# Maximize/restore on plain middle-click anywhere (overview/title contexts)
|
||||||
|
mousebind=SUPER,btn_middle,togglemaximizescreen,0
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Axis (scroll) bindings — wheel over root cycles tags
|
||||||
|
# ============================================================================
|
||||||
|
axisbind=SUPER,UP,viewtoleft_have_client
|
||||||
|
axisbind=SUPER,DOWN,viewtoright_have_client
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Layer rules
|
||||||
|
# ============================================================================
|
||||||
|
layerrule=animation_type_open:zoom,layer_name:fuzzel
|
||||||
|
layerrule=animation_type_close:zoom,layer_name:fuzzel
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Autostart (mirrors river spawn ... block)
|
||||||
|
# ============================================================================
|
||||||
|
env=XDG_CURRENT_DESKTOP,mango
|
||||||
|
env=XDG_SESSION_TYPE,wayland
|
||||||
|
|
||||||
|
exec-once=dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
exec-once=/usr/lib/xdg-desktop-portal-wlr
|
||||||
|
exec-once=/usr/lib/xdg-desktop-portal
|
||||||
|
|
||||||
|
# Audio
|
||||||
|
exec-once=pipewire
|
||||||
|
#exec-once=pipewire-pulse
|
||||||
|
exec-once=pkill waybar_audio_event_bridge
|
||||||
|
exec-once=/home/fr/.local/bin/waybar_audio_event_bridge
|
||||||
|
|
||||||
|
# Services
|
||||||
|
exec-once=dunst
|
||||||
|
exec-once=udiskie -ANt
|
||||||
|
|
||||||
|
# Color temperature
|
||||||
|
exec-once=wlsunset -l 50.08 -L 14.42 -t 5000 -T 6500
|
||||||
|
|
||||||
|
# Wallpaper
|
||||||
|
exec-once=swaybg -c 1D1F21
|
||||||
|
|
||||||
|
# Status bar (mango-specific waybar config; river bar config is left intact)
|
||||||
|
exec-once=waybar -c ~/.config/waybar/config-mango.jsonc
|
||||||
|
|
||||||
|
# Idle: blank after 20 min when unlocked (no auto-lock). Manual lock
|
||||||
|
# (Alt+Shift+L) and suspend route through ~/.config/mango/scripts/lock.sh
|
||||||
|
# which adds a 10 s idle blanker for the locked session. Kanshi is
|
||||||
|
# STOP/CONT-bracketed around every wlopm cycle to keep the Lenovo
|
||||||
|
# USB-C dock from re-triggering monitor profile switches when DPMS
|
||||||
|
# drops the DP-MST link.
|
||||||
|
exec-once=swayidle -w timeout 1200 'pkill -STOP kanshi 2>/dev/null; wlopm --off "*"' resume 'wlopm --on "*"; sleep 0.5; pkill -CONT kanshi 2>/dev/null' before-sleep '~/.config/mango/scripts/lock.sh &'
|
||||||
|
|
||||||
|
# Multi-monitor configuration
|
||||||
|
exec-once=kanshi
|
||||||
31
.config/mango/scripts/lock.sh
Executable file
31
.config/mango/scripts/lock.sh
Executable file
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Manual screen-lock for mango.
|
||||||
|
# - Locks via waylock (immediate lockscreen).
|
||||||
|
# - While locked, runs an aggressive 10 s idle blanker.
|
||||||
|
# - Pauses kanshi during blank to prevent profile flip-flop on the
|
||||||
|
# Lenovo USB-C dock (DP-MST drops link on DPMS off).
|
||||||
|
# - Cleans up on unlock.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Don't stack lockers if one is already running (re-press, or
|
||||||
|
# before-sleep firing while already locked).
|
||||||
|
pgrep -x waylock >/dev/null && exit 0
|
||||||
|
|
||||||
|
# Short-timeout idle blanker, only alive while we're locked.
|
||||||
|
swayidle -w \
|
||||||
|
timeout 10 'pkill -STOP kanshi 2>/dev/null; wlopm --off "*"' \
|
||||||
|
resume 'wlopm --on "*"; sleep 0.5; pkill -CONT kanshi 2>/dev/null' \
|
||||||
|
>/dev/null 2>&1 &
|
||||||
|
LOCK_IDLE_PID=$!
|
||||||
|
|
||||||
|
# Cleanup on unlock: stop the idle watcher, ensure outputs are on,
|
||||||
|
# and resume kanshi in case the trap fires mid-blank.
|
||||||
|
trap '
|
||||||
|
kill "$LOCK_IDLE_PID" 2>/dev/null || true
|
||||||
|
wlopm --on "*" 2>/dev/null || true
|
||||||
|
pkill -CONT kanshi 2>/dev/null || true
|
||||||
|
' EXIT
|
||||||
|
|
||||||
|
# Block here until waylock exits on successful auth.
|
||||||
|
waylock
|
||||||
2
.config/nvim/.gitignore
vendored
2
.config/nvim/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
lazy-lock.json
|
|
||||||
|
|
||||||
3
.config/nvim/.luarc.json
Normal file
3
.config/nvim/.luarc.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"format.enable": false
|
||||||
|
}
|
||||||
20
.config/nvim/.neoconf.json
Normal file
20
.config/nvim/.neoconf.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"neodev": {
|
||||||
|
"library": {
|
||||||
|
"enabled": true,
|
||||||
|
"plugins": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"neoconf": {
|
||||||
|
"plugins": {
|
||||||
|
"lua_ls": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lspconfig": {
|
||||||
|
"lua_ls": {
|
||||||
|
"Lua.format.enable": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
7
.config/nvim/.stylua.toml
Normal file
7
.config/nvim/.stylua.toml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
column_width = 120
|
||||||
|
line_endings = "Unix"
|
||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
quote_style = "AutoPreferDouble"
|
||||||
|
call_parentheses = "None"
|
||||||
|
collapse_simple_statement = "Always"
|
||||||
34
.config/nvim/README.md
Normal file
34
.config/nvim/README.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# AstroNvim Template
|
||||||
|
|
||||||
|
**NOTE:** This is for AstroNvim v6+
|
||||||
|
|
||||||
|
A template for getting started with [AstroNvim](https://github.com/AstroNvim/AstroNvim)
|
||||||
|
|
||||||
|
## 🛠️ 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,27 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
-- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
-- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk.
|
||||||
vim.fn.system({
|
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||||
"git",
|
|
||||||
"clone",
|
if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then
|
||||||
"--filter=blob:none",
|
-- stylua: ignore
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
local result = vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||||
"--branch=stable", -- latest stable release
|
if vim.v.shell_error ~= 0 then
|
||||||
lazypath,
|
-- stylua: ignore
|
||||||
})
|
vim.api.nvim_echo({ { ("Error cloning lazy.nvim:\n%s\n"):format(result), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
vim.cmd.quit()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
vim.g.mapleader = ' '
|
-- validate that lazy is available
|
||||||
vim.g.maplocalleader = ' '
|
if not pcall(require, "lazy") then
|
||||||
|
-- stylua: ignore
|
||||||
require('lazy').setup('plugins')
|
vim.api.nvim_echo({ { ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
||||||
require('config')
|
vim.fn.getchar()
|
||||||
require('completion')
|
vim.cmd.quit()
|
||||||
|
end
|
||||||
|
|
||||||
|
require "lazy_setup"
|
||||||
|
require "polish"
|
||||||
|
|||||||
45
.config/nvim/lazy-lock.json
Normal file
45
.config/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"AstroNvim": { "branch": "main", "commit": "bf37390b310fc2e3a1c57b21362b525bbfe6eed4" },
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
|
||||||
|
"aerial.nvim": { "branch": "master", "commit": "645d108a5242ec7b378cbe643eb6d04d4223f034" },
|
||||||
|
"astrocore": { "branch": "main", "commit": "b061e0c185cd5fecbac7489151a98117ce799a47" },
|
||||||
|
"astrolsp": { "branch": "main", "commit": "ebc1676127b3bfbd46e3e26589b104853cac3730" },
|
||||||
|
"astrotheme": { "branch": "main", "commit": "cf0e65a7b3ce2f830b052f4da937729eee1e7a7d" },
|
||||||
|
"astroui": { "branch": "main", "commit": "920dd5df6629a9076a11ea10f0d21f4225203585" },
|
||||||
|
"better-escape.nvim": { "branch": "master", "commit": "199dcc2643dec5d8dbdab4ec672cf405224dcb3b" },
|
||||||
|
"blink.cmp": { "branch": "main", "commit": "451168851e8e2466bc97ee3e026c3dcb9141ce07" },
|
||||||
|
"blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" },
|
||||||
|
"cmp-dap": { "branch": "master", "commit": "ea92773e84c0ad3288c3bc5e452ac91559669087" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "a462f416e2ce4744531c6256252dee99a7d34a83" },
|
||||||
|
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
|
||||||
|
"heirline.nvim": { "branch": "master", "commit": "fae936abb5e0345b85c3a03ecf38525b0828b992" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
|
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "25f609e7fca78af7cede4f9fa3af8a94b1c4950b" },
|
||||||
|
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
|
||||||
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "e51f9b259f066c4347f9a79ffde54c29a0619384" },
|
||||||
|
"mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||||
|
"mini.icons": { "branch": "main", "commit": "ff2e4f1d29f659cc2bad0f9256f2f6195c6b2428" },
|
||||||
|
"neo-tree.nvim": { "branch": "main", "commit": "84c75e7a7e443586f60508d12fc50f90d9aee14e" },
|
||||||
|
"none-ls.nvim": { "branch": "main", "commit": "c9317c2a8629d4e39e7cf47be74cb67f3ab37cda" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
|
||||||
|
"nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
|
||||||
|
"nvim-dap": { "branch": "master", "commit": "4f5deb110d9ff8994d96c21df95e2271d11214f9" },
|
||||||
|
"nvim-dap-ui": { "branch": "master", "commit": "f5b6673f374626515401c5bc51b005f784a4f252" },
|
||||||
|
"nvim-highlight-colors": { "branch": "main", "commit": "e2cb22089cc2358b2b995c09578224f142de6039" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "0203a9608d63eda57679b01e69f33a7b4c34b0d1" },
|
||||||
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
|
"nvim-treesitter": { "branch": "main", "commit": "c82bf96f0a773d85304feeb695e1e23b2207ac35" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "93d60a475f0b08a8eceb99255863977d3a25f310" },
|
||||||
|
"nvim-ts-autotag": { "branch": "main", "commit": "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595" },
|
||||||
|
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"resession.nvim": { "branch": "master", "commit": "cc819b0489938d03e4f3532a583354f0287c015b" },
|
||||||
|
"smart-splits.nvim": { "branch": "master", "commit": "12426763591f06b865c20990d8423345ea96d44f" },
|
||||||
|
"snacks.nvim": { "branch": "main", "commit": "e6fd58c82f2f3fcddd3fe81703d47d6d48fc7b9f" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||||
|
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" }
|
||||||
|
}
|
||||||
12
.config/nvim/lua/community.lua
Normal file
12
.config/nvim/lua/community.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
}
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
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,
|
|
||||||
-- },
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
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 ]]
|
|
||||||
|
|
||||||
32
.config/nvim/lua/lazy_setup.lua
Normal file
32
.config/nvim/lua/lazy_setup.lua
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
require("lazy").setup({
|
||||||
|
{
|
||||||
|
"AstroNvim/AstroNvim",
|
||||||
|
version = "^6", -- 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]])
|
||||||
85
.config/nvim/lua/plugins/astrocore.lua
Normal file
85
.config/nvim/lua/plugins/astrocore.lua
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- 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 = { virtual_text = true, virtual_lines = false }, -- diagnostic settings on startup
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
-- passed to `vim.filetype.add`
|
||||||
|
filetypes = {
|
||||||
|
-- see `:h vim.filetype.add` for usage
|
||||||
|
extension = {
|
||||||
|
foo = "fooscript",
|
||||||
|
},
|
||||||
|
filename = {
|
||||||
|
[".foorc"] = "fooscript",
|
||||||
|
},
|
||||||
|
pattern = {
|
||||||
|
[".*/etc/foo/.*"] = "fooscript",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- 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
|
||||||
|
},
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
104
.config/nvim/lua/plugins/astrolsp.lua
Normal file
104
.config/nvim/lua/plugins/astrolsp.lua
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- 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 passed to `vim.lsp.config`
|
||||||
|
-- client specific configuration can also go in `lsp/` in your configuration root (see `:h lsp-config`)
|
||||||
|
config = {
|
||||||
|
-- ["*"] = { capabilities = {} }, -- modify default LSP client settings such as capabilities
|
||||||
|
},
|
||||||
|
-- customize how language servers are attached
|
||||||
|
handlers = {
|
||||||
|
-- a function with the key `*` modifies the default handler, functions takes the server name as the parameter
|
||||||
|
-- ["*"] = function(server) vim.lsp.enable(server) end
|
||||||
|
|
||||||
|
-- the key is the server that is being setup with `vim.lsp.config`
|
||||||
|
-- rust_analyzer = false, -- setting a handler to false will disable the set up of that language server
|
||||||
|
},
|
||||||
|
-- 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 lsp-attach`)
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
-- this would disable semanticTokensProvider for all clients
|
||||||
|
-- client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
39
.config/nvim/lua/plugins/astroui.lua
Normal file
39
.config/nvim/lua/plugins/astroui.lua
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
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,17 +0,0 @@
|
|||||||
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
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
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',
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
28
.config/nvim/lua/plugins/mason.lua
Normal file
28
.config/nvim/lua/plugins/mason.lua
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- Customize Mason
|
||||||
|
|
||||||
|
---@type LazySpec
|
||||||
|
return {
|
||||||
|
-- use mason-tool-installer for automatically installing Mason packages
|
||||||
|
{
|
||||||
|
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||||
|
-- overrides `require("mason-tool-installer").setup(...)`
|
||||||
|
opts = {
|
||||||
|
-- Make sure to use the names found in `:Mason`
|
||||||
|
ensure_installed = {
|
||||||
|
-- install language servers
|
||||||
|
"lua-language-server",
|
||||||
|
|
||||||
|
-- install formatters
|
||||||
|
"stylua",
|
||||||
|
|
||||||
|
-- install debuggers
|
||||||
|
"debugpy",
|
||||||
|
|
||||||
|
-- install any other package
|
||||||
|
"tree-sitter-cli",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
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',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
24
.config/nvim/lua/plugins/none-ls.lua
Normal file
24
.config/nvim/lua/plugins/none-ls.lua
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- Customize None-ls sources
|
||||||
|
|
||||||
|
---@type LazySpec
|
||||||
|
return {
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
-- opts variable is the default configuration table for the setup function call
|
||||||
|
-- local null_ls = require "null-ls"
|
||||||
|
|
||||||
|
-- Check supported formatters and linters
|
||||||
|
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||||
|
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||||
|
|
||||||
|
-- Only insert new sources, do not replace the existing ones
|
||||||
|
-- (If you wish to replace, use `opts.sources = {}` instead of the `list_insert_unique` function)
|
||||||
|
opts.sources = require("astrocore").list_insert_unique(opts.sources, {
|
||||||
|
-- Set a formatter
|
||||||
|
-- null_ls.builtins.formatting.stylua,
|
||||||
|
-- null_ls.builtins.formatting.prettier,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
24
.config/nvim/lua/plugins/treesitter.lua
Normal file
24
.config/nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- Customize Treesitter
|
||||||
|
-- --------------------
|
||||||
|
-- Treesitter customizations are handled with AstroCore
|
||||||
|
-- as nvim-treesitter simply provides a download utility for parsers
|
||||||
|
|
||||||
|
---@type LazySpec
|
||||||
|
return {
|
||||||
|
"AstroNvim/astrocore",
|
||||||
|
---@type AstroCoreOpts
|
||||||
|
opts = {
|
||||||
|
treesitter = {
|
||||||
|
highlight = true, -- enable/disable treesitter based highlighting
|
||||||
|
indent = true, -- enable/disable treesitter based indentation
|
||||||
|
auto_install = true, -- enable/disable automatic installation of detected languages
|
||||||
|
ensure_installed = {
|
||||||
|
"lua",
|
||||||
|
"vim",
|
||||||
|
-- add more arguments for adding more treesitter parsers
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
90
.config/nvim/lua/plugins/user.lua
Normal file
90
.config/nvim/lua/plugins/user.lua
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- You can also add or configure plugins by creating files in this `plugins/` folder
|
||||||
|
-- PLEASE REMOVE THE EXAMPLES YOU HAVE NO INTEREST IN BEFORE ENABLING THIS FILE
|
||||||
|
-- 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 dashboard options
|
||||||
|
{
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = {
|
||||||
|
dashboard = {
|
||||||
|
preset = {
|
||||||
|
header = table.concat({
|
||||||
|
" █████ ███████ ████████ ██████ ██████ ",
|
||||||
|
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||||
|
"███████ ███████ ██ ██████ ██ ██",
|
||||||
|
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||||
|
"██ ██ ███████ ██ ██ ██ ██████ ",
|
||||||
|
"",
|
||||||
|
"███ ██ ██ ██ ██ ███ ███",
|
||||||
|
"████ ██ ██ ██ ██ ████ ████",
|
||||||
|
"██ ██ ██ ██ ██ ██ ██ ████ ██",
|
||||||
|
"██ ██ ██ ██ ██ ██ ██ ██ ██",
|
||||||
|
"██ ████ ████ ██ ██ ██",
|
||||||
|
}, "\n"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- 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)
|
||||||
|
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
||||||
|
local luasnip = require "luasnip"
|
||||||
|
luasnip.filetype_extend("javascript", { "javascriptreact" })
|
||||||
|
|
||||||
|
-- include the default astronvim config that calls the setup call
|
||||||
|
require "astronvim.plugins.configs.luasnip"(plugin, opts)
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/which-key.nvim",
|
|
||||||
config = function()
|
|
||||||
vim.o.timeout = true
|
|
||||||
vim.o.timeoutlen = 300
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
return {
|
|
||||||
'folke/zen-mode.nvim',
|
|
||||||
config = {
|
|
||||||
window = {
|
|
||||||
backdrop = 1,
|
|
||||||
width = 80,
|
|
||||||
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' },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
5
.config/nvim/lua/polish.lua
Normal file
5
.config/nvim/lua/polish.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||||
|
|
||||||
|
-- This will run last in the setup process.
|
||||||
|
-- This is just pure lua so anything that doesn't
|
||||||
|
-- fit in the normal config locations above can go here
|
||||||
6
.config/nvim/neovim.yml
Normal file
6
.config/nvim/neovim.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
base: lua51
|
||||||
|
|
||||||
|
globals:
|
||||||
|
vim:
|
||||||
|
any: true
|
||||||
8
.config/nvim/selene.toml
Normal file
8
.config/nvim/selene.toml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
std = "neovim"
|
||||||
|
|
||||||
|
[rules]
|
||||||
|
global_usage = "allow"
|
||||||
|
if_same_then_else = "allow"
|
||||||
|
incorrect_standard_library_use = "allow"
|
||||||
|
mixed_table = "allow"
|
||||||
|
multiple_statements = "allow"
|
||||||
10
.config/qutebrowser/autoconfig.yml
Normal file
10
.config/qutebrowser/autoconfig.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# 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
|
||||||
0
.config/qutebrowser/bookmarks/urls
Normal file
0
.config/qutebrowser/bookmarks/urls
Normal file
186
.config/qutebrowser/config.py
Normal file
186
.config/qutebrowser/config.py
Normal file
@@ -0,0 +1,186 @@
|
|||||||
|
# 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')
|
||||||
0
.config/qutebrowser/quickmarks
Normal file
0
.config/qutebrowser/quickmarks
Normal file
@@ -1,3 +1,3 @@
|
|||||||
set preview_images true
|
set preview_images true
|
||||||
set preview_images alacritty
|
set preview_images_method ueberzug
|
||||||
|
|
||||||
|
|||||||
12
.config/river/bar.sh
Normal file
12
.config/river/bar.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/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
|
||||||
241
.config/river/init
Executable file
241
.config/river/init
Executable file
@@ -0,0 +1,241 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
||||||
|
export XCURSOR_SIZE=36
|
||||||
|
|
||||||
|
## Start portals
|
||||||
|
dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
/usr/libexec/xdg-desktop-portal-wlr &
|
||||||
|
/usr/libexec/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
|
||||||
|
riverctl map normal Mod1+Shift L spawn lockscreen
|
||||||
|
swayidle timeout 300 lockscreen &
|
||||||
|
|
||||||
|
# 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 0x202223
|
||||||
|
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 map normal Mod1 c spawn 'riverctl keyboard-layout "cz(qwerty)"'
|
||||||
|
riverctl map normal Mod1 u spawn 'riverctl keyboard-layout "us"'
|
||||||
|
riverctl keyboard-layout "us" # default layout
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
|
||||||
|
# Cursor size
|
||||||
|
riverctl xcursor-theme Adwaita 22
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Start waybar audio listener
|
||||||
|
~/.local/bin/waybar_audio_event_bridge.sh &
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
riverctl spawn ssh-agent
|
||||||
53
.config/river/status.sh
Normal file
53
.config/river/status.sh
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# !/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
|
||||||
119
.config/waybar/config-mango.jsonc
Normal file
119
.config/waybar/config-mango.jsonc
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
{
|
||||||
|
"position": "bottom",
|
||||||
|
"modules-left": ["dwl/tags", "custom/dwm-window"],
|
||||||
|
"modules-center": [],
|
||||||
|
//"modules-right": ["custom/spotify", "tray", "network", "bluetooth", "wireplumber", "battery", "clock", "custom/power"],
|
||||||
|
"modules-right": ["tray", "network", "custom/audio", "clock"],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"dwl/tags": {
|
||||||
|
"num-tags": 9,
|
||||||
|
"tag-labels": ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"dwl/window": {
|
||||||
|
"format": "[{layout}] {title}",
|
||||||
|
"max-length": 80
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/dwm-window": {
|
||||||
|
"exec": "~/.local/bin/tag_windows.sh",
|
||||||
|
"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",
|
||||||
|
"signal": 8,
|
||||||
|
"return-type": "json",
|
||||||
|
"format": "{icon} {text}",
|
||||||
|
"format-icons": {
|
||||||
|
"speaker": ["", "", " "],
|
||||||
|
"speaker-muted": "",
|
||||||
|
"headphones": "",
|
||||||
|
"headphones-muted": ""
|
||||||
|
},
|
||||||
|
//"interval": 2,
|
||||||
|
"interval": "once",
|
||||||
|
"on-click": "pamixer --toggle-mute",
|
||||||
|
"on-click-right": "~/.local/bin/toggle_audio",
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
114
.config/waybar/config.jsonc
Normal file
114
.config/waybar/config.jsonc
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
{
|
||||||
|
"position": "bottom",
|
||||||
|
"modules-left": ["river/tags", "river/layout", "river/window"],
|
||||||
|
"modules-center": [],
|
||||||
|
"modules-right": ["tray", "bluetooth", "network", "custom/audio", "battery", "clock"],
|
||||||
|
|
||||||
|
"river/tags": {
|
||||||
|
"num-tags": 9
|
||||||
|
},
|
||||||
|
|
||||||
|
"river/window": {
|
||||||
|
"max-length": 80
|
||||||
|
},
|
||||||
|
|
||||||
|
"river/layout": {
|
||||||
|
"format": "{}",
|
||||||
|
"min-length": 4,
|
||||||
|
"on-click": "riverctl send-layout-cmd next"
|
||||||
|
},
|
||||||
|
|
||||||
|
"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",
|
||||||
|
"signal": 8,
|
||||||
|
"return-type": "json",
|
||||||
|
"format": "{icon} {text}",
|
||||||
|
"format-icons": {
|
||||||
|
"speaker": ["", "", " "],
|
||||||
|
"speaker-muted": "",
|
||||||
|
"headphones": "",
|
||||||
|
"headphones-muted": ""
|
||||||
|
},
|
||||||
|
//"interval": 2,
|
||||||
|
"interval": "once",
|
||||||
|
"on-click": "pamixer --toggle-mute",
|
||||||
|
"on-click-right": "~/.local/bin/toggle_audio",
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
52
.config/waybar/ferrum.css
Normal file
52
.config/waybar/ferrum.css
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
/* 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;
|
||||||
26
.config/waybar/mocha.css
Normal file
26
.config/waybar/mocha.css
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
@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;
|
||||||
68
.config/waybar/style.css
Normal file
68
.config/waybar/style.css
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
@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;
|
||||||
|
padding: 10em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#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);
|
||||||
|
}
|
||||||
27
.config/wmenu/config
Normal file
27
.config/wmenu/config
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# ~/.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
|
||||||
|
|
||||||
19
.local/bin/lockscreen
Executable file
19
.local/bin/lockscreen
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
riverctl keyboard-layout us
|
||||||
|
|
||||||
|
exec swaylock \
|
||||||
|
--clock \
|
||||||
|
--show-keyboard-layout \
|
||||||
|
--indicator-idle-visible \
|
||||||
|
--indicator-radius 100 \
|
||||||
|
--indicator-thickness 7 \
|
||||||
|
--ring-color 2D464D \
|
||||||
|
--key-hl-color be5046 \
|
||||||
|
--text-color ffffff \
|
||||||
|
--line-color 00000000 \
|
||||||
|
--inside-color 00000088 \
|
||||||
|
--separator-color 00000000 \
|
||||||
|
--fade-in 0.2 \
|
||||||
|
--effect-blur 7x1 \
|
||||||
|
--color 202223
|
||||||
32
.local/bin/toggle_audio
Executable file
32
.local/bin/toggle_audio
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Toggle default PipeWire sink between Built-in Audio and Cisco 700 USB Adapter
|
||||||
|
|
||||||
|
# Get sinks section
|
||||||
|
SINKS=$(wpctl status | sed -n '/Sinks:/,/Sources:/p')
|
||||||
|
|
||||||
|
# Extract IDs (ignore default * and Easy Effects virtual sinks)
|
||||||
|
BUILTIN_ID=$(echo "$SINKS" | tr -d '*' | grep -i "Built-in Audio" | grep -v "Easy Effects" | awk '{print $2}' | tr -d '.')
|
||||||
|
CISCO_ID=$(echo "$SINKS" | tr -d '*' | grep -i "Cisco HS 730-0TG" | 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" == *"alsa_output.pci-0000_00_1f.3.analog-stereo"* ]]; then
|
||||||
|
echo "Switching to Cisco HS 730-0TG..."
|
||||||
|
wpctl set-default "$CISCO_ID"
|
||||||
|
else
|
||||||
|
echo "Switching to Built-in Audio..."
|
||||||
|
wpctl set-default "$BUILTIN_ID"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Move active streams to new default sink
|
||||||
|
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"
|
||||||
|
|
||||||
25
.local/bin/waybar_audio.sh
Executable file
25
.local/bin/waybar_audio.sh
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/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
|
||||||
|
*Cisco*) alt="headphones-muted" ;;
|
||||||
|
*) alt="speaker-muted" ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
case "$sink_name" in
|
||||||
|
*Cisco*) alt="headphones" ;;
|
||||||
|
*) alt="speaker" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Output JSON for Waybar
|
||||||
|
printf '{"text": "%s%%", "alt": "%s", "class": "%s", "percentage": %s }\n' \
|
||||||
|
"$volume" "$alt" "$alt" "$volume"
|
||||||
|
|
||||||
26
.local/bin/waybar_audio_event_bridge.sh
Executable file
26
.local/bin/waybar_audio_event_bridge.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
SIG=8
|
||||||
|
|
||||||
|
get_waybar_pid() { pgrep -u "$USER" -x waybar | head -n1 || true; }
|
||||||
|
log() { echo "[waybar-audio-bridge] $*" >&2; }
|
||||||
|
|
||||||
|
WAYBAR_PID=""
|
||||||
|
while [[ -z "$WAYBAR_PID" ]]; do
|
||||||
|
WAYBAR_PID="$(get_waybar_pid)"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
log "connected to Waybar PID $WAYBAR_PID"
|
||||||
|
|
||||||
|
# read pw-mon output, but only care about Audio nodes
|
||||||
|
pw-mon 2>/dev/null | grep --line-buffered -E "Audio|Sink|Source|Stream|Node" | while read -r _; do
|
||||||
|
# small debounce to avoid spamming CPU when multiple updates arrive fast
|
||||||
|
sleep 0.2
|
||||||
|
if ! kill -0 "$WAYBAR_PID" 2>/dev/null; then
|
||||||
|
WAYBAR_PID="$(get_waybar_pid)"
|
||||||
|
[[ -z "$WAYBAR_PID" ]] && continue
|
||||||
|
log "reconnected to Waybar PID $WAYBAR_PID"
|
||||||
|
fi
|
||||||
|
kill -RTMIN+"$SIG" "$WAYBAR_PID" 2>/dev/null || true
|
||||||
|
done
|
||||||
|
|
||||||
42
.xinitrc
Normal file
42
.xinitrc
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
if [ -x /usr/bin/ssh-agent ]; then
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dbus-launch --sh-syntax --exit-with-session dwm
|
||||||
|
#exec dwm
|
||||||
|
|
||||||
26
.xprofile
Normal file
26
.xprofile
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#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
|
||||||
|
xdg-mime default feh.desktop image/jpeg image/png image/gif image/bmp image/webp image/tiff
|
||||||
|
|
||||||
|
#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
|
||||||
|
xrandr --output DP-1-3 --mode 2560x1440 -r 143.97 --output eDP-1 --off --output DP-1-1 --mode 2560x1440 --left-of DP-1-3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ -d ~/.sv ]; then
|
||||||
|
runsvdir -P ~/.sv &
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user