mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-01 08:43:08 +01:00
Big changes
This commit is contained in:
parent
c043d48e0f
commit
48fdc8c36a
@ -11,7 +11,7 @@
|
||||
|
||||
[a-general]
|
||||
# Press Ctrl-H to access it
|
||||
home = "gemini://gemini.circumlunar.space"
|
||||
home = "gemini://hyperreal.coffee"
|
||||
|
||||
# Follow up to 5 Gemini redirects without prompting.
|
||||
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.
|
||||
@ -25,7 +25,7 @@ auto_redirect = false
|
||||
#
|
||||
# The best to define a command is using a string array.
|
||||
# Examples:
|
||||
# http = ['firefox']
|
||||
http = ['firefox']
|
||||
# http = ['custom-browser', '--flag', '--option=2']
|
||||
# http = ['/path/with spaces/in it/firefox']
|
||||
#
|
||||
@ -33,8 +33,6 @@ auto_redirect = false
|
||||
# Using just a string will also work, but it is deprecated, and will degrade if
|
||||
# you use paths with spaces.
|
||||
|
||||
http = 'default'
|
||||
|
||||
# Any URL that will accept a query string can be put here
|
||||
search = "gemini://gus.guru/search"
|
||||
|
||||
@ -44,6 +42,12 @@ color = true
|
||||
# Whether ANSI color codes from the page content should be rendered
|
||||
ansi = true
|
||||
|
||||
# Whether or not to support source code highlighting in preformatted blocks based on alt text
|
||||
highlight_code = true
|
||||
|
||||
# Which highlighting style to use (see https://xyproto.github.io/splash/docs/)
|
||||
highlight_style = "dracula"
|
||||
|
||||
# Whether to replace list asterisks with unicode bullets
|
||||
bullets = true
|
||||
|
||||
@ -60,7 +64,7 @@ max_width = 100
|
||||
# An empty value means the code will find the default downloads folder for your system.
|
||||
# If the path does not exist it will be created.
|
||||
# Note the use of single quotes, so that backslashes will not be escaped.
|
||||
downloads = ''
|
||||
downloads = '/var/home/jas/downloads'
|
||||
|
||||
# Max size for displayable content in bytes - after that size a download window pops up
|
||||
page_max_size = 2097152 # 2 MiB
|
||||
@ -68,7 +72,7 @@ page_max_size = 2097152 # 2 MiB
|
||||
page_max_time = 10
|
||||
|
||||
# Whether to replace tab numbers with emoji favicons, which are cached.
|
||||
emoji_favicons = false
|
||||
emoji_favicons = true
|
||||
|
||||
# When a scrollbar appears. "never", "auto", and "always" are the only valid values.
|
||||
# "auto" means the scrollbar only appears when the page is longer than the window.
|
||||
@ -83,12 +87,13 @@ scrollbar = "auto"
|
||||
# Client certificates
|
||||
# Set domain name equal to path to client cert
|
||||
# "example.com" = 'mycert.crt'
|
||||
"astrobotany.mozz.us" = "~/.local/share/amfora/astrobotany-cert.pem"
|
||||
|
||||
[auth.keys]
|
||||
# Client certificate keys
|
||||
# Set domain name equal to path to key for the client cert above
|
||||
# "example.com" = 'mycert.key'
|
||||
|
||||
"astrobotany.mozz.us" = "~/.local/share/amfora/astrobotany-key.pem"
|
||||
|
||||
[keybindings]
|
||||
# If you have a non-US keyboard, use bind_tab1 through bind_tab0 to
|
||||
@ -190,10 +195,6 @@ other = 'off'
|
||||
#
|
||||
# To open jpeg files with the feh command:
|
||||
#
|
||||
# [[mediatype-handlers]]
|
||||
# cmd = ['feh']
|
||||
# types = ["image/jpeg"]
|
||||
#
|
||||
# Each command that you specify must come under its own [[mediatype-handlers]]. You may
|
||||
# specify as many [[mediatype-handlers]] as you want to setup multiple commands.
|
||||
#
|
||||
@ -232,10 +233,14 @@ other = 'off'
|
||||
# If you want to always open a type in its viewer without the download or open
|
||||
# prompt appearing, you can add no_prompt = true
|
||||
#
|
||||
# [[mediatype-handlers]]
|
||||
# cmd = ['feh']
|
||||
# types = ["image"]
|
||||
# no_prompt = true
|
||||
[[mediatype-handlers]]
|
||||
cmd = ['ristretto']
|
||||
types = ["image"]
|
||||
no_prompt = true
|
||||
|
||||
[[mediatype-handlers]]
|
||||
cmd = ['zathura']
|
||||
types = ["application/pdf"]
|
||||
#
|
||||
# Note: Multiple handlers cannot be defined for the same full media type, but
|
||||
# still there needs to be an order for which handlers are used. The following
|
||||
@ -292,52 +297,51 @@ workers = 3
|
||||
# The number of subscription updates displayed per page.
|
||||
entries_per_page = 20
|
||||
|
||||
# Catppuccin Mocha
|
||||
[theme]
|
||||
bg = "#282a36"
|
||||
tab_num = "#bd93f9"
|
||||
tab_divider = "#f8f8f2"
|
||||
bottombar_label = "#bd93f9"
|
||||
bottombar_text = "#8be9fd"
|
||||
bottombar_bg = "#44475a"
|
||||
scrollbar = "#44475a"
|
||||
bg = "#1E1E2E"
|
||||
tab_num = "#cba6f7"
|
||||
tab_divider = "#a6adc8"
|
||||
bottombar_text = "#94e2d5"
|
||||
bottombar_bg = "#45475a"
|
||||
scrollbar = "#45475a"
|
||||
|
||||
hdg_1 = "#bd93f9"
|
||||
hdg_2 = "#bd93f9"
|
||||
hdg_3 = "#bd93f9"
|
||||
amfora_link = "#ff79c6"
|
||||
foreign_link = "#ffb86c"
|
||||
link_number = "#8be9fd"
|
||||
regular_text = "#f8f8f2"
|
||||
quote_text = "#f1fa8c"
|
||||
preformatted_text = "#ffb86c"
|
||||
list_text = "#f8f8f2"
|
||||
hdg_1 = "#cba6f7"
|
||||
hdg_2 = "#cba6f7"
|
||||
hdg_3 = "#cba6f7"
|
||||
amfora_link = "#f38ba8"
|
||||
foreign_link = "#fab387"
|
||||
link_number = "#94e2d5"
|
||||
regular_text = "#cdd6f4"
|
||||
quote_text = "#f9e2af"
|
||||
preformatted_text = "#fab387"
|
||||
list_text = "#cdd6f4"
|
||||
|
||||
btn_bg = "#44475a"
|
||||
btn_text = "#f8f8f2"
|
||||
btn_bg = "#45475a"
|
||||
btn_text = "#cdd6f4"
|
||||
|
||||
dl_choice_modal_bg = "#6272a4"
|
||||
dl_choice_modal_text = "#f8f8f2"
|
||||
dl_modal_bg = "#6272a4"
|
||||
dl_modal_text = "#f8f8f2"
|
||||
info_modal_bg = "#6272a4"
|
||||
info_modal_text = "#f8f8f2"
|
||||
error_modal_bg = "#ff5555"
|
||||
error_modal_text = "#f8f8f2"
|
||||
yesno_modal_bg = "#6272a4"
|
||||
yesno_modal_text = "#f8f8f2"
|
||||
tofu_modal_bg = "#6272a4"
|
||||
tofu_modal_text = "#f8f8f2"
|
||||
subscription_modal_bg = "#6272a4"
|
||||
subscription_modal_text = "#f8f8f2"
|
||||
dl_choice_modal_bg = "#45475a"
|
||||
dl_choice_modal_text = "#cdd6f4"
|
||||
dl_modal_bg = "#45475a"
|
||||
dl_modal_text = "#cdd6f4"
|
||||
info_modal_bg = "#45475a"
|
||||
info_modal_text = "#cdd6f4"
|
||||
error_modal_bg = "#f38ba8"
|
||||
error_modal_text = "#181825"
|
||||
yesno_modal_bg = "#45475a"
|
||||
yesno_modal_text = "#cdd6f4"
|
||||
tofu_modal_bg = "#45475a"
|
||||
tofu_modal_text = "#cdd6f4"
|
||||
subscription_modal_bg = "#45475a"
|
||||
subscription_modal_text = "#cdd6f4"
|
||||
|
||||
input_modal_bg = "#6272a4"
|
||||
input_modal_text = "#f8f8f2"
|
||||
input_modal_field_bg = "#44475a"
|
||||
input_modal_field_text = "#f8f8f2"
|
||||
|
||||
bkmk_modal_bg = "#6272a4"
|
||||
bkmk_modal_text = "#f8f8f2"
|
||||
bkmk_modal_label = "#f8f8f2"
|
||||
bkmk_modal_field_bg = "#44475a"
|
||||
bkmk_modal_field_text = "#f8f8f2"
|
||||
input_modal_bg = "#45475a"
|
||||
input_modal_text = "#cdd6f4"
|
||||
input_modal_field_bg = "#313244"
|
||||
input_modal_field_text = "#cdd6f4"
|
||||
|
||||
bkmk_modal_bg = "#45475a"
|
||||
bkmk_modal_text = "#cdd6f4"
|
||||
bkmk_modal_label = "#cdd6f4"
|
||||
bkmk_modal_field_bg = "#313244"
|
||||
bkmk_modal_field_text = "#cdd6f4"
|
10
.config/amfora/newtab.gmi
Normal file
10
.config/amfora/newtab.gmi
Normal file
@ -0,0 +1,10 @@
|
||||
# Welcome to Gemini!
|
||||
|
||||
## Internal pages
|
||||
=> about:bookmarks Bookmarks
|
||||
=> about:subscriptions Subscriptions
|
||||
|
||||
## Geminispace
|
||||
=> gemini://hyperreal.coffee hyperreal.coffee
|
||||
=> gemini://makeworld.space/amfora-wiki/ Amfora Wiki
|
||||
=> gemini://gemini.circumlunar.space/ Project Gemini
|
44
.config/fish/config.fish
Normal file
44
.config/fish/config.fish
Normal file
@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env fish
|
||||
# vim:set ft=fish ai et sw=4 ts=4:# fzf keybindings
|
||||
fzf_configure_bindings --directory=\cf --git_log=\cg --git_status=\cs --processes=\cp
|
||||
|
||||
# environment vars
|
||||
set -gx BAT_THEME "Catppuccin"
|
||||
set -gx PAGER "less -X"
|
||||
set -gx MANPAGER "less -X"
|
||||
set -gx LS_COLORS (cat ~/.lscolors.sh)
|
||||
set -gx GOPATH "$HOME/go"
|
||||
set -gx LANG en_US.UTF-8
|
||||
set -gx EDITOR nvim
|
||||
set -gx XDG_DATA_DIRS "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"
|
||||
set -gx MANPATH "/usr/share/man:/usr/local/share/man:/var/home/jas/.fzf/man"
|
||||
|
||||
# set FZF colors
|
||||
set -Ux FZF_DEFAULT_OPTS "--color=bg+:#302D41,bg:#1E1E2E,spinner:#F8BD96,hl:#F28FAD --color=fg:#D9E0EE,header:#F28FAD,info:#DDB6F2,pointer:#F8BD96 --color=marker:#F8BD96,fg+:#F2CDCD,prompt:#DDB6F2,hl+:#F28FAD"
|
||||
|
||||
# keybinding for fzf-marks
|
||||
bind \eg "fzm"
|
||||
|
||||
# set TERM
|
||||
set -Ux TERM screen-256color
|
||||
|
||||
# set PATH
|
||||
set -ga fish_user_paths "$GOPATH/bin"
|
||||
set -ga fish_user_paths "$HOME/.cargo/bin"
|
||||
set -ga fish_user_paths "/usr/local/bin"
|
||||
set -ga fish_user_paths "/usr/local/sbin"
|
||||
set -ga fish_user_paths "/usr/bin"
|
||||
set -ga fish_user_paths "/usr/sbin"
|
||||
set -ga fish_user_paths "/bin"
|
||||
set -ga fish_user_paths "/sbin"
|
||||
set -ga fish_user_paths "$HOME/.local/bin"
|
||||
set -ga fish_user_paths "$HOME/bin"
|
||||
set -ga fish_user_paths "$HOME/.nimble/bin"
|
||||
|
||||
# colored-man settings
|
||||
set -g man_blink -o red
|
||||
set -g man_bold -o FF80BF
|
||||
set -g man_standout -b cyan black
|
||||
set -g man_underline -u 8AFF80
|
||||
|
||||
starship init fish | source
|
7
.config/fish/functions/batfun.fish
Normal file
7
.config/fish/functions/batfun.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function batfun -d "Display function definition with bat"
|
||||
if type -q bat
|
||||
command bat (functions -D $argv[1])
|
||||
else
|
||||
command echo "bat program not installed!"
|
||||
end
|
||||
end
|
3
.config/fish/functions/cd.fish
Normal file
3
.config/fish/functions/cd.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function cd -d "Do an ls after cd"
|
||||
builtin cd $argv; ls
|
||||
end
|
3
.config/fish/functions/dnfgl.fish
Normal file
3
.config/fish/functions/dnfgl.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfgl -d "List package groups"
|
||||
dnf grouplist
|
||||
end
|
3
.config/fish/functions/dnfi.fish
Normal file
3
.config/fish/functions/dnfi.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfi -d "install packages"
|
||||
sudo dnf install $argv
|
||||
end
|
3
.config/fish/functions/dnfl.fish
Normal file
3
.config/fish/functions/dnfl.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfl -d "list packages"
|
||||
dnf list
|
||||
end
|
4
.config/fish/functions/dnfli.fish
Normal file
4
.config/fish/functions/dnfli.fish
Normal file
@ -0,0 +1,4 @@
|
||||
function dnfli -d "list installed packages"
|
||||
dnf list installed
|
||||
end
|
||||
|
3
.config/fish/functions/dnfp.fish
Normal file
3
.config/fish/functions/dnfp.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfp -d "Show package info"
|
||||
dnf info $argv
|
||||
end
|
3
.config/fish/functions/dnfr.fish
Normal file
3
.config/fish/functions/dnfr.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfr -d "remove packages"
|
||||
sudo dnf remove $argv
|
||||
end
|
3
.config/fish/functions/dnfs.fish
Normal file
3
.config/fish/functions/dnfs.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfs -d "Search package"
|
||||
dnf search $argv
|
||||
end
|
3
.config/fish/functions/dnfu.fish
Normal file
3
.config/fish/functions/dnfu.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function dnfu -d "Update packages"
|
||||
sudo dnf update -y
|
||||
end
|
7
.config/fish/functions/dud.fish
Normal file
7
.config/fish/functions/dud.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function dud -d "Display disk usage with dust"
|
||||
if type -q dust
|
||||
command dust --depth 1 -w 88 $argv
|
||||
else
|
||||
command echo "dust program not installed!"
|
||||
end
|
||||
end
|
25
.config/fish/functions/extract.fish
Normal file
25
.config/fish/functions/extract.fish
Normal file
@ -0,0 +1,25 @@
|
||||
# Taken from: https://github.com/dideler/dotfiles/blob/master/functions/extract.fish
|
||||
|
||||
function extract --description "Expand or extract bundled & compressed files"
|
||||
set --local ext (echo $argv[1] | awk -F. '{print $NF}')
|
||||
switch $ext
|
||||
case tar # non-compressed, just bundled
|
||||
tar -xvf $argv[1]
|
||||
case gz
|
||||
if test (echo $argv[1] | awk -F. '{print $(NF-1)}') = tar # tar bundle compressed with gzip
|
||||
tar -zxvf $argv[1]
|
||||
else # single gzip
|
||||
gunzip $argv[1]
|
||||
end
|
||||
case tgz # same as tar.gz
|
||||
tar -zxvf $argv[1]
|
||||
case bz2 # tar compressed with bzip2
|
||||
tar -jxvf $argv[1]
|
||||
case rar
|
||||
unrar x $argv[1]
|
||||
case zip
|
||||
unzip $argv[1]
|
||||
case '*'
|
||||
echo "unknown extension"
|
||||
end
|
||||
end
|
3
.config/fish/functions/fw.fish
Normal file
3
.config/fish/functions/fw.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function fw -d "firewall-cmd alias"
|
||||
sudo firewall-cmd $argv
|
||||
end
|
3
.config/fish/functions/fwr.fish
Normal file
3
.config/fish/functions/fwr.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function fwr -d "firewall-cmd --reload alias"
|
||||
sudo firewall-cmd --reload
|
||||
end
|
3
.config/fish/functions/ga.fish
Normal file
3
.config/fish/functions/ga.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function ga -d "git add"
|
||||
git add $argv
|
||||
end
|
3
.config/fish/functions/gcmsg.fish
Normal file
3
.config/fish/functions/gcmsg.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function gcmsg -d "git commit -m"
|
||||
git commit -m $argv
|
||||
end
|
3
.config/fish/functions/gp.fish
Normal file
3
.config/fish/functions/gp.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function gp -d "git push"
|
||||
git push $argv
|
||||
end
|
3
.config/fish/functions/grm.fish
Normal file
3
.config/fish/functions/grm.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function grm -d "git rm"
|
||||
git rm $argv
|
||||
end
|
3
.config/fish/functions/gst.fish
Normal file
3
.config/fish/functions/gst.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function gst -d "git status"
|
||||
git status
|
||||
end
|
7
.config/fish/functions/la.fish
Normal file
7
.config/fish/functions/la.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function la
|
||||
if type -q exa
|
||||
command exa -a --icons $argv
|
||||
else
|
||||
command ls -a --color=auto $argv
|
||||
end
|
||||
end
|
7
.config/fish/functions/lal.fish
Normal file
7
.config/fish/functions/lal.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function lal
|
||||
if type -q exa
|
||||
command exa -l -a --icons $argv
|
||||
else
|
||||
command ls -al --color=auto $argv
|
||||
end
|
||||
end
|
7
.config/fish/functions/ll.fish
Normal file
7
.config/fish/functions/ll.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function ll
|
||||
if type -q exa
|
||||
command exa -l --icons --git $argv
|
||||
else
|
||||
command ls -l --color=auto $argv
|
||||
end
|
||||
end
|
7
.config/fish/functions/ls.fish
Normal file
7
.config/fish/functions/ls.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function ls
|
||||
if type -q exa
|
||||
command exa --icons $argv
|
||||
else
|
||||
command ls --color=auto $argv
|
||||
end
|
||||
end
|
3
.config/fish/functions/lse.fish
Normal file
3
.config/fish/functions/lse.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function lse
|
||||
command ls -lZ --color=auto $argv
|
||||
end
|
3
.config/fish/functions/lsock.fish
Normal file
3
.config/fish/functions/lsock.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function lsock -d "List sockets in use"
|
||||
command sudo lsof -i -P
|
||||
end
|
3
.config/fish/functions/lsockT.fish
Normal file
3
.config/fish/functions/lsockT.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function lsockT -d "List TCP sockets in use"
|
||||
command sudo lsof -nP | grep TCP
|
||||
end
|
3
.config/fish/functions/lsockU.fish
Normal file
3
.config/fish/functions/lsockU.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function lsockU -d "List UDP sockets in use"
|
||||
command sudo lsof -nP | grep UDP
|
||||
end
|
41
.config/fish/functions/man.fish
Normal file
41
.config/fish/functions/man.fish
Normal file
@ -0,0 +1,41 @@
|
||||
function man --wraps man --description 'Format and display manual pages'
|
||||
set -q man_blink; and set -l blink (set_color $man_blink); or set -l blink (set_color -o red)
|
||||
set -q man_bold; and set -l bold (set_color $man_bold); or set -l bold (set_color -o 5fafd7)
|
||||
set -q man_standout; and set -l standout (set_color $man_standout); or set -l standout (set_color 949494)
|
||||
set -q man_underline; and set -l underline (set_color $man_underline); or set -l underline (set_color -u afafd7)
|
||||
|
||||
set -l end (printf "\e[0m")
|
||||
|
||||
set -lx LESS_TERMCAP_mb $blink
|
||||
set -lx LESS_TERMCAP_md $bold
|
||||
set -lx LESS_TERMCAP_me $end
|
||||
set -lx LESS_TERMCAP_so $standout
|
||||
set -lx LESS_TERMCAP_se $end
|
||||
set -lx LESS_TERMCAP_us $underline
|
||||
set -lx LESS_TERMCAP_ue $end
|
||||
set -lx LESS '-R -s'
|
||||
|
||||
set -lx GROFF_NO_SGR yes # fedora
|
||||
|
||||
set -lx MANPATH (string join : $MANPATH)
|
||||
if test -z "$MANPATH"
|
||||
type -q manpath
|
||||
and set MANPATH (command manpath)
|
||||
end
|
||||
|
||||
# Check data dir for Fish 2.x compatibility
|
||||
set -l fish_data_dir
|
||||
if set -q __fish_data_dir
|
||||
set fish_data_dir $__fish_data_dir
|
||||
else
|
||||
set fish_data_dir $__fish_datadir
|
||||
end
|
||||
|
||||
set -l fish_manpath (dirname $fish_data_dir)/fish/man
|
||||
if test -d "$fish_manpath" -a -n "$MANPATH"
|
||||
set MANPATH "$fish_manpath":$MANPATH
|
||||
command man $argv
|
||||
return
|
||||
end
|
||||
command man $argv
|
||||
end
|
3
.config/fish/functions/mkd.fish
Normal file
3
.config/fish/functions/mkd.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function mkd -d "Create new directory and enter it"
|
||||
mkdir -p $argv[1]; cd $argv[1]
|
||||
end
|
3
.config/fish/functions/netcons.fish
Normal file
3
.config/fish/functions/netcons.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function netcons -d "Network connections"
|
||||
lsof -i $argv
|
||||
end
|
3
.config/fish/functions/openports.fish
Normal file
3
.config/fish/functions/openports.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function openports -d "Open ports"
|
||||
sudo lsof -i | grep LISTEN
|
||||
end
|
9
.config/fish/functions/pbcopy.fish
Normal file
9
.config/fish/functions/pbcopy.fish
Normal file
@ -0,0 +1,9 @@
|
||||
function pbcopy -d "Copy data from STDIN to the clipboard"
|
||||
if type -q xclip
|
||||
command xclip -selection clipboard
|
||||
else if type -q xsel
|
||||
command xsel --clipboard --input
|
||||
else
|
||||
command echo "ERROR: xclip or xsel not found"
|
||||
end
|
||||
end
|
3
.config/fish/functions/pids.fish
Normal file
3
.config/fish/functions/pids.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function pids -d "List pids"
|
||||
command pgrep -a $argv[1]
|
||||
end
|
3
.config/fish/functions/pong.fish
Normal file
3
.config/fish/functions/pong.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function pong -d "Ping google"
|
||||
ping -c 3 www.google.com
|
||||
end
|
7
.config/fish/functions/pubip.fish
Normal file
7
.config/fish/functions/pubip.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function pubip
|
||||
if type -q jq
|
||||
command curl -s ipinfo.io | command jq
|
||||
else
|
||||
command curl -s ipinfo.io
|
||||
end
|
||||
end
|
11
.config/fish/functions/pubkey.fish
Normal file
11
.config/fish/functions/pubkey.fish
Normal file
@ -0,0 +1,11 @@
|
||||
function pubkey -d "Copy SSH pubkey to clipboard"
|
||||
if type -q xclip
|
||||
command cat "$HOME/.ssh/id_ed25519.pub" | command xclip -selection clipboard
|
||||
command echo "==> SSH public key copied"
|
||||
else if type -q xsel
|
||||
command cat "$HOME/.ssh/id_ed25519.pub" | command xsel -ib
|
||||
command echo "==> SSH public key copied"
|
||||
else
|
||||
command echo "ERROR: xclip or xsel not found"
|
||||
end
|
||||
end
|
4
.config/fish/functions/rsrc.fish
Normal file
4
.config/fish/functions/rsrc.fish
Normal file
@ -0,0 +1,4 @@
|
||||
function rsrc -d "Refresh and re-source shell"
|
||||
cd ~/
|
||||
clear
|
||||
end
|
3
.config/fish/functions/sc-daemon-reload.fish
Normal file
3
.config/fish/functions/sc-daemon-reload.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-daemon-reload -d "Reload systemd daemons"
|
||||
sudo systemctl daemon-reload
|
||||
end
|
3
.config/fish/functions/sc-disable-now.fish
Normal file
3
.config/fish/functions/sc-disable-now.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-disable-now -d "Disable and stop systemd service"
|
||||
sudo systemctl disable --now $argv
|
||||
end
|
3
.config/fish/functions/sc-disable.fish
Normal file
3
.config/fish/functions/sc-disable.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-disable -d "Disable systemd service"
|
||||
sudo systemctl disable $argv
|
||||
end
|
3
.config/fish/functions/sc-enable-now.fish
Normal file
3
.config/fish/functions/sc-enable-now.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-enable-now -d "Enable and start systemd service"
|
||||
sudo systemctl enable --now $argv
|
||||
end
|
3
.config/fish/functions/sc-enable.fish
Normal file
3
.config/fish/functions/sc-enable.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-enable -d "Enable systemd service"
|
||||
sudo systemctl enable $argv
|
||||
end
|
3
.config/fish/functions/sc-list-socks.fish
Normal file
3
.config/fish/functions/sc-list-socks.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-list-socks -d "List used systemd sockets"
|
||||
sudo systemctl list-sockets
|
||||
end
|
3
.config/fish/functions/sc-list-srvs.fish
Normal file
3
.config/fish/functions/sc-list-srvs.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-list-srvs -d "List systemd services"
|
||||
sudo systemctl list-units --type=service
|
||||
end
|
3
.config/fish/functions/sc-list-timers.fish
Normal file
3
.config/fish/functions/sc-list-timers.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-list-timers -d "List systemd timers"
|
||||
sudo systemctl list-timers
|
||||
end
|
3
.config/fish/functions/sc-reboot.fish
Normal file
3
.config/fish/functions/sc-reboot.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function rbt -d "Reboot system"
|
||||
sudo systemctl reboot
|
||||
end
|
3
.config/fish/functions/sc-restart.fish
Normal file
3
.config/fish/functions/sc-restart.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-restart -d "Restart systemd service"
|
||||
sudo systemctl restart $argv
|
||||
end
|
3
.config/fish/functions/sc-show.fish
Normal file
3
.config/fish/functions/sc-show.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-show -d "Show systemd units"
|
||||
sudo systemctl show
|
||||
end
|
3
.config/fish/functions/sc-start.fish
Normal file
3
.config/fish/functions/sc-start.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-start -d "Start systemd service"
|
||||
sudo systemctl start $argv
|
||||
end
|
3
.config/fish/functions/sc-status.fish
Normal file
3
.config/fish/functions/sc-status.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-status -d "Show status of systemd service"
|
||||
sudo systemctl status $argv
|
||||
end
|
3
.config/fish/functions/sc-stop.fish
Normal file
3
.config/fish/functions/sc-stop.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function sc-stop -d "Stop systemd service"
|
||||
sudo systemctl stop $argv
|
||||
end
|
3
.config/fish/functions/scu-daemon-reload.fish
Normal file
3
.config/fish/functions/scu-daemon-reload.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-daemon-reload -d "Reload systemd user daemons"
|
||||
systemctl --user daemon-reload
|
||||
end
|
3
.config/fish/functions/scu-disable-now.fish
Normal file
3
.config/fish/functions/scu-disable-now.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-disable-now -d "Disable and stop systemd user service"
|
||||
systemctl --user disable --now $argv
|
||||
end
|
3
.config/fish/functions/scu-disable.fish
Normal file
3
.config/fish/functions/scu-disable.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-disable -d "Disable systemd user service"
|
||||
systemctl --user disable $argv
|
||||
end
|
3
.config/fish/functions/scu-enable-now.fish
Normal file
3
.config/fish/functions/scu-enable-now.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-enable-now -d "Enable and start systemd user service"
|
||||
systemctl --user enable --now $argv
|
||||
end
|
3
.config/fish/functions/scu-enable.fish
Normal file
3
.config/fish/functions/scu-enable.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-enable -d "Enable systemd user service"
|
||||
systemctl --user enable $argv
|
||||
end
|
3
.config/fish/functions/scu-restart.fish
Normal file
3
.config/fish/functions/scu-restart.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-restart -d "Restart systemd user service"
|
||||
systemctl --user restart $argv
|
||||
end
|
3
.config/fish/functions/scu-show.fish
Normal file
3
.config/fish/functions/scu-show.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-show -d "Show systemd user units"
|
||||
systemctl --user show
|
||||
end
|
3
.config/fish/functions/scu-start.fish
Normal file
3
.config/fish/functions/scu-start.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-start -d "Start systemd user service"
|
||||
systemctl --user start $argv
|
||||
end
|
3
.config/fish/functions/scu-status.fish
Normal file
3
.config/fish/functions/scu-status.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-status -d "Show status of systemd user service"
|
||||
systemctl --user status $argv
|
||||
end
|
3
.config/fish/functions/scu-stop.fish
Normal file
3
.config/fish/functions/scu-stop.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function scu-stop -d "Stop systemd user service"
|
||||
systemctl --user stop $argv
|
||||
end
|
3
.config/fish/functions/tulp.fish
Normal file
3
.config/fish/functions/tulp.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function tulp -d "Open ports"
|
||||
ss -tulp
|
||||
end
|
523
.config/nvim/init.lua
Normal file
523
.config/nvim/init.lua
Normal file
@ -0,0 +1,523 @@
|
||||
-- Install packer
|
||||
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
|
||||
|
||||
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
||||
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
|
||||
end
|
||||
|
||||
vim.api.nvim_exec(
|
||||
[[
|
||||
augroup Packer
|
||||
autocmd!
|
||||
autocmd BufWritePost init.lua PackerCompile
|
||||
augroup end
|
||||
]],
|
||||
false
|
||||
)
|
||||
|
||||
local use = require('packer').use
|
||||
require('packer').startup(function()
|
||||
-- Package manager
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
-- UI to select things (files, grep results, open buffers...)
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = {
|
||||
{ 'nvim-lua/popup.nvim' },
|
||||
{ 'nvim-lua/plenary.nvim' },
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', run = "make" },
|
||||
{ 'nvim-telescope/telescope-media-files.nvim' }
|
||||
}
|
||||
}
|
||||
|
||||
-- Add indentation guides even on blank lines
|
||||
use 'lukas-reineke/indent-blankline.nvim'
|
||||
|
||||
-- Add git related info in the signs columns and popups
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
requires = { 'nvim-lua/plenary.nvim' }
|
||||
}
|
||||
|
||||
-- Highlight, edit, and navigate code using a fast incremental parsing library
|
||||
use 'nvim-treesitter/nvim-treesitter'
|
||||
|
||||
-- LSP
|
||||
use 'neovim/nvim-lspconfig'
|
||||
|
||||
-- Autocompletion
|
||||
use 'hrsh7th/nvim-compe'
|
||||
|
||||
-- Snippets
|
||||
use 'L3MON4D3/LuaSnip'
|
||||
|
||||
-- Bufferline for tabs
|
||||
use { 'akinsho/nvim-bufferline.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
||||
|
||||
-- Remember last edit location in file
|
||||
use 'ethanholz/nvim-lastplace'
|
||||
|
||||
-- Colorize hex color codes
|
||||
use 'norcalli/nvim-colorizer.lua'
|
||||
|
||||
-- File manager
|
||||
use {
|
||||
'kyazdani42/nvim-tree.lua',
|
||||
requires = {
|
||||
'kyazdani42/nvim-web-devicons',
|
||||
},
|
||||
config = function() require'nvim-tree'.setup{} end
|
||||
}
|
||||
|
||||
-- dhall syntax
|
||||
use 'vmchale/dhall-vim'
|
||||
|
||||
-- lualine
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = { 'kyazdan42/nvim-web-devicons', opt = true }
|
||||
}
|
||||
|
||||
-- Embark color theme
|
||||
-- use 'embark-theme/vim'
|
||||
|
||||
-- Editorconfig
|
||||
use 'editorconfig/editorconfig-vim'
|
||||
|
||||
-- nvim-commenter
|
||||
use 'terrortylor/nvim-comment'
|
||||
|
||||
-- sloum/gemini-vim-syntax
|
||||
use 'https://tildegit.org/sloum/gemini-vim-syntax'
|
||||
|
||||
-- dracula-pro/vim
|
||||
-- use '~/.config/nvim/draculapro'
|
||||
|
||||
-- catppuccin theme
|
||||
use {
|
||||
'catppuccin/nvim',
|
||||
as = 'catppuccin'
|
||||
}
|
||||
|
||||
-- go.nvim
|
||||
use 'ray-x/go.nvim'
|
||||
|
||||
-- fish syntax
|
||||
use 'khaveesh/vim-fish-syntax'
|
||||
|
||||
-- Nim syntax
|
||||
use 'alaviss/nim.nvim'
|
||||
|
||||
end)
|
||||
|
||||
-- Local map function
|
||||
local function map(mode, lhs, rhs, opts)
|
||||
local options = { noremap = true, silent = true }
|
||||
if opts then
|
||||
options = vim.tbl_extend("force", options, opts)
|
||||
end
|
||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||
end
|
||||
|
||||
local opt = {}
|
||||
|
||||
--Remap space as leader key
|
||||
map('', '<Space>', '<Nop>', { noremap = true, silent = true })
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
--Incremental live completion
|
||||
vim.o.inccommand = 'split'
|
||||
|
||||
--Set highlight on search
|
||||
vim.o.hlsearch = true
|
||||
|
||||
--Make line numbers default
|
||||
vim.wo.number = true
|
||||
|
||||
-- Relative line numbers
|
||||
vim.wo.relativenumber = true
|
||||
|
||||
--Do not save when switching buffers
|
||||
vim.o.hidden = true
|
||||
|
||||
--Enable mouse mode
|
||||
vim.o.mouse = 'a'
|
||||
|
||||
--Enable break indent
|
||||
vim.o.breakindent = true
|
||||
|
||||
--Save undo history
|
||||
vim.cmd [[set undofile]]
|
||||
|
||||
--Case insensitive searching UNLESS /C or capital in search
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
|
||||
--Decrease update time
|
||||
vim.o.updatetime = 250
|
||||
vim.wo.signcolumn = 'yes'
|
||||
|
||||
--Set colorscheme (order is important here)
|
||||
vim.o.termguicolors = true
|
||||
vim.g.catppuccin_flavor = "mocha"
|
||||
vim.cmd [[colorscheme catppuccin]]
|
||||
|
||||
--Highlight column 88
|
||||
vim.cmd [[set colorcolumn=88]]
|
||||
|
||||
--Set splits
|
||||
vim.o.splitbelow = true
|
||||
vim.o.splitright = true
|
||||
|
||||
--Clipboard
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
|
||||
-- Press ESC to turn off search highlight
|
||||
map("n", "<Esc>", ":noh<CR>", opt)
|
||||
|
||||
--Tabs and indents
|
||||
vim.o.shiftwidth = 4
|
||||
vim.o.smartindent = true
|
||||
vim.o.softtabstop = 4
|
||||
vim.o.tabstop = 4
|
||||
vim.o.autoindent = true
|
||||
|
||||
-- Lualine
|
||||
require('lualine').setup{
|
||||
options = {
|
||||
theme = "catppuccin"
|
||||
}
|
||||
}
|
||||
|
||||
-- Sometimes I don't let go of the shift key in time
|
||||
vim.cmd [[command! WQ wq]]
|
||||
vim.cmd [[command! Wq wq]]
|
||||
vim.cmd [[command! Wqa wqa]]
|
||||
vim.cmd [[command! WQa wqa]]
|
||||
vim.cmd [[command! W w]]
|
||||
vim.cmd [[command! Q q]]
|
||||
|
||||
-- Sometimes I accidentally undo a change when trying to enter INSERT mode
|
||||
map("n", "u", "<Nop>", opt)
|
||||
|
||||
-- Don't copy deleted text
|
||||
map("n", "dd", [=[ "_dd ]=], opt)
|
||||
map("v", "dd", [=[ "_dd ]=], opt)
|
||||
map("v", "x", [=[ "_x ]=], opt)
|
||||
|
||||
-- Copy whole file content
|
||||
map("n", "<C-a>", [[ <Cmd> %y+<CR>]], opt)
|
||||
|
||||
-- Commenter keybinding
|
||||
require('nvim_comment').setup()
|
||||
map("n", "<leader>/", ":CommentToggle<CR>", opt)
|
||||
map("v", "<leader>/", ":CommentToggle<CR>", opt)
|
||||
|
||||
--Remap for dealing with word wrap
|
||||
map('n', 'k', "v:count == 0 ? 'gk' : 'k'", { noremap = true, expr = true, silent = true })
|
||||
map('n', 'j', "v:count == 0 ? 'gj' : 'j'", { noremap = true, expr = true, silent = true })
|
||||
|
||||
--Map blankline
|
||||
vim.g.indent_blankline_char = '┊'
|
||||
vim.g.indent_blankline_filetype_exclude = { 'help', 'packer' }
|
||||
vim.g.indent_blankline_buftype_exclude = { 'terminal', 'nofile' }
|
||||
vim.g.indent_blankline_char_highlight = 'LineNr'
|
||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||||
|
||||
-- Ansible-flavorited YAML
|
||||
vim.g.ansible_unindent_after_newline = true
|
||||
|
||||
-- nvim-lastplace
|
||||
require'nvim-lastplace'.setup{}
|
||||
|
||||
-- nvim-bufferline.lua
|
||||
require("bufferline").setup{
|
||||
options = {
|
||||
separator_style = "slant"
|
||||
}
|
||||
}
|
||||
|
||||
map("n", "<S-t>", ":enew<CR>", opt) -- new buffer
|
||||
map("n", "<C-t>b", ":tabnew<CR>", opt) -- new tab
|
||||
map("n", "<S-x>", ":bd!<CR>", opt) -- close tab
|
||||
map("n", "<TAB>", ":BufferLineCycleNext<CR>", opt)
|
||||
map("n", "<S-TAB>", ":BufferLineCyclePrev<CR>", opt)
|
||||
|
||||
-- Gitsigns
|
||||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = { hl = 'GitGutterAdd', text = '+' },
|
||||
change = { hl = 'GitGutterChange', text = '~' },
|
||||
delete = { hl = 'GitGutterDelete', text = '_' },
|
||||
topdelete = { hl = 'GitGutterDelete', text = '‾' },
|
||||
changedelete = { hl = 'GitGutterChange', text = '~' },
|
||||
},
|
||||
}
|
||||
|
||||
-- Telescope
|
||||
require('telescope').setup {
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
['<C-u>'] = false,
|
||||
['<C-d>'] = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
--Add leader shortcuts
|
||||
map('n', '<leader><space>', [[<cmd>lua require('telescope.builtin').buffers()<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>sf', [[<cmd>lua require('telescope.builtin').find_files({previewer = false})<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>sb', [[<cmd>lua require('telescope.builtin').current_buffer_fuzzy_find()<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>sh', [[<cmd>lua require('telescope.builtin').help_tags()<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>st', [[<cmd>lua require('telescope.builtin').tags()<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>sd', [[<cmd>lua require('telescope.builtin').grep_string()<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>sp', [[<cmd>lua require('telescope.builtin').live_grep()<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>so', [[<cmd>lua require('telescope.builtin').tags{ only_current_buffer = true }<CR>]], { noremap = true, silent = true })
|
||||
map('n', '<leader>?', [[<cmd>lua require('telescope.builtin').oldfiles()<CR>]], { noremap = true, silent = true })
|
||||
|
||||
-- Highlight on yank
|
||||
vim.api.nvim_exec(
|
||||
[[
|
||||
augroup YankHighlight
|
||||
autocmd!
|
||||
autocmd TextYankPost * silent! lua vim.highlight.on_yank()
|
||||
augroup end
|
||||
]],
|
||||
false
|
||||
)
|
||||
|
||||
-- Y yank until the end of line
|
||||
map('n', 'Y', 'y$', { noremap = true })
|
||||
|
||||
-- Nvim Tree
|
||||
map('n', '<C-n>', ':NvimTreeToggle<CR>', opt)
|
||||
map('n', '<leader>r', ':NvimTreeRefresh<CR>', opt)
|
||||
map('n', '<leader>n', ':NvimTreeFindFile<CR>', opt)
|
||||
|
||||
-- go.nvim settings
|
||||
vim.api.nvim_exec(
|
||||
[[
|
||||
autocmd BufWritePre *.go :silent! lua require('go.format').goimport()
|
||||
]],
|
||||
false
|
||||
)
|
||||
require('go').setup()
|
||||
|
||||
-- LSP settings
|
||||
local nvim_lsp = require 'lspconfig'
|
||||
local on_attach = function(_, bufnr)
|
||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
|
||||
local opts = { noremap = true, silent = true }
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<Cmd>lua vim.lsp.buf.declaration()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
||||
-- vim.api.nvim_buf_set_keymap(bufnr, 'v', '<leader>ca', '<cmd>lua vim.lsp.buf.range_code_action()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>so', [[<cmd>lua require('telescope.builtin').lsp_document_symbols()<CR>]], opts)
|
||||
vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]]
|
||||
end
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
-- Enable the following language servers
|
||||
local servers = { 'bashls', 'dockerls', 'gopls', 'pyright', 'yamlls' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
nvim_lsp[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
-- Sumneko Lua Language Server
|
||||
local sumneko_root_path
|
||||
local sumneko_binary
|
||||
sumneko_root_path = vim.fn.getenv("HOME").."/.local/share/lua-language-server"
|
||||
sumneko_binary = sumneko_root_path .. "/bin/lua-language-server"
|
||||
|
||||
-- Make runtime files discoverable to the server
|
||||
local runtime_path = vim.split(package.path, ';')
|
||||
table.insert(runtime_path, 'lua/?.lua')
|
||||
table.insert(runtime_path, 'lua/?/init.lua')
|
||||
|
||||
require('lspconfig').sumneko_lua.setup {
|
||||
cmd = { sumneko_binary, '-E', sumneko_root_path .. '/main.lua' },
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
-- Setup your lua path
|
||||
path = runtime_path,
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = { 'vim' },
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = vim.api.nvim_get_runtime_file('', true),
|
||||
preloadFileSize = 1000,
|
||||
},
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- Bash LSP
|
||||
require('lspconfig').bashls.setup{}
|
||||
|
||||
-- Docker LSP
|
||||
require('lspconfig').dockerls.setup{}
|
||||
|
||||
-- JSON LSP
|
||||
require('lspconfig').jsonls.setup{}
|
||||
|
||||
-- Nim LSP
|
||||
require('lspconfig').nimls.setup{}
|
||||
|
||||
-- Pyright (Python) LSP
|
||||
require('lspconfig').pyright.setup{}
|
||||
|
||||
-- Treesitter configuration
|
||||
-- Parsers must be installed manually via :TSInstall
|
||||
require('nvim-treesitter.configs').setup {
|
||||
highlight = {
|
||||
enable = true, -- false will disable the whole extension
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = 'gnn',
|
||||
node_incremental = 'grn',
|
||||
scope_incremental = 'grc',
|
||||
node_decremental = 'grm',
|
||||
},
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
textobjects = {
|
||||
select = {
|
||||
enable = true,
|
||||
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
|
||||
keymaps = {
|
||||
-- You can use the capture groups defined in textobjects.scm
|
||||
['af'] = '@function.outer',
|
||||
['if'] = '@function.inner',
|
||||
['ac'] = '@class.outer',
|
||||
['ic'] = '@class.inner',
|
||||
},
|
||||
},
|
||||
move = {
|
||||
enable = true,
|
||||
set_jumps = true, -- whether to set jumps in the jumplist
|
||||
goto_next_start = {
|
||||
[']m'] = '@function.outer',
|
||||
[']]'] = '@class.outer',
|
||||
},
|
||||
goto_next_end = {
|
||||
[']M'] = '@function.outer',
|
||||
[']['] = '@class.outer',
|
||||
},
|
||||
goto_previous_start = {
|
||||
['[m'] = '@function.outer',
|
||||
['[['] = '@class.outer',
|
||||
},
|
||||
goto_previous_end = {
|
||||
['[M'] = '@function.outer',
|
||||
['[]'] = '@class.outer',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- Set completeopt to have a better completion experience
|
||||
vim.o.completeopt = 'menuone,noinsert'
|
||||
|
||||
-- Compe setup
|
||||
require('compe').setup {
|
||||
source = {
|
||||
path = true,
|
||||
nvim_lsp = true,
|
||||
luasnip = true,
|
||||
buffer = false,
|
||||
calc = false,
|
||||
nvim_lua = false,
|
||||
vsnip = false,
|
||||
ultisnips = false,
|
||||
},
|
||||
}
|
||||
|
||||
-- Utility functions for compe and luasnip
|
||||
local t = function(str)
|
||||
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
||||
end
|
||||
|
||||
local check_back_space = function()
|
||||
local col = vim.fn.col '.' - 1
|
||||
if col == 0 or vim.fn.getline('.'):sub(col, col):match '%s' then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
-- Use (s-)tab to:
|
||||
--- move to prev/next item in completion menuone
|
||||
--- jump to prev/next snippet's placeholder
|
||||
local luasnip = require 'luasnip'
|
||||
|
||||
_G.tab_complete = function()
|
||||
if vim.fn.pumvisible() == 1 then
|
||||
return t '<C-n>'
|
||||
elseif luasnip.expand_or_jumpable() then
|
||||
return t '<Plug>luasnip-expand-or-jump'
|
||||
elseif check_back_space() then
|
||||
return t '<Tab>'
|
||||
else
|
||||
return vim.fn['compe#complete']()
|
||||
end
|
||||
end
|
||||
|
||||
_G.s_tab_complete = function()
|
||||
if vim.fn.pumvisible() == 1 then
|
||||
return t '<C-p>'
|
||||
elseif luasnip.jumpable(-1) then
|
||||
return t '<Plug>luasnip-jump-prev'
|
||||
else
|
||||
return t '<S-Tab>'
|
||||
end
|
||||
end
|
||||
|
||||
-- Map tab to the above tab complete functiones
|
||||
map('i', '<Tab>', 'v:lua.tab_complete()', { expr = true })
|
||||
map('s', '<Tab>', 'v:lua.tab_complete()', { expr = true })
|
||||
map('i', '<S-Tab>', 'v:lua.s_tab_complete()', { expr = true })
|
||||
map('s', '<S-Tab>', 'v:lua.s_tab_complete()', { expr = true })
|
||||
|
||||
-- Map compe confirm and complete functions
|
||||
map('i', '<cr>', 'compe#confirm("<cr>")', { expr = true })
|
||||
map('i', '<c-space>', 'compe#complete()', { expr = true })
|
||||
|
105
.config/rofi/config.rasi
Normal file
105
.config/rofi/config.rasi
Normal file
@ -0,0 +1,105 @@
|
||||
configuration{
|
||||
modi: "drun,Emoji:/usr/bin/rofimoji -a copy";
|
||||
lines: 5;
|
||||
font: "CaskaydiaCove Nerd Font Mono 22";
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus-Dark";
|
||||
terminal: "xfce4-terminal";
|
||||
drun-display-format: "{icon} {name}";
|
||||
location: 0;
|
||||
disable-history: false;
|
||||
hide-scrollbar: true;
|
||||
display-drun: " Apps ";
|
||||
display-run: " Run ";
|
||||
display-window: " window";
|
||||
display-Network: " Network";
|
||||
display-Bookmarks: " Bookmarks";
|
||||
display-Emoji: " 😀 Emoji";
|
||||
sidebar-mode: true;
|
||||
}
|
||||
|
||||
@theme "catppuccin"
|
||||
|
||||
element-text, element-icon , mode-switcher {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
window {
|
||||
height: 1200px;
|
||||
width: 1500px;
|
||||
border: 3px;
|
||||
border-color: @border-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @bg-col;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @bg-col;
|
||||
border-radius: 3px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
text-color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 6px 0px 0px;
|
||||
margin: 10px 0px 0px 20px;
|
||||
columns: 2;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
background-color: @bg-col;
|
||||
text-color: @fg-col ;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 25px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected-col ;
|
||||
text-color: @fg-col2 ;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
background-color: @bg-col-light;
|
||||
text-color: @grey;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @bg-col;
|
||||
text-color: @blue;
|
||||
}
|
@ -1,44 +1,49 @@
|
||||
## FIRST LINE/ROW: Info & Status
|
||||
[username]
|
||||
format = " [$user]($style)@"
|
||||
style_user = "#F48FB1"
|
||||
style_user = "#f38ba8"
|
||||
style_root = "bold red"
|
||||
show_always = true
|
||||
|
||||
# Second param
|
||||
[hostname]
|
||||
format = "[$hostname]($style):"
|
||||
style = "bright white"
|
||||
trim_at = "-"
|
||||
style = "#b4befe"
|
||||
trim_at = "."
|
||||
ssh_only = false
|
||||
disabled = false
|
||||
|
||||
# Third param
|
||||
[directory]
|
||||
style = "#F2B482"
|
||||
style = "#fab387"
|
||||
truncation_length = 0
|
||||
truncate_to_repo = true
|
||||
truncation_symbol = "repo: "
|
||||
|
||||
# Before all the version info (python, nodejs, php, etc.)
|
||||
[git_status]
|
||||
style = "white"
|
||||
style = "#cdd6f4"
|
||||
ahead = "⇡${count}"
|
||||
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
|
||||
behind = "⇣${count}"
|
||||
deleted = "x"
|
||||
|
||||
[container]
|
||||
format = "[$symbol \\[$name\\]]($style)"
|
||||
|
||||
# Last param in the first line/row
|
||||
[cmd_duration]
|
||||
min_time = 1
|
||||
style = "#FFE6B3"
|
||||
style = "#f9e2af"
|
||||
format = "[$duration]($style)"
|
||||
disabled = false
|
||||
|
||||
# Prompt: param 2
|
||||
[character]
|
||||
success_symbol = " [%%](#63F2F1)"
|
||||
error_symbol = " [](#ff0000)"
|
||||
format = "$symbol "
|
||||
success_symbol = " [%](#94e2d5)"
|
||||
error_symbol = " [%](#d20f39)"
|
||||
vicmd_symbol = " [<](#94e2d5)"
|
||||
|
||||
# SYMBOLS
|
||||
[status]
|
1
.config/zathura/.github/issue_template.md
vendored
Normal file
1
.config/zathura/.github/issue_template.md
vendored
Normal file
@ -0,0 +1 @@
|
||||
> If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug.
|
1
.config/zathura/.github/pull_request_template.md
vendored
Normal file
1
.config/zathura/.github/pull_request_template.md
vendored
Normal file
@ -0,0 +1 @@
|
||||
> If you're fixing a UI issue, make sure you take two screenshots. One that shows the actual bug and another that shows how you fixed it.
|
37
.config/zathura/catppuccin
Normal file
37
.config/zathura/catppuccin
Normal file
@ -0,0 +1,37 @@
|
||||
set default-fg "#d9e0ee"
|
||||
set default-bg "#1e1d2f"
|
||||
|
||||
set completion-bg "#302d41"
|
||||
set completion-fg "#d9e0ee"
|
||||
set completion-highlight-bg "#575268"
|
||||
set completion-highlight-fg "#d9e0ee"
|
||||
set completion-group-bg "#302d41"
|
||||
set completion-group-fg "#96cdfb"
|
||||
|
||||
set statusbar-fg "#d9e0ee"
|
||||
set statusbar-bg "#302d41"
|
||||
|
||||
set notification-bg "#302d41"
|
||||
set notification-fg "#d9e0ee"
|
||||
set notification-error-bg "#302d41"
|
||||
set notification-error-fg "#f28fad"
|
||||
set notification-warning-bg "#302d41"
|
||||
set notification-warning-fg "#fae3b0"
|
||||
|
||||
set inputbar-fg "#d9e0ee"
|
||||
set inputbar-bg "#302d41"
|
||||
|
||||
set recolor-lightcolor "#1e1d2f"
|
||||
set recolor-darkcolor "#d9e0ee"
|
||||
|
||||
set index-fg "#d9e0ee"
|
||||
set index-bg "#1e1d2f"
|
||||
set index-active-fg "#d9e0ee"
|
||||
set index-active-bg "#302d41"
|
||||
|
||||
set render-loading-bg "#1e1d2f"
|
||||
set render-loading-fg "#d9e0ee"
|
||||
|
||||
set highlight-color "#575268"
|
||||
set highlight-fg "#f5c2e7"
|
||||
set highlight-active-color "#f5c2e7"
|
5
.config/zathura/zathurarc
Normal file
5
.config/zathura/zathurarc
Normal file
@ -0,0 +1,5 @@
|
||||
set window-title-basename "true"
|
||||
set selection-clipboard "clipboard"
|
||||
set adjust-open width
|
||||
set recolor true
|
||||
include catppuccin
|
604
.config/zellij/config.yaml
Normal file
604
.config/zellij/config.yaml
Normal file
@ -0,0 +1,604 @@
|
||||
---
|
||||
# Configuration for zellij.
|
||||
|
||||
# In order to troubleshoot your configuration try using the following command:
|
||||
# `zellij setup --check`
|
||||
# It should show current config locations and features that are enabled.
|
||||
|
||||
keybinds:
|
||||
unbind: true
|
||||
normal:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's',]
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [MoveFocusOrTab: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocusOrTab: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
locked:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'g',]
|
||||
resize:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'n', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [Resize: Left,]
|
||||
key: [Char: 'h', Left,]
|
||||
- action: [Resize: Down,]
|
||||
key: [Char: 'j', Down,]
|
||||
- action: [Resize: Up,]
|
||||
key: [Char: 'k', Up, ]
|
||||
- action: [Resize: Right,]
|
||||
key: [Char: 'l', Right,]
|
||||
- action: [Resize: Increase,]
|
||||
key: [Char: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Char: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [Char: '-']
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
pane:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'p', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Char: 'h', Left,]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Char: 'l', Right,]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Char: 'j', Down,]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Char: 'k', Up,]
|
||||
- action: [SwitchFocus,]
|
||||
key: [Char: 'p']
|
||||
- action: [NewPane: , SwitchToMode: Normal,]
|
||||
key: [Char: 'n',]
|
||||
- action: [NewPane: Down, SwitchToMode: Normal,]
|
||||
key: [Char: 'd',]
|
||||
- action: [NewPane: Right, SwitchToMode: Normal,]
|
||||
key: [Char: 'r',]
|
||||
- action: [CloseFocus, SwitchToMode: Normal,]
|
||||
key: [Char: 'x',]
|
||||
- action: [ToggleFocusFullscreen, SwitchToMode: Normal,]
|
||||
key: [Char: 'f',]
|
||||
- action: [TogglePaneFrames, SwitchToMode: Normal,]
|
||||
key: [Char: 'z',]
|
||||
- action: [ToggleFloatingPanes, SwitchToMode: Normal,]
|
||||
key: [Char: 'w']
|
||||
- action: [TogglePaneEmbedOrFloating, SwitchToMode: Normal,]
|
||||
key: [Char: 'e']
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
- action: [SwitchToMode: RenamePane, PaneNameInput: [0],]
|
||||
key: [Char: 'c']
|
||||
move:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'h', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [MovePane: ,]
|
||||
key: [Char: 'n', Char: "\t",]
|
||||
- action: [MovePane: Left,]
|
||||
key: [Char: 'h', Left,]
|
||||
- action: [MovePane: Down,]
|
||||
key: [Char: 'j', Down,]
|
||||
- action: [MovePane: Up,]
|
||||
key: [Char: 'k', Up, ]
|
||||
- action: [MovePane: Right,]
|
||||
key: [Char: 'l', Right,]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
tab:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 't', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: RenameTab, TabNameInput: [0],]
|
||||
key: [Char: 'r']
|
||||
- action: [GoToPreviousTab,]
|
||||
key: [ Char: 'h', Left, Up, Char: 'k',]
|
||||
- action: [GoToNextTab,]
|
||||
key: [ Char: 'l', Right,Down, Char: 'j']
|
||||
- action: [NewTab: , SwitchToMode: Normal,]
|
||||
key: [ Char: 'n',]
|
||||
- action: [CloseTab, SwitchToMode: Normal,]
|
||||
key: [ Char: 'x',]
|
||||
- action: [ToggleActiveSyncTab, SwitchToMode: Normal,]
|
||||
key: [Char: 's']
|
||||
- action: [GoToTab: 1, SwitchToMode: Normal,]
|
||||
key: [ Char: '1',]
|
||||
- action: [GoToTab: 2, SwitchToMode: Normal,]
|
||||
key: [ Char: '2',]
|
||||
- action: [GoToTab: 3, SwitchToMode: Normal,]
|
||||
key: [ Char: '3',]
|
||||
- action: [GoToTab: 4, SwitchToMode: Normal,]
|
||||
key: [ Char: '4',]
|
||||
- action: [GoToTab: 5, SwitchToMode: Normal,]
|
||||
key: [ Char: '5',]
|
||||
- action: [GoToTab: 6, SwitchToMode: Normal,]
|
||||
key: [ Char: '6',]
|
||||
- action: [GoToTab: 7, SwitchToMode: Normal,]
|
||||
key: [ Char: '7',]
|
||||
- action: [GoToTab: 8, SwitchToMode: Normal,]
|
||||
key: [ Char: '8',]
|
||||
- action: [GoToTab: 9, SwitchToMode: Normal,]
|
||||
key: [ Char: '9',]
|
||||
- action: [ToggleTab]
|
||||
key: [ Char: "\t" ]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
scroll:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 's', Char: ' ', Char: "\n", Esc]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [SwitchToMode: Session,]
|
||||
key: [Ctrl: 'o',]
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [ScrollToBottom, SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'c',]
|
||||
- action: [ScrollDown,]
|
||||
key: [Char: 'j', Down,]
|
||||
- action: [ScrollUp,]
|
||||
key: [Char: 'k', Up,]
|
||||
- action: [PageScrollDown,]
|
||||
key: [Ctrl: 'f', PageDown, Right, Char: 'l',]
|
||||
- action: [PageScrollUp,]
|
||||
key: [Ctrl: 'b', PageUp, Left, Char: 'h',]
|
||||
- action: [HalfPageScrollDown,]
|
||||
key: [Char: 'd',]
|
||||
- action: [HalfPageScrollUp,]
|
||||
key: [Char: 'u',]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
renametab:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Char: "\n", Ctrl: 'c', Esc]
|
||||
- action: [TabNameInput: [27] , SwitchToMode: Tab,]
|
||||
key: [Esc,]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
renamepane:
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Char: "\n", Ctrl: 'c', Esc]
|
||||
- action: [PaneNameInput: [27] , SwitchToMode: Pane,]
|
||||
key: [Esc,]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
session:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tmux,]
|
||||
key: [Ctrl: 'b',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'o', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [Detach,]
|
||||
key: [Char: 'd',]
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
tmux:
|
||||
- action: [SwitchToMode: Locked,]
|
||||
key: [Ctrl: 'g']
|
||||
- action: [SwitchToMode: Resize,]
|
||||
key: [Ctrl: 'n',]
|
||||
- action: [SwitchToMode: Pane,]
|
||||
key: [Ctrl: 'p',]
|
||||
- action: [SwitchToMode: Move,]
|
||||
key: [Ctrl: 'h',]
|
||||
- action: [SwitchToMode: Tab,]
|
||||
key: [Ctrl: 't',]
|
||||
- action: [SwitchToMode: Normal,]
|
||||
key: [Ctrl: 'o', Char: "\n", Char: ' ', Esc]
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [Ctrl: 's']
|
||||
- action: [SwitchToMode: Scroll,]
|
||||
key: [ Char: '[']
|
||||
- action: [Write: [2,], SwitchToMode: Normal]
|
||||
key: [Ctrl: 'b']
|
||||
- action: [NewPane: Down, SwitchToMode: Normal,]
|
||||
key: [Char: "\"",]
|
||||
- action: [NewPane: Right, SwitchToMode: Normal,]
|
||||
key: [Char: '%',]
|
||||
- action: [ToggleFocusFullscreen, SwitchToMode: Normal,]
|
||||
key: [Char: 'z',]
|
||||
- action: [NewTab: , SwitchToMode: Normal,]
|
||||
key: [ Char: 'c',]
|
||||
- action: [SwitchToMode: RenameTab, TabNameInput: [0],]
|
||||
key: [Char: ',']
|
||||
- action: [GoToPreviousTab, SwitchToMode: Normal,]
|
||||
key: [ Char: 'p']
|
||||
- action: [GoToNextTab, SwitchToMode: Normal,]
|
||||
key: [ Char: 'n']
|
||||
- action: [MoveFocus: Left, SwitchToMode: Normal,]
|
||||
key: [ Left,]
|
||||
- action: [MoveFocus: Right, SwitchToMode: Normal,]
|
||||
key: [ Right,]
|
||||
- action: [MoveFocus: Down, SwitchToMode: Normal,]
|
||||
key: [ Down,]
|
||||
- action: [MoveFocus: Up, SwitchToMode: Normal,]
|
||||
key: [ Up,]
|
||||
- action: [MoveFocus: Left, SwitchToMode: Normal,]
|
||||
key: [ Char: 'h']
|
||||
- action: [MoveFocus: Right, SwitchToMode: Normal,]
|
||||
key: [ Char: 'l']
|
||||
- action: [MoveFocus: Down, SwitchToMode: Normal,]
|
||||
key: [ Char: 'j']
|
||||
- action: [MoveFocus: Up, SwitchToMode: Normal,]
|
||||
key: [ Char: 'k']
|
||||
- action: [MoveFocus: Left,]
|
||||
key: [ Alt: 'h',]
|
||||
- action: [MoveFocus: Right,]
|
||||
key: [ Alt: 'l',]
|
||||
- action: [MoveFocus: Down,]
|
||||
key: [ Alt: 'j',]
|
||||
- action: [MoveFocus: Up,]
|
||||
key: [ Alt: 'k',]
|
||||
- action: [FocusPreviousPane,]
|
||||
key: [ Alt: '[',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Alt: ']',]
|
||||
- action: [FocusNextPane,]
|
||||
key: [ Char: 'o']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '=']
|
||||
- action: [Resize: Increase,]
|
||||
key: [ Alt: '+']
|
||||
- action: [Resize: Decrease,]
|
||||
key: [ Alt: '-']
|
||||
- action: [Detach,]
|
||||
key: [Char: 'd',]
|
||||
plugins:
|
||||
- path: tab-bar
|
||||
tag: tab-bar
|
||||
- path: status-bar
|
||||
tag: status-bar
|
||||
- path: strider
|
||||
tag: strider
|
||||
themes:
|
||||
dracula:
|
||||
fg: [248, 248, 242]
|
||||
bg: [40, 42, 54]
|
||||
black: [0, 0, 0]
|
||||
gray: [68, 71, 90]
|
||||
red: [255, 85, 85]
|
||||
green: [80, 250, 123]
|
||||
yellow: [241, 250, 140]
|
||||
blue: [98, 114, 164]
|
||||
magenta: [255, 121, 198]
|
||||
cyan: [139, 233, 253]
|
||||
white: [255, 255, 255]
|
||||
orange: [255, 184, 108]
|
||||
|
||||
catppuccin:
|
||||
bg:
|
||||
- 48
|
||||
- 45
|
||||
- 65
|
||||
black:
|
||||
- 22
|
||||
- 19
|
||||
- 32
|
||||
blue:
|
||||
- 150
|
||||
- 205
|
||||
- 251
|
||||
cyan:
|
||||
- 26
|
||||
- 24
|
||||
- 38
|
||||
fg:
|
||||
- 217
|
||||
- 224
|
||||
- 238
|
||||
gray:
|
||||
- 87
|
||||
- 82
|
||||
- 104
|
||||
green:
|
||||
- 171
|
||||
- 233
|
||||
- 179
|
||||
magenta:
|
||||
- 245
|
||||
- 194
|
||||
- 231
|
||||
orange:
|
||||
- 248
|
||||
- 189
|
||||
- 150
|
||||
red:
|
||||
- 242
|
||||
- 143
|
||||
- 173
|
||||
white:
|
||||
- 217
|
||||
- 224
|
||||
- 238
|
||||
yellow:
|
||||
- 250
|
||||
- 227
|
||||
- 176
|
||||
# Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
||||
# eg. when terminal window with an active zellij session is closed
|
||||
# Options:
|
||||
# - detach (Default)
|
||||
# - quit
|
||||
#on_force_close: quit
|
||||
|
||||
# Send a request for a simplified ui (without arrow fonts) to plugins
|
||||
# Options:
|
||||
# - true
|
||||
# - false (Default)
|
||||
#simplified_ui: true
|
||||
|
||||
# Choose the path to the default shell that zellij will use for opening new panes
|
||||
# Default: $SHELL
|
||||
|
||||
# Toggle between having pane frames around the panes
|
||||
# Options:
|
||||
# - true (default)
|
||||
# - false
|
||||
#pane_frames: true
|
||||
|
||||
# Choose the theme that is specified in the themes section.
|
||||
# Default: default
|
||||
theme: catppuccin
|
||||
|
||||
# Choose the mode that zellij uses when starting up.
|
||||
# Default: normal
|
||||
#default_mode: locked
|
||||
|
||||
# Toggle enabling the mouse mode.
|
||||
# On certain configurations, or terminals this could
|
||||
# potentially interfere with copying text.
|
||||
# Options:
|
||||
# - true (default)
|
||||
# - false
|
||||
#mouse_mode: false
|
||||
|
||||
# Configure the scroll back buffer size
|
||||
# This is the number of lines zellij stores for each pane in the scroll back
|
||||
# buffer. Excess number of lines are discarded in a FIFO fashion.
|
||||
# Valid values: positive integers
|
||||
# Default value: 10000
|
||||
#scroll_buffer_size: 10000
|
||||
|
||||
# Provide a command to execute when copying text. The text will be piped to
|
||||
# the stdin of the program to perform the copy. This can be used with
|
||||
# terminal emulators which do not support the OSC 52 ANSI control sequence
|
||||
# that will be used by default if this option is not set.
|
||||
# Examples:
|
||||
copy_command: "xclip -selection clipboard" # x11
|
||||
#copy_command: "wl-copy" # wayland
|
||||
#copy_command: "pbcopy" # osx
|
||||
|
||||
# Choose the destination for copied text
|
||||
# Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
||||
# Does not apply when using copy_command.
|
||||
# Options:
|
||||
# - system (default)
|
||||
# - primary
|
||||
# copy_clipboard: system
|
@ -1,13 +1,12 @@
|
||||
[commit]
|
||||
[core]
|
||||
editor = nvim
|
||||
pager = "git diff --name-only --diff-filter=d | xargs bat --diff"
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[pull]
|
||||
rebase = true
|
||||
[user]
|
||||
email = hyperreal@unixcat.coffee
|
||||
email = 23226432+hyperreal64@users.noreply.github.com
|
||||
name = Jeffrey Serio
|
||||
[global]
|
||||
|
12
.local/share/rofi/themes/catppuccin.rasi
Normal file
12
.local/share/rofi/themes/catppuccin.rasi
Normal file
@ -0,0 +1,12 @@
|
||||
* {
|
||||
bg-col: #1e1e2e;
|
||||
bg-col-light: #313244;
|
||||
border-col: #43465a;
|
||||
selected-col: #181825;
|
||||
blue: #f38ba8;
|
||||
fg-col: #c6d0f5;
|
||||
fg-col2: #cba6f7;
|
||||
grey: #696d86;
|
||||
width: 600;
|
||||
}
|
||||
|
1
.lscolors.sh
Normal file
1
.lscolors.sh
Normal file
File diff suppressed because one or more lines are too long
@ -1,79 +0,0 @@
|
||||
# --- Dracula Theme -----------------------------------------------------------
|
||||
#
|
||||
# Dracula Color Pallette
|
||||
white='#f8f8f2' # Foreground
|
||||
gray='#44475a' # Current Line / Selection
|
||||
dark_gray='#282a36' # Background
|
||||
light_purple='#bd93f9' # Purple
|
||||
dark_purple='#6272a4' # Comment
|
||||
cyan='#8be9fd' # Cyan
|
||||
green='#50fa7b' # Green
|
||||
orange='#ffb86c' # Orange
|
||||
red='#ff5555' # Red
|
||||
pink='#ff79c6' # Pink
|
||||
yellow='#f1fa8c' # Yellow
|
||||
|
||||
# Focused pane colours:
|
||||
tmux_conf_theme_focused_pane_fg='default'
|
||||
tmux_conf_theme_focused_pane_bg="${gray}"
|
||||
|
||||
# Pane borders colours:
|
||||
tmux_conf_theme_pane_border="${gray}"
|
||||
tmux_conf_theme_pane_active_border="${light_purple}"
|
||||
|
||||
# Pane indicator colours
|
||||
tmux_conf_theme_pane_indicator="${dark_purple}"
|
||||
tmux_conf_theme_pane_active_indicator="${light_purple}"
|
||||
|
||||
# Status line message style
|
||||
tmux_conf_theme_message_fg="${white}"
|
||||
tmux_conf_theme_message_bg="${dark_purple}"
|
||||
tmux_conf_theme_message_attr='bold'
|
||||
|
||||
# Status line command style (<prefix> : Escape)
|
||||
tmux_conf_theme_message_command_fg="${white}"
|
||||
tmux_conf_theme_message_command_bg="${gray}"
|
||||
tmux_conf_theme_message_command_attr='bold'
|
||||
|
||||
# Window modes style
|
||||
tmux_conf_theme_mode_fg="${gray}"
|
||||
tmux_conf_theme_mode_bg="${pink}"
|
||||
tmux_conf_theme_mode_attr='bold'
|
||||
|
||||
# Status line style
|
||||
tmux_conf_theme_status_fg="${white}"
|
||||
tmux_conf_theme_status_bg="${gray}"
|
||||
tmux_conf_theme_status_attr='none'
|
||||
|
||||
# Window status style
|
||||
tmux_conf_theme_window_status_fg="${white}"
|
||||
tmux_conf_theme_window_status_bg="${gray}"
|
||||
|
||||
# Window current status style
|
||||
tmux_conf_theme_window_status_current_fg="${white}"
|
||||
tmux_conf_theme_window_status_current_bg="${dark_purple}"
|
||||
tmux_conf_theme_window_status_current_attr='none'
|
||||
|
||||
# Window bell status style
|
||||
tmux_conf_theme_window_status_bell_fg="${cyan}"
|
||||
tmux_conf_theme_window_status_bell_bg='default'
|
||||
tmux_conf_theme_window_status_bell_attr='blink,bold'
|
||||
|
||||
# Windows last status style
|
||||
tmux_conf_theme_window_status_last_fg="${light_purple}"
|
||||
tmux_conf_theme_window_status_last_bg='default'
|
||||
tmux_conf_theme_window_status_last_attr='none'
|
||||
|
||||
# Status left style
|
||||
tmux_conf_theme_status_left_fg="${dark_gray},${dark_gray},${dark_gray}"
|
||||
tmux_conf_theme_status_left_bg="${green},${pink},${light_purple}"
|
||||
tmux_conf_theme_status_left_attr='bold,none,none'
|
||||
|
||||
# Status right style
|
||||
tmux_conf_theme_status_right_fg="${white},${dark_gray},${dark_gray}"
|
||||
tmux_conf_theme_status_right_bg="${dark_purple},${light_purple},${orange}"
|
||||
tmux_conf_theme_status_right_attr='none,none,bold'
|
||||
|
||||
# Clock
|
||||
tmux_conf_theme_clock_colour="${light_purple}"
|
||||
|
@ -1,80 +0,0 @@
|
||||
# --- Embark Theme -----------------------------------------------------------
|
||||
#
|
||||
# Embark Color Pallette
|
||||
white='#cbe3e7' # Foreground
|
||||
gray='#2D2B40' # Current Line / Selection
|
||||
dark_gray='#2D2B40' # Background
|
||||
light_purple='#D4BFFF' # Purple
|
||||
dark_purple='#585273' # Comment
|
||||
cyan='#63f2f1' # Cyan
|
||||
green='#62d196' # Green
|
||||
orange='#f2b482' # Orange
|
||||
red='#f02e6e' # Red
|
||||
pink='#f48fb1' # Pink
|
||||
yellow='#ffe6b3' # Yellow
|
||||
blue='#65B2FF' # Blue
|
||||
|
||||
# Focused pane colours:
|
||||
tmux_conf_theme_focused_pane_fg='default'
|
||||
tmux_conf_theme_focused_pane_bg="${gray}"
|
||||
|
||||
# Pane borders colours:
|
||||
tmux_conf_theme_pane_border="${gray}"
|
||||
tmux_conf_theme_pane_active_border="${light_purple}"
|
||||
|
||||
# Pane indicator colours
|
||||
tmux_conf_theme_pane_indicator="${dark_purple}"
|
||||
tmux_conf_theme_pane_active_indicator="${light_purple}"
|
||||
|
||||
# Status line message style
|
||||
tmux_conf_theme_message_fg="${white}"
|
||||
tmux_conf_theme_message_bg="${dark_purple}"
|
||||
tmux_conf_theme_message_attr='bold'
|
||||
|
||||
# Status line command style (<prefix> : Escape)
|
||||
tmux_conf_theme_message_command_fg="${white}"
|
||||
tmux_conf_theme_message_command_bg="${gray}"
|
||||
tmux_conf_theme_message_command_attr='bold'
|
||||
|
||||
# Window modes style
|
||||
tmux_conf_theme_mode_fg="${gray}"
|
||||
tmux_conf_theme_mode_bg="${pink}"
|
||||
tmux_conf_theme_mode_attr='bold'
|
||||
|
||||
# Status line style
|
||||
tmux_conf_theme_status_fg="${white}"
|
||||
tmux_conf_theme_status_bg="${dark_gray}"
|
||||
tmux_conf_theme_status_attr='none'
|
||||
|
||||
# Window status style
|
||||
tmux_conf_theme_window_status_fg="${white}"
|
||||
tmux_conf_theme_window_status_bg="${dark_gray}"
|
||||
|
||||
# Window current status style
|
||||
tmux_conf_theme_window_status_current_fg="${white}"
|
||||
tmux_conf_theme_window_status_current_bg="${dark_purple}"
|
||||
tmux_conf_theme_window_status_current_attr='none'
|
||||
|
||||
# Window bell status style
|
||||
tmux_conf_theme_window_status_bell_fg="${cyan}"
|
||||
tmux_conf_theme_window_status_bell_bg='default'
|
||||
tmux_conf_theme_window_status_bell_attr='blink,bold'
|
||||
|
||||
# Windows last status style
|
||||
tmux_conf_theme_window_status_last_fg="${light_purple}"
|
||||
tmux_conf_theme_window_status_last_bg='default'
|
||||
tmux_conf_theme_window_status_last_attr='none'
|
||||
|
||||
# Status left style
|
||||
tmux_conf_theme_status_left_fg="${dark_gray},${dark_gray},${dark_gray}"
|
||||
tmux_conf_theme_status_left_bg="${green},${pink},${light_purple}"
|
||||
tmux_conf_theme_status_left_attr='bold,none,none'
|
||||
|
||||
# Status right style
|
||||
tmux_conf_theme_status_right_fg="${white},${dark_gray},${dark_gray}"
|
||||
tmux_conf_theme_status_right_bg="${dark_purple},${cyan},${orange}"
|
||||
tmux_conf_theme_status_right_attr='none,none,bold'
|
||||
|
||||
# Clock
|
||||
tmux_conf_theme_clock_colour="${light_purple}"
|
||||
|
@ -1,144 +0,0 @@
|
||||
/**
|
||||
* User: keystroke3
|
||||
* Copyright: keystroke3
|
||||
*
|
||||
*/
|
||||
|
||||
configuration {
|
||||
display-drun: "";
|
||||
display-run: "";
|
||||
display-window: "";
|
||||
display-ssh: "~#";
|
||||
show-icons: true;
|
||||
sidebar-mode: false;
|
||||
font: "BlexMono Nerd Font Mono 22";
|
||||
}
|
||||
|
||||
* {
|
||||
text-color: @foreground;
|
||||
active-background: rgb(170, 70, 104);
|
||||
active-foreground: @foreground;
|
||||
normal-background: @background;
|
||||
normal-foreground: @foreground;
|
||||
urgent-background: #9E2A5E;
|
||||
urgent-foreground: @foreground;
|
||||
alternate-active-background: @background;
|
||||
alternate-active-foreground: @foreground;
|
||||
alternate-normal-background: @background;
|
||||
alternate-normal-foreground: @foreground;
|
||||
alternate-urgent-background: @background;
|
||||
alternate-urgent-foreground: @foreground;
|
||||
selected-active-background: #9E2A5E;
|
||||
selected-active-foreground: @foreground;
|
||||
selected-normal-background: rgb(170, 70, 104);
|
||||
selected-normal-foreground: #0c0816;
|
||||
selected-urgent-background: #9D596B;
|
||||
selected-urgent-foreground: @foreground;
|
||||
background-color: #0c0816;
|
||||
background: #D03C6E30;
|
||||
foreground: #8fc5c6;
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
window {
|
||||
location: center;
|
||||
anchor: center;
|
||||
height: 50%;
|
||||
width: 50%;
|
||||
orientation: vertical;
|
||||
children: [mainbox];
|
||||
border: 2px 2px 2px 0px;
|
||||
border-color: @active-background;
|
||||
hide-scrollbar: true;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
spacing: 0.2em;
|
||||
children: [inputbar, listview];
|
||||
}
|
||||
|
||||
|
||||
|
||||
listview {
|
||||
spacing: 0.6em;
|
||||
dynamic: false;
|
||||
cycle: true;
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
border-radius: 50%;
|
||||
padding: 5px;
|
||||
border-spacing: 5px 0 0 0;
|
||||
border: 1px;
|
||||
spacing: 10px;
|
||||
margin: 5px 0 10px;
|
||||
border-color: @foreground;
|
||||
|
||||
}
|
||||
|
||||
entry{
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
prompt{
|
||||
padding: 5px;
|
||||
background-color: @foreground;
|
||||
text-color: @background-color;
|
||||
border: 1px;
|
||||
border-radius: 50%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
element {
|
||||
padding: 10px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
element normal.normal {
|
||||
background-color: @normal-background;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
|
||||
element normal.urgent {
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
}
|
||||
|
||||
element normal.active {
|
||||
background-color: @active-background;
|
||||
text-color: @active-foreground;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: @selected-normal-background;
|
||||
text-color: @selected-normal-foreground;
|
||||
border-color: @active-background;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @selected-urgent-background;
|
||||
text-color: @selected-urgent-foreground;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @selected-active-background;
|
||||
text-color: @selected-active-foreground;
|
||||
}
|
||||
|
||||
element alternate.normal {
|
||||
background-color: @normal-background;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
|
||||
element alternate.urgent {
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
}
|
||||
|
||||
element alternate.active {
|
||||
background-color: @active-background;
|
||||
text-color: @active-foreground;
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# /home/jas/.config/tmuxinator/azura.yml
|
||||
|
||||
name: azura
|
||||
root: ~/
|
||||
|
||||
# Optional tmux socket
|
||||
# socket_name: foo
|
||||
|
||||
# Note that the pre and post options have been deprecated and will be replaced by
|
||||
# project hooks.
|
||||
|
||||
# Project hooks
|
||||
|
||||
# Runs on project start, always
|
||||
# on_project_start: command
|
||||
|
||||
# Run on project start, the first time
|
||||
# on_project_first_start: command
|
||||
|
||||
# Run on project start, after the first time
|
||||
# on_project_restart: command
|
||||
|
||||
# Run on project exit ( detaching from tmux session )
|
||||
# on_project_exit: command
|
||||
|
||||
# Run on project stop
|
||||
# on_project_stop: command
|
||||
|
||||
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
|
||||
# pre_window: rbenv shell 2.0.0-p247
|
||||
|
||||
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
|
||||
# tmux_options: -f ~/.tmux.mac.conf
|
||||
|
||||
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
|
||||
# tmux_command: byobu
|
||||
|
||||
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
|
||||
# startup_window: editor
|
||||
|
||||
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
|
||||
# startup_pane: 1
|
||||
|
||||
# Controls whether the tmux session should be attached to automatically. Defaults to true.
|
||||
# attach: false
|
||||
|
||||
windows:
|
||||
- log: ssh jas@10.0.0.160 -t sudo journalctl -f
|
||||
- iftop: ssh jas@10.0.0.160 -t sudo iftop
|
||||
- htop: ssh jas@10.0.0.160 -t htop
|
||||
- main: ssh jas@10.0.0.160
|
@ -1,53 +0,0 @@
|
||||
# /home/jas/.config/tmuxinator/nocturnal.yml
|
||||
|
||||
name: nocturnal
|
||||
root: ~/
|
||||
|
||||
# Optional tmux socket
|
||||
# socket_name: foo
|
||||
|
||||
# Note that the pre and post options have been deprecated and will be replaced by
|
||||
# project hooks.
|
||||
|
||||
# Project hooks
|
||||
|
||||
# Runs on project start, always
|
||||
# on_project_start: command
|
||||
|
||||
# Run on project start, the first time
|
||||
# on_project_first_start: command
|
||||
|
||||
# Run on project start, after the first time
|
||||
# on_project_restart: command
|
||||
|
||||
# Run on project exit ( detaching from tmux session )
|
||||
# on_project_exit: command
|
||||
|
||||
# Run on project stop
|
||||
# on_project_stop: command
|
||||
|
||||
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
|
||||
# pre_window: rbenv shell 2.0.0-p247
|
||||
|
||||
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
|
||||
# tmux_options: -f ~/.tmux.mac.conf
|
||||
|
||||
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
|
||||
# tmux_command: byobu
|
||||
|
||||
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
|
||||
# startup_window: editor
|
||||
|
||||
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
|
||||
# startup_pane: 1
|
||||
|
||||
# Controls whether the tmux session should be attached to automatically. Defaults to true.
|
||||
# attach: false
|
||||
|
||||
windows:
|
||||
- main:
|
||||
- toolbox:
|
||||
layout: main-vertical
|
||||
panes:
|
||||
- toolbox run -c fedora-toolbox-35 nvim ~/sync/org/home.org
|
||||
- toolbox enter
|
@ -1,49 +0,0 @@
|
||||
# /home/jas/.config/tmuxinator/unixcat.yml
|
||||
|
||||
name: unixcat
|
||||
root: ~/
|
||||
|
||||
# Optional tmux socket
|
||||
# socket_name: foo
|
||||
|
||||
# Note that the pre and post options have been deprecated and will be replaced by
|
||||
# project hooks.
|
||||
|
||||
# Project hooks
|
||||
|
||||
# Runs on project start, always
|
||||
# on_project_start: command
|
||||
|
||||
# Run on project start, the first time
|
||||
# on_project_first_start: command
|
||||
|
||||
# Run on project start, after the first time
|
||||
# on_project_restart: command
|
||||
|
||||
# Run on project exit ( detaching from tmux session )
|
||||
# on_project_exit: command
|
||||
|
||||
# Run on project stop
|
||||
# on_project_stop: command
|
||||
|
||||
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
|
||||
# pre_window: rbenv shell 2.0.0-p247
|
||||
|
||||
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
|
||||
# tmux_options: -f ~/.tmux.mac.conf
|
||||
|
||||
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
|
||||
# tmux_command: byobu
|
||||
|
||||
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
|
||||
# startup_window: editor
|
||||
|
||||
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
|
||||
# startup_pane: 1
|
||||
|
||||
# Controls whether the tmux session should be attached to automatically. Defaults to true.
|
||||
# attach: false
|
||||
|
||||
windows:
|
||||
- log: ssh core@unixcat.coffee -t sudo lnav /var/log/messages
|
||||
- main: ssh core@unixcat.coffee
|
@ -1,56 +0,0 @@
|
||||
set window-title-basename "true"
|
||||
set selection-clipboard "clipboard"
|
||||
|
||||
# Dracula color theme for Zathura
|
||||
# Swaps Foreground for Background to get a light version if the user prefers
|
||||
|
||||
#
|
||||
# Dracula color theme
|
||||
#
|
||||
|
||||
set notification-error-bg "#ff5555" # Red
|
||||
set notification-error-fg "#f8f8f2" # Foreground
|
||||
set notification-warning-bg "#ffb86c" # Orange
|
||||
set notification-warning-fg "#44475a" # Selection
|
||||
set notification-bg "#282a36" # Background
|
||||
set notification-fg "#f8f8f2" # Foreground
|
||||
|
||||
set completion-bg "#282a36" # Background
|
||||
set completion-fg "#6272a4" # Comment
|
||||
set completion-group-bg "#282a36" # Background
|
||||
set completion-group-fg "#6272a4" # Comment
|
||||
set completion-highlight-bg "#44475a" # Selection
|
||||
set completion-highlight-fg "#f8f8f2" # Foreground
|
||||
|
||||
set index-bg "#282a36" # Background
|
||||
set index-fg "#f8f8f2" # Foreground
|
||||
set index-active-bg "#44475a" # Current Line
|
||||
set index-active-fg "#f8f8f2" # Foreground
|
||||
|
||||
set inputbar-bg "#282a36" # Background
|
||||
set inputbar-fg "#f8f8f2" # Foreground
|
||||
set statusbar-bg "#282a36" # Background
|
||||
set statusbar-fg "#f8f8f2" # Foreground
|
||||
|
||||
set highlight-color "#ffb86c" # Orange
|
||||
set highlight-active-color "#ff79c6" # Pink
|
||||
|
||||
set default-bg "#282a36" # Background
|
||||
set default-fg "#f8f8f2" # Foreground
|
||||
|
||||
set render-loading true
|
||||
set render-loading-fg "#282a36" # Background
|
||||
set render-loading-bg "#f8f8f2" # Foreground
|
||||
|
||||
#
|
||||
# Recolor mode settings
|
||||
#
|
||||
|
||||
set recolor-lightcolor "#282a36" # Background
|
||||
set recolor-darkcolor "#f8f8f2" # Foreground
|
||||
|
||||
#
|
||||
# Startup options
|
||||
#
|
||||
set adjust-open width
|
||||
set recolor true
|
@ -1,7 +0,0 @@
|
||||
: /home/jas/.config
|
||||
: /home/jas/.ssh
|
||||
: /home/jas/.zsh
|
||||
: /home/jas/.local/share
|
||||
: /home/jas/.local/share/Trash/files
|
||||
: /home/jas/.config/nvim
|
||||
: /home/jas/sync/org
|
@ -1,11 +0,0 @@
|
||||
Host az
|
||||
HostName azura.local
|
||||
User jas
|
||||
|
||||
Host uc
|
||||
HostName unixcat.coffee
|
||||
User core
|
||||
|
||||
Host envs
|
||||
HostName envs.net
|
||||
User hyperreal
|
@ -1,418 +0,0 @@
|
||||
# : << EOF
|
||||
# https://github.com/gpakosz/.tmux
|
||||
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
|
||||
# without any warranty.
|
||||
# Copyright 2012— Gregory Pakosz (@gpakosz).
|
||||
|
||||
|
||||
# -- navigation ----------------------------------------------------------------
|
||||
|
||||
# if you're running tmux within iTerm2
|
||||
# - and tmux is 1.9 or 1.9a
|
||||
# - and iTerm2 is configured to let option key act as +Esc
|
||||
# - and iTerm2 is configured to send [1;9A -> [1;9D for option + arrow keys
|
||||
# then uncomment the following line to make Meta + arrow keys mapping work
|
||||
#set -ga terminal-overrides "*:kUP3=\e[1;9A,*:kDN3=\e[1;9B,*:kRIT3=\e[1;9C,*:kLFT3=\e[1;9D"
|
||||
|
||||
# Appropriate terminal colors
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
|
||||
# -- windows & pane creation ---------------------------------------------------
|
||||
|
||||
# new window retains current path, possible values are:
|
||||
# - true
|
||||
# - false (default)
|
||||
tmux_conf_new_window_retain_current_path=false
|
||||
|
||||
# new pane retains current path, possible values are:
|
||||
# - true (default)
|
||||
# - false
|
||||
tmux_conf_new_pane_retain_current_path=true
|
||||
|
||||
# new pane tries to reconnect ssh sessions (experimental), possible values are:
|
||||
# - true
|
||||
# - false (default)
|
||||
tmux_conf_new_pane_reconnect_ssh=false
|
||||
|
||||
# prompt for session name when creating a new session, possible values are:
|
||||
# - true
|
||||
# - false (default)
|
||||
tmux_conf_new_session_prompt=false
|
||||
|
||||
|
||||
# -- display -------------------------------------------------------------------
|
||||
|
||||
# RGB 24-bit colour support (tmux >= 2.2), possible values are:
|
||||
# - true
|
||||
# - false (default)
|
||||
tmux_conf_24b_colour=false
|
||||
|
||||
# default theme
|
||||
tmux_conf_theme_colour_1="#080808" # dark gray
|
||||
tmux_conf_theme_colour_2="#303030" # gray
|
||||
tmux_conf_theme_colour_3="#8a8a8a" # light gray
|
||||
tmux_conf_theme_colour_4="#00afff" # light blue
|
||||
tmux_conf_theme_colour_5="#ffff00" # yellow
|
||||
tmux_conf_theme_colour_6="#080808" # dark gray
|
||||
tmux_conf_theme_colour_7="#e4e4e4" # white
|
||||
tmux_conf_theme_colour_8="#080808" # dark gray
|
||||
tmux_conf_theme_colour_9="#ffff00" # yellow
|
||||
tmux_conf_theme_colour_10="#ff00af" # pink
|
||||
tmux_conf_theme_colour_11="#5fff00" # green
|
||||
tmux_conf_theme_colour_12="#8a8a8a" # light gray
|
||||
tmux_conf_theme_colour_13="#e4e4e4" # white
|
||||
tmux_conf_theme_colour_14="#080808" # dark gray
|
||||
tmux_conf_theme_colour_15="#080808" # dark gray
|
||||
tmux_conf_theme_colour_16="#d70000" # red
|
||||
tmux_conf_theme_colour_17="#e4e4e4" # white
|
||||
|
||||
# default theme (ansi)
|
||||
#tmux_conf_theme_colour_1="colour0"
|
||||
#tmux_conf_theme_colour_2="colour8"
|
||||
#tmux_conf_theme_colour_3="colour8"
|
||||
#tmux_conf_theme_colour_4="colour14"
|
||||
#tmux_conf_theme_colour_5="colour11"
|
||||
#tmux_conf_theme_colour_6="colour0"
|
||||
#tmux_conf_theme_colour_7="colour15"
|
||||
#tmux_conf_theme_colour_8="colour0"
|
||||
#tmux_conf_theme_colour_9="colour11"
|
||||
#tmux_conf_theme_colour_10="colour13"
|
||||
#tmux_conf_theme_colour_11="colour10"
|
||||
#tmux_conf_theme_colour_12="colour8"
|
||||
#tmux_conf_theme_colour_13="colour15"
|
||||
#tmux_conf_theme_colour_14="colour0"
|
||||
#tmux_conf_theme_colour_15="colour0"
|
||||
#tmux_conf_theme_colour_16="colour1"
|
||||
#tmux_conf_theme_colour_17="colour15"
|
||||
|
||||
# window style
|
||||
tmux_conf_theme_window_fg="default"
|
||||
tmux_conf_theme_window_bg="default"
|
||||
|
||||
# highlight focused pane (tmux >= 2.1), possible values are:
|
||||
# - true
|
||||
# - false (default)
|
||||
tmux_conf_theme_highlight_focused_pane=false
|
||||
|
||||
# focused pane colours:
|
||||
tmux_conf_theme_focused_pane_bg="$tmux_conf_theme_colour_2"
|
||||
|
||||
# pane border style, possible values are:
|
||||
# - thin (default)
|
||||
# - fat
|
||||
tmux_conf_theme_pane_border_style=thin
|
||||
|
||||
# pane borders colours:
|
||||
tmux_conf_theme_pane_border="$tmux_conf_theme_colour_2"
|
||||
tmux_conf_theme_pane_active_border="$tmux_conf_theme_colour_4"
|
||||
|
||||
# pane indicator colours (when you hit <prefix> + q)
|
||||
tmux_conf_theme_pane_indicator="$tmux_conf_theme_colour_4"
|
||||
tmux_conf_theme_pane_active_indicator="$tmux_conf_theme_colour_4"
|
||||
|
||||
# status line style
|
||||
tmux_conf_theme_message_fg="$tmux_conf_theme_colour_1"
|
||||
tmux_conf_theme_message_bg="$tmux_conf_theme_colour_5"
|
||||
tmux_conf_theme_message_attr="bold"
|
||||
|
||||
# status line command style (<prefix> : Escape)
|
||||
tmux_conf_theme_message_command_fg="$tmux_conf_theme_colour_5"
|
||||
tmux_conf_theme_message_command_bg="$tmux_conf_theme_colour_1"
|
||||
tmux_conf_theme_message_command_attr="bold"
|
||||
|
||||
# window modes style
|
||||
tmux_conf_theme_mode_fg="$tmux_conf_theme_colour_1"
|
||||
tmux_conf_theme_mode_bg="$tmux_conf_theme_colour_5"
|
||||
tmux_conf_theme_mode_attr="bold"
|
||||
|
||||
# status line style
|
||||
tmux_conf_theme_status_fg="$tmux_conf_theme_colour_3"
|
||||
tmux_conf_theme_status_bg="$tmux_conf_theme_colour_1"
|
||||
tmux_conf_theme_status_attr="none"
|
||||
|
||||
# terminal title
|
||||
# - built-in variables are:
|
||||
# - #{circled_window_index}
|
||||
# - #{circled_session_name}
|
||||
# - #{hostname}
|
||||
# - #{hostname_ssh}
|
||||
# - #{hostname_full}
|
||||
# - #{hostname_full_ssh}
|
||||
# - #{username}
|
||||
# - #{username_ssh}
|
||||
tmux_conf_theme_terminal_title="[#h] [#S] [#I #W]"
|
||||
|
||||
# window status style
|
||||
# - built-in variables are:
|
||||
# - #{circled_window_index}
|
||||
# - #{circled_session_name}
|
||||
# - #{hostname}
|
||||
# - #{hostname_ssh}
|
||||
# - #{hostname_full}
|
||||
# - #{hostname_full_ssh}
|
||||
# - #{username}
|
||||
# - #{username_ssh}
|
||||
tmux_conf_theme_window_status_fg="$tmux_conf_theme_colour_3"
|
||||
tmux_conf_theme_window_status_bg="$tmux_conf_theme_colour_1"
|
||||
tmux_conf_theme_window_status_attr="none"
|
||||
#tmux_conf_theme_window_status_format="#I #W"
|
||||
tmux_conf_theme_window_status_format="#{circled_window_index} #W"
|
||||
#tmux_conf_theme_window_status_format="#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
|
||||
# window current status style
|
||||
# - built-in variables are:
|
||||
# - #{circled_window_index}
|
||||
# - #{circled_session_name}
|
||||
# - #{hostname}
|
||||
# - #{hostname_ssh}
|
||||
# - #{hostname_full}
|
||||
# - #{hostname_full_ssh}
|
||||
# - #{username}
|
||||
# - #{username_ssh}
|
||||
tmux_conf_theme_window_status_current_fg="$tmux_conf_theme_colour_1"
|
||||
tmux_conf_theme_window_status_current_bg="$tmux_conf_theme_colour_4"
|
||||
tmux_conf_theme_window_status_current_attr="bold"
|
||||
#tmux_conf_theme_window_status_current_format="#I #W"
|
||||
tmux_conf_theme_window_status_current_format="#{circled_window_index} #W"
|
||||
#tmux_conf_theme_window_status_current_format="#I #W#{?window_zoomed_flag,🔍,}"
|
||||
|
||||
# window activity status style
|
||||
tmux_conf_theme_window_status_activity_fg="default"
|
||||
tmux_conf_theme_window_status_activity_bg="default"
|
||||
tmux_conf_theme_window_status_activity_attr="underscore"
|
||||
|
||||
# window bell status style
|
||||
tmux_conf_theme_window_status_bell_fg="$tmux_conf_theme_colour_5"
|
||||
tmux_conf_theme_window_status_bell_bg="default"
|
||||
tmux_conf_theme_window_status_bell_attr="blink,bold"
|
||||
|
||||
# window last status style
|
||||
tmux_conf_theme_window_status_last_fg="$tmux_conf_theme_colour_4"
|
||||
tmux_conf_theme_window_status_last_bg="$tmux_conf_theme_colour_2"
|
||||
tmux_conf_theme_window_status_last_attr="none"
|
||||
|
||||
# status left/right sections separators
|
||||
#tmux_conf_theme_left_separator_main=""
|
||||
#tmux_conf_theme_left_separator_sub="|"
|
||||
#tmux_conf_theme_right_separator_main=""
|
||||
#tmux_conf_theme_right_separator_sub="|"
|
||||
tmux_conf_theme_left_separator_main="\uE0B0" # /!\ you don't need to install Powerline
|
||||
tmux_conf_theme_left_separator_sub="\uE0B1" # you only need fonts patched with
|
||||
tmux_conf_theme_right_separator_main="\uE0B2" # Powerline symbols or the standalone
|
||||
tmux_conf_theme_right_separator_sub="\uE0B3" # PowerlineSymbols.otf font, see README.md
|
||||
# tmux_conf_theme_left_separator_main='\ue0b8'
|
||||
# tmux_conf_theme_left_separator_sub='\ue0b9'
|
||||
# tmux_conf_theme_right_separator_main='\ue0be'
|
||||
# tmux_conf_theme_right_separator_sub='\ue0b9'
|
||||
|
||||
# status left/right content:
|
||||
# - separate main sections with "|"
|
||||
# - separate subsections with ","
|
||||
# - built-in variables are:
|
||||
# - #{battery_bar}
|
||||
# - #{battery_hbar}
|
||||
# - #{battery_percentage}
|
||||
# - #{battery_status}
|
||||
# - #{battery_vbar}
|
||||
# - #{circled_session_name}
|
||||
# - #{hostname_ssh}
|
||||
# - #{hostname}
|
||||
# - #{hostname_full}
|
||||
# - #{hostname_full_ssh}
|
||||
# - #{loadavg}
|
||||
# - #{mouse}
|
||||
# - #{pairing}
|
||||
# - #{prefix}
|
||||
# - #{root}
|
||||
# - #{synchronized}
|
||||
# - #{uptime_y}
|
||||
# - #{uptime_d} (modulo 365 when #{uptime_y} is used)
|
||||
# - #{uptime_h}
|
||||
# - #{uptime_m}
|
||||
# - #{uptime_s}
|
||||
# - #{username}
|
||||
# - #{username_ssh}
|
||||
tmux_conf_theme_status_left=" #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} "
|
||||
tmux_conf_theme_status_right="#{prefix} , %R , %d %b | #{username}#{root} | #{hostname} "
|
||||
|
||||
# status left style
|
||||
tmux_conf_theme_status_left_fg="$tmux_conf_theme_colour_6,$tmux_conf_theme_colour_7,$tmux_conf_theme_colour_8"
|
||||
tmux_conf_theme_status_left_bg="$tmux_conf_theme_colour_9,$tmux_conf_theme_colour_10,$tmux_conf_theme_colour_11"
|
||||
tmux_conf_theme_status_left_attr="bold,none,none"
|
||||
|
||||
# status right style
|
||||
tmux_conf_theme_status_right_fg="$tmux_conf_theme_colour_12,$tmux_conf_theme_colour_13,$tmux_conf_theme_colour_14"
|
||||
tmux_conf_theme_status_right_bg="$tmux_conf_theme_colour_15,$tmux_conf_theme_colour_16,$tmux_conf_theme_colour_17"
|
||||
tmux_conf_theme_status_right_attr="none,none,bold"
|
||||
|
||||
# pairing indicator
|
||||
tmux_conf_theme_pairing="⚇" # U+2687
|
||||
tmux_conf_theme_pairing_fg="none"
|
||||
tmux_conf_theme_pairing_bg="none"
|
||||
tmux_conf_theme_pairing_attr="none"
|
||||
|
||||
# prefix indicator
|
||||
tmux_conf_theme_prefix="⌨" # U+2328
|
||||
tmux_conf_theme_prefix_fg="none"
|
||||
tmux_conf_theme_prefix_bg="none"
|
||||
tmux_conf_theme_prefix_attr="none"
|
||||
|
||||
# mouse indicator
|
||||
tmux_conf_theme_mouse="↗" # U+2197
|
||||
tmux_conf_theme_mouse_fg="none"
|
||||
tmux_conf_theme_mouse_bg="none"
|
||||
tmux_conf_theme_mouse_attr="none"
|
||||
|
||||
# root indicator
|
||||
tmux_conf_theme_root="ﲂ"
|
||||
tmux_conf_theme_root_fg="none"
|
||||
tmux_conf_theme_root_bg="none"
|
||||
tmux_conf_theme_root_attr="bold,blink"
|
||||
|
||||
# synchronized indicator
|
||||
tmux_conf_theme_synchronized="⚏" # U+268F
|
||||
tmux_conf_theme_synchronized_fg="none"
|
||||
tmux_conf_theme_synchronized_bg="none"
|
||||
tmux_conf_theme_synchronized_attr="none"
|
||||
|
||||
# battery bar symbols
|
||||
#tmux_conf_battery_bar_symbol_full="◼"
|
||||
#tmux_conf_battery_bar_symbol_empty="◻"
|
||||
tmux_conf_battery_bar_symbol_full="♥"
|
||||
tmux_conf_battery_bar_symbol_empty="·"
|
||||
|
||||
# battery bar length (in number of symbols), possible values are:
|
||||
# - auto
|
||||
# - a number, e.g. 5
|
||||
tmux_conf_battery_bar_length="auto"
|
||||
|
||||
# battery bar palette, possible values are:
|
||||
# - gradient (default)
|
||||
# - heat
|
||||
# - "colour_full_fg,colour_empty_fg,colour_bg"
|
||||
tmux_conf_battery_bar_palette="gradient"
|
||||
#tmux_conf_battery_bar_palette="#d70000,#e4e4e4,#000000" # red, white, black
|
||||
|
||||
# battery hbar palette, possible values are:
|
||||
# - gradient (default)
|
||||
# - heat
|
||||
# - "colour_low,colour_half,colour_full"
|
||||
tmux_conf_battery_hbar_palette="gradient"
|
||||
#tmux_conf_battery_hbar_palette="#d70000,#ff5f00,#5fff00" # red, orange, green
|
||||
|
||||
# battery vbar palette, possible values are:
|
||||
# - gradient (default)
|
||||
# - heat
|
||||
# - "colour_low,colour_half,colour_full"
|
||||
tmux_conf_battery_vbar_palette="gradient"
|
||||
#tmux_conf_battery_vbar_palette="#d70000,#ff5f00,#5fff00" # red, orange, green
|
||||
|
||||
# symbols used to indicate whether battery is charging or discharging
|
||||
tmux_conf_battery_status_charging="↑" # U+2191
|
||||
tmux_conf_battery_status_discharging="↓" # U+2193
|
||||
#tmux_conf_battery_status_charging="🔌" # U+1F50C
|
||||
#tmux_conf_battery_status_discharging="🔋" # U+1F50B
|
||||
|
||||
# clock style (when you hit <prefix> + t)
|
||||
# you may want to use %I:%M %p in place of %R in tmux_conf_theme_status_right
|
||||
tmux_conf_theme_clock_colour="$tmux_conf_theme_colour_4"
|
||||
tmux_conf_theme_clock_style="12"
|
||||
|
||||
|
||||
# -- clipboard -----------------------------------------------------------------
|
||||
|
||||
# in copy mode, copying selection also copies to the OS clipboard
|
||||
# - true
|
||||
# - false (default)
|
||||
# on macOS, this requires installing reattach-to-user-namespace, see README.md
|
||||
# on Linux, this requires xsel or xclip
|
||||
tmux_conf_copy_to_os_clipboard=true
|
||||
|
||||
|
||||
# -- user customizations -------------------------------------------------------
|
||||
# this is the place to override or undo settings
|
||||
|
||||
# increase history size
|
||||
#set -g history-limit 10000
|
||||
|
||||
# start with mouse mode enabled
|
||||
#set -g mouse on
|
||||
|
||||
# force Vi mode
|
||||
# really you should export VISUAL or EDITOR environment variable, see manual
|
||||
#set -g status-keys vi
|
||||
#set -g mode-keys vi
|
||||
|
||||
# replace C-b by C-a instead of using both prefixes
|
||||
# set -gu prefix2
|
||||
# unbind C-a
|
||||
# unbind C-b
|
||||
# set -g prefix C-a
|
||||
# bind C-a send-prefix
|
||||
|
||||
# move status line to top
|
||||
#set -g status-position top
|
||||
|
||||
# -- tpm -----------------------------------------------------------------------
|
||||
|
||||
# while I don't use tpm myself, many people requested official support so here
|
||||
# is a seamless integration that automatically installs plugins in parallel
|
||||
|
||||
# whenever a plugin introduces a variable to be used in 'status-left' or
|
||||
# 'status-right', you can use it in 'tmux_conf_theme_status_left' and
|
||||
# 'tmux_conf_theme_status_right' variables.
|
||||
|
||||
# by default, launching tmux will update tpm and all plugins
|
||||
# - true (default)
|
||||
# - false
|
||||
tmux_conf_update_plugins_on_launch=true
|
||||
tmux_conf_uninstall_plugins_on_reload=true
|
||||
# by default, reloading the configuration will update tpm and all plugins
|
||||
# - true (default)
|
||||
# - false
|
||||
tmux_conf_update_plugins_on_reload=true
|
||||
|
||||
# /!\ do not add set -g @plugin 'tmux-plugins/tpm'
|
||||
# /!\ do not add run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
# to enable a plugin, use the 'set -g @plugin' syntax:
|
||||
# visit https://github.com/tmux-plugins for available plugins
|
||||
#set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||
#set -g @plugin 'tmux-plugins/tmux-cpu'
|
||||
#set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
#set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
#set -g @continuum-restore 'on'
|
||||
|
||||
|
||||
# -- custom variables ----------------------------------------------------------
|
||||
|
||||
# to define a custom #{foo} variable, define a POSIX shell function between the
|
||||
# '# EOF' and the '# "$@"' lines. Please note that the opening brace { character
|
||||
# must be on the same line as the function name otherwise the parse won't detect
|
||||
# it.
|
||||
#
|
||||
# then, use #{foo} in e.g. the 'tmux_conf_theme_status_left' or the
|
||||
# 'tmux_conf_theme_status_right' variables.
|
||||
|
||||
# # /!\ do not remove the following line
|
||||
# EOF
|
||||
#
|
||||
# # /!\ do not "uncomment" the functions: the leading "# " characters are needed
|
||||
#
|
||||
# weather() {
|
||||
# curl -m 1 wttr.in?format=3 2>/dev/null
|
||||
# sleep 900 # sleep for 15 minutes, throttle network requests whatever the value of status-interval
|
||||
# }
|
||||
#
|
||||
# online() {
|
||||
# ping -c 1 1.1.1.1 >/dev/null 2>&1 && printf '✔' || printf '✘'
|
||||
# }
|
||||
#
|
||||
# "$@"
|
||||
# # /!\ do not remove the previous line
|
||||
#
|
||||
themes_folder='~/.config/oh-my-tmux/themes/'
|
||||
theme="embark.conf"
|
||||
|
||||
if "[ -d ${themes_folder} ]" "source ${themes_folder}${theme}"
|
@ -1,76 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
##############################################################################
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||||
# @file : aliases.zsh
|
||||
# @load_order : post-zshrc
|
||||
|
||||
|
||||
## the ls family
|
||||
if test -x "$(command -v exa)"; then
|
||||
alias ls="exa"
|
||||
fi
|
||||
alias l="exa -lFhg"
|
||||
alias la="exa -a"
|
||||
alias ll="exa -lg --git"
|
||||
alias lal="exa -alg --git"
|
||||
alias ldot="exa -gld .*"
|
||||
alias lse="/bin/ls -lZ"
|
||||
|
||||
lgn() { exa --tree --level=$1 ; }
|
||||
|
||||
## open zshrc in EDITOR
|
||||
alias zshrc="${=EDITOR} ${HOME}/.zshrc"
|
||||
|
||||
## greps
|
||||
alias grep="grep --color"
|
||||
alias sgrep="grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS}"
|
||||
|
||||
## copy SSH pubkey to clipboard
|
||||
alias pubkey="more ~/.ssh/id_ed25519.pub | xclip -selection clipboard | echo '==> SSH public key copied'"
|
||||
|
||||
## display disk usage with dust
|
||||
alias dud="dust --depth 1 -w 88"
|
||||
|
||||
## prompt user before overwriting copied and moved files
|
||||
alias cp="cp -i"
|
||||
alias mv="mv -i"
|
||||
alias rm="rm -i"
|
||||
|
||||
## display zsh functions with bat
|
||||
alias zfun="functions | bat -l zsh"
|
||||
|
||||
## luamake
|
||||
alias luamake="/home/jas/.local/share/sumneko/lua-language-server/3rd/luamake/luamake"
|
||||
|
||||
## assorted globals
|
||||
alias -g H="| head"
|
||||
alias -g T="| tail"
|
||||
alias -g G="| grep"
|
||||
alias -g L="| less -X"
|
||||
alias -g B="| bat -p"
|
||||
alias -g LL="2>&1 | less"
|
||||
alias -g CA="2>&1 | cat -A"
|
||||
alias -g NE="2> /dev/null"
|
||||
alias -g NUL="> /dev/null 2>&1"
|
||||
alias -g P="2>&1| pygmentize -l pytb"
|
||||
alias -g J="| jq ."
|
||||
alias -g CC="| xclip -selection clipboard"
|
||||
|
||||
## networking
|
||||
alias pubip="curl ipinfo.io"
|
||||
alias netCons="lsof -i"
|
||||
alias tulp="ss -tulp"
|
||||
alias openPorts="sudo lsof -i | grep LISTEN"
|
||||
alias pong="ping -c 3 www.google.com"
|
||||
alias lsock="sudo lsof -i -P"
|
||||
alias lsockU="sudo lsof -nP | grep UDP"
|
||||
alias lsockT="sudo lsof -nP | grep TCP"
|
||||
|
||||
alias lslog="ls /var/log/"
|
||||
|
||||
## reboot/poweroff
|
||||
alias rbt="sudo shutdown -r now"
|
||||
alias shut="sudo shutdown now"
|
||||
|
@ -1,74 +0,0 @@
|
||||
# Embark Theme (for zsh-syntax-highlighting)
|
||||
#
|
||||
# Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor)
|
||||
typeset -gA ZSH_HIGHLIGHT_STYLES
|
||||
|
||||
# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md
|
||||
#
|
||||
## General
|
||||
### Diffs
|
||||
### Markup
|
||||
## Classes
|
||||
## Comments
|
||||
ZSH_HIGHLIGHT_STYLES[comment]='fg=#585273'
|
||||
## Constants
|
||||
## Entitites
|
||||
## Functions/methods
|
||||
ZSH_HIGHLIGHT_STYLES[alias]='fg=#62D196'
|
||||
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#62D196'
|
||||
ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#62D196'
|
||||
ZSH_HIGHLIGHT_STYLES[function]='fg=#62D196'
|
||||
ZSH_HIGHLIGHT_STYLES[command]='fg=#62D196'
|
||||
ZSH_HIGHLIGHT_STYLES[precommand]='fg=#62D196,italic'
|
||||
ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#F2B482,italic'
|
||||
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#F2B482'
|
||||
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#F2B482'
|
||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#A37ACC'
|
||||
## Keywords
|
||||
## Built ins
|
||||
ZSH_HIGHLIGHT_STYLES[builtin]='fg=#63F2F1'
|
||||
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#63F2F1'
|
||||
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#63F2F1'
|
||||
## Punctuation
|
||||
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#F48FB1'
|
||||
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#F48FB1'
|
||||
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#F48FB1'
|
||||
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#F48FB1'
|
||||
## Serializable / Configuration Languages
|
||||
## Storage
|
||||
## Strings
|
||||
ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#FFE6B3'
|
||||
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#FFE6B3'
|
||||
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#FFE6B3'
|
||||
ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#F02E6E'
|
||||
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#FFE6B3'
|
||||
ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#F02E6E'
|
||||
ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#FFE6B3'
|
||||
## Variables
|
||||
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#F02E6E'
|
||||
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[assign]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#CBE3E7'
|
||||
## No category relevant in spec
|
||||
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#F02E6E'
|
||||
ZSH_HIGHLIGHT_STYLES[path]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#F48FB1'
|
||||
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#F48FB1'
|
||||
ZSH_HIGHLIGHT_STYLES[globbing]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#A37ACC'
|
||||
#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?'
|
||||
#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?'
|
||||
#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?'
|
||||
#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?'
|
||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#F02E6E'
|
||||
ZSH_HIGHLIGHT_STYLES[redirection]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[arg0]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[default]='fg=#CBE3E7'
|
||||
ZSH_HIGHLIGHT_STYLES[cursor]='fg=#CBE3E7'
|
@ -1,48 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
##############################################################################
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||||
# @file : functions.zsh
|
||||
# @load_order : post-zshrc
|
||||
|
||||
|
||||
## Do an ls after cd
|
||||
cd() { builtin cd "$@" && ls; }
|
||||
|
||||
## Create new directory and enter it
|
||||
mkd() { mkdir -p "$@" && cd "$_"; }
|
||||
|
||||
## pids
|
||||
pids() { pgrep -a "$@"; }
|
||||
|
||||
## variation of our manzsh() function; pick you poison:
|
||||
manzsh() { /usr/bin/man zshall | most +/"$1" ; }
|
||||
|
||||
## restart zsh
|
||||
restart () {
|
||||
exec $SHELL $SHELL_ARGS "$@"
|
||||
}
|
||||
|
||||
rsrc() { cd && clear && restart; }
|
||||
|
||||
## parse HackerNews feed (https://hnrss.org/newest)
|
||||
hn() {
|
||||
python3 <(cat <<EOF
|
||||
|
||||
import feedparser
|
||||
HNFeed = feedparser.parse("https://hnrss.org/newest")
|
||||
|
||||
class bcolors:
|
||||
HEADER = '\033[95m'
|
||||
ENDC = '\033[0m'
|
||||
|
||||
for item in HNFeed.entries:
|
||||
print(f"{bcolors.HEADER}%s{bcolors.ENDC}" % item.title)
|
||||
print(item.links[0].href)
|
||||
print("")
|
||||
|
||||
EOF
|
||||
) | bat -p
|
||||
}
|
||||
|
@ -1,29 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
##############################################################################
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||||
# @file : fzf.zsh
|
||||
# @load_order : post-zshrc
|
||||
|
||||
|
||||
## default opts uses Embark color palette
|
||||
export FZF_DEFAULT_OPTS="--color=fg:#CBE3E7,bg:#1E1C31,hl:#D4BFFF --color=fg+:#CBE3E7,bg+:#2D2B40,hl+:#D4BFFF --color=info:#F2B482,prompt:#62D196,pointer:#F48FB1 --color=marker:#F48FB1,spinner:#F2B482,header:#585273"
|
||||
|
||||
## completion trigger
|
||||
export FZF_COMPLETION_TRIGGER="~~"
|
||||
|
||||
## default source for fzf
|
||||
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
|
||||
|
||||
## fzf manpages
|
||||
man-find() {
|
||||
f=$(fd . "${MANPATH}/man${1:-1}" -t f -x echo {/.} | fzf) && man "$f"
|
||||
}
|
||||
|
||||
## keystroke shortcuts widget
|
||||
shortcuts-widget() {
|
||||
cat /home/jas/.shortcuts.txt | fzf-tmux -r 40% -- --reverse
|
||||
}
|
||||
zle -N shortcuts-widget
|
||||
bindkey '\es' shortcuts-widget
|
@ -1,42 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
##############################################################################
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||||
# @file : input.zsh
|
||||
# @load_order : post-zshrc
|
||||
|
||||
$include /etc/inputrc
|
||||
bindkey -v
|
||||
|
||||
typeset -g -A key
|
||||
key[Home]="${terminfo[khome]}"
|
||||
key[End]="${terminfo[kend]}"
|
||||
|
||||
[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line
|
||||
[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line
|
||||
|
||||
## check if fzf keybindings file exists
|
||||
if test -f /home/jas/.fzf/shell/key-bindings.zsh; then
|
||||
source /home/jas/.fzf/shell/key-bindings.zsh
|
||||
|
||||
bindkey -M viins "^H" fzf-history-widget
|
||||
bindkey -M vicmd "^H" fzf-history-widget
|
||||
bindkey -M vicmd "/" history-incremental-search-backward
|
||||
bindkey -M vicmd "?" history-incremental-search-forward
|
||||
|
||||
page-up-within-tmux() {
|
||||
if (( ${+TMUX} )); then
|
||||
tmux copy-mode -u
|
||||
fi
|
||||
}
|
||||
zle -N page-up-within-tmux
|
||||
|
||||
# page up
|
||||
bindkey "${terminfo[kpp]}" page-up-within-tmux
|
||||
fi
|
||||
|
||||
## history substring search
|
||||
bindkey '^[[1;5A' history-substring-search-up
|
||||
bindkey '^[[1;5B' history-substring-search-down
|
||||
|
99
dot_zshenv
99
dot_zshenv
@ -1,99 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
##############################################################################
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||||
# @file : .zshenv
|
||||
# @load_order : pre-zshrc
|
||||
|
||||
## lscolors
|
||||
export LS_COLORS=$(cat ~/.lscolors.sh)
|
||||
|
||||
## go paths
|
||||
export GOPATH="${HOME}/go"
|
||||
|
||||
## path variable
|
||||
typeset -U PATH path
|
||||
path=(
|
||||
/usr/local/bin
|
||||
/usr/local/sbin
|
||||
/usr/lib/ruby/gems/3.0.0/bin
|
||||
"${HOME}/.local/bin"
|
||||
"${GOPATH}/bin"
|
||||
"${HOME}/.cargo/bin"
|
||||
"${path[@]}"
|
||||
)
|
||||
export PATH
|
||||
|
||||
## reply-to email address
|
||||
export REPLYTO="hyperreal@unixcat.coffee"
|
||||
|
||||
## set language
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
## set default editor
|
||||
export EDITOR="nvim"
|
||||
|
||||
## set pager stuffs
|
||||
export PAGER="less -X"
|
||||
export BAT_THEME="Dracula"
|
||||
|
||||
## set history stuffs
|
||||
export HISTFILE=~/.zsh_history
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=10000
|
||||
|
||||
## set TERM if in tmux
|
||||
if (( ${+TMUX} )); then
|
||||
export TERM="screen-256color"
|
||||
else
|
||||
export TERM="xterm-256color"
|
||||
fi
|
||||
|
||||
## load private vars
|
||||
if test -f ~/.private_vars; then
|
||||
source ~/.private_vars
|
||||
fi
|
||||
|
||||
## fzf-tmux
|
||||
export PATH="${PATH}:${HOME}/.fzf/bin"
|
||||
|
||||
## spaceship prompt
|
||||
SPACESHIP_PROMPT_ORDER=(
|
||||
time
|
||||
user
|
||||
host
|
||||
dir
|
||||
git
|
||||
hg
|
||||
package
|
||||
node
|
||||
ruby
|
||||
golang
|
||||
rust
|
||||
docker
|
||||
venv
|
||||
pyenv
|
||||
exec_time
|
||||
line_sep
|
||||
jobs
|
||||
exit_code
|
||||
char
|
||||
)
|
||||
SPACESHIP_CHAR_SUFFIX=" "
|
||||
SPACESHIP_CHAR_SYMBOL="%%"
|
||||
SPACESHIP_DIR_PREFIX=":"
|
||||
SPACESHIP_DIR_SUFFIX="> "
|
||||
SPACESHIP_EXIT_CODE_SHOW=true
|
||||
SPACESHIP_EXIT_CODE_SYMBOL=""
|
||||
SPACESHIP_HOST_COLOR="#F776AC"
|
||||
SPACESHIP_HOST_PREFIX="@"
|
||||
SPACESHIP_HOST_SHOW=always
|
||||
SPACESHIP_HOST_SUFFIX=""
|
||||
SPACESHIP_TIME_COLOR="#A9B1D6"
|
||||
SPACESHIP_TIME_SHOW=true
|
||||
SPACESHIP_USER_COLOR="#E08C68"
|
||||
SPACESHIP_USER_PREFIX=""
|
||||
SPACESHIP_USER_SHOW=always
|
||||
SPACESHIP_USER_SUFFIX=""
|
||||
|
68
dot_zshrc
68
dot_zshrc
@ -1,68 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
##############################################################################
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||||
# @file : .zshrc
|
||||
#
|
||||
# @description : Z-shell rc file
|
||||
|
||||
|
||||
##############################################################################
|
||||
# PLUGINS
|
||||
##############################################################################
|
||||
|
||||
if ! test -f ~/.zplug/init.zsh; then
|
||||
export ZPLUG_HOME=~/.zplug
|
||||
git clone https://github.com/zplug/zplug $ZPLUG_HOME
|
||||
fi
|
||||
|
||||
source ~/.zplug/init.zsh
|
||||
|
||||
zplug "~/.zsh", from:local, use:'(*).zsh'
|
||||
zplug "zsh-users/zsh-autosuggestions"
|
||||
zplug "zsh-users/zsh-history-substring-search"
|
||||
zplug "zsh-users/zsh-syntax-highlighting"
|
||||
zplug "amaya382/zsh-fzf-widgets"
|
||||
zplug "chitoku-k/fzf-zsh-completions"
|
||||
zplug "plugins/dnf", from:oh-my-zsh
|
||||
zplug "plugins/colored-man-pages", from:oh-my-zsh
|
||||
zplug "plugins/extract", from:oh-my-zsh
|
||||
zplug "plugins/firewalld", from:oh-my-zsh
|
||||
zplug "plugins/git", from:oh-my-zsh
|
||||
zplug "plugins/sudo", from:oh-my-zsh
|
||||
zplug "plugins/systemd", from:oh-my-zsh
|
||||
zplug "urbainvaes/fzf-marks"
|
||||
zplug "spaceship-prompt/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
|
||||
# zplug "~/.zsh", use:dracula-pro.zsh-theme, from:local, as:theme
|
||||
|
||||
if ! zplug check; then
|
||||
zplug install;
|
||||
exec $SHELL $SHELL_ARGS "$@"
|
||||
fi
|
||||
|
||||
zplug load
|
||||
|
||||
##############################################################################
|
||||
# GENERAL SHELL OPTIONS
|
||||
##############################################################################
|
||||
# See https://zsh-manual.netlify.app/options
|
||||
|
||||
setopt appendhistory
|
||||
setopt autocd
|
||||
setopt autolist
|
||||
setopt automenu
|
||||
setopt autoremoveslash
|
||||
setopt cdablevars
|
||||
setopt histallowclobber
|
||||
setopt histignorealldups
|
||||
setopt histignoredups
|
||||
setopt histsavenodups
|
||||
setopt interactivecomments
|
||||
setopt listpacked
|
||||
setopt listtypes
|
||||
setopt longlistjobs
|
||||
|
||||
ZSH_THEME="dracula-pro"
|
||||
|
||||
alias luamake=/var/home/jas/downloads/lua-language-server/3rd/luamake/luamake
|
@ -1 +0,0 @@
|
||||
disable-ccid
|
Loading…
Reference in New Issue
Block a user