mirror of
https://github.com/sebaschi/dotfiles.git
synced 2025-11-08 18:14:27 +01:00
Remove scripts from repo and rename rsync config folder.
This commit is contained in:
parent
0a9bdd91f8
commit
f03ce1b9b0
2
bash/bash_env
Normal file
2
bash/bash_env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export PATH="$HOME/scripts:$PATH"
|
||||||
|
|
||||||
67
bash/bashrc
67
bash/bashrc
@ -1,67 +0,0 @@
|
|||||||
fastfetch
|
|
||||||
|
|
||||||
# Source global definitions
|
|
||||||
if [ -f /etc/bashrc ]; then
|
|
||||||
. /etc/bashrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
# User specific environment
|
|
||||||
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
|
||||||
then
|
|
||||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
|
||||||
fi
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
|
||||||
# export SYSTEMD_PAGER=
|
|
||||||
|
|
||||||
# User specific aliases and functions
|
|
||||||
if [ -d ~/.bashrc.d ]; then
|
|
||||||
for rc in ~/.bashrc.d/*; do
|
|
||||||
if [ -f "$rc" ]; then
|
|
||||||
. "$rc"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset rc
|
|
||||||
|
|
||||||
if ! source /home/slnopriv/alacritty/extra/completions/alacritty.bash; then
|
|
||||||
echo "Failed to source alacritty completions"
|
|
||||||
fi
|
|
||||||
eval "$(starship init bash)"
|
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
|
||||||
__conda_setup="$('/home/slnopriv/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
eval "$__conda_setup"
|
|
||||||
else
|
|
||||||
if [ -f "/home/slnopriv/anaconda3/etc/profile.d/conda.sh" ]; then
|
|
||||||
. "/home/slnopriv/anaconda3/etc/profile.d/conda.sh"
|
|
||||||
else
|
|
||||||
export PATH="/home/slnopriv/anaconda3/bin:$PATH"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
unset __conda_setup
|
|
||||||
# <<< conda initialize <<<
|
|
||||||
#Source aliases
|
|
||||||
source ~/.bash_aliases
|
|
||||||
source ~/.fedora_aliases
|
|
||||||
export PATH="~/scripts:$PATH"
|
|
||||||
# Souecw functions
|
|
||||||
source ~/.bash_functions
|
|
||||||
|
|
||||||
|
|
||||||
# !! Contents within this block are managed by juliaup !!
|
|
||||||
|
|
||||||
case ":$PATH:" in
|
|
||||||
*:/home/slnopriv/.juliaup/bin:*)
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
export PATH=/home/slnopriv/.juliaup/bin${PATH:+:${PATH}}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# <<< juliaup initialize <<<
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#! /usr/bin/env bash
|
|
||||||
|
|
||||||
filename=$1
|
|
||||||
rmpattern=$2
|
|
||||||
suffix=$3
|
|
||||||
dstFolder="${PWD}/arranged"
|
|
||||||
newFilename="${filename%${rmpattern}}${suffix}.pdf"
|
|
||||||
# Make destination folder
|
|
||||||
mkdir -p ${dstFolder}
|
|
||||||
|
|
||||||
pdfjam --nup 2x2 \
|
|
||||||
--landscape \
|
|
||||||
--clip 'true' \
|
|
||||||
--delta '0cm 0cm' \
|
|
||||||
--offset '1cm 0cm' \
|
|
||||||
--outfile ${newFilename} ${filename}
|
|
||||||
mv ${newFilename} ${dstFolder}
|
|
||||||
# unused
|
|
||||||
# --trim '0.7cm 0cm 0.7cm 0cm' \
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
#! /usr/bin/env bash
|
|
||||||
file=$1
|
|
||||||
outfile="${file%'handout.pdf'}jam4.pdf"
|
|
||||||
dst=${PWD}/jammed
|
|
||||||
mkdir -p ${dst}
|
|
||||||
pdfjam --nup 2x2 --column false \
|
|
||||||
--landscape --offset '1.2cm 0cm' \
|
|
||||||
--outfile ${outfile} --scale 0.95 \
|
|
||||||
--frame true \
|
|
||||||
$1
|
|
||||||
|
|
||||||
mv ${outfile} ${dst}
|
|
||||||
|
|
||||||
@ -1,195 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
################################################################################
|
|
||||||
## Author: Sebastian Lenzlinger
|
|
||||||
## EMail: eswer@eswo.ch
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# TIPP: source this file so functions are available directly in the command line
|
|
||||||
################################################################################
|
|
||||||
initialize () {
|
|
||||||
if [[ $# -ne 1 ]]; then
|
|
||||||
echo "Usage: initialize '<name>'"
|
|
||||||
echo "Please only supply your name as a single string"
|
|
||||||
echo "This will be used as the branch name."
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
usrnm=$1
|
|
||||||
|
|
||||||
|
|
||||||
# Create repo 'usrnm' with branch 'usrnm'
|
|
||||||
git init -b "${usrnm}" "${usrnm}" && cd "${usrnm}"
|
|
||||||
echo "Initialized git repo ${usrnm} with branch ${usrnm}"
|
|
||||||
git config --local user.name "${usrnm}"
|
|
||||||
git config --local user.email "${usrnm}@gitchat.local"
|
|
||||||
# Establish tree object
|
|
||||||
treeroot=$(git write-tree)
|
|
||||||
echo "Tree written at ref "${treeroot}"."
|
|
||||||
|
|
||||||
# Create initial commit without parent commits
|
|
||||||
initcommit="$(echo "${usrnm} has joined the chatroom." | git commit-tree "${treeroot}")"
|
|
||||||
echo "Initial commit "${initcommit}" with message "$(git cat-file -p ${initcommit})"."
|
|
||||||
|
|
||||||
#Set HEAD of usrnm branch to first commit
|
|
||||||
git update-ref "$(git symbolic-ref HEAD)" "${initcommit}"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
post() {
|
|
||||||
if ! [[ -d "${PWD}/.git" ]]; then
|
|
||||||
echo "You must be in a git repo root to use this command!"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Single quotes so can use any spacial characters that bash would expand.
|
|
||||||
if [[ $# -ne 1 ]]; then
|
|
||||||
echo "Please supply you message in single quotes!"
|
|
||||||
echo "Usage: post '<msg>'"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg=$1
|
|
||||||
|
|
||||||
# this seems to be the way; assuming there is one tree
|
|
||||||
roottreeref=$(git log --pretty=format:%T -n 1)
|
|
||||||
if [[ -z "${roottreeref}" ]]; then
|
|
||||||
echo "NO TREE: Couldnt find tree object."
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
echo "Root trees ref "${roottreeref}""
|
|
||||||
|
|
||||||
parents=
|
|
||||||
for p in $(git for-each-ref --format='%(objectname)' refs/heads/); do
|
|
||||||
parents+="-p ${p} "
|
|
||||||
done
|
|
||||||
echo "Parent commits ${parents}"
|
|
||||||
|
|
||||||
# This didn't work!!!
|
|
||||||
# roottreeref=($(git cat-file --batch-all-objects --batch-check | grep tree))
|
|
||||||
|
|
||||||
# Put message at end so last whitespace is ignored, doesn't lead to issues
|
|
||||||
commitref="$(git commit-tree ${roottreeref} ${parents} -m "${msg}")"
|
|
||||||
echo "Current commits ref ${commitref}"
|
|
||||||
|
|
||||||
git update-ref "$(git symbolic-ref HEAD)" "${commitref}"
|
|
||||||
echo
|
|
||||||
echo "Posted message:"
|
|
||||||
echo "${msg}"
|
|
||||||
|
|
||||||
unset roottreeref
|
|
||||||
unset parents
|
|
||||||
unset commitref
|
|
||||||
unset msg
|
|
||||||
}
|
|
||||||
|
|
||||||
show() {
|
|
||||||
|
|
||||||
if ! [[ -d "${PWD}/.git" ]]; then
|
|
||||||
echo "You must be in a git repo root to use this command!"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is not correct, only follow local branches, not remote branches.
|
|
||||||
#for b in $(git branch --format '%(refname:short)'); do
|
|
||||||
#git log $b --pretty=format:'%C(bold)%an (%ar):%C(reset) %s' --reverse
|
|
||||||
#done
|
|
||||||
if [[ $# -gt 1 ]];then
|
|
||||||
echo "There is only one OPTIONAL argument: -g"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
gopt=
|
|
||||||
if [[ $1 = "-g" ]]; then gopt="--graph";
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
git log --pretty=format:'%C(bold)%Cred%an (%Cgreen%cd):%Creset %s' \
|
|
||||||
--date=format:'%d-%m-%y--%H:%M' ${gopt}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
# $usrto is the remote name. $usrfrom is a branch name.
|
|
||||||
disseminate () {
|
|
||||||
if ! [[ -d "${PWD}/.git" ]]; then
|
|
||||||
echo "You must be in a git repo root to use this command!"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
|
||||||
echo "Usage: disseminate <remote-user-name>"
|
|
||||||
echo "Please supply the name of the user you wish to send your message to!"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
usrfrom="$(git branch --show-current)"
|
|
||||||
usrto="$1"
|
|
||||||
|
|
||||||
|
|
||||||
# Ensure remote exists
|
|
||||||
if ! git remote get-url "$usrto" > /dev/null 2>&1; then
|
|
||||||
echo "No such remote. You must first add a remote for ${usrto}"
|
|
||||||
echo "How to add: git remote add $usrto <Repo-Url>"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! git push "${usrto}" "${usrfrom}"; then
|
|
||||||
echo "Failed to push to ${usrto}. Check permissions or network issues."
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
################################################################################
|
|
||||||
# Don't use described commands. Not sure if safe.
|
|
||||||
fetch-peers() {
|
|
||||||
echo "Example to fetch all branches from a remote 'bob':"
|
|
||||||
echo "git fetch bob"
|
|
||||||
}
|
|
||||||
|
|
||||||
pull-remote() {
|
|
||||||
echo "Example to pull changes from a specific branch on 'bob' remote:"
|
|
||||||
echo "git pull bob <branch-name>"
|
|
||||||
}
|
|
||||||
|
|
||||||
info() {
|
|
||||||
echo "================================================="
|
|
||||||
echo "Adding a remote:"
|
|
||||||
echo "================================================="
|
|
||||||
echo "git remote add <remote-name> <url-of-remote>"
|
|
||||||
echo "Note that <remote-name> can be chosen arbitrarily"
|
|
||||||
echo
|
|
||||||
echo "================================================="
|
|
||||||
echo "PUSHing to remote branch:"
|
|
||||||
echo "================================================="
|
|
||||||
echo "git push <remote-name> <the-local-branch-to-push>"
|
|
||||||
echo "Example: Push branch 'Carol' to remote 'bob'"
|
|
||||||
echo "git push bob Carol"
|
|
||||||
echo "After this the remote 'bob' will have everything from your branch 'Carol' also on a branch called 'Carol'"
|
|
||||||
echo
|
|
||||||
echo "WARNING: Do not use 'git push Bob Carol' if you added remote 'bob' like this: 'git remote add bob ../Bob'"
|
|
||||||
echo "This only means that you are adding a remote in .git/refs/remote, not a branch on your part."
|
|
||||||
echo
|
|
||||||
echo "================================================="
|
|
||||||
echo "Some others:"
|
|
||||||
echo "================================================="
|
|
||||||
fetch-peers
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
pull-remote
|
|
||||||
echo
|
|
||||||
echo "END INFO"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "To use the functions, source this file from the command line:"
|
|
||||||
echo "'source path/to/chatroom' or just 'source chatroom' if it is in the same directory."
|
|
||||||
echo "After this the functions are available for the duration of your bash session as if they where built-in commands!"
|
|
||||||
echo "That means to call the initialize function just type 'initialize' NOT './initialize'"
|
|
||||||
echo "You will see this message again when you source the file."
|
|
||||||
################################################################################
|
|
||||||
# Useful for debugging
|
|
||||||
################################################################################
|
|
||||||
alias glog="git log --oneline --graph"
|
|
||||||
alias gloga="git log --oneline --graph --all"
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#! /usr/bin/bash
|
|
||||||
filename=$1
|
|
||||||
arrangedFolder=${PWD}/arranged
|
|
||||||
newFilename=${filename:0:3}db23-arranged.pdf
|
|
||||||
echo "Arranging $filename"
|
|
||||||
/usr/bin/pdfjam --nup 2x2 --landscape --outfile $newFilename $filename
|
|
||||||
echo "Moving $new-filename to $arranged-folder"
|
|
||||||
mv $newFilename $arrangedFolder
|
|
||||||
echo "Done"
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
qpdf --empty --pages $(ls -l | grep -v '^d' | sort) -- "$1.pdf"
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Check if qpdf is installed
|
|
||||||
if ! command -v qpdf &> /dev/null; then
|
|
||||||
echo "Error: qpdf could not be found. Please install qpdf."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Target PDF filename
|
|
||||||
output_pdf="$1.pdf"
|
|
||||||
if [[ -z "$1" ]]; then
|
|
||||||
echo "Usage: $0 <output-file-base-name>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prepare an array to hold the PDF files
|
|
||||||
pdf_files=()
|
|
||||||
shopt -s nullglob
|
|
||||||
for file in *.pdf; do
|
|
||||||
pdf_files+=("$file")
|
|
||||||
done
|
|
||||||
|
|
||||||
# Check if we found any PDF files
|
|
||||||
if [[ ${#pdf_files[@]} -eq 0 ]]; then
|
|
||||||
echo "No PDF files found in the current directory."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Sort files just in case
|
|
||||||
IFS=$'\n' pdf_files=($(sort <<<"${pdf_files[*]}"))
|
|
||||||
unset IFS
|
|
||||||
|
|
||||||
# Run qpdf to combine PDF files
|
|
||||||
qpdf --empty --pages "${pdf_files[@]}" -- "$output_pdf"
|
|
||||||
|
|
||||||
echo "PDF files combined into $output_pdf"
|
|
||||||
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
#! /usr/bin/bash
|
|
||||||
|
|
||||||
filename=$1
|
|
||||||
arrangedFolder=${PWD}/arranged
|
|
||||||
newFilename=${filename}-pr23-arranged.pdf
|
|
||||||
echo "Arranging $filename"
|
|
||||||
/usr/bin/pdfjam --nup 2x1 --landscape --outfile $newFilename $filename
|
|
||||||
echo "Moving $newFilename to $arrangedFolder"
|
|
||||||
mv $newFilename $arrangedFolder
|
|
||||||
echo "Done"
|
|
||||||
351
dot-config/zellij.kdl
Normal file
351
dot-config/zellij.kdl
Normal file
@ -0,0 +1,351 @@
|
|||||||
|
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
||||||
|
keybinds {
|
||||||
|
normal {
|
||||||
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
|
// bind "Alt c" { Copy; }
|
||||||
|
}
|
||||||
|
locked {
|
||||||
|
bind "Ctrl g" { SwitchToMode "Normal"; }
|
||||||
|
}
|
||||||
|
resize {
|
||||||
|
bind "Ctrl n" { SwitchToMode "Normal"; }
|
||||||
|
bind "h" "Left" { Resize "Increase Left"; }
|
||||||
|
bind "j" "Down" { Resize "Increase Down"; }
|
||||||
|
bind "k" "Up" { Resize "Increase Up"; }
|
||||||
|
bind "l" "Right" { Resize "Increase Right"; }
|
||||||
|
bind "H" { Resize "Decrease Left"; }
|
||||||
|
bind "J" { Resize "Decrease Down"; }
|
||||||
|
bind "K" { Resize "Decrease Up"; }
|
||||||
|
bind "L" { Resize "Decrease Right"; }
|
||||||
|
bind "=" "+" { Resize "Increase"; }
|
||||||
|
bind "-" { Resize "Decrease"; }
|
||||||
|
}
|
||||||
|
pane {
|
||||||
|
bind "Ctrl p" { SwitchToMode "Normal"; }
|
||||||
|
bind "h" "Left" { MoveFocus "Left"; }
|
||||||
|
bind "l" "Right" { MoveFocus "Right"; }
|
||||||
|
bind "j" "Down" { MoveFocus "Down"; }
|
||||||
|
bind "k" "Up" { MoveFocus "Up"; }
|
||||||
|
bind "p" { SwitchFocus; }
|
||||||
|
bind "n" { NewPane; SwitchToMode "Normal"; }
|
||||||
|
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "r" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
|
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||||
|
bind "f" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||||
|
bind "z" { TogglePaneFrames; SwitchToMode "Normal"; }
|
||||||
|
bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; }
|
||||||
|
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }
|
||||||
|
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
|
||||||
|
}
|
||||||
|
move {
|
||||||
|
bind "Ctrl h" { SwitchToMode "Normal"; }
|
||||||
|
bind "n" "Tab" { MovePane; }
|
||||||
|
bind "p" { MovePaneBackwards; }
|
||||||
|
bind "h" "Left" { MovePane "Left"; }
|
||||||
|
bind "j" "Down" { MovePane "Down"; }
|
||||||
|
bind "k" "Up" { MovePane "Up"; }
|
||||||
|
bind "l" "Right" { MovePane "Right"; }
|
||||||
|
}
|
||||||
|
tab {
|
||||||
|
bind "Ctrl t" { SwitchToMode "Normal"; }
|
||||||
|
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
|
||||||
|
bind "h" "Left" "Up" "k" { GoToPreviousTab; }
|
||||||
|
bind "l" "Right" "Down" "j" { GoToNextTab; }
|
||||||
|
bind "n" { NewTab; SwitchToMode "Normal"; }
|
||||||
|
bind "x" { CloseTab; SwitchToMode "Normal"; }
|
||||||
|
bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; }
|
||||||
|
bind "b" { BreakPane; SwitchToMode "Normal"; }
|
||||||
|
bind "]" { BreakPaneRight; SwitchToMode "Normal"; }
|
||||||
|
bind "[" { BreakPaneLeft; SwitchToMode "Normal"; }
|
||||||
|
bind "1" { GoToTab 1; SwitchToMode "Normal"; }
|
||||||
|
bind "2" { GoToTab 2; SwitchToMode "Normal"; }
|
||||||
|
bind "3" { GoToTab 3; SwitchToMode "Normal"; }
|
||||||
|
bind "4" { GoToTab 4; SwitchToMode "Normal"; }
|
||||||
|
bind "5" { GoToTab 5; SwitchToMode "Normal"; }
|
||||||
|
bind "6" { GoToTab 6; SwitchToMode "Normal"; }
|
||||||
|
bind "7" { GoToTab 7; SwitchToMode "Normal"; }
|
||||||
|
bind "8" { GoToTab 8; SwitchToMode "Normal"; }
|
||||||
|
bind "9" { GoToTab 9; SwitchToMode "Normal"; }
|
||||||
|
bind "Tab" { ToggleTab; }
|
||||||
|
}
|
||||||
|
scroll {
|
||||||
|
bind "Ctrl s" { SwitchToMode "Normal"; }
|
||||||
|
bind "e" { EditScrollback; SwitchToMode "Normal"; }
|
||||||
|
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
bind "j" "Down" { ScrollDown; }
|
||||||
|
bind "k" "Up" { ScrollUp; }
|
||||||
|
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
|
||||||
|
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
|
||||||
|
bind "d" { HalfPageScrollDown; }
|
||||||
|
bind "u" { HalfPageScrollUp; }
|
||||||
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
|
// bind "Alt c" { Copy; }
|
||||||
|
}
|
||||||
|
search {
|
||||||
|
bind "Ctrl s" { SwitchToMode "Normal"; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
bind "j" "Down" { ScrollDown; }
|
||||||
|
bind "k" "Up" { ScrollUp; }
|
||||||
|
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
|
||||||
|
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
|
||||||
|
bind "d" { HalfPageScrollDown; }
|
||||||
|
bind "u" { HalfPageScrollUp; }
|
||||||
|
bind "n" { Search "down"; }
|
||||||
|
bind "p" { Search "up"; }
|
||||||
|
bind "c" { SearchToggleOption "CaseSensitivity"; }
|
||||||
|
bind "w" { SearchToggleOption "Wrap"; }
|
||||||
|
bind "o" { SearchToggleOption "WholeWord"; }
|
||||||
|
}
|
||||||
|
entersearch {
|
||||||
|
bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
|
||||||
|
bind "Enter" { SwitchToMode "Search"; }
|
||||||
|
}
|
||||||
|
renametab {
|
||||||
|
bind "Ctrl c" { SwitchToMode "Normal"; }
|
||||||
|
bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
|
||||||
|
}
|
||||||
|
renamepane {
|
||||||
|
bind "Ctrl c" { SwitchToMode "Normal"; }
|
||||||
|
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
|
||||||
|
}
|
||||||
|
session {
|
||||||
|
bind "Ctrl o" { SwitchToMode "Normal"; }
|
||||||
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
|
bind "d" { Detach; }
|
||||||
|
bind "w" {
|
||||||
|
LaunchOrFocusPlugin "zellij:session-manager" {
|
||||||
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tmux {
|
||||||
|
bind "[" { SwitchToMode "Scroll"; }
|
||||||
|
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
||||||
|
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
|
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||||
|
bind "c" { NewTab; SwitchToMode "Normal"; }
|
||||||
|
bind "," { SwitchToMode "RenameTab"; }
|
||||||
|
bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
||||||
|
bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
||||||
|
bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||||
|
bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||||
|
bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||||
|
bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||||
|
bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||||
|
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||||
|
bind "o" { FocusNextPane; }
|
||||||
|
bind "d" { Detach; }
|
||||||
|
bind "Space" { NextSwapLayout; }
|
||||||
|
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||||
|
}
|
||||||
|
shared_except "locked" {
|
||||||
|
bind "Ctrl g" { SwitchToMode "Locked"; }
|
||||||
|
bind "Ctrl q" { Quit; }
|
||||||
|
bind "Alt n" { NewPane; }
|
||||||
|
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
||||||
|
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
||||||
|
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
|
||||||
|
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
|
||||||
|
bind "Alt =" "Alt +" { Resize "Increase"; }
|
||||||
|
bind "Alt -" { Resize "Decrease"; }
|
||||||
|
bind "Alt [" { PreviousSwapLayout; }
|
||||||
|
bind "Alt ]" { NextSwapLayout; }
|
||||||
|
}
|
||||||
|
shared_except "normal" "locked" {
|
||||||
|
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
||||||
|
}
|
||||||
|
shared_except "pane" "locked" {
|
||||||
|
bind "Ctrl p" { SwitchToMode "Pane"; }
|
||||||
|
}
|
||||||
|
shared_except "resize" "locked" {
|
||||||
|
bind "Ctrl n" { SwitchToMode "Resize"; }
|
||||||
|
}
|
||||||
|
shared_except "scroll" "locked" {
|
||||||
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
|
}
|
||||||
|
shared_except "session" "locked" {
|
||||||
|
bind "Ctrl o" { SwitchToMode "Session"; }
|
||||||
|
}
|
||||||
|
shared_except "tab" "locked" {
|
||||||
|
bind "Ctrl t" { SwitchToMode "Tab"; }
|
||||||
|
}
|
||||||
|
shared_except "move" "locked" {
|
||||||
|
bind "Ctrl h" { SwitchToMode "Move"; }
|
||||||
|
}
|
||||||
|
shared_except "tmux" "locked" {
|
||||||
|
bind "Ctrl b" { SwitchToMode "Tmux"; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
tab-bar { path "tab-bar"; }
|
||||||
|
status-bar { path "status-bar"; }
|
||||||
|
strider { path "strider"; }
|
||||||
|
compact-bar { path "compact-bar"; }
|
||||||
|
session-manager { path "session-manager"; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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
|
||||||
|
//
|
||||||
|
// default_shell "fish"
|
||||||
|
|
||||||
|
// Choose the path to override cwd that zellij will use for opening new panes
|
||||||
|
//
|
||||||
|
// default_cwd ""
|
||||||
|
|
||||||
|
// Toggle between having pane frames around the panes
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
|
//
|
||||||
|
// pane_frames true
|
||||||
|
|
||||||
|
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
|
//
|
||||||
|
// auto_layout true
|
||||||
|
|
||||||
|
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
|
//
|
||||||
|
// session_serialization false
|
||||||
|
|
||||||
|
// Whether pane viewports are serialized along with the session, default is false
|
||||||
|
// Options:
|
||||||
|
// - true
|
||||||
|
// - false (default)
|
||||||
|
// serialize_pane_viewport true
|
||||||
|
|
||||||
|
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
|
||||||
|
// defaults to the scrollback size. If this number is higher than the scrollback size, it will
|
||||||
|
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
|
||||||
|
//
|
||||||
|
// scrollback_lines_to_serialize 10000
|
||||||
|
|
||||||
|
// Define color themes for Zellij
|
||||||
|
// For more examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes
|
||||||
|
// Once these themes are defined, one of them should to be selected in the "theme" section of this file
|
||||||
|
//
|
||||||
|
// themes {
|
||||||
|
// dracula {
|
||||||
|
// fg 248 248 242
|
||||||
|
// bg 40 42 54
|
||||||
|
// red 255 85 85
|
||||||
|
// green 80 250 123
|
||||||
|
// yellow 241 250 140
|
||||||
|
// blue 98 114 164
|
||||||
|
// magenta 255 121 198
|
||||||
|
// orange 255 184 108
|
||||||
|
// cyan 139 233 253
|
||||||
|
// black 0 0 0
|
||||||
|
// white 255 255 255
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Choose the theme that is specified in the themes section.
|
||||||
|
// Default: default
|
||||||
|
//
|
||||||
|
// theme "default"
|
||||||
|
|
||||||
|
// The name of the default layout to load on startup
|
||||||
|
// Default: "default"
|
||||||
|
//
|
||||||
|
// default_layout "compact"
|
||||||
|
|
||||||
|
// 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 "primary"
|
||||||
|
|
||||||
|
// Enable or disable automatic copy (and clear) of selection when releasing mouse
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
// copy_on_select false
|
||||||
|
|
||||||
|
// Path to the default editor to use to edit pane scrollbuffer
|
||||||
|
// Default: $EDITOR or $VISUAL
|
||||||
|
//
|
||||||
|
// scrollback_editor "/usr/bin/vim"
|
||||||
|
|
||||||
|
// When attaching to an existing session with other users,
|
||||||
|
// should the session be mirrored (true)
|
||||||
|
// or should each user have their own cursor (false)
|
||||||
|
// Default: false
|
||||||
|
//
|
||||||
|
// mirror_session true
|
||||||
|
|
||||||
|
// The folder in which Zellij will look for layouts
|
||||||
|
//
|
||||||
|
// layout_dir "/path/to/my/layout_dir"
|
||||||
|
|
||||||
|
// The folder in which Zellij will look for themes
|
||||||
|
//
|
||||||
|
// theme_dir "/path/to/my/theme_dir"
|
||||||
|
|
||||||
|
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
||||||
|
// May need to be disabled for certain unsupported terminals
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
// styled_underlines false
|
||||||
@ -8,33 +8,34 @@
|
|||||||
- **/__MACOSX/
|
- **/__MACOSX/
|
||||||
- **/venv/
|
- **/venv/
|
||||||
- **/.gitignore
|
- **/.gitignore
|
||||||
- **/.*config
|
- build/**
|
||||||
|
+ /.config/user-dirs.dirs
|
||||||
|
- **/.*config/*/**
|
||||||
- **/.*format
|
- **/.*format
|
||||||
- **/rocksdb/
|
- **/rocksdb/
|
||||||
- **/relic/
|
- **/relic/
|
||||||
- **/build/**
|
- **/build/**
|
||||||
- **/third_party/***
|
- **/third_party/
|
||||||
- **/*pethpc*/***
|
- **/*pethpc*/
|
||||||
- **/.idea/***
|
- **/.idea/
|
||||||
- .gitkeep
|
- .gitkeep
|
||||||
- **/.obsidian/***
|
- **/.obsidian/
|
||||||
- **/__pycache__/***
|
- **/__pycache__/
|
||||||
- **tutorat**
|
- **tutorat**
|
||||||
- **/unibas**dpi/**abgaben
|
- **/unibas**dpi/**abgaben
|
||||||
- **/*.rep/***
|
- **/*.rep/***
|
||||||
|
- **/datase*/**
|
||||||
+ **/projects/***
|
+ **/projects/***
|
||||||
+ **/scripts/***
|
+ **/scripts/***
|
||||||
+ **/documents/***
|
+ **/documents/***
|
||||||
+ **/.config/***
|
|
||||||
+ unibas**dpi/slides/***
|
+ unibas**dpi/slides/***
|
||||||
- abgaben/***
|
- **.csv
|
||||||
- *.csv
|
|
||||||
- .log/***
|
- .log/***
|
||||||
- *.log
|
- **.log
|
||||||
- .cache/***
|
- .cache/***
|
||||||
- dotfiles
|
- *dotfiles/
|
||||||
- *.dotfiles
|
- *.dotfiles
|
||||||
- a.out
|
- **/a.out
|
||||||
- *.o
|
- **.o
|
||||||
- slnopriv/**
|
- slnopriv/**
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user