Skip to content

Latest commit

 

History

History
379 lines (297 loc) · 17.5 KB

File metadata and controls

379 lines (297 loc) · 17.5 KB

🛠️ Learn about terminal utilities:

🧩 1. Additional Packages to be Installed:

  • nala: Nala is a front-end for apt
  • bat: Better replacement of cat
  • eza: A modern, maintained replacement for ls
  • fastfetch: Better replacement of neofetch
  • zoxide: A smarter cd command

🤓 How to use them?

  • cd is replaced with zoxide (use the cd command it will use zoxide)
  • use apt command it will use nala (for APT only)
  • use ls command it will use eza
  • use neofetch command it will use fastfetch
  • use cat command it will use bat

💥 2. Special Functions

  • extract: Use extract command to extract any archive
  • ftext: Searches for text in all files in the current folder
  • cpg: Copy and go to the directory
  • mvg: Move and go to the directory
  • mkdirg: Create and go to the directory
  • tdconfig Print your current termux-desktop configuration
  • pdappps Open the folder where all the apps added by proot-distro are located
  • startssh To start a ssh server (after starting ssh, it will print the ip and port which you need for the connection)
  • stopssh To stop the ssh server
  • listfont To list all font
  • largefile To list large files
  • preview use fzf to search file and preview text file
  • fnvim use fzf to search for an file and open the directly in neovim
  • fvim same as fnvim but for vim
  • fkill to fuzzy find and kill the process
  • myip shows your ip address
  • speedtest run a speedtest
  • backup: Quick backup of a file or directory with timestamp
  • freplace: Find and replace text in files
  • duf: Show disk usage of directories in current path (top 20 largest)
  • note: Quick note taking
  • findbig: Find files larger than specified size (default >100M)
  • encrypt: Encrypt files using OpenSSL AES-256-CBC encryption
  • decrypt: Decrypt files that were encrypted with the encrypt function
  • checksum: Calculate MD5, SHA1, and SHA256 checksums for files
  • cp2clip: Copy any text content from a file to the clipboard
    For more cat $HOME/.aliases

🧩 3. Special Programs (scripts):

  • termux-fastest-repo: same as termux-change-repo but tests and chooses the fastest repo (only for apt)
  • termux-color: A TUI tool to switch between color schemes with live preview.
  • termux-nf: A simple script to install Nerd Fonts in Termux.
    • Ex. just run termux-nf and choose from the menu or run termux-nf FONT_NAME and it will install that font.

🪄 4. Other tweaks:

  • Undo/Redo in ZSH:- CTRL + Z to undo & CTRL + y to redo
  • Open the current buffer in your $EDITOR (e.g., neovim) Press Ctrl+X followed by Ctrl+E to trigger
  • Magic Space:- Expands history expressions like !! or !$ when you press space
  • Enable zmv (Advanced Batch Rename/Move):-
    • zmv '(*).log' '$1.txt' Rename all .log to .txt
    • zmv -w '*.log' '*.txt' Same thing, simpler syntax
    • zmv -n '(*).log' '$1.txt' Dry run (preview changes)
    • zmv -i '(*).log' '$1.txt' Interactive mode (confirm each)

🛠️ Openbox Keybindings Cheat Sheet

This document provides a list of keybindings used in Openbox for quick reference.

  • = Meta key / the Windows key

General Navigation

Keybinding Action
Ctrl + Alt + Left Go to the previous desktop
Ctrl + Alt + Right Go to the next desktop
Ctrl + Alt + Up Go to the desktop above
Ctrl + Alt + Down Go to the desktop below
Shift + Alt + Left Send window to the previous desktop
Shift + Alt + Right Send window to the next desktop
Shift + Alt + Up Send window to the desktop above
Shift + Alt + Down Send window to the desktop below
+ F1 Go to desktop 1
+ F2 Go to desktop 2
+ F3 Go to desktop 3
+ F4 Go to desktop 4

Window Management

Keybinding Action
+ Space Launch Rofi (launcher)
+ Shift + Space Launch Rofi (dashboard)
Alt + Tab Switch to the next window
+ Tab Switch to the next window
+ Left Unmaximize horizontally
+ Right Unmaximize horizontally
+ Up Maximize window
+ Down Unmaximize window
Alt + F4 Close window
Alt + Escape Lower window
Alt + Space Open client menu
Alt + Shift + Tab Switch to the previous window
+ Shift + Right Cycle windows to the right
+ Shift + Left Cycle windows to the left
+ Shift + Up Cycle windows upwards
+ Shift + Down Cycle windows downwards
Ctrl + Alt + M Unminimize all windows
Ctrl + Alt + T Open terminal (aterm)

Window Movement and Resizing

Keybinding Action
+ Alt + Up Move window up
+ Alt + Down Move window down
+ Alt + Left Move window left
+ Alt + Right Move window right
Ctrl + Alt + Right Resize window horizontally (increase)
Ctrl + Alt + Left Resize window horizontally (decrease)
Ctrl + Alt + Down Resize window vertically (increase)
Ctrl + Alt + Up Resize window vertically (decrease)

Miscellaneous

Keybinding Action
+ D Toggle show desktop
Shift + + 1 Send window to desktop 1
Shift + + 2 Send window to desktop 2
Shift + + 3 Send window to desktop 3
Shift + + 4 Send window to desktop 4
Shift + + 5 Send window to desktop 5

🛠️ i3 Keybindings Cheat Sheet

i3 Window Manager - Keybindings Reference

Modifier Key: Alt


🚀 Launch Applications

