This commit is contained in:
Daylin Morgan 2022-07-05 09:42:30 -05:00
parent d482201c8b
commit ea07b121b3
8 changed files with 408 additions and 153 deletions

View file

@ -31,12 +31,9 @@ fi
unset EXTRAFILE unset EXTRAFILE
# Export
export DOTFILES_DIR DOTFILES_EXTRA_DIR export DOTFILES_DIR DOTFILES_EXTRA_DIR
# welcome art # welcome art
clear # clear
! is-tty && [ -f ~/.welcome ] && cat ~/.welcome ! is-tty && [ -f ~/.welcome ] && cat ~/.welcome

View file

@ -39,7 +39,6 @@ export SSH_AUTH_SOCK
not_leftwm() { not_leftwm() {
unclutter --timeout 1 & unclutter --timeout 1 &
autorandr -c &
} }
# $1 is xterm # $1 is xterm
@ -67,6 +66,5 @@ case $2 in
*) *)
not_leftwm not_leftwm
export DESKTOP_SESSION=qtile export DESKTOP_SESSION=qtile
exec qtile start
;; ;;
esac esac

View file

@ -3,5 +3,6 @@
# enable touch on only laptop monitor # enable touch on only laptop monitor
xinput --map-to-output 'ELAN901C:00 04F3:2C29' eDP-1 xinput --map-to-output 'ELAN901C:00 04F3:2C29' eDP-1
pactl load-module module-switch-on-connect
xss-lock -- ~/bin/lock & xss-lock -- ~/bin/lock &

View file

@ -1,7 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if ! [[ -f /usr/bin/i3lock ]]; then notify-send "no i3lock...install i3lock-color"
if ! [[ -f /usr/bin/i3lock ]]; then
notify-send "no i3lock...install i3lock-color"
exit exit
fi fi
# colors # colors
@ -43,9 +41,9 @@ make_figlet() {
} }
font_size=25 font_size=25
font_to_px=$((font_size * 16 / 12)) font_to_px=$(( $font_size * 16 / 12 ))
greeter_h=$(($(make_figlet | wc -l) * font_to_px)) greeter_h=$(($(make_figlet | wc -l) * $font_to_px))
greeter_w=$(($(make_figlet | wc -L) * font_to_px)) greeter_w=$(($(make_figlet | wc -L ) * $font_to_px))
greeter_pos="x+w/2-${greeter_w}/4:y+h/2-${greeter_h}/4" greeter_pos="x+w/2-${greeter_w}/4:y+h/2-${greeter_h}/4"
@ -57,33 +55,34 @@ sleep 0.1
# lock the screen # lock the screen
i3lock \ i3lock \
-n \ -n \
--screen 1 \ --screen 1 \
\ \
--color $bg_color \ --color $bg_color \
--inside-color ffffff00 \ --inside-color ffffff00 \
--ring-color $green \ --ring-color $green \
--ringwrong-color $red \ --ringwrong-color $red \
--ringver-color $cyan \ --ringver-color $cyan \
--insidewrong-color $bg_color \ --insidewrong-color $bg_color \
--insidever-color $bg_color \ --insidever-color $bg_color \
--line-uses-ring \ --line-uses-ring \
--separator-color $selection \ --separator-color $selection \
--keyhl-color $cyan \ --keyhl-color $cyan \
--bshl-color $red \ --bshl-color $red \
--wrong-color $red \ --wrong-color $red \
\ \
--ind-pos x+w-5-r:y+h-10-r \ --ind-pos x+w-5-r:y+h-10-r \
--ring-width 25 \ --ring-width 25 \
--radius 100 \ --radius 100 \
--verif-text "" \ --verif-text "" \
\ \
--greeter-text "$(make_figlet)" \ --greeter-text "$(make_figlet)" \
--greeter-font "${font}" \ --greeter-font "${font}" \
--greeter-size $font_size \ --greeter-size $font_size \
--greeter-color $cyan \ --greeter-color $cyan \
--greeter-pos "${greeter_pos}" \ --greeter-pos "${greeter_pos}" \
--greeter-align 1 --greeter-align 1 \
# resume message display # resume message display
pkill -u "$USER" -USR2 dunst pkill -u "$USER" -USR2 dunst

View file

@ -1,7 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# sleep 1
# if [[ $DESKTOP_SESSION=="leftwm" ]]; then # WM Agnostic
# leftwm-command "SoftReload" notify-send 'autorandr' '\nmonitor change detected\nresetting WM'
# elif [[ $DESTOP_SESSION=="qtile"]]; then sleep 3
# qtile cmd-obj -o cmd -f restart xdotool key Shift_L+Super_L+R
# fi

View file

@ -1,13 +1,150 @@
local wezterm = require("wezterm") local wezterm = require("wezterm")
return { local M = {}
M.keys = {
{ key = "C", mods = "CTRL|SHIFT", action = wezterm.action { CopyTo = "ClipboardAndPrimarySelection" } }, { key = "C", mods = "CTRL|SHIFT", action = wezterm.action { CopyTo = "ClipboardAndPrimarySelection" } },
-- paste from the clipboard -- paste from the clipboard
{ key = "V", mods = "CTRL|SHIFT", action = wezterm.action { PasteFrom = "Clipboard" } }, { key = "V", mods = "CTRL|SHIFT", action = wezterm.action { PasteFrom = "Clipboard" } },
-- paste from the primary selection -- paste from the primary selection
{ key = "V", mods = "CTRL|SHIFT", action = wezterm.action { PasteFrom = "PrimarySelection" } }, { key = "V", mods = "CTRL|SHIFT", action = wezterm.action { PasteFrom = "PrimarySelection" } },
-- change font size -- change font size
{key="-", mods="CTRL", action="DecreaseFontSize"}, { key = "-", mods = "CTRL", action = "DecreaseFontSize" },
{key="=", mods="CTRL", action="IncreaseFontSize"}, { key = "=", mods = "CTRL", action = "IncreaseFontSize" },
{ key = "Space", mods = "CTRL|SHIFT", action = "QuickSelect" }, -- { key = "Space", mods = "CTRL|SHIFT", action = "QuickSelect" },
{ key = "Space", mods = "CTRL|SHIFT", action = "ActivateCopyMode" },
} }
-- M.key_tables = {
-- copy_mode = {
-- { key = "c", mods = "CTRL", action = wezterm.action { CopyMode = "Close" } },
-- { key = "g", mods = "CTRL", action = wezterm.action { CopyMode = "Close" } },
-- { key = "q", mods = "NONE", action = wezterm.action { CopyMode = "Close" } },
-- { key = "Escape", mods = "NONE", action = wezterm.action { CopyMode = "Close" } },
-- { key = "h", mods = "NONE", action = wezterm.action { CopyMode = "MoveLeft" } },
-- { key = "j", mods = "NONE", action = wezterm.action { CopyMode = "MoveDown" } },
-- { key = "k", mods = "NONE", action = wezterm.action { CopyMode = "MoveUp" } },
-- { key = "l", mods = "NONE", action = wezterm.action { CopyMode = "MoveRight" } },
-- { key = "LeftArrow", mods = "NONE", action = wezterm.action { CopyMode = "MoveLeft" } },
-- { key = "DownArrow", mods = "NONE", action = wezterm.action { CopyMode = "MoveDown" } },
-- { key = "UpArrow", mods = "NONE", action = wezterm.action { CopyMode = "MoveUp" } },
-- { key = "RightArrow", mods = "NONE", action = wezterm.action { CopyMode = "MoveRight" } },
-- { key = "RightArrow", mods = "ALT", action = wezterm.action { CopyMode = "MoveForwardWord" } },
-- { key = "f", mods = "ALT", action = wezterm.action { CopyMode = "MoveForwardWord" } },
-- { key = "Tab", mods = "NONE", action = wezterm.action { CopyMode = "MoveForwardWord" } },
-- { key = "w", mods = "NONE", action = wezterm.action { CopyMode = "MoveForwardWord" } },
-- { key = "LeftArrow", mods = "ALT", action = wezterm.action { CopyMode = "MoveBackwardWord" } },
-- { key = "b", mods = "ALT", action = wezterm.action { CopyMode = "MoveBackwardWord" } },
-- { key = "Tab", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveBackwardWord" } },
-- { key = "b", mods = "NONE", action = wezterm.action { CopyMode = "MoveBackwardWord" } },
-- { key = "0", mods = "NONE", action = wezterm.action { CopyMode = "MoveToStartOfLine" } },
-- { key = "Enter", mods = "NONE", action = wezterm.action { CopyMode = "MoveToStartOfNextLine" } },
-- { key = "$", mods = "NONE", action = wezterm.action { CopyMode = "MoveToEndOfLineContent" } },
-- { key = "$", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveToEndOfLineContent" } },
-- { key = "m", mods = "ALT", action = wezterm.action { CopyMode = "MoveToStartOfLineContent" } },
-- { key = "^", mods = "NONE", action = wezterm.action { CopyMode = "MoveToStartOfLineContent" } },
-- { key = "^", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveToStartOfLineContent" } },
-- { key = " ", mods = "NONE", action = wezterm.action { CopyMode = "ToggleSelectionByCell" } },
-- { key = "v", mods = "NONE", action = wezterm.action { CopyMode = "ToggleSelectionByCell" } },
-- { key = "v", mods = "CTRL", action = wezterm.action { CopyMode = { SetSelectionMode = "Block" } } },
-- { key = "G", mods = "NONE", action = wezterm.action { CopyMode = "MoveToScrollbackBottom" } },
-- { key = "G", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveToScrollbackBottom" } },
-- { key = "g", mods = "NONE", action = wezterm.action { CopyMode = "MoveToScrollbackTop" } },
-- { key = "H", mods = "NONE", action = wezterm.action { CopyMode = "MoveToViewportTop" } },
-- { key = "H", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveToViewportTop" } },
-- { key = "M", mods = "NONE", action = wezterm.action { CopyMode = "MoveToViewportMiddle" } },
-- { key = "M", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveToViewportMiddle" } },
-- { key = "L", mods = "NONE", action = wezterm.action { CopyMode = "MoveToViewportBottom" } },
-- { key = "L", mods = "SHIFT", action = wezterm.action { CopyMode = "MoveToViewportBottom" } },
-- { key = "PageUp", mods = "NONE", action = wezterm.action { CopyMode = "PageUp" } },
-- { key = "PageDown", mods = "NONE", action = wezterm.action { CopyMode = "PageDown" } },
-- { key = "b", mods = "CTRL", action = wezterm.action { CopyMode = "PageUp" } },
-- { key = "f", mods = "CTRL", action = wezterm.action { CopyMode = "PageDown" } },
-- }
-- }
M.key_tables = {
copy_mode = {
{key="c", mods="CTRL", action=wezterm.action{CopyMode="Close"}},
{key="g", mods="CTRL", action=wezterm.action{CopyMode="Close"}},
{key="q", mods="NONE", action=wezterm.action{CopyMode="Close"}},
{key="Escape", mods="NONE", action=wezterm.action{CopyMode="Close"}},
{key="h", mods="NONE", action=wezterm.action{CopyMode="MoveLeft"}},
{key="j", mods="NONE", action=wezterm.action{CopyMode="MoveDown"}},
{key="k", mods="NONE", action=wezterm.action{CopyMode="MoveUp"}},
{key="l", mods="NONE", action=wezterm.action{CopyMode="MoveRight"}},
{key="LeftArrow", mods="NONE", action=wezterm.action{CopyMode="MoveLeft"}},
{key="DownArrow", mods="NONE", action=wezterm.action{CopyMode="MoveDown"}},
{key="UpArrow", mods="NONE", action=wezterm.action{CopyMode="MoveUp"}},
{key="RightArrow", mods="NONE", action=wezterm.action{CopyMode="MoveRight"}},
{key="RightArrow", mods="ALT", action=wezterm.action{CopyMode="MoveForwardWord"}},
{key="f", mods="ALT", action=wezterm.action{CopyMode="MoveForwardWord"}},
{key="Tab", mods="NONE", action=wezterm.action{CopyMode="MoveForwardWord"}},
{key="w", mods="NONE", action=wezterm.action{CopyMode="MoveForwardWord"}},
{key="LeftArrow", mods="ALT", action=wezterm.action{CopyMode="MoveBackwardWord"}},
{key="b", mods="ALT", action=wezterm.action{CopyMode="MoveBackwardWord"}},
{key="Tab", mods="SHIFT", action=wezterm.action{CopyMode="MoveBackwardWord"}},
{key="b", mods="NONE", action=wezterm.action{CopyMode="MoveBackwardWord"}},
{key="0", mods="NONE", action=wezterm.action{CopyMode="MoveToStartOfLine"}},
{key="Enter", mods="NONE", action=wezterm.action{CopyMode="MoveToStartOfNextLine"}},
{key="$", mods="NONE", action=wezterm.action{CopyMode="MoveToEndOfLineContent"}},
{key="$", mods="SHIFT", action=wezterm.action{CopyMode="MoveToEndOfLineContent"}},
{key="m", mods="ALT", action=wezterm.action{CopyMode="MoveToStartOfLineContent"}},
{key="^", mods="NONE", action=wezterm.action{CopyMode="MoveToStartOfLineContent"}},
{key="^", mods="SHIFT", action=wezterm.action{CopyMode="MoveToStartOfLineContent"}},
{key=" ", mods="NONE", action=wezterm.action{CopyMode={SetSelectionMode="Cell"}}},
{key="v", mods="NONE", action=wezterm.action{CopyMode={SetSelectionMode="Cell"}}},
{key="V", mods="NONE", action=wezterm.action{CopyMode={SetSelectionMode="Line"}}},
{key="V", mods="SHIFT", action=wezterm.action{CopyMode={SetSelectionMode="Line"}}},
{key="v", mods="CTRL", action=wezterm.action{CopyMode={SetSelectionMode="Block"}}},
{key="G", mods="NONE", action=wezterm.action{CopyMode="MoveToScrollbackBottom"}},
{key="G", mods="SHIFT", action=wezterm.action{CopyMode="MoveToScrollbackBottom"}},
{key="g", mods="NONE", action=wezterm.action{CopyMode="MoveToScrollbackTop"}},
{key="H", mods="NONE", action=wezterm.action{CopyMode="MoveToViewportTop"}},
{key="H", mods="SHIFT", action=wezterm.action{CopyMode="MoveToViewportTop"}},
{key="M", mods="NONE", action=wezterm.action{CopyMode="MoveToViewportMiddle"}},
{key="M", mods="SHIFT", action=wezterm.action{CopyMode="MoveToViewportMiddle"}},
{key="L", mods="NONE", action=wezterm.action{CopyMode="MoveToViewportBottom"}},
{key="L", mods="SHIFT", action=wezterm.action{CopyMode="MoveToViewportBottom"}},
{key="o", mods="NONE", action=wezterm.action{CopyMode="MoveToSelectionOtherEnd"}},
{key="O", mods="NONE", action=wezterm.action{CopyMode="MoveToSelectionOtherEndHoriz"}},
{key="O", mods="SHIFT", action=wezterm.action{CopyMode="MoveToSelectionOtherEndHoriz"}},
{key="PageUp", mods="NONE", action=wezterm.action{CopyMode="PageUp"}},
{key="PageDown", mods="NONE", action=wezterm.action{CopyMode="PageDown"}},
{key="b", mods="CTRL", action=wezterm.action{CopyMode="PageUp"}},
{key="f", mods="CTRL", action=wezterm.action{CopyMode="PageDown"}},
}
}
return M

View file

@ -1,6 +1,6 @@
local wezterm = require("wezterm") local wezterm = require("wezterm")
local catppuccin = require("colors/catppuccin").setup {} local catppuccin = require("colors/catppuccin").setup{}
local keys = require("keys")
-- add wezterm to title for wm usage -- add wezterm to title for wm usage
wezterm.on("format-window-title", wezterm.on("format-window-title",
function() function()
@ -26,5 +26,6 @@ return {
tab_bar_at_bottom = true, tab_bar_at_bottom = true,
disable_default_key_bindings = true, disable_default_key_bindings = true,
bold_brightens_ansi_colors = true, bold_brightens_ansi_colors = true,
keys = require('keys'), keys = keys.keys,
key_tables = keys.key_tables,
} }

View file

@ -22,28 +22,29 @@ keybinds:
key: [Ctrl: 'o',] key: [Ctrl: 'o',]
- action: [SwitchToMode: Move,] - action: [SwitchToMode: Move,]
key: [Ctrl: 'h',] key: [Ctrl: 'h',]
- action: [SwitchToMode: Tmux,]
key: [Ctrl: 'b',]
- action: [Quit,] - action: [Quit,]
key: [Ctrl: 'q',] key: [Ctrl: 'q',]
- action: [NewPane: ] - action: [NewPane: ]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocusOrTab: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left]
- action: [MoveFocusOrTab: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right ]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up, ]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '+'] key: [ Alt: '+']
- action: [Resize: Decrease,] - action: [Resize: Decrease,]
key: [ Alt: '-'] key: [ Alt: '-']
# uncomment this and adjust key if using copy_on_select=false
# - action: [Copy: ]
# key: [ Alt: 'c']
locked: locked:
- action: [SwitchToMode: Normal,] - action: [SwitchToMode: Normal,]
key: [Ctrl: 'g',] key: [Ctrl: 'g',]
@ -62,6 +63,8 @@ keybinds:
key: [Ctrl: 'o',] key: [Ctrl: 'o',]
- action: [SwitchToMode: Move,] - action: [SwitchToMode: Move,]
key: [Ctrl: 'h',] key: [Ctrl: 'h',]
- action: [SwitchToMode: Tmux,]
key: [Ctrl: 'b',]
- action: [Quit] - action: [Quit]
key: [Ctrl: 'q'] key: [Ctrl: 'q']
- action: [Resize: Left,] - action: [Resize: Left,]
@ -80,18 +83,14 @@ keybinds:
key: [Char: '-'] key: [Char: '-']
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left]
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
@ -113,6 +112,8 @@ keybinds:
key: [Ctrl: 'o',] key: [Ctrl: 'o',]
- action: [SwitchToMode: Move,] - action: [SwitchToMode: Move,]
key: [Ctrl: 'h',] key: [Ctrl: 'h',]
- action: [SwitchToMode: Tmux,]
key: [Ctrl: 'b',]
- action: [Quit,] - action: [Quit,]
key: [Ctrl: 'q',] key: [Ctrl: 'q',]
- action: [MoveFocus: Left,] - action: [MoveFocus: Left,]
@ -137,20 +138,20 @@ keybinds:
key: [Char: 'f',] key: [Char: 'f',]
- action: [TogglePaneFrames, SwitchToMode: Normal,] - action: [TogglePaneFrames, SwitchToMode: Normal,]
key: [Char: 'z',] key: [Char: 'z',]
- action: [ToggleFloatingPanes, SwitchToMode: Normal,]
key: [Char: 'w']
- action: [TogglePaneEmbedOrFloating, SwitchToMode: Normal,]
key: [Char: 'e']
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
@ -188,18 +189,14 @@ keybinds:
key: [Char: 'l', Right,] key: [Char: 'l', Right,]
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
@ -219,6 +216,8 @@ keybinds:
key: [Ctrl: 's'] key: [Ctrl: 's']
- action: [SwitchToMode: Move,] - action: [SwitchToMode: Move,]
key: [Ctrl: 'h',] key: [Ctrl: 'h',]
- action: [SwitchToMode: Tmux,]
key: [Ctrl: 'b',]
- action: [SwitchToMode: Session,] - action: [SwitchToMode: Session,]
key: [Ctrl: 'o',] key: [Ctrl: 'o',]
- action: [SwitchToMode: RenameTab, TabNameInput: [0],] - action: [SwitchToMode: RenameTab, TabNameInput: [0],]
@ -257,18 +256,14 @@ keybinds:
key: [ Char: "\t" ] key: [ Char: "\t" ]
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
@ -276,6 +271,8 @@ keybinds:
- action: [Resize: Decrease,] - action: [Resize: Decrease,]
key: [ Alt: '-'] key: [ Alt: '-']
scroll: scroll:
- action: [EditScrollback, SwitchToMode: Normal]
key: [Char: 'e']
- action: [SwitchToMode: Normal,] - action: [SwitchToMode: Normal,]
key: [Ctrl: 's', Char: ' ', Char: "\n", Esc] key: [Ctrl: 's', Char: ' ', Char: "\n", Esc]
- action: [SwitchToMode: Tab,] - action: [SwitchToMode: Tab,]
@ -286,6 +283,8 @@ keybinds:
key: [Ctrl: 'p',] key: [Ctrl: 'p',]
- action: [SwitchToMode: Move,] - action: [SwitchToMode: Move,]
key: [Ctrl: 'h',] key: [Ctrl: 'h',]
- action: [SwitchToMode: Tmux,]
key: [Ctrl: 'b',]
- action: [SwitchToMode: Session,] - action: [SwitchToMode: Session,]
key: [Ctrl: 'o',] key: [Ctrl: 'o',]
- action: [SwitchToMode: Resize,] - action: [SwitchToMode: Resize,]
@ -308,24 +307,23 @@ keybinds:
key: [Char: 'u',] key: [Char: 'u',]
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left] # The Alt: Left etc. variants are temporary hacks and will be removed in the future - please do not rely on them!
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '+'] key: [ Alt: '+']
- action: [Resize: Decrease,] - action: [Resize: Decrease,]
key: [ Alt: '-'] key: [ Alt: '-']
# uncomment this and adjust key if using copy_on_select=false
# - action: [Copy: ]
# key: [ Alt: 'c']
renametab: renametab:
- action: [SwitchToMode: Normal,] - action: [SwitchToMode: Normal,]
key: [Char: "\n", Ctrl: 'c', Esc] key: [Char: "\n", Ctrl: 'c', Esc]
@ -333,18 +331,14 @@ keybinds:
key: [Esc,] key: [Esc,]
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left]
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
@ -358,18 +352,14 @@ keybinds:
key: [Esc,] key: [Esc,]
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left]
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
@ -385,6 +375,8 @@ keybinds:
key: [Ctrl: 'p',] key: [Ctrl: 'p',]
- action: [SwitchToMode: Move,] - action: [SwitchToMode: Move,]
key: [Ctrl: 'h',] key: [Ctrl: 'h',]
- action: [SwitchToMode: Tmux,]
key: [Ctrl: 'b',]
- action: [SwitchToMode: Tab,] - action: [SwitchToMode: Tab,]
key: [Ctrl: 't',] key: [Ctrl: 't',]
- action: [SwitchToMode: Normal,] - action: [SwitchToMode: Normal,]
@ -397,31 +389,100 @@ keybinds:
key: [Char: 'd',] key: [Char: 'd',]
- action: [NewPane: ,] - action: [NewPane: ,]
key: [ Alt: 'n',] key: [ Alt: 'n',]
- action: [MoveFocus: Left,] - action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h',] key: [ Alt: 'h', Alt: Left]
- action: [MoveFocus: Right,] - action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l',] key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,] - action: [MoveFocus: Down,]
key: [ Alt: 'j',] key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,] - action: [MoveFocus: Up,]
key: [ Alt: 'k',] key: [ Alt: 'k', Alt: Up]
- action: [FocusPreviousPane,]
key: [ Alt: '[',]
- action: [FocusNextPane,]
key: [ Alt: ']',]
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '='] key: [ Alt: '=']
- action: [Resize: Increase,] - action: [Resize: Increase,]
key: [ Alt: '+'] key: [ Alt: '+']
- action: [Resize: Decrease,] - action: [Resize: Decrease,]
key: [ Alt: '-'] key: [ Alt: '-']
#plugins: tmux:
#- path: tab-bar - action: [SwitchToMode: Locked,]
# tag: tab-bar key: [Ctrl: 'g']
#- path: status-bar - action: [SwitchToMode: Resize,]
# tag: status-bar key: [Ctrl: 'n',]
#- path: strider - action: [SwitchToMode: Pane,]
#tag: strider 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: [Quit,]
key: [Ctrl: 'q',]
- 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: [NewPane: ,]
key: [ Alt: 'n',]
- action: [MoveFocusOrTab: Left,]
key: [ Alt: 'h', Alt: Left]
- action: [MoveFocusOrTab: Right,]
key: [ Alt: 'l', Alt: Right]
- action: [MoveFocus: Down,]
key: [ Alt: 'j', Alt: Down]
- action: [MoveFocus: Up,]
key: [ Alt: 'k', Alt: Up]
- 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
- path: compact-bar
tag: compact-bar
# Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP # Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
# eg. when terminal window with an active zellij session is closed # eg. when terminal window with an active zellij session is closed
@ -438,31 +499,18 @@ keybinds:
# Choose the path to the default shell that zellij will use for opening new panes # Choose the path to the default shell that zellij will use for opening new panes
# Default: $SHELL # Default: $SHELL
#default_shell: fish # default_shell: fish
# Toggle between having pane frames around the panes # Toggle between having pane frames around the panes
#Options: # Options:
# - true (default) # - true (default)
#- false # - false
pane_frames: false pane_frames: false
# Choose the theme that is specified in the themes section. # Choose the theme that is specified in the themes section.
# # Default: default # For some examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes
theme: dracula # Default: default
themes: #theme: default
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]
# Choose the mode that zellij uses when starting up. # Choose the mode that zellij uses when starting up.
# Default: normal # Default: normal
@ -482,3 +530,78 @@ themes:
# Valid values: positive integers # Valid values: positive integers
# Default value: 10000 # Default value: 10000
#scroll_buffer_size: 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
#copy_on_select: true
# Path to the default editor to use to edit pane scrollbuffer
# scrollback_editor: /usr/bin/nano
theme: catppuccin
themes:
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