dea1075126dbdc58add721cfd177b35be7e814f2
Linux Scripts and Configs
A collection of Linux scripts and configs for use across multiple machines.
Installation
When referring to {repo_dir}, use absolute paths (e.g., ~/scripts).
tmux Configuration
Add to ~/.tmux.conf:
source {repo_dir}/tmux.conf
Bash/Zsh Configuration
Add to ~/.bashrc or ~/.zshrc:
source {repo_dir}/bashrc # or zshrc
export PATH="{repo_dir}/sh:$PATH"
Vim Configuration
Add to ~/.vimrc:
source {repo_dir}/vimrc
i3 Configuration
Add to ~/.i3/config:
include {repo_dir}/i3config
Keybindings
tmux Keybindings
| Keybinding | Description |
|---|---|
| M-f | Prefix key (similar to $mod in i3) |
| Prefix + Space | Send prefix |
| Prefix + ? | List keys |
| Prefix + [ | Enter copy mode |
| Prefix + ] | Paste buffer |
| Prefix + r | Refresh client |
| Prefix + R | Reload tmux configuration |
| Prefix + g | Split window horizontally |
| Prefix + v | Split window vertically |
| Prefix + h/j/k/l | Select pane (left/down/up/right) |
| Prefix + H/J/K/L | Resize pane (left/down/up/right) |
| Prefix + w | Choose window |
| Prefix + 1-0 | Select window 1-10 |
| M-1 to M-0 | Create new window 1-10 |
| Prefix + !-) | Move current pane to window 1-10 |
| Prefix + q | Kill selected pane |
i3 Keybindings
| Keybinding | Description |
|---|---|
| $mod + Return | Start a terminal (Alacritty) |
| $mod + Shift + q | Kill focused window |
| $mod + d | Start program launcher (dmenu) |
| $mod + z | Launch categorized menu |
| $mod + Ctrl + m | Launch PulseAudio control |
| $mod + F2 | Launch Firefox browser |
| $mod + F3 | Launch PCManFM file manager |
| $mod + h/j/k/l | Change focus (left/down/up/right) |
| $mod + Shift + h/j/k/l | Move focused window |
| $mod + g/v | Split horizontally/vertically |
| $mod + f | Toggle fullscreen |
| $mod + 1-8 | Switch to workspace 1-8 |
| $mod + Shift + 1-8 | Move container to workspace 1-8 |
| $mod + Shift + c | Reload the configuration file |
| $mod + Shift + r | Restart i3 |
Additional Scripts
File Sharing Scripts
sharefile {filename}: Upload file to 0x0.st and return unique identifiergetfile {id}: Retrieve file from 0x0.st
Note: These scripts interact with https://0x0.st for file sharing.
Description
Languages
Shell
44.8%
Lua
36.2%
CSS
18.8%
Vim Script
0.2%