Compare commits
14 Commits
817b29e229
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 33cd153a78 | |||
|
5bfe34f0a6
|
|||
| baf6187642 | |||
| 6963e67ab3 | |||
| edbe4725d0 | |||
| 3246434f77 | |||
| 7de572585f | |||
|
97ca66bd07
|
|||
|
0d730db906
|
|||
|
89b70ac02e
|
|||
|
f8b246f1ef
|
|||
|
139c789861
|
|||
|
ccc165fbb6
|
|||
| e917d4c0f3 |
@@ -5,7 +5,7 @@ Import-Module Catppuccin
|
|||||||
$Flavor = $Catppuccin['Mocha']
|
$Flavor = $Catppuccin['Mocha']
|
||||||
Import-Module -Name Microsoft.WinGet.CommandNotFound
|
Import-Module -Name Microsoft.WinGet.CommandNotFound
|
||||||
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
|
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
|
||||||
Invoke-Expression (& { (zoxide init powershell | Out-String ) })
|
Invoke-Expression (& { (zoxide init --cmd cd powershell | Out-String ) })
|
||||||
|
|
||||||
# The following colors are used by PowerShell's formatting
|
# The following colors are used by PowerShell's formatting
|
||||||
# Again PS 7.2+ only
|
# Again PS 7.2+ only
|
||||||
@@ -31,29 +31,65 @@ $ENV:EDITOR="nvim"
|
|||||||
set-alias -Name emacs -Value 'runemacs.exe -nw'
|
set-alias -Name emacs -Value 'runemacs.exe -nw'
|
||||||
Set-PSReadlineOption -Colors $Colors
|
Set-PSReadlineOption -Colors $Colors
|
||||||
$ENV:YAZI_FILE_ONE = 'C:\Program Files\Git\usr\bin\file.exe'
|
$ENV:YAZI_FILE_ONE = 'C:\Program Files\Git\usr\bin\file.exe'
|
||||||
function y (){
|
function y ()
|
||||||
|
{
|
||||||
$tmp = [System.IO.Path]::GetTempFileName()
|
$tmp = [System.IO.Path]::GetTempFileName()
|
||||||
yazi $args --cwd-file="$tmp"
|
yazi $args --cwd-file="$tmp"
|
||||||
$cwd = Get-Content -Path $tmp -Encoding UTF8
|
$cwd = Get-Content -Path $tmp -Encoding UTF8
|
||||||
if ( -not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) {
|
if ( -not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path)
|
||||||
|
{
|
||||||
Set-Location -LiteralPath ([System.IO.Path]::GetFullPath($cwd))
|
Set-Location -LiteralPath ([System.IO.Path]::GetFullPath($cwd))
|
||||||
}
|
}
|
||||||
|
|
||||||
Remove-Item -Path $tmp
|
Remove-Item -Path $tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
function Watch {
|
function Watch
|
||||||
|
{
|
||||||
param (
|
param (
|
||||||
[ScriptBlock]$Function,
|
[ScriptBlock]$Function,
|
||||||
[int]$Time = 2
|
[int]$Time = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
while ($true) {
|
while ($true)
|
||||||
|
{
|
||||||
Clear-Host
|
Clear-Host
|
||||||
& $Function
|
& $Function
|
||||||
Start-Sleep -Seconds $Time
|
Start-Sleep -Seconds $Time
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function prompt
|
||||||
|
{
|
||||||
|
# Get IP info
|
||||||
|
$ipv4=Get-CimInstance -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=$true | Select-Object -ExpandProperty IPAddress | Select-String 192.*
|
||||||
|
$ipv4 = ($ipv4 | ForEach-Object { $_.ToString().Trim() }) -join ','
|
||||||
|
$ipv4Label = ''
|
||||||
|
if (-not $ipv4)
|
||||||
|
{
|
||||||
|
$ipv4Label= "IP N/A"
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
$ipv4Label= "IP $ipv4"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get Git branch if available
|
||||||
|
$gitBranch = ''
|
||||||
|
if (git rev-parse --is-inside-work-tree 2>$null)
|
||||||
|
{
|
||||||
|
$currentBranch = git rev-parse --abbrev-ref HEAD
|
||||||
|
$gitBranch = "GIT: $currentBranch"
|
||||||
|
}
|
||||||
|
|
||||||
|
$currentLocation=$executionContext.SessionState.Path.CurrentLocation
|
||||||
|
|
||||||
|
# default prompt
|
||||||
|
"[$ipv4Label $gitBranch ]`n$currentLocation@$Env:COMPUTERNAME $('(PS [>_])$' * ($nestedPromptLevel + 1)) ";
|
||||||
|
}
|
||||||
|
|
||||||
|
set-alias -Name lg -Value lazygit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
podman completion powershell | Out-string | Invoke-Expression
|
podman completion powershell | Out-string | Invoke-Expression
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
# ~/.bash_logout: executed by bash(1) when login shell exits.
|
|
||||||
|
|
||||||
# when leaving the console clear the screen to increase privacy
|
|
||||||
|
|
||||||
if [ "$SHLVL" = 1 ]; then
|
|
||||||
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
|
||||||
fi
|
|
||||||
4
bash/dot-bash_profile
Normal file
4
bash/dot-bash_profile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
if command -v zoxide
|
||||||
|
then
|
||||||
|
eval "$(zoxide init bash --cmd cd)"
|
||||||
|
fi
|
||||||
176
emacs/dot-emacs
176
emacs/dot-emacs
@@ -1,90 +1,176 @@
|
|||||||
; set variables
|
; Inhibit nasty emacs behaviour
|
||||||
(setq ido-enable-flex-matching t)
|
|
||||||
(setq ido-everywhere t)
|
|
||||||
(setq inhibit-splash-screen t)
|
(setq inhibit-splash-screen t)
|
||||||
(setq tab-width 4)
|
(setq make-backup-files nil)
|
||||||
(setq custom-file "~/emacs-custom.el")
|
|
||||||
(setq display-line-numbers 'relative)
|
|
||||||
|
|
||||||
; Toggle modes
|
|
||||||
(ido-mode 1)
|
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(toggle-scroll-bar -1)
|
(toggle-scroll-bar -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
|
(setq custom-file "~/emacs-custom.el") ; Don't mess with my config
|
||||||
|
(setq ring-bell-function 'ignore)
|
||||||
|
(put 'dired-find-alternate-file 'disabled nil)
|
||||||
|
|
||||||
|
|
||||||
|
; Set basic editor defaults
|
||||||
|
(setq tab-width 4)
|
||||||
|
(setq display-line-numbers-type 'relative)
|
||||||
(global-display-line-numbers-mode 1)
|
(global-display-line-numbers-mode 1)
|
||||||
|
|
||||||
; Install and load packages
|
|
||||||
(require 'package)
|
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
|
||||||
(package-initialize)
|
|
||||||
|
|
||||||
(require 'use-package-ensure)
|
|
||||||
(setq use-package-always-ensure t)
|
|
||||||
|
|
||||||
(use-package catppuccin-theme)
|
(use-package catppuccin-theme)
|
||||||
(use-package magit)
|
|
||||||
(use-package paredit)
|
; Enable and configure ido
|
||||||
|
(setq ido-enable-flex-matching t)
|
||||||
|
(setq ido-everywhere t)
|
||||||
|
(ido-mode 1)
|
||||||
|
(require 'ido-vertical-mode )
|
||||||
|
(ido-vertical-mode 1)
|
||||||
|
|
||||||
|
|
||||||
|
; Init Load-package plugin manager
|
||||||
|
(require 'package)
|
||||||
|
(require 'use-package-ensure)
|
||||||
|
(setq use-package-always-ensure t)
|
||||||
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||||
|
("elpa" . "https://elpa.gnu.org/packages/")
|
||||||
|
("non-gnu" . "https://elpa.nongnu.org/nongnu/")))
|
||||||
|
(when (not package-archive-contents)
|
||||||
|
(package-refresh-contents))
|
||||||
|
(package-initialize)
|
||||||
|
|
||||||
|
(use-package vertico
|
||||||
|
:init (vertico-mode))
|
||||||
|
|
||||||
|
; Keys
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:init
|
:init
|
||||||
(setq evil-want-integration t)
|
(setq evil-want-integration t)
|
||||||
(setq evil-want-keybinding nil)
|
(setq evil-want-keybinding nil)
|
||||||
|
(setq evil-want-C-u-scroll t)
|
||||||
|
(setq evil-want-C-i-jump nil)
|
||||||
:config
|
:config
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
|
(define-key evil-insert-state-map (kbd "C-n") 'evil-normal-state)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package evil-collection
|
(use-package evil-collection
|
||||||
:pin melpa
|
|
||||||
:after evil
|
:after evil
|
||||||
:config
|
:config
|
||||||
(evil-collection-init))
|
(evil-collection-init))
|
||||||
|
(evil-set-initial-state 'dired-mode 'emacs)
|
||||||
|
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) ;; Prevent me from confusion with VIM
|
||||||
|
|
||||||
(use-package all-the-icons)
|
; Fuzzy finder
|
||||||
(use-package nerd-icons)
|
|
||||||
|
|
||||||
(use-package lsp-mode
|
|
||||||
:commands (lsp lsp-deferred)
|
|
||||||
:init
|
|
||||||
(setq lsp-keymap-prefix "C-c l")
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package lsp-ui
|
|
||||||
:after lsp-mode
|
|
||||||
:hook (lsp-mode . lsp-ui-mode)
|
|
||||||
:custom
|
|
||||||
(lsp-ui-doc-position 'bottom))
|
|
||||||
|
|
||||||
(use-package fzf
|
(use-package fzf
|
||||||
:bind
|
:bind
|
||||||
:config
|
:config
|
||||||
(setq fzf/args "-x --color bw --print-query --margin=1,0 --no-hscroll"
|
(setq fzf/args "-x --color bw --print-query --margin=1,0 --no-hscroll"
|
||||||
fzf/executable "fzf"
|
fzf/executable "fzf"
|
||||||
fzf/git-grep-args "-i --line-number %s"
|
fzf/git-grep-args "-i --line-number %s"
|
||||||
fzf/grep-command "grep -nrH"
|
fzf/grep-command "rg -nrH"
|
||||||
fzf/position-bottom t
|
fzf/position-bottom t
|
||||||
fzf/window-height 15))
|
fzf/window-height 15) 'nowarnings )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(use-package all-the-icons)
|
||||||
|
(use-package nerd-icons)
|
||||||
|
|
||||||
|
|
||||||
|
(use-package doom-modeline
|
||||||
|
:init (doom-modeline-mode 1)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
;; IDE Mode
|
||||||
|
(use-package project)
|
||||||
|
(use-package eglot)
|
||||||
|
(use-package eldoc)
|
||||||
|
(use-package flymake)
|
||||||
|
(use-package flycheck)
|
||||||
|
(use-package magit )
|
||||||
|
(use-package paredit )
|
||||||
|
(use-package tree-sitter)
|
||||||
|
(use-package dap-mode)
|
||||||
(use-package consult
|
(use-package consult
|
||||||
:bind
|
:bind ; Keybindings
|
||||||
;; Keybindings
|
|
||||||
:hook (completion-list-mode . consult-preview-at-point-mode)
|
:hook (completion-list-mode . consult-preview-at-point-mode)
|
||||||
:init
|
:init
|
||||||
(setq register-preview-delay 0.5)
|
(setq register-preview-delay 0.5)
|
||||||
(setq xref-show-xrefs-function #'consult-xref
|
(setq xref-show-xrefs-function #'consult-xref
|
||||||
xref-show-definitions-function #'consult-xref))
|
xref-show-definitions-function #'consult-xref))
|
||||||
|
; set up code completion
|
||||||
|
(use-package company)
|
||||||
|
(global-company-mode)
|
||||||
|
; Git
|
||||||
|
(use-package magit)
|
||||||
(use-package magit-delta
|
(use-package magit-delta
|
||||||
:hook (magit-mode . magit-delta-mode)
|
:hook (magit-mode . magit-delta-mode))
|
||||||
|
|
||||||
|
; Language Server Configuration
|
||||||
|
|
||||||
|
; Set up Java
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'(java-mode "jdtls" "--configuration" "~/.cache/jdtls"
|
||||||
|
"--data" "~/.cache/jdtls-data"))
|
||||||
|
(add-hook 'java-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
|
; gradle build system
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'("gradle"
|
||||||
|
("gradle" "--no-daemon" "tasks" "--quiet" "--info")
|
||||||
|
(mode . gradle-mode)))
|
||||||
|
|
||||||
|
; Set up CSharp
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'(csharp-mode . ("csharp-ls")))
|
||||||
|
(add-hook 'csharp-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
|
; Set up Rust
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'(rust-mode . ("rust-analyzer")))
|
||||||
|
(add-hook rust-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
|
; Set up Python
|
||||||
|
(use-package lsp-pyright
|
||||||
|
:custom (lsp-pyright-langserver-command "pyright")
|
||||||
|
:hook (python-mode . (lambda ()
|
||||||
|
(lsp))))
|
||||||
|
|
||||||
|
; Customize look and feel
|
||||||
|
(add-to-list 'default-frame-alist '(font . "SF Mono"))
|
||||||
|
(add-to-list 'default-frame-alist '(font . "Iosevka Nerd Font"))
|
||||||
|
(set-face-attribute 'default t :font "SF Mono")
|
||||||
|
|
||||||
|
(use-package material-theme)
|
||||||
|
(use-package catppuccin-theme)
|
||||||
|
(use-package all-the-icons)
|
||||||
|
(use-package nerd-icons
|
||||||
|
:custom (nerd-icons-font-family "Symbols Nerd Font Mono")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(use-package doom-modeline
|
||||||
; activate font and theme
|
:init (doom-modeline-mode 1)
|
||||||
(add-to-list 'default-frame-alist '(font . "SF Mono"))
|
:custom ((doom-modeline-height 15)
|
||||||
(set-face-attribute 'default t :font "SF Mono")
|
(doom-modeline-icon-family 'nerd-icons)
|
||||||
(load-theme 'catppuccin :no-confirm)
|
)
|
||||||
|
)
|
||||||
|
;; Set the Catppuccin flavor
|
||||||
(setq catppuccin-flavor 'frappe)
|
(setq catppuccin-flavor 'frappe)
|
||||||
(set-frame-parameter nil 'alpha-background 80)
|
(set-frame-parameter nil 'alpha-background 80)
|
||||||
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
|
(load-theme 'catppuccin :no-confirm)
|
||||||
|
|
||||||
|
;; Disable Catppuccin when running in a low-color Windows terminal
|
||||||
|
(when (and (and (not (display-graphic-p))
|
||||||
|
(eq system-type 'windows-nt)
|
||||||
|
(<= (display-color-cells) 16)))
|
||||||
|
(disable-theme 'catppuccin)
|
||||||
|
(message "Catppuccin disabled: low-color Windows terminal detected"))
|
||||||
|
|
||||||
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
(load custom-file)
|
(load custom-file)
|
||||||
|
|
||||||
|
;; Create semi-transparent background
|
||||||
|
(set-frame-parameter nil 'alpha-background 80)
|
||||||
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
|
|
||||||
|
(load custom-file 'noerror 'nomessage)
|
||||||
|
|||||||
22
emacs/emacs-custom.el
Normal file
22
emacs/emacs-custom.el
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
(custom-set-variables
|
||||||
|
;; custom-set-variables was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
'(package-selected-packages
|
||||||
|
'(2048-game all-the-icons catppuccin-theme cmake-mode company consult
|
||||||
|
consult-company consult-flycheck consult-lsp
|
||||||
|
consult-projectile dap-mode define-word doom-modeline
|
||||||
|
evil-collection flycheck fzf gradle-mode
|
||||||
|
id-vertical-mode ido-vertical-mode ivy lsp-java
|
||||||
|
lsp-pyright lsp-ui magit mermaid-mode ob-mermaid
|
||||||
|
paredit projectile slime swift-mode tree-edit
|
||||||
|
tree-inspector tree-sitter tree-sitter-indent
|
||||||
|
tree-sitter-langs undo-tree vterm which-key
|
||||||
|
which-key-posframe)))
|
||||||
|
(custom-set-faces
|
||||||
|
;; custom-set-faces was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
)
|
||||||
1
nvim
1
nvim
Submodule nvim deleted from 430a2879e9
@@ -4,11 +4,19 @@
|
|||||||
## ##
|
## ##
|
||||||
##########################################################
|
##########################################################
|
||||||
|
|
||||||
# Rebind the prefix key
|
# set Status bar options
|
||||||
unbind C-b
|
set -g status-position top
|
||||||
set-option -g prefix C-Space
|
set -g base-index 1
|
||||||
|
set -g pane-base-index 1
|
||||||
|
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
set -s escape-time 50
|
||||||
|
set -s default-terminal 'xterm-256color'
|
||||||
|
|
||||||
# Map pane selection to more easy vim like bindings
|
# Map pane selection to more easy vim like bindings
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
bind-key -n 'M-h' select-pane -L
|
bind-key -n 'M-h' select-pane -L
|
||||||
bind-key -n 'M-j' select-pane -D
|
bind-key -n 'M-j' select-pane -D
|
||||||
bind-key -n 'M-k' select-pane -U
|
bind-key -n 'M-k' select-pane -U
|
||||||
@@ -21,32 +29,21 @@ bind-key -r -T prefix 'M-k' resize-pane -U 5
|
|||||||
bind-key -r -T prefix 'M-l' resize-pane -R 5
|
bind-key -r -T prefix 'M-l' resize-pane -R 5
|
||||||
|
|
||||||
|
|
||||||
|
set -g @plugin 'catppuccin/tmux#v2.1.1'
|
||||||
|
set -g @catppuccin_flavour 'frappe'
|
||||||
|
set -g @catppuccin_window_status_style 'rounded'
|
||||||
|
|
||||||
|
set -g @catppuccin_window_text " #W"
|
||||||
bind h split-window -h
|
set -g @catppuccin_window_current_text " #W"
|
||||||
bind v split-window -v
|
|
||||||
|
|
||||||
# set Status bar options
|
|
||||||
set-option -g status-position top
|
|
||||||
set-option -g allow-rename off
|
|
||||||
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
set -g @plugin 'catppuccin/tmux'
|
|
||||||
set -g @catppuccin_flavour 'macchiato'
|
|
||||||
set -g @catppuccin_status_modules_right "host uptime application session"
|
set -g @catppuccin_status_modules_right "host uptime application session"
|
||||||
set -s default-terminal 'xterm-256color'
|
set -g status-right-length 100
|
||||||
|
set -g status-left-length 100
|
||||||
|
set -g status-left ""
|
||||||
|
set -gF status-right "#{@catppuccin_status_directory}"
|
||||||
|
set -gF status-right "#{@catppuccin_status_user}"
|
||||||
|
set -gF status-right "#{@catppuccin_status_host}"
|
||||||
|
|
||||||
setw -g mode-keys vi
|
|
||||||
|
|
||||||
# set some sanity options
|
|
||||||
# - This makes sure to keep the window/pane count starting at 1
|
|
||||||
setw -g base-index 1
|
|
||||||
setw -g pane-base-index 1
|
|
||||||
# - This prevents me from having to press escape twice
|
|
||||||
set -s escape-time 50
|
|
||||||
|
|
||||||
# allow mouse interaction
|
|
||||||
set-option -g mouse on
|
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|||||||
12
vim/dot-vimrc
Normal file
12
vim/dot-vimrc
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
colorscheme retrobox
|
||||||
|
set relativenumber number
|
||||||
|
set packpath^=~/.vim/pack/
|
||||||
|
if has("gui_gnome") || has("gui_win32")
|
||||||
|
set guioptions -=m
|
||||||
|
set guioptions -=T
|
||||||
|
endif
|
||||||
|
set guicursor = ""
|
||||||
|
syntax on
|
||||||
|
filetype on
|
||||||
|
filetype plugin on
|
||||||
|
filetype indent on
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
-- pull in the wezterm API
|
|
||||||
local wezterm = require('wezterm')
|
|
||||||
local launch_menu = {}
|
|
||||||
|
|
||||||
-- This will hold the configuration
|
|
||||||
local config = wezterm.config_builder()
|
|
||||||
config.colors = { background = "#1e1e2e" }
|
|
||||||
config.color_scheme = 'Catppuccin Mocha'
|
|
||||||
config.window_background_opacity = 1.0
|
|
||||||
config.default_prog = { 'C:/Program Files/PowerShell/7/pwsh.exe' }
|
|
||||||
|
|
||||||
config.window_frame = {
|
|
||||||
font = wezterm.font { family = 'Roboto', weight = 'Bold' },
|
|
||||||
font_size = 12,
|
|
||||||
active_titlebar_bg = '#1e1e2e',
|
|
||||||
inactive_titlebar_bg = '#1e1e2e',
|
|
||||||
}
|
|
||||||
|
|
||||||
config.colors = {
|
|
||||||
tab_bar = {
|
|
||||||
active_tab = {
|
|
||||||
|
|
||||||
bg_color = '#181825',
|
|
||||||
fg_color = "#B4BEFE"
|
|
||||||
},
|
|
||||||
inactive_tab = {
|
|
||||||
bg_color = '#1e1e2e',
|
|
||||||
fg_color = "#CDD6F4"
|
|
||||||
},
|
|
||||||
new_tab = {
|
|
||||||
bg_color = '#1e1e2e',
|
|
||||||
fg_color = "#CDD6F4"
|
|
||||||
},
|
|
||||||
new_tab_hover ={
|
|
||||||
bg_color = '#1b1032',
|
|
||||||
fg_color = '#808080',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Keys
|
|
||||||
local act = wezterm.action
|
|
||||||
config.leader = { key = "a", mods="CTRL", timeout_milliseconds = 1000}
|
|
||||||
|
|
||||||
config.keys = {
|
|
||||||
{ key = "s", mods = "LEADER", action = act.SplitVertical { domain = "CurrentPaneDomain"}},
|
|
||||||
{ key = "v", mods = "LEADER", action = act.SplitHorizontal { domain = "CurrentPaneDomain" }},
|
|
||||||
{ key = "h", mods = "LEADER", action = act.ActivatePaneDirection("Left") },
|
|
||||||
{ key = "j", mods = "LEADER", action = act.ActivatePaneDirection("Down") },
|
|
||||||
{ key = "k", mods = "LEADER", action = act.ActivatePaneDirection("Up") },
|
|
||||||
{ key = "l", mods = "LEADER", action = act.ActivatePaneDirection("Right") },
|
|
||||||
{ key = "q", mods = "LEADER", action = act.CloseCurrentPane { confirm = false }},
|
|
||||||
{ key = "n", mods = "LEADER", action = act.ShowTabNavigator },
|
|
||||||
{ key = "t", mods = "LEADER", action = act.ShowLauncher },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- config.enable_tab_bar = false
|
|
||||||
config.window_decorations = "INTEGRATED_BUTTONS | TITLE | RESIZE"
|
|
||||||
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
|
||||||
table.insert(launch_menu, {
|
|
||||||
label = 'PowerShell 7',
|
|
||||||
args = { 'pwsh.exe', '-NoLogo' },
|
|
||||||
})
|
|
||||||
table.insert(launch_menu, {
|
|
||||||
label = 'PowerShell',
|
|
||||||
args = { 'PowerShell.exe', '-NoLogo' },
|
|
||||||
})
|
|
||||||
|
|
||||||
for _, vsvers in
|
|
||||||
ipairs ( wezterm.glob('VisualStudio20*', 'D:/')) do
|
|
||||||
local year = vsvers:gsub('VisualStudio', '')
|
|
||||||
table.insert(launch_menu, {
|
|
||||||
label = 'X64 Native Tools VS ' .. year,
|
|
||||||
args = {
|
|
||||||
'cmd.exe',
|
|
||||||
'/k',
|
|
||||||
'D:/' .. vsvers .. '/VC/Auxiliary/Build/vcvars64.bat' },
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
config.launch_menu = launch_menu
|
|
||||||
return config
|
|
||||||
@@ -1,68 +1,49 @@
|
|||||||
-- pull in the wezterm API
|
-- pull in the wezterm API
|
||||||
local wezterm = require('wezterm')
|
local wezterm = require('wezterm')
|
||||||
local launch_menu = {}
|
config = wezterm.config_builder()
|
||||||
|
|
||||||
-- This will hold the configuration
|
require "theme"
|
||||||
local config = wezterm.config_builder()
|
require "keys"
|
||||||
config.colors = { background = "#1e1e2e" }
|
|
||||||
config.color_scheme = 'Catppuccin Mocha'
|
|
||||||
config.window_background_opacity = 0.8
|
|
||||||
|
|
||||||
config.window_frame = {
|
|
||||||
font = wezterm.font { family = 'Roboto', weight = 'Bold' },
|
|
||||||
font_size = 12,
|
|
||||||
active_titlebar_bg = '#1e1e2e',
|
|
||||||
inactive_titlebar_bg = '#1e1e2e',
|
|
||||||
}
|
|
||||||
|
|
||||||
config.colors = {
|
|
||||||
tab_bar = {
|
|
||||||
active_tab = {
|
|
||||||
|
|
||||||
bg_color = '#181825',
|
|
||||||
fg_color = "#B4BEFE"
|
|
||||||
},
|
|
||||||
inactive_tab = {
|
|
||||||
bg_color = '#1e1e2e',
|
|
||||||
fg_color = "#CDD6F4"
|
|
||||||
},
|
|
||||||
new_tab = {
|
|
||||||
bg_color = '#1e1e2e',
|
|
||||||
fg_color = "#CDD6F4"
|
|
||||||
},
|
|
||||||
new_tab_hover = {
|
|
||||||
bg_color = '#1b1032',
|
|
||||||
fg_color = '#808080',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Keys
|
|
||||||
local act = wezterm.action
|
|
||||||
config.leader = { key = "a", mods = "CTRL", timeout_milliseconds = 1000 }
|
|
||||||
|
|
||||||
config.keys = {
|
|
||||||
{ key = "s", mods = "LEADER", action = act.SplitVertical { domain = "CurrentPaneDomain" } },
|
|
||||||
{ key = "v", mods = "LEADER", action = act.SplitHorizontal { domain = "CurrentPaneDomain" } },
|
|
||||||
{ key = "h", mods = "LEADER", action = act.ActivatePaneDirection("Left") },
|
|
||||||
{ key = "j", mods = "LEADER", action = act.ActivatePaneDirection("Down") },
|
|
||||||
{ key = "k", mods = "LEADER", action = act.ActivatePaneDirection("Up") },
|
|
||||||
{ key = "l", mods = "LEADER", action = act.ActivatePaneDirection("Right") },
|
|
||||||
{ key = "q", mods = "LEADER", action = act.CloseCurrentPane { confirm = false } },
|
|
||||||
{ key = "n", mods = "LEADER", action = act.ShowTabNavigator },
|
|
||||||
{ key = "t", mods = "LEADER", action = act.ShowLauncher },
|
|
||||||
}
|
|
||||||
|
|
||||||
config.enable_tab_bar = false
|
config.enable_tab_bar = false
|
||||||
config.window_decorations = "INTEGRATED_BUTTONS | TITLE | RESIZE"
|
-- The most common triples are:
|
||||||
|
--
|
||||||
|
-- x86_64-pc-windows-msvc - Windows
|
||||||
|
-- x86_64-apple-darwin - macOS (Intel)
|
||||||
|
-- aarch64-apple-darwin - macOS (Apple Silicon)
|
||||||
|
-- x86_64-unknown-linux-gnu - Linux
|
||||||
|
local launch_menu = {}
|
||||||
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
||||||
|
table.insert(launch_menu, {
|
||||||
|
label = 'PowerShell',
|
||||||
|
args = { 'PowerShell.exe', '-NoLogo' },
|
||||||
|
})
|
||||||
table.insert(launch_menu, {
|
table.insert(launch_menu, {
|
||||||
label = 'PowerShell 7',
|
label = 'PowerShell 7',
|
||||||
args = { 'pwsh.exe', '-NoLogo' },
|
args = { 'pwsh.exe', '-NoLogo' },
|
||||||
})
|
})
|
||||||
table.insert(launch_menu, {
|
table.insert(launch_menu, {
|
||||||
label = 'PowerShell',
|
label = "Developer PowerShell",
|
||||||
args = { 'PowerShell.exe', '-NoLogo' },
|
args = {
|
||||||
|
'pwsh.exe',
|
||||||
|
'-noe',
|
||||||
|
'-c',
|
||||||
|
'&{Import-Module "C:/Program Files (x86)/Microsoft Visual Studio/18/BuildTools/Common7/Tools/Microsoft.VisualStudio.DevShell.dll";Enter-VsDevShell 6c43edf9 };wezterm cli set-tab-title \'Developer Powershell\''
|
||||||
|
},
|
||||||
|
cwd = 'G:/git'
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
table.insert(launch_menu, {
|
||||||
|
label = "Conda PowerShell",
|
||||||
|
args = {
|
||||||
|
'pwsh.exe',
|
||||||
|
'-noe',
|
||||||
|
'-c',
|
||||||
|
'& \'C:/Users/nigel/miniconda3/shell/condabin/conda-hook.ps1\'; conda activate base '
|
||||||
|
},
|
||||||
|
cwd = 'G:/git/Machine Learning'
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, vsvers in
|
for _, vsvers in
|
||||||
@@ -78,5 +59,13 @@ if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
||||||
|
config.default_prog = { 'C:/Program Files/Powershell/7/pwsh.exe' }
|
||||||
|
else
|
||||||
|
config.default_prog = { '/usr/bin/bash' }
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
config.launch_menu = launch_menu
|
config.launch_menu = launch_menu
|
||||||
|
config.window_close_confirmation = "NeverPrompt"
|
||||||
return config
|
return config
|
||||||
|
|||||||
50
wezterm/keys.lua
Normal file
50
wezterm/keys.lua
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
local wezterm = require 'wezterm'
|
||||||
|
|
||||||
|
local act = wezterm.action
|
||||||
|
|
||||||
|
|
||||||
|
config.leader = { key = "a", mods = "CTRL", timeout_milliseconds = 1000 }
|
||||||
|
config.keys = {
|
||||||
|
{ key = "s", mods = "LEADER", action = act.SplitVertical { domain = "CurrentPaneDomain" } },
|
||||||
|
{ key = "v", mods = "LEADER", action = act.SplitHorizontal { domain = "CurrentPaneDomain" } },
|
||||||
|
{ key = "h", mods = "ALT", action = act.ActivatePaneDirection("Left") },
|
||||||
|
{ key = "j", mods = "ALT", action = act.ActivatePaneDirection("Down") },
|
||||||
|
{ key = "k", mods = "ALT", action = act.ActivatePaneDirection("Up") },
|
||||||
|
{ key = "l", mods = "ALT", action = act.ActivatePaneDirection("Right") },
|
||||||
|
{ key = "q", mods = "LEADER", action = act.CloseCurrentPane { confirm = false } },
|
||||||
|
{ key = "t", mods = "LEADER", action = act.ShowTabNavigator },
|
||||||
|
{ key = "n", mods = "LEADER", action = act.ShowLauncher },
|
||||||
|
{ key = "t", mods = "ALT", action = act.ShowLauncherArgs { flags = "TABS|FUZZY" } },
|
||||||
|
{ key = 'w', mods = 'ALT', action = act.ShowLauncherArgs { flags = 'WORKSPACES|FUZZY' } },
|
||||||
|
}
|
||||||
|
|
||||||
|
local function isViProcess(pane)
|
||||||
|
return pane:get_foreground_process_name():find('n?vim') ~= nil or pane:get_title():find("n?vim") ~= nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local function conditionalActivatePane(window, pane, pane_direction, vim_direction)
|
||||||
|
if isViProcess(pane) then
|
||||||
|
window:perform_action(
|
||||||
|
-- This should match the keybinds you set in Neovim.
|
||||||
|
act.SendKey({ key = vim_direction, mods = 'CTRL' }),
|
||||||
|
pane
|
||||||
|
)
|
||||||
|
else
|
||||||
|
window:perform_action(act.ActivatePaneDirection(pane_direction), pane)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
wezterm.on('ShowLauncherArgs', function(window, pane)
|
||||||
|
wezterm.info_log 'launcher args called '
|
||||||
|
end)
|
||||||
|
wezterm.on('ActivatePaneDirection-right', function(window, pane)
|
||||||
|
conditionalActivatePane(window, pane, 'Right', 'l')
|
||||||
|
end)
|
||||||
|
wezterm.on('ActivatePaneDirection-left', function(window, pane)
|
||||||
|
conditionalActivatePane(window, pane, 'Left', 'h')
|
||||||
|
end)
|
||||||
|
wezterm.on('ActivatePaneDirection-up', function(window, pane)
|
||||||
|
conditionalActivatePane(window, pane, 'Up', 'k')
|
||||||
|
end)
|
||||||
|
wezterm.on('ActivatePaneDirection-down', function(window, pane)
|
||||||
|
conditionalActivatePane(window, pane, 'Down', 'j')
|
||||||
|
end)
|
||||||
58
wezterm/theme.lua
Normal file
58
wezterm/theme.lua
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
local wezterm = require 'wezterm'
|
||||||
|
|
||||||
|
config.colors = { background = "#1e1e2e" }
|
||||||
|
config.color_scheme = 'Catppuccin Mocha'
|
||||||
|
config.window_background_opacity = 0.9
|
||||||
|
|
||||||
|
|
||||||
|
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
||||||
|
config.window_decorations = "TITLE | RESIZE"
|
||||||
|
else
|
||||||
|
config.window_decorations = "INTEGRATED_BUTTONS | TITLE | RESIZE"
|
||||||
|
end
|
||||||
|
|
||||||
|
config.window_frame = {
|
||||||
|
font = wezterm.font { family = 'Roboto', weight = 'Bold' },
|
||||||
|
font_size = 12,
|
||||||
|
active_titlebar_bg = '#1e1e2e',
|
||||||
|
inactive_titlebar_bg = '#1e1e2e',
|
||||||
|
}
|
||||||
|
|
||||||
|
config.colors = {
|
||||||
|
tab_bar = {
|
||||||
|
active_tab = {
|
||||||
|
|
||||||
|
bg_color = '#181825',
|
||||||
|
fg_color = "#B4BEFE"
|
||||||
|
},
|
||||||
|
inactive_tab = {
|
||||||
|
bg_color = '#1e1e2e',
|
||||||
|
fg_color = "#CDD6F4"
|
||||||
|
},
|
||||||
|
new_tab = {
|
||||||
|
bg_color = '#1e1e2e',
|
||||||
|
fg_color = "#CDD6F4"
|
||||||
|
},
|
||||||
|
new_tab_hover = {
|
||||||
|
bg_color = '#1b1032',
|
||||||
|
fg_color = '#808080',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
wezterm.on('update-status', function(window)
|
||||||
|
local SOLID_LEFT_ARROW = utf8.char(0xe0b2)
|
||||||
|
|
||||||
|
local color_scheme = window:effective_config().resolved_palette
|
||||||
|
local bg = color_scheme.background
|
||||||
|
local fg = color_scheme.foreground
|
||||||
|
|
||||||
|
window:set_right_status(wezterm.format({
|
||||||
|
{ Background = { Color = 'none' } },
|
||||||
|
{ Foreground = { Color = bg } },
|
||||||
|
{ Text = SOLID_LEFT_ARROW },
|
||||||
|
{ Background = { Color = bg } },
|
||||||
|
{ Foreground = { Color = fg } },
|
||||||
|
{ Text = ' ' .. wezterm.hostname() .. ', WKSPC: ' .. wezterm.mux.get_active_workspace() .. '' },
|
||||||
|
}))
|
||||||
|
end)
|
||||||
1
yazi/theme.toml
Normal file
1
yazi/theme.toml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
224
yazi/yazi.toml
Normal file
224
yazi/yazi.toml
Normal file
@@ -0,0 +1,224 @@
|
|||||||
|
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
|
||||||
|
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
|
||||||
|
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
|
||||||
|
|
||||||
|
[manager]
|
||||||
|
sort_by = "alphabetical|mtime"
|
||||||
|
sort_sensitive = false
|
||||||
|
sort_dir_first = true
|
||||||
|
show_hidden = true
|
||||||
|
show_symlink = true
|
||||||
|
ratio = [ 1, 4, 3 ]
|
||||||
|
sort_reverse = false
|
||||||
|
sort_translit = false
|
||||||
|
linemode = "none"
|
||||||
|
scrolloff = 5
|
||||||
|
mouse_events = [ "click", "scroll" ]
|
||||||
|
title_format = "Yazi: {cwd}"
|
||||||
|
|
||||||
|
[preview]
|
||||||
|
wrap = "yes"
|
||||||
|
tab_size = 4
|
||||||
|
max_width = 600
|
||||||
|
max_height = 900
|
||||||
|
cache_dir = ""
|
||||||
|
image_delay = 30
|
||||||
|
image_filter = "triangle"
|
||||||
|
image_quality = 75
|
||||||
|
sixel_fraction = 15
|
||||||
|
ueberzug_scale = 1
|
||||||
|
ueberzug_offset = [ 0, 0, 0, 0 ]
|
||||||
|
|
||||||
|
[opener]
|
||||||
|
edit = [
|
||||||
|
{ run = '${EDITOR:-vi} "$@"', desc = "$EDITOR", block = true, for = "unix" },
|
||||||
|
{ run = 'code %*', orphan = true, desc = "code", for = "windows" },
|
||||||
|
{ run = 'code -w %*', block = true, desc = "code (block)", for = "windows" },
|
||||||
|
]
|
||||||
|
open = [
|
||||||
|
{ run = 'xdg-open "$1"', desc = "Open", for = "linux" },
|
||||||
|
{ run = 'open "$@"', desc = "Open", for = "macos" },
|
||||||
|
{ run = 'file "%1"', orphan = true, desc = "Open", for = "windows" },
|
||||||
|
{ run = 'termux-open "$1"', desc = "Open", for = "android" },
|
||||||
|
]
|
||||||
|
reveal = [
|
||||||
|
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
|
||||||
|
{ run = 'open -R "$1"', desc = "Reveal", for = "macos" },
|
||||||
|
{ run = 'explorer /select,"%1"', orphan = true, desc = "Reveal", for = "windows" },
|
||||||
|
{ run = 'termux-open "$(dirname "$1")"', desc = "Reveal", for = "android" },
|
||||||
|
{ run = '''clear; exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" },
|
||||||
|
]
|
||||||
|
extract = [
|
||||||
|
{ run = 'ya pub extract --list "$@"', desc = "Extract here", for = "unix" },
|
||||||
|
{ run = 'ya pub extract --list %*', desc = "Extract here", for = "windows" },
|
||||||
|
]
|
||||||
|
play = [
|
||||||
|
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
|
||||||
|
{ run = 'mpv --force-window %*', orphan = true, for = "windows" },
|
||||||
|
{ run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[open]
|
||||||
|
rules = [
|
||||||
|
# Folder
|
||||||
|
{ name = "*/", use = [ "edit", "open", "reveal" ] },
|
||||||
|
# Text
|
||||||
|
{ mime = "text/*", use = [ "edit", "reveal" ] },
|
||||||
|
# Image
|
||||||
|
{ mime = "image/*", use = [ "open", "reveal" ] },
|
||||||
|
# Media
|
||||||
|
{ mime = "{audio,video}/*", use = [ "play", "reveal" ] },
|
||||||
|
# Archive
|
||||||
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", use = [ "extract", "reveal" ] },
|
||||||
|
# JSON
|
||||||
|
{ mime = "application/{json,ndjson}", use = [ "edit", "reveal" ] },
|
||||||
|
{ mime = "*/javascript", use = [ "edit", "reveal" ] },
|
||||||
|
# Empty file
|
||||||
|
{ mime = "inode/empty", use = [ "edit", "reveal" ] },
|
||||||
|
# Fallback
|
||||||
|
{ name = "*", use = [ "open", "reveal" ] },
|
||||||
|
]
|
||||||
|
|
||||||
|
[tasks]
|
||||||
|
micro_workers = 10
|
||||||
|
macro_workers = 10
|
||||||
|
bizarre_retry = 3
|
||||||
|
image_alloc = 536870912 # 512MB
|
||||||
|
image_bound = [ 0, 0 ]
|
||||||
|
suppress_preload = false
|
||||||
|
|
||||||
|
[plugin]
|
||||||
|
fetchers = [
|
||||||
|
# Mimetype
|
||||||
|
{ id = "mime", name = "*", run = "mime", prio = "high" },
|
||||||
|
]
|
||||||
|
spotters = [
|
||||||
|
{ name = "*/", run = "folder" },
|
||||||
|
# Code
|
||||||
|
{ mime = "text/*", run = "code" },
|
||||||
|
{ mime = "application/{mbox,javascript,wine-extension-ini}", run = "code" },
|
||||||
|
# Image
|
||||||
|
{ mime = "image/{avif,hei?,jxl}", run = "magick" },
|
||||||
|
{ mime = "image/svg+xml", run = "svg" },
|
||||||
|
{ mime = "image/*", run = "image" },
|
||||||
|
# Video
|
||||||
|
{ mime = "video/*", run = "video" },
|
||||||
|
# Fallback
|
||||||
|
{ name = "*", run = "file" },
|
||||||
|
]
|
||||||
|
preloaders = [
|
||||||
|
# Image
|
||||||
|
{ mime = "image/{avif,hei?,jxl}", run = "magick" },
|
||||||
|
{ mime = "image/svg+xml", run = "svg" },
|
||||||
|
{ mime = "image/*", run = "image" },
|
||||||
|
# Video
|
||||||
|
{ mime = "video/*", run = "video" },
|
||||||
|
# PDF
|
||||||
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
|
# Font
|
||||||
|
{ mime = "font/*", run = "font" },
|
||||||
|
{ mime = "application/ms-opentype", run = "font" },
|
||||||
|
]
|
||||||
|
previewers = [
|
||||||
|
{ name = "*/", run = "folder" },
|
||||||
|
# Code
|
||||||
|
{ mime = "text/*", run = "code" },
|
||||||
|
{ mime = "application/{mbox,javascript,wine-extension-ini}", run = "code" },
|
||||||
|
# JSON
|
||||||
|
{ mime = "application/{json,ndjson}", run = "json" },
|
||||||
|
# Image
|
||||||
|
{ mime = "image/{avif,hei?,jxl}", run = "magick" },
|
||||||
|
{ mime = "image/svg+xml", run = "svg" },
|
||||||
|
{ mime = "image/*", run = "image" },
|
||||||
|
# Video
|
||||||
|
{ mime = "video/*", run = "video" },
|
||||||
|
# PDF
|
||||||
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
|
# Archive
|
||||||
|
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", run = "archive" },
|
||||||
|
{ mime = "application/{debian*-package,redhat-package-manager,rpm,android.package-archive}", run = "archive" },
|
||||||
|
{ name = "*.{AppImage,appimage}", run = "archive" },
|
||||||
|
# Virtual Disk / Disk Image
|
||||||
|
{ mime = "application/{iso9660-image,qemu-disk,ms-wim,apple-diskimage}", run = "archive" },
|
||||||
|
{ mime = "application/virtualbox-{vhd,vhdx}", run = "archive" },
|
||||||
|
{ name = "*.{img,fat,ext,ext2,ext3,ext4,squashfs,ntfs,hfs,hfsx}", run = "archive" },
|
||||||
|
# Font
|
||||||
|
{ mime = "font/*", run = "font" },
|
||||||
|
{ mime = "application/ms-opentype", run = "font" },
|
||||||
|
# Empty file
|
||||||
|
{ mime = "inode/empty", run = "empty" },
|
||||||
|
# Fallback
|
||||||
|
{ name = "*", run = "file" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[input]
|
||||||
|
cursor_blink = false
|
||||||
|
|
||||||
|
# cd
|
||||||
|
cd_title = "Change directory:"
|
||||||
|
cd_origin = "top-center"
|
||||||
|
cd_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# create
|
||||||
|
create_title = [ "Create:", "Create (dir):" ]
|
||||||
|
create_origin = "top-center"
|
||||||
|
create_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# rename
|
||||||
|
rename_title = "Rename:"
|
||||||
|
rename_origin = "hovered"
|
||||||
|
rename_offset = [ 0, 1, 50, 3 ]
|
||||||
|
|
||||||
|
# filter
|
||||||
|
filter_title = "Filter:"
|
||||||
|
filter_origin = "top-center"
|
||||||
|
filter_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# find
|
||||||
|
find_title = [ "Find next:", "Find previous:" ]
|
||||||
|
find_origin = "top-center"
|
||||||
|
find_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# search
|
||||||
|
search_title = "Search via {n}:"
|
||||||
|
search_origin = "top-center"
|
||||||
|
search_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
# shell
|
||||||
|
shell_title = [ "Shell:", "Shell (block):" ]
|
||||||
|
shell_origin = "top-center"
|
||||||
|
shell_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
|
[confirm]
|
||||||
|
# trash
|
||||||
|
trash_title = "Trash {n} selected file{s}?"
|
||||||
|
trash_origin = "center"
|
||||||
|
trash_offset = [ 0, 0, 70, 20 ]
|
||||||
|
|
||||||
|
# delete
|
||||||
|
delete_title = "Permanently delete {n} selected file{s}?"
|
||||||
|
delete_origin = "center"
|
||||||
|
delete_offset = [ 0, 0, 70, 20 ]
|
||||||
|
|
||||||
|
# overwrite
|
||||||
|
overwrite_title = "Overwrite file?"
|
||||||
|
overwrite_content = "Will overwrite the following file:"
|
||||||
|
overwrite_origin = "center"
|
||||||
|
overwrite_offset = [ 0, 0, 50, 15 ]
|
||||||
|
|
||||||
|
# quit
|
||||||
|
quit_title = "Quit?"
|
||||||
|
quit_content = "The following tasks are still running, are you sure you want to quit?"
|
||||||
|
quit_origin = "center"
|
||||||
|
quit_offset = [ 0, 0, 50, 15 ]
|
||||||
|
|
||||||
|
[pick]
|
||||||
|
open_title = "Open with:"
|
||||||
|
open_origin = "hovered"
|
||||||
|
open_offset = [ 0, 1, 50, 7 ]
|
||||||
|
|
||||||
|
[which]
|
||||||
|
sort_by = "none"
|
||||||
|
sort_sensitive = false
|
||||||
|
sort_reverse = false
|
||||||
|
sort_translit = false
|
||||||
Reference in New Issue
Block a user