Keybinds - pwnlog/Minima GitHub Wiki

Categories

BSPWM

Keyboard shortcuts for managing BSPWM process:

  • windows/super + alt + q: Quit BSPWM
  • windows/super + alt + r: Restart BSPWM
  • windows/super + w: Close window
  • windows/super + shift + w: Kill window
  • windows/super + m: Alternate between tiled and monocle layout
  • windows/super + y: Send the newest marked node to the newest preselected node
  • windows/super + g: Swap the current node and the biggest window

Launchers

Launchers for powermenu, programs, and other:

  • alt + shift + x: Activate lockscreen
  • windows/super + q: Open rofi powermenu
  • windows/super + d: Open rofi to launch programs
  • windows/super + enter: Open kitty terminal emulator
  • windows/super + ctrl + return: Open qterminal emulator
  • windows/super + ctrl + d: Open rofi as sudo

Context Menu

Context menu:

  • alt + right mouse: Open context menu

Focus/Swap Windows

Focus or swap windows:

  • windows/super + shift + Left,Down,Up,Right: Focus the node in the given direction
  • windows/super + shift + h,j,k,l: Focus the node in the given direction
  • windows/super + shift + c: Focus the next/previous window in the current desktop
  • windows/super + bracket{left,right}: Focus the next/previous desktop in the current monitor
  • windows/super + h,l: Focus the next/previous desktop in the current monitor
  • windows/super + {grave,Tab}: Focus the last node/desktop
  • windows/super + o,i: Focus the older or newer node in the focus history
  • windows/super + shift + 1-9,0: Focus or send to the given desktop

State/Flags Windows

Change the mode of the windows:

  • windows/super + t: Set tiled layout
  • windows/super + s: Set floating layout
  • windows/super + f: Set full screen layout
  • windows/super + ctrl + m,x,y,z: Set the node flags

Preselect Windows

Preselect the spawning location of a window:

  • windows/super + ctrl + Left,Down,Up,Right: Preselect left, down, up, right window
  • windows/super + ctrl + h,j,k,l: Preselect left, down, up, right window
  • windows/super + ctrl + 1-9: Preselect the ratio
  • windows/super + ctrl + space: Cancel the preselection for the focused node
  • windows/super + ctrl + shift + space: Cancel preselection of windows

Move/Resize Windows

Move and/or resize a window:

  • windows/super + Left,Down,Up,Right: Move floating window left, down, up, right window
  • windows/super + h,j,k,l: Move floating window left, down, up, right window
  • windows/super + alt + Left,Down,Up,Right: Resize left, down, up, right window
  • windows/super + alt + h,j,k,l: Resize left, down, up, right window

Custom Scripts

Activate UI features of Minima:

  • alt + windows/super + b: Change clients/windows corners to square or rounded
  • alt + windows/super + l: Activate Light theme
  • alt + windows/super + d: Activate Dark theme
  • alt + windows/super + c: Activate Colorful theme
  • alt + windows/super + e: Open wallpaper selector
  • alt + windows/super + w: Change wallpapers on the fly
  • windows/super + q: Open rofi powermenu

Neovim

The mapping configuration uses the nvim name shortcuts as:

  • <C> -> Ctrl
  • <leader> -> Space
  • <A> -> alt
  • <S> -> shift

Commands:

  • :w: Write a file
  • :q!: Quit a file
  • :view: View the file in read-only mode without the ability to change it
  • :split or :sp: Open the file in an horizontal split screen
  • :vsplit or :vsp: Open the file in a vertical split screen
  • :tabedit: Open the file in a new tab

Cheatsheet

Open the cheat sheet when in NORMAL mode:

  • space + c + h: Open or close the cheat sheet

Editor Navigation

Text editor navigation when in NORMAL mode:

  • ctrl + b: Go to the beginning of the line
  • ctrl + e: Go to the end of the line
  • ctrl + h: Move one character to the left
  • ctrl + l: Move one character to the right
  • ctrl + j: Go to the next line
  • ctrl + k: Go to the previous line

Line Numbers

Change the line numbers in a file when in NORMAL mode:

  • space + n: Standard line numbers
  • space + r + n: Relative line numbers

Tabbufline

