My current setup requires me to memorize ALOT of shortcuts, so here they are:
curl https://ech1.github.io/blog/Conf/scut.html
Here's my i3 config , i set it up with this script on a minimal arch install
#my Modkey is the windows key (Mod4), it's at the very top of my i3config file.
#Change workspaces :
-Mod+1234567890
#Change focus to next window :
-Mod+Arrow
#KILL the window:
-Mod+Shift+Q
#Toggle Vertical/Horizontal layout :
-Mod+V or H (and then move/create a window where you put the V/H mode)
#Move window in the workspace :
-Mod+Shift+Arrow
#Move window to workspace:
-Mod+Shift+12345647890
#Create Terminal window (with tmux or without tmux):
-Mod+Enter
-Mod+Shift+Enter
#open any application:
-Mod+d
(type application name)
ENTER
#Toggle floating mode on a window:
-Mod+Space
#Enter resize mode:
-Mod+R
-then Arrows to resize
-then ESC to exit resize mode
Remmina
#Enable keyboard grabbing
CTRLR
#Toggle Fullscreen
CTRLR + F
#Switch tab pages
CTRLR + Left,Right
#Close connection
CTRLR + F4
Here's how i setup my terminal to have alacritty with tmux (it has a custom tmux configuration, bashrc and alacritty.yml):
#enter tmux:
tmux
#CTRL+b is the default tmux keybind to start any tmux action.
#to cancel it just press ESC
#WINDOWS
#Create a new window:
CTRL+b c
#kill current window:
CTRL+b &
#Rename Window
Ctrl+B ,
#Goto window:
CTRL+b 123456789
#Browse the tmux sessions (windows and panes)
CTRL+b W
#PANES (contained within windows) :
#split vertically or horizontally (this is creating panes basically):
#CTRL+b "
#CTRL+b %
#Change pane focus:
CTRL+b Arrow
#Cycle Panes:
CTRL+B o
#Cycle Move panes:
CTRL+B CTRL+O
#Move pane into new window:
CTRL+B !
#Resize Pane:
CTRL+b CTRL+Arrow
#close pane:
CTRL+b x
#display pane numbers:
CTRL+b q
#COPY AND PASTE
CTRL+b [ (to enter copy mode, or PageUP to place the cursor farther up)
arrow keys (to place the cursor where you need it (or PageUP/PageDN))
CTRL+Space (and then move the cursor to select the lines you need)
CTRL+W (to copy your selection into the buffer)
CTRL+SHIFT+V (to paste your selection)
SHIFT+insert (to paste your selection)
CTRL+B [
then CTRL+S (Search Pattern downward)
then Enter
then hit n to cycle through the results
CTRL+B [
then CTRL+R (Search Pattern upward)
then Enter
then hit n to cycle through results
CTRL+B f (find window based on what's displayed in it)
Sometimes you just need to edit files from the commandline so you can use nano or vim:
Nano is nice for quick modifications on small files:
#To edit test.txt
nano test.txt
#Save the edited file:
CTRL+S
#to exit nano:
CTRL+W
#Find a word / pattern in the file:
CTRL+W
#To find a pattern and replace it everytime:
CTRL+W
CTRL+R
(enter the pattern) then ENTER
(enter the string to replace with) then ENTER
A (to replace every instance)
Y or N (to replace/deny each individual instance)
However Vim is better for larger, more drastic changes on files where you need precision and efficiency:
vim test.txt
#for commands that start with : you need to press ENTER to validate them
#to modify the file, you need to enter the "insert mode"
i
#once you're done editing text, leave insert mode
ESC
#to save:
:w
#to save and quit:
:wq
#to quit and abort:
:qa!
#to cut lines:
:d2 (deletes 2 lines)
:d10 (deletes 10 lines)
#to copy lines:
:2yy
:10yy
#To paste lines:
ppppp
#to replace patterns with a chosen string:
#This will search the entire file for the pattern and replace it everywhere!
:%s/pattern/my-chosen-string
#to goto the first line with the chosen string
/my-chosen-string
#swap current line with next one
ddp
#get help in vim:
:help
#show the previous commands
:UPARROW
:DOWNARROW
#COPY : just use the tmux copypaste
#PASTE:
i (to enter insert mode)
CTRL+SHIFT+V (to paste)
ESC (to exit insert mode)
Web browsers are mouse-driven for many things, but a whole lot of actions can be done by keyboard:
#create a new tab:
CTRL+T
#create a new private window:
CTRL+SHIFT+P
#previous/next tab:
CTRL+PGUP
CTRL+PGDN
#move the selected tab left/right
CTRL+SHIFT+PGUP
CTRL+SHIFT+PGDN
#Goto tab number:
ALT+0123456789
#Close tab and re-open it:
CTRL+W
CTRL+SHIFT+T
#GO TO HOME (this is the key that is used to go at the beginning of the line)
ALT+HOME
#previous/next page/link:
ALT+LEFTARROW
ALT+RIGHTARROW
#Zoom
CTRL++
CTRL+-
#Search Term
CTRL+F (then type pattern) (then press enter)