Keybinding Action
Alt + Return Open terminal (xfce4-terminal)
Alt + Space Launch Rofi application launcher
Alt + E Open file manager (Thunar)
Alt + Q Kill focused window

🎵 Music Player Controls

Keybinding Action
Alt + Shift + P Toggle play/pause
Alt + Shift + N Next track
Alt + Shift + B Previous track
Alt + Shift + S Stop playback
Alt + Shift + I Show "Now Playing" notification
Alt + C Open MPV control menu (Rofi)
Alt + X Open MPV music menu (Rofi)

🪟 Window Navigation

Keybinding Action
Alt + J Focus left window
Alt + K Focus down window
Alt + L Focus up window
Alt + ; Focus right window
Alt + Focus left window
Alt + Focus down window
Alt + Focus up window
Alt + Focus right window
Alt + A Focus parent container

📦 Move Windows

Keybinding Action
Alt + Shift + J Move window left
Alt + Shift + K Move window down
Alt + Shift + L Move window up
Alt + Shift + ; Move window right
Alt + Shift + Move window left
Alt + Shift + Move window down
Alt + Shift + Move window up
Alt + Shift + Move window right

🔲 Window Layouts

Keybinding Action
Alt + H Split horizontally
Alt + V Split vertically
Alt + F Toggle fullscreen
Alt + W Tabbed layout
Alt + S Toggle split layout
Alt + Shift + Space Toggle floating window
Alt + Shift + T Toggle focus mode (tiling/floating)

🔢 Workspace Management

Switch to Workspace

Keybinding Workspace
Alt + 1 Workspace 1
Alt + 2 Workspace 2
Alt + 3 Workspace 3
Alt + 4 Workspace 4
Alt + 5 Workspace 5
Alt + 6 Workspace 6
Alt + 7 Workspace 7
Alt + 8 Workspace 8
Alt + 9 Workspace 9
Alt + 0 Workspace 10

Move Window to Workspace

Keybinding Action
Alt + Shift + 1 Move to workspace 1
Alt + Shift + 2 Move to workspace 2
Alt + Shift + 3 Move to workspace 3
Alt + Shift + 4 Move to workspace 4
Alt + Shift + 5 Move to workspace 5
Alt + Shift + 6 Move to workspace 6
Alt + Shift + 7 Move to workspace 7
Alt + Shift + 8 Move to workspace 8
Alt + Shift + 9 Move to workspace 9
Alt + Shift + 0 Move to workspace 10

🔧 System Controls

Keybinding Action
Alt + Shift + Z Reload i3 configuration
Alt + Shift + R Restart i3 (keeps session)
Alt + R Enter resize mode

📏 Resize Mode

Enter resize mode with Alt + R, then use:

Keybinding Action
J or Shrink width
K or Grow height
L or Shrink height
; or Grow width
Return or Escape Exit resize mode
Alt + R Exit resize mode

🖱️ Mouse Controls

Action Description
Alt + Left Click Drag to move floating windows
Alt + Right Click Drag to resize floating windows

🛠️ How to update the icon pack or theme:

  • Stop the desktop
  • Go to the style preview section
  • Find the style you installed
  • Click on the Style Details: section
  • Click on the links
  • Download the latest archive file
  • move them to termux $HOME folder

    Ex. mv path/to/archive_file_name $HOME

  • Now to move the right archive to the right folder
    • For XFCE
      • Themes folder: $HOME/.themes
      • Icons folder: $HOME/.icons
    • For LXQT And OPENBOX
      • Themes folder: $PREFIX/share/themes
      • Icons folder: $PREFIX/share/icons
  • Backup the old themes/icons folders

    Ex. tar -czvf icons_backup.tar.gz folder1 folder2 .... && mv icons_backup.tar.gz $HOME/icons_backup.tar.gz

  • Remove old folders

    Ex. rm -rf folder1 folder2 ....

  • Extract the new archive

    Ex. tar -xzvf new_archive.tar.gz

  • Remove the archive

    Ex. rm new_archive.tar.gz

or, run setup-termux-desktop --update icon/theme /path/to/archive_file_name (will be added soon...)

🛠️ How to enable Vulkan in Chromium Browser

  • chrome://flags/#enable-vulkan Enable this then relaunch chromium

🛠️ How to use X11 display forwarding option

  • Command to use:
gui --display IP_ADDRESS:DISPLAY_PORT

ex: gui --display 192.0.2.1:0

On Windows:

Run: ifconfig

Ethernet adapter Ethernet 8:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::7f3c:6323:b82f:679b%30
   IPv4 Address. . . . . . . . . . . : 192.168.127.228                 # Desktop IP set in x11 session on android
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.127.84                  # Android Phone IP
  • Install:- VcXsrc
  • Launch VcXsrc then set
    1. Open window without titlebar
    2. Start no client
    3. Disable access control

On Linux:

Run: ip a | grep inet

    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host noprefixroute
    inet 192.168.255.88/24 brd 192.168.255.255 scope global dynamic noprefixroute wlp2s0 # Here 192.168.255.88 is the ip address
    inet6 fe80::7c82:230f:89fb:5b5b/64 scope link noprefixroute
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0`
  • Install xserver-xephyr (package name might be different on other Linux distro)

  • Then run:

    xhost +
    Xephyr :1 -ac -screen 1920x1080 -listen tcp -nolisten unix -fullscreen

    Here: :1 will set the display port so make sure you use the right display port on gui --display command

  • On termux:-

    gui --display 192.168.127.228:0 or just 192.168.127.228(then it will use the default port 0)