Move through tabs when in NORMAL mode:

  • tab: Cycle through the buffers / tabs
  • shift + tab: Cycle through the buffers / tabs in reverse order
  • space + x: Close a buffer / tab

Terminal

Terminal tools in Neovim when in NORMAL mode:

  • space + h: Open a terminal in horizontal window
  • space + v: Open a terminal in vertical window

File Tree

Open the file tree when in NORMAL mode:

  • ctrl + n: Open NvimTree to browse files

Find Files

Find files in your file system when in NORMAL mode:

  • space + ff: Search for files in the system
  • space + f + b: Search within opened files/buffers

Theming

Theming Neovim current instance when in NORMAL mode:

  • space + t + h: Open the theme selector of NvChad

Text Selection

Text selection in the editor when in VISUAL mode:

  • ctrl + v: Enter the V-BLOC (Visual Block) mode to select and highlight the text
  • y: Copy the selected text
  • d: Delete the selected text
  • p: Pase the selected text when in NORMAL mode

Text Search

Search in COMMMAND mode:

  • /: Open the search box
    • n: Next search match
    • ?: Previous search match

Tmux

Tmux uses prefix keys to active key bindings:

  • <prefix> = Ctrl + a or Ctrl + b
  • <prefix> c = Ctrl + a or Ctrl + b followed by c
  • <prefix> C-c = Ctrl + a or Ctrl + b followed by Ctrl + c

Configuration

Tmux configuration related shortcuts:

  • <prefix> e: Opens the .local customization file copy with the editor defined by the $EDITOR environment variable

  • <prefix> r: Reloads the tmux configuration

History

Tmux history shortcut:

  • C-l: Clears both the screen and the tmux history

Sessions

Tmux sessions related shortcuts:

  • <prefix> C-c: Creates a new session

  • <prefix> C-f: Lets you switch to another session by name

Navigate Windows

Tmux navigation in windows:

  • <prefix> C-h and <prefix> C-l: Let you navigate windows (default <prefix> n and <prefix> p are unbound

Windows

Tmux windows related shortcuts:

  • <prefix> c: Create a new window
  • <prefix> x: Close current window
  • <prefix> <number>: Move to the window number
  • <prefix> ,: Rename current window
  • <prefix> Tab: Brings you to the last active window

Split Panes

Tmux split panes:

  • <prefix> -: Splits the current pane vertically

  • <prefix> _: Splits the current pane horizontally

Navigate Panes

Tmux navigate panes:

  • <prefix> h: Navigate left or right
  • <prefix> j: Navigate up or down
  • <prefix> k: Navigate up or down
  • <prefix> l: Navigate left or right

Note: When mouse mode is on, you can navigate the pane with the mouse left-click.

Resize Panes

Tmux resize panes:

  • <prefix> H: Resize to left
  • <prefix> J: Resize from up to down
  • <prefix> K: Resize from down to up
  • <prefix> L: Resize to right

Note: When mouse mode is on, you can navigate the pane with the mouse left-click (hold) and drag.

Swap Panes

Tmux swap panes:

  • <prefix> <: Swap pane to left
  • <prefix> >: Swap pane to right

Pane Size

Tmux pane zoom:

  • <prefix> +: Maximizes the current pane to a new window
  • <prefix z: Toggle full screen or minimize current pane

Mouse Mode

Tmux activate mouse mode:

  • <prefix> m: Toggles mouse mode on or off

Copy Mode

Tmux activate copy mode:

  • <prefix> Enter: Enters copy-mode

Copy-paste steps within Tmux:

  • Enable copy-mode and then hit Ctrl+Shift+C and paste to another terminal with Ctrl+Shift+V or if using a GUI app use Ctrl+V

Exit copy-mode:

  • Esc: Hit the Escape key to exit copy-mode

Scroll Mode

Tmux scroll mode:

  • prefix [: Activate scroll mode

Note: When mouse mode is on, you can turn on scroll mode by using the mouse wheel.

Exit scroll-mode:

  • Esc: Hit the Escape key to exit scroll-mode

Buffers

Tmux buffer related shortcuts:

  • <prefix> b: Lists the paste-buffers

  • <prefix> p: Pastes from the top paste-buffer

  • <prefix> P: Lets you choose the paste-buffer to paste from

⚠️ **GitHub.com Fallback** ⚠️