mirror of https://github.com/mitchell/dotfiles.git
Add rofi, update fish cfg/scripts, update nvim cfg, update wezterm cfg
This commit is contained in:
parent
e801f0a680
commit
6e8bb638ee
|
@ -16,19 +16,20 @@ end
|
||||||
sxhkd &
|
sxhkd &
|
||||||
|
|
||||||
if test $DISPLAY = ":0"
|
if test $DISPLAY = ":0"
|
||||||
picom -b --blur-background
|
picom -b
|
||||||
else
|
else
|
||||||
picom -b --backend xrender
|
picom -b --backend xrender
|
||||||
end
|
end
|
||||||
|
|
||||||
#wmname LG3D
|
#wmname LG3D
|
||||||
|
|
||||||
~/.fehbg &
|
|
||||||
|
|
||||||
if test $DISPLAY = ":0"
|
if test $DISPLAY = ":0"
|
||||||
killall -q polybar pasystray barrier barrierc
|
killall -q polybar pasystray barrier barrierc
|
||||||
barrier &
|
barrier &
|
||||||
keepassxc &
|
keepassxc &
|
||||||
|
feh --no-fehbg --bg-scale '/home/m/sync/capitol_city.jpg'
|
||||||
|
else
|
||||||
|
feh --no-fehbg --bg-scale '/home/m/sync/maelstrom.jpg'
|
||||||
end
|
end
|
||||||
|
|
||||||
polybar m-bar &
|
polybar m-bar &
|
||||||
|
|
|
@ -13,6 +13,7 @@ function configure_fish
|
||||||
ssh_agent_startup
|
ssh_agent_startup
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
|
fzf --fish | source
|
||||||
end
|
end
|
||||||
|
|
||||||
configure_fish
|
configure_fish
|
||||||
|
|
|
@ -8,20 +8,21 @@ function define_global_variables -d 'Defines all and exclusively globally export
|
||||||
set -gx BROWSER firefox
|
set -gx BROWSER firefox
|
||||||
set -gx DIFFPROG nvim -d
|
set -gx DIFFPROG nvim -d
|
||||||
|
|
||||||
set -gx FZF_CTRL_T_COMMAND 'ag --hidden --ignore .git -g ""'
|
set -gx FZF_CTRL_T_COMMAND 'fd --type f --type d --hidden --exclude ".git/"'
|
||||||
set -gx FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -g ""'
|
set -gx FZF_DEFAULT_COMMAND 'fd --type f --type d --hidden --exclude ".git/"'
|
||||||
|
set -gx FZF_ALT_C_COMMAND 'fd --type d --hidden --exclude ".git/"'
|
||||||
|
|
||||||
set -gx GOPATH $HOME/code/go
|
set -gx GOPATH $HOME/code/go
|
||||||
set -gx GOBIN $GOPATH/bin
|
set -gx GOBIN $GOPATH/bin
|
||||||
|
|
||||||
|
set -gx GTK_THEME Kanagawa-BL
|
||||||
|
|
||||||
set -gx BUN_INSTALL $HOME/.bun
|
set -gx BUN_INSTALL $HOME/.bun
|
||||||
|
|
||||||
set -gx LIBVIRT_DEFAULT_URI 'qemu:///system'
|
set -gx LIBVIRT_DEFAULT_URI 'qemu:///system'
|
||||||
|
|
||||||
set -gx ANDROID_HOME $HOME/Android/Sdk
|
set -gx ANDROID_HOME $HOME/Android/Sdk
|
||||||
|
|
||||||
set -gx LIBVA_DRIVER_NAME nvidia
|
|
||||||
|
|
||||||
fish_add_path $GOBIN \
|
fish_add_path $GOBIN \
|
||||||
$HOME/.local/bin \
|
$HOME/.local/bin \
|
||||||
$HOME/.pub-cache/bin \
|
$HOME/.pub-cache/bin \
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
function fish_user_key_bindings
|
function fish_user_key_bindings
|
||||||
bind --mode insert jj "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end"
|
bind --mode insert jj "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end"
|
||||||
bind --mode insert ,a 'ssh_add; commandline -f repaint'
|
bind --mode insert ,a 'ssh_add; commandline -f repaint'
|
||||||
bind --mode insert ,j 'joplin; commandline -f repaint'
|
|
||||||
bind --mode insert ,p 'nvim +"Telescope git_files"; commandline -f repaint'
|
bind --mode insert ,p 'nvim +"Telescope git_files"; commandline -f repaint'
|
||||||
bind --mode insert ,f 'nvim +"Telescope find_files"; commandline -f repaint'
|
bind --mode insert ,f 'nvim +"Telescope find_files"; commandline -f repaint'
|
||||||
bind --mode insert ,n 'nvim +Neotree; commandline -f repaint'
|
bind --mode insert ,n 'nvim +Neotree; commandline -f repaint'
|
||||||
bind --mode insert ,v 'neovide; commandline -f repaint'
|
|
||||||
bind --mode insert ,s 'sysz; commandline -f repaint'
|
bind --mode insert ,s 'sysz; commandline -f repaint'
|
||||||
|
bind --mode insert ,z 'zi; commandline -f repaint'
|
||||||
|
bind --mode insert ,t 'fzf-file-widget'
|
||||||
|
bind --mode insert ,r 'fzf-history-widget'
|
||||||
|
bind --mode insert ,c 'fzf-cd-widget'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
function glance -d 'Open glances on a preset of machines'
|
|
||||||
tmux new -s glance mosh arch@khetanna.lan -- glances --disable-process --sparkline\; \
|
|
||||||
neww mosh arch@kamino.lan -- glances --disable-process --sparkline\; \
|
|
||||||
neww mosh arch@marauder.lan -- glances --disable-process --sparkline\; \
|
|
||||||
neww mosh serenity.lan -- glances --sparkline\; \
|
|
||||||
neww mosh venator.lan -- glances --sparkline
|
|
||||||
or tmux attach-session -t glance
|
|
||||||
end
|
|
|
@ -1,4 +1,9 @@
|
||||||
function jmpv -d 'Open jellyfin-mpv-shim in a tmux session of its own'
|
function jmpv -d 'Open jellyfin-mpv-shim in a tmux session of its own'
|
||||||
|
if command --query prime-run
|
||||||
|
set --function --export __NV_PRIME_RENDER_OFFLOAD 1
|
||||||
|
set --function --export __GLX_VENDOR_LIBRARY_NAME nvidia
|
||||||
|
end
|
||||||
|
|
||||||
tmux new-session -s jmpv jellyfin-mpv-shim
|
tmux new-session -s jmpv jellyfin-mpv-shim
|
||||||
or tmux attach-session -t jmpv
|
or tmux attach-session -t jmpv
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
function m --wraps yazi
|
||||||
|
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||||
|
yazi $argv --cwd-file="$tmp"
|
||||||
|
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||||
|
cd -- "$cwd"
|
||||||
|
end
|
||||||
|
rm -f -- "$tmp"
|
||||||
|
end
|
|
@ -1,36 +0,0 @@
|
||||||
# Rename this file to match the name of the function
|
|
||||||
# e.g. ~/.config/fish/functions/n.fish
|
|
||||||
# or, add the lines to the 'config.fish' file.
|
|
||||||
|
|
||||||
function n --wraps nnn --description 'support nnn quit and change directory'
|
|
||||||
# Block nesting of nnn in subshells
|
|
||||||
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
|
||||||
echo "nnn is already running"
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
|
||||||
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
|
||||||
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
|
||||||
# without changing the paths.
|
|
||||||
if test -n "$XDG_CONFIG_HOME"
|
|
||||||
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
|
||||||
else
|
|
||||||
set -x NNN_TMPFILE "$HOME/.config/nnn/.lastd"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
|
|
||||||
# stty start undef
|
|
||||||
# stty stop undef
|
|
||||||
# stty lwrap undef
|
|
||||||
# stty lnext undef
|
|
||||||
|
|
||||||
# The command function allows one to alias this function to `nnn` without
|
|
||||||
# making an infinitely recursive alias
|
|
||||||
command nnn $argv
|
|
||||||
|
|
||||||
if test -e $NNN_TMPFILE
|
|
||||||
source $NNN_TMPFILE
|
|
||||||
rm $NNN_TMPFILE
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,6 +1,12 @@
|
||||||
function ytmpv -d 'A script to help queue youtube videos on MPV'
|
function ytmpv -d 'A script to help queue youtube videos on MPV'
|
||||||
set -l queue ~/.ytmpv_queue
|
set -l queue ~/.ytmpv_queue
|
||||||
|
|
||||||
|
if command --query prime-run
|
||||||
|
set --function --export __NV_PRIME_RENDER_OFFLOAD 1
|
||||||
|
set --function --export __GLX_VENDOR_LIBRARY_NAME nvidia
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
if not test -f $queue
|
if not test -f $queue
|
||||||
touch $queue
|
touch $queue
|
||||||
end
|
end
|
||||||
|
@ -54,6 +60,9 @@ function ytmpv -d 'A script to help queue youtube videos on MPV'
|
||||||
(cat $queue) \
|
(cat $queue) \
|
||||||
best
|
best
|
||||||
break
|
break
|
||||||
|
case dwl destroy-watch-later
|
||||||
|
rm -r ~/.local/state/mpv/watch_later/
|
||||||
|
break
|
||||||
case '*'
|
case '*'
|
||||||
if test -z "$video"
|
if test -z "$video"
|
||||||
tmux attach -t ytmpv
|
tmux attach -t ytmpv
|
||||||
|
|
|
@ -19,6 +19,7 @@ set shortmess+=c
|
||||||
set foldmethod=expr
|
set foldmethod=expr
|
||||||
set foldexpr=nvim_treesitter#foldexpr()
|
set foldexpr=nvim_treesitter#foldexpr()
|
||||||
set nofoldenable " Disable folding at startup.
|
set nofoldenable " Disable folding at startup.
|
||||||
|
set termguicolors
|
||||||
|
|
||||||
inoremap jj <Esc>
|
inoremap jj <Esc>
|
||||||
|
|
||||||
|
@ -39,6 +40,8 @@ nnoremap <leader>o <cmd>SymbolsOutline<cr>
|
||||||
nnoremap <leader>z <cmd>ZenMode<cr>
|
nnoremap <leader>z <cmd>ZenMode<cr>
|
||||||
nnoremap <leader>l <cmd>Twilight<cr>
|
nnoremap <leader>l <cmd>Twilight<cr>
|
||||||
nnoremap <leader>c <cmd>COQnow<cr>
|
nnoremap <leader>c <cmd>COQnow<cr>
|
||||||
|
nnoremap <silent><leader>j <cmd>BufferLinePick<cr>
|
||||||
|
nnoremap <silent><leader>J <cmd>BufferLinePickClose<cr>
|
||||||
|
|
||||||
tnoremap <Esc> <C-\><C-n>
|
tnoremap <Esc> <C-\><C-n>
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ plug("folke/zen-mode.nvim")
|
||||||
plug("folke/twilight.nvim")
|
plug("folke/twilight.nvim")
|
||||||
plug("neovim/nvim-lspconfig")
|
plug("neovim/nvim-lspconfig")
|
||||||
plug("rebelot/kanagawa.nvim")
|
plug("rebelot/kanagawa.nvim")
|
||||||
|
plug("akinsho/bufferline.nvim")
|
||||||
plug("nvim-lualine/lualine.nvim")
|
plug("nvim-lualine/lualine.nvim")
|
||||||
plug("nvim-neo-tree/neo-tree.nvim")
|
plug("nvim-neo-tree/neo-tree.nvim")
|
||||||
plug("pmizio/typescript-tools.nvim")
|
plug("pmizio/typescript-tools.nvim")
|
||||||
|
@ -44,7 +45,18 @@ require("kanagawa").setup({
|
||||||
transparent = true,
|
transparent = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
require("lualine").setup()
|
require("bufferline").setup({
|
||||||
|
options = {
|
||||||
|
separator_style = "slant",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
require("lualine").setup({
|
||||||
|
extensions = {
|
||||||
|
"neo-tree",
|
||||||
|
"symbols-outline",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
require("zen-mode").setup({
|
require("zen-mode").setup({
|
||||||
window = {
|
window = {
|
||||||
|
|
|
@ -7,8 +7,6 @@ shadow-radius = 12
|
||||||
fading = true
|
fading = true
|
||||||
fade-delta = 5
|
fade-delta = 5
|
||||||
|
|
||||||
blur-kern = "11x11gaussian"
|
|
||||||
|
|
||||||
vsync = true
|
vsync = true
|
||||||
|
|
||||||
wintypes:
|
wintypes:
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
configuration{
|
||||||
|
combi-modi: "window,drun,run";
|
||||||
|
modi: "combi";
|
||||||
|
font: "JetBrainsMono Nerd Font 9";
|
||||||
|
icon-theme: "Adwaita";
|
||||||
|
show-icons: true;
|
||||||
|
terminal: "wezterm";
|
||||||
|
location: 2;
|
||||||
|
yoffset: 100;
|
||||||
|
disable-history: false;
|
||||||
|
hide-scrollbar: true;
|
||||||
|
display-combi: " Open";
|
||||||
|
display-run: " ";
|
||||||
|
display-drun: " ";
|
||||||
|
display-window: " ";
|
||||||
|
sidebar-mode: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "DarkBlue"
|
|
@ -15,16 +15,7 @@ super + shift + ctrl + Return
|
||||||
|
|
||||||
# program launcher
|
# program launcher
|
||||||
super + @space
|
super + @space
|
||||||
rofi -width 30 \
|
rofi -show combi
|
||||||
-lines 10 \
|
|
||||||
-font 'JetBrains Mono 10' \
|
|
||||||
-location 2 \
|
|
||||||
-yoffset 100 \
|
|
||||||
-terminal kitty \
|
|
||||||
-theme gruvbox-light \
|
|
||||||
-combi-modi window,drun,run \
|
|
||||||
-show combi \
|
|
||||||
-modi combi
|
|
||||||
|
|
||||||
# make sxhkd reload its configuration files:
|
# make sxhkd reload its configuration files:
|
||||||
super + Escape
|
super + Escape
|
||||||
|
|
|
@ -26,7 +26,7 @@ config.colors = {
|
||||||
indexed = { [16] = "#ffa066", [17] = "#ff5d62" },
|
indexed = { [16] = "#ffa066", [17] = "#ff5d62" },
|
||||||
}
|
}
|
||||||
|
|
||||||
config.window_background_opacity = is_darwin() and 0.8 or 0.5
|
config.window_background_opacity = is_darwin() and 0.7 or 0.65
|
||||||
config.window_decorations = "RESIZE"
|
config.window_decorations = "RESIZE"
|
||||||
|
|
||||||
config.font_size = is_darwin() and 13 or 11
|
config.font_size = is_darwin() and 13 or 11
|
||||||
|
|
|
@ -11,23 +11,23 @@ set -l pink D27E99 brmagenta
|
||||||
|
|
||||||
# Syntax Highlighting Colors
|
# Syntax Highlighting Colors
|
||||||
set -U fish_color_normal $foreground
|
set -U fish_color_normal $foreground
|
||||||
set -U fish_color_command $cyan
|
set -U fish_color_command $purple
|
||||||
set -U fish_color_keyword $pink
|
set -U fish_color_keyword $pink
|
||||||
set -U fish_color_quote $yellow
|
set -U fish_color_quote $yellow
|
||||||
set -U fish_color_redirection $foreground
|
set -U fish_color_redirection $green
|
||||||
set -U fish_color_end $orange
|
set -U fish_color_end $orange
|
||||||
set -U fish_color_error $red
|
set -U fish_color_error $red
|
||||||
set -U fish_color_param $purple
|
set -U fish_color_param $foreground
|
||||||
set -U fish_color_comment $comment
|
set -U fish_color_comment $comment
|
||||||
set -U fish_color_selection --background=$selection
|
set -U fish_color_selection --background=$selection
|
||||||
set -U fish_color_search_match --background=$selection
|
set -U fish_color_search_match --background=$selection
|
||||||
set -U fish_color_operator $green
|
set -U fish_color_operator $cyan
|
||||||
set -U fish_color_escape $pink
|
set -U fish_color_escape $pink
|
||||||
set -U fish_color_autosuggestion $comment
|
set -U fish_color_autosuggestion $comment
|
||||||
|
|
||||||
# Completion Pager Colors
|
# Completion Pager Colors
|
||||||
set -U fish_pager_color_progress $comment
|
set -U fish_pager_color_progress $comment
|
||||||
set -U fish_pager_color_prefix $cyan
|
set -U fish_pager_color_prefix $purple
|
||||||
set -U fish_pager_color_completion $foreground
|
set -U fish_pager_color_completion $foreground
|
||||||
set -U fish_pager_color_description $comment
|
set -U fish_pager_color_description $comment
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
wezterm start -- fish -c glance
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/env bash
|
||||||
wezterm start -- fish -c jmpv
|
wezterm start -- fish -c jmpv
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
if command -q prime-run
|
||||||
|
prime-run /usr/bin/streamlink-twitch-gui
|
||||||
|
else
|
||||||
|
/usr/bin/streamlink-twitch-gui
|
||||||
|
end
|
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/env bash
|
||||||
wezterm start -- fish -c vban
|
wezterm start -- fish -c vban
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
if command -q prime-run
|
||||||
|
set -lx __NV_PRIME_RENDER_OFFLOAD 1
|
||||||
|
set -lx __VK_LAYER_NV_optimus NVIDIA_only
|
||||||
|
/usr/bin/wezterm $argv
|
||||||
|
else
|
||||||
|
/usr/bin/wezterm $argv
|
||||||
|
end
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
if command -q prime-run
|
||||||
|
set -lx __NV_PRIME_RENDER_OFFLOAD 1
|
||||||
|
set -lx __VK_LAYER_NV_optimus NVIDIA_only
|
||||||
|
/usr/bin/wezterm-gui $argv
|
||||||
|
else
|
||||||
|
/usr/bin/wezterm-gui $argv
|
||||||
|
end
|
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/env bash
|
||||||
wezterm start -- fish -c ytmpv
|
wezterm start -- fish -c ytmpv
|
||||||
|
|
1
sync
1
sync
|
@ -80,6 +80,7 @@ function sync_desktop_env -a uname
|
||||||
and rsync -aP ./.config/sxhkd ~/.config/
|
and rsync -aP ./.config/sxhkd ~/.config/
|
||||||
and rsync -aP ./.config/picom ~/.config/
|
and rsync -aP ./.config/picom ~/.config/
|
||||||
and rsync -aP ./.config/polybar ~/.config/
|
and rsync -aP ./.config/polybar ~/.config/
|
||||||
|
and rsync -aP ./.config/rofi ~/.config/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue