zsh configs

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-03-17 21:17:46 +01:00
parent c24fd84b7b
commit e02fa7f43d
5 changed files with 68 additions and 48 deletions

View File

@@ -105,8 +105,7 @@ bindsym $mod+Shift+space exec --no-startup-id python ~/.scripts/i3lock.py
bindsym $mod+Shift+s exec poweroff
# start a terminal
bindsym $mod+space exec alacritty
bindsym $mod+Return exec alacritty -e zellij
bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+q kill
@@ -128,6 +127,14 @@ bindsym XF86AudioNext exec "playerctl next"
bindsym XF86AudioPrevious exec "playerctl previous"
bindsym XF86AudioMicMute exec "amixer set Capture toggle"
# F9-F12 on Thinkpad
bindsym XF86Display exec lxrandr
bindsym XF86Messenger exec signal-desktop
bindsym XF86Go exec dunstify -r 3 "Go"
bindsym Cancel exec dunstify -r 3 "Cancel"
bindsym XF86Favorites exec dunstify -r 3 "Favorites"
# Application Shortcuts
bindsym $mod+b exec firefox
bindsym $mod+p exec firefox --private-window https://tudattr.dev

View File

@@ -1,8 +1,6 @@
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
keybinds {
normal clear-defaults=true {
// uncomment this and adjust key if using copy_on_select=false
// bind "Alt c" { Copy; }
bind "F1" {SwitchToMode "Tab"; }
bind "F2" {SwitchToMode "Pane"; }
bind "F5" {SwitchToMode "Session"; }
@@ -22,6 +20,25 @@ keybinds {
bind "Alt -" { Resize "Decrease"; }
}
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 "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; }
}
locked {
bind "F12" { SwitchToMode "Normal"; }
}
@@ -63,25 +80,6 @@ keybinds {
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 "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"; }
@@ -299,7 +297,7 @@ theme "tokyo-night-dark"
// Path to the default editor to use to edit pane scrollbuffer
// Default: $EDITOR or $VISUAL
//
// scrollback_editor "/usr/bin/vim"
scrollback_editor "/usr/bin/nvim"
// When attaching to an existing session with other users,
// should the session be mirrored (true)

View File

@@ -18,6 +18,7 @@ Host git.tudattr.dev
Port 2222
User git
IdentityFile /mnt/veracrypt1/git
ProxyJump mii
# Homeserver
Host madrigal