Suckless
This page explains basic usage of different suckless programs
dwm (display manager) dmenu (dwm launch menu) dwmstatus (dwm status bar) st (terminal emulator) feh (image viewer) ranger (file manager) zathura (pdf reader) lynx (text web browser)
st
st is a minimal terminal emulator.
Ctrl + Shift + PgUp/PgDown/Home -> Zoom in / Zoom out / Reset
vifm
vifm is a text based file manager. It uses Vim-like key binding.
- :w -> Save whatever change you make to vifm. Otherwise it won't persist in next launch
- tab -> Switch pane
- w -> Preview directory/file in the opposite pane (toggle key)
- shitf + tab -> Swift focus to preview pane (toggle key)
- e -> Explore directory/file in the current pane
- q -> Exit explore
- 'h -> Go to home directory
- zm/zo -> Hide/Show hidden directories/files
- cw/cW -> Rename file / rename file without changing extension
- m + key -> Create a markdown in the current parent directory
- ' + key -> Go to the markdown
- :marks -> List all markdowns
- u -> Undo (for instance, if you delete a file)
- :copy - copy current file or selected files from active pane to inactive pane (fails on name conflicts).
- :copy! - copy current file or selected files from active pane to inactive pane (overwrites files at destination).
- :move - move current file or selected files from active pane to inactive pane (fails on name conflicts).
- :move! - move current file or selected files from active pane to inactive pane (overwrites files at destination).
- :delete - moves current file or selected files to trash.
- :delete! - erases current file or selected files (by defaults after confirmation).
- :mkdir dirname - create directory
In Ubuntu, trash is located on .local/share/Trash
Selections
- To select multiple consecutive files, press v and move cursor up or down.
- To select multiple alternate files, press v and move the curser up or down, press Return, move to the next alternate file and press av, press Return and so on.
Ranger
Ranger is a text based file manager. It uses Vim-like key binding.
- Ctrl + h -> Show hidden files
- i -> Inspect text files
- r -> Open file by presenting a list of programs to choose from
- space -> select/unselect file
- v -> select/unselect all files
- V -> select marked files
- uV -> unselect marked files
- yy -> copy selected files
- dd -> cut selected files
- pp -> paste selected files
- Ctrl + n -> Open a new tab
- gt -> Go to next tab
- gc -> Close current tab
- :delete -> Delete file or directory
- q -> Quit
Config file
~$ ranger --copy-config=riflecreating: /home/cheo/.config/ranger/rifle.conf> Please note that configuration files may change as ranger evolves.It's completely up to you to keep them up to date.> To stop ranger from loading both the default and your custom rc.conf,please set the environment variable RANGER_LOAD_DEFAULT_RC to FALSE.
Zathura
Zathura is a PDF viewer. It uses Vim-like key binding.
- Tab: -> Show index
- /, ? -> Search
- n, N -> Jump to the next or previous match of a Search
- PgUp PgDown -! Jump to previous/next page
- 23G -> Jump to page 23
- - + -> Zoom
- r -> Rotate by 90 degrees
- d -> Toggle dual page view
Copy text
In order to enable copy text in Zathura, create the file zathurarc and add:
set selection-clipboard clipboard
Lynx
Lynx is a text web browser.
- g: -> go to page...
- return or right arrow -> go to link
- left arrow -> go back to previous page
- m -> go to main page
- a -> bookmark page
- v -> go to bookmarks list page
- V -> go to visited links page
- backspace -> got to history page
- d -> Download link
- q -> quit
sic
sic is a very basic console based IRC client
- Connect to Freenode server:
sic -h chat.freenode.net -n YourNick -k YourPassword - Connect to a channel:
:j #channel - Leave channel:
:l #channel
irssi
irssi is a console based IRC client
/connect chat.freenode.net username password/join #channel/join #channel2/msg [nickname] Hi there/leave #channel2/exit
- Alt + number: Move between windows
mutt
Send a message with attachments
mutt -s "My files" recipient@mail.com -a file1.jpg file2.txt
- c: change folder