From ea07b121b3030db6505b0eced242fe46cfcba915 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 5 Jul 2022 09:42:30 -0500 Subject: [PATCH] updates --- home/dot_zshrc | 5 +- home/executable_dot_xinitrc | 2 - home/executable_dot_xprofile | 1 + home/private_bin/executable_lock | 37 +- .../autorandr/executable_postswitch | 11 +- home/private_dot_config/wezterm/keys.lua | 145 ++++++- home/private_dot_config/wezterm/wezterm.lua | 7 +- home/private_dot_config/zellij/config.yaml | 353 ++++++++++++------ 8 files changed, 408 insertions(+), 153 deletions(-) diff --git a/home/dot_zshrc b/home/dot_zshrc index 2f567ed..2e833df 100644 --- a/home/dot_zshrc +++ b/home/dot_zshrc @@ -31,12 +31,9 @@ fi unset EXTRAFILE -# Export - export DOTFILES_DIR DOTFILES_EXTRA_DIR # welcome art -clear +# clear ! is-tty && [ -f ~/.welcome ] && cat ~/.welcome - diff --git a/home/executable_dot_xinitrc b/home/executable_dot_xinitrc index 5015084..960dd38 100644 --- a/home/executable_dot_xinitrc +++ b/home/executable_dot_xinitrc @@ -39,7 +39,6 @@ export SSH_AUTH_SOCK not_leftwm() { unclutter --timeout 1 & - autorandr -c & } # $1 is xterm @@ -67,6 +66,5 @@ case $2 in *) not_leftwm export DESKTOP_SESSION=qtile - exec qtile start ;; esac diff --git a/home/executable_dot_xprofile b/home/executable_dot_xprofile index 92cacfe..a854e09 100644 --- a/home/executable_dot_xprofile +++ b/home/executable_dot_xprofile @@ -3,5 +3,6 @@ # enable touch on only laptop monitor xinput --map-to-output 'ELAN901C:00 04F3:2C29' eDP-1 +pactl load-module module-switch-on-connect xss-lock -- ~/bin/lock & diff --git a/home/private_bin/executable_lock b/home/private_bin/executable_lock index 1cc19b5..9e49d93 100644 --- a/home/private_bin/executable_lock +++ b/home/private_bin/executable_lock @@ -1,7 +1,5 @@ #!/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 fi # colors @@ -43,9 +41,9 @@ make_figlet() { } font_size=25 -font_to_px=$((font_size * 16 / 12)) -greeter_h=$(($(make_figlet | wc -l) * font_to_px)) -greeter_w=$(($(make_figlet | wc -L) * font_to_px)) +font_to_px=$(( $font_size * 16 / 12 )) +greeter_h=$(($(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" @@ -57,33 +55,34 @@ sleep 0.1 # lock the screen i3lock \ - -n \ + -n \ --screen 1 \ - \ +\ --color $bg_color \ - --inside-color ffffff00 \ + --inside-color ffffff00 \ --ring-color $green \ --ringwrong-color $red \ --ringver-color $cyan \ --insidewrong-color $bg_color \ --insidever-color $bg_color \ - --line-uses-ring \ - --separator-color $selection \ + --line-uses-ring \ + --separator-color $selection \ --keyhl-color $cyan \ --bshl-color $red \ --wrong-color $red \ - \ - --ind-pos x+w-5-r:y+h-10-r \ - --ring-width 25 \ - --radius 100 \ +\ + --ind-pos x+w-5-r:y+h-10-r \ + --ring-width 25 \ + --radius 100 \ --verif-text "" \ - \ - --greeter-text "$(make_figlet)" \ +\ + --greeter-text "$(make_figlet)" \ --greeter-font "${font}" \ --greeter-size $font_size \ --greeter-color $cyan \ - --greeter-pos "${greeter_pos}" \ - --greeter-align 1 + --greeter-pos "${greeter_pos}" \ + --greeter-align 1 \ # resume message display pkill -u "$USER" -USR2 dunst + diff --git a/home/private_dot_config/autorandr/executable_postswitch b/home/private_dot_config/autorandr/executable_postswitch index f6d8d0a..c97820d 100644 --- a/home/private_dot_config/autorandr/executable_postswitch +++ b/home/private_dot_config/autorandr/executable_postswitch @@ -1,7 +1,6 @@ #!/usr/bin/env bash -# sleep 1 -# if [[ $DESKTOP_SESSION=="leftwm" ]]; then - # leftwm-command "SoftReload" -# elif [[ $DESTOP_SESSION=="qtile"]]; then - # qtile cmd-obj -o cmd -f restart -# fi + +# WM Agnostic +notify-send 'autorandr' '\nmonitor change detected\nresetting WM' +sleep 3 +xdotool key Shift_L+Super_L+R diff --git a/home/private_dot_config/wezterm/keys.lua b/home/private_dot_config/wezterm/keys.lua index 06c0ac7..d5a94ac 100644 --- a/home/private_dot_config/wezterm/keys.lua +++ b/home/private_dot_config/wezterm/keys.lua @@ -1,13 +1,150 @@ local wezterm = require("wezterm") -return { +local M = {} + +M.keys = { { key = "C", mods = "CTRL|SHIFT", action = wezterm.action { CopyTo = "ClipboardAndPrimarySelection" } }, -- paste from the clipboard { key = "V", mods = "CTRL|SHIFT", action = wezterm.action { PasteFrom = "Clipboard" } }, -- paste from the primary selection { key = "V", mods = "CTRL|SHIFT", action = wezterm.action { PasteFrom = "PrimarySelection" } }, -- change font size - {key="-", mods="CTRL", action="DecreaseFontSize"}, - {key="=", mods="CTRL", action="IncreaseFontSize"}, - { key = "Space", mods = "CTRL|SHIFT", action = "QuickSelect" }, + { key = "-", mods = "CTRL", action = "DecreaseFontSize" }, + { key = "=", mods = "CTRL", action = "IncreaseFontSize" }, + -- { 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 diff --git a/home/private_dot_config/wezterm/wezterm.lua b/home/private_dot_config/wezterm/wezterm.lua index 2a2add8..6f2e226 100644 --- a/home/private_dot_config/wezterm/wezterm.lua +++ b/home/private_dot_config/wezterm/wezterm.lua @@ -1,6 +1,6 @@ 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 wezterm.on("format-window-title", function() @@ -26,5 +26,6 @@ return { tab_bar_at_bottom = true, disable_default_key_bindings = true, bold_brightens_ansi_colors = true, - keys = require('keys'), + keys = keys.keys, + key_tables = keys.key_tables, } diff --git a/home/private_dot_config/zellij/config.yaml b/home/private_dot_config/zellij/config.yaml index 7ca55ab..7a867ef 100644 --- a/home/private_dot_config/zellij/config.yaml +++ b/home/private_dot_config/zellij/config.yaml @@ -22,28 +22,29 @@ keybinds: key: [Ctrl: 'o',] - action: [SwitchToMode: Move,] key: [Ctrl: 'h',] + - action: [SwitchToMode: Tmux,] + key: [Ctrl: 'b',] - action: [Quit,] key: [Ctrl: 'q',] - action: [NewPane: ] key: [ Alt: 'n',] - action: [MoveFocusOrTab: Left,] - key: [ Alt: 'h',] + key: [ Alt: 'h', Alt: Left] - action: [MoveFocusOrTab: Right,] - key: [ Alt: 'l',] + key: [ Alt: 'l', Alt: Right ] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up, ] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] key: [ Alt: '+'] - action: [Resize: Decrease,] key: [ Alt: '-'] + # uncomment this and adjust key if using copy_on_select=false + # - action: [Copy: ] + # key: [ Alt: 'c'] locked: - action: [SwitchToMode: Normal,] key: [Ctrl: 'g',] @@ -62,6 +63,8 @@ keybinds: key: [Ctrl: 'o',] - action: [SwitchToMode: Move,] key: [Ctrl: 'h',] + - action: [SwitchToMode: Tmux,] + key: [Ctrl: 'b',] - action: [Quit] key: [Ctrl: 'q'] - action: [Resize: Left,] @@ -80,18 +83,14 @@ keybinds: key: [Char: '-'] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + key: [ Alt: 'h', Alt: Left] + - action: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] @@ -113,6 +112,8 @@ keybinds: key: [Ctrl: 'o',] - action: [SwitchToMode: Move,] key: [Ctrl: 'h',] + - action: [SwitchToMode: Tmux,] + key: [Ctrl: 'b',] - action: [Quit,] key: [Ctrl: 'q',] - action: [MoveFocus: Left,] @@ -137,20 +138,20 @@ keybinds: 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: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + 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: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] @@ -188,18 +189,14 @@ keybinds: key: [Char: 'l', Right,] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + 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: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] @@ -219,6 +216,8 @@ keybinds: 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],] @@ -257,18 +256,14 @@ keybinds: key: [ Char: "\t" ] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + 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: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] @@ -276,6 +271,8 @@ keybinds: - action: [Resize: Decrease,] key: [ Alt: '-'] scroll: + - action: [EditScrollback, SwitchToMode: Normal] + key: [Char: 'e'] - action: [SwitchToMode: Normal,] key: [Ctrl: 's', Char: ' ', Char: "\n", Esc] - action: [SwitchToMode: Tab,] @@ -286,6 +283,8 @@ keybinds: key: [Ctrl: 'p',] - action: [SwitchToMode: Move,] key: [Ctrl: 'h',] + - action: [SwitchToMode: Tmux,] + key: [Ctrl: 'b',] - action: [SwitchToMode: Session,] key: [Ctrl: 'o',] - action: [SwitchToMode: Resize,] @@ -308,24 +307,23 @@ keybinds: key: [Char: 'u',] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + 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: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] key: [ Alt: '+'] - action: [Resize: Decrease,] key: [ Alt: '-'] + # uncomment this and adjust key if using copy_on_select=false + # - action: [Copy: ] + # key: [ Alt: 'c'] renametab: - action: [SwitchToMode: Normal,] key: [Char: "\n", Ctrl: 'c', Esc] @@ -333,18 +331,14 @@ keybinds: key: [Esc,] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + key: [ Alt: 'h', Alt: Left] + - action: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] @@ -358,18 +352,14 @@ keybinds: key: [Esc,] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + key: [ Alt: 'h', Alt: Left] + - action: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] @@ -385,6 +375,8 @@ keybinds: key: [Ctrl: 'p',] - action: [SwitchToMode: Move,] key: [Ctrl: 'h',] + - action: [SwitchToMode: Tmux,] + key: [Ctrl: 'b',] - action: [SwitchToMode: Tab,] key: [Ctrl: 't',] - action: [SwitchToMode: Normal,] @@ -397,31 +389,100 @@ keybinds: key: [Char: 'd',] - action: [NewPane: ,] key: [ Alt: 'n',] - - action: [MoveFocus: Left,] - key: [ Alt: 'h',] - - action: [MoveFocus: Right,] - key: [ Alt: 'l',] + - action: [MoveFocusOrTab: Left,] + key: [ Alt: 'h', Alt: Left] + - action: [MoveFocusOrTab: Right,] + key: [ Alt: 'l', Alt: Right] - action: [MoveFocus: Down,] - key: [ Alt: 'j',] + key: [ Alt: 'j', Alt: Down] - action: [MoveFocus: Up,] - key: [ Alt: 'k',] - - action: [FocusPreviousPane,] - key: [ Alt: '[',] - - action: [FocusNextPane,] - key: [ Alt: ']',] + key: [ Alt: 'k', Alt: Up] - action: [Resize: Increase,] key: [ Alt: '='] - action: [Resize: Increase,] key: [ Alt: '+'] - action: [Resize: Decrease,] key: [ Alt: '-'] - #plugins: - #- path: tab-bar - # tag: tab-bar - #- path: status-bar - # tag: status-bar - #- path: strider - #tag: strider + 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: [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 # 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 # Default: $SHELL -#default_shell: fish +# default_shell: fish # Toggle between having pane frames around the panes -#Options: - # - true (default) - #- false +# Options: +# - true (default) +# - false pane_frames: false # Choose the theme that is specified in the themes section. -# # Default: default -theme: dracula -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] +# For some examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes +# Default: default +#theme: default # Choose the mode that zellij uses when starting up. # Default: normal @@ -482,3 +530,78 @@ themes: # 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 +#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