2025-12-02 12:30:29 +00:00
2024-10-08 11:50:48 +01:00
2025-02-20 21:10:50 +00:00
2025-02-19 03:51:46 +00:00
2025-02-19 03:51:00 +00:00
2025-12-02 12:26:20 +00:00
2025-02-20 21:10:50 +00:00
2025-12-02 12:25:52 +00:00
2025-12-02 12:30:29 +00:00
2024-10-10 18:53:48 +01:00
2025-02-19 03:51:00 +00:00

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).

alacritty configuration

Add this to the .config/alacritty/alacritty.toml

import = [
  "{repo_dir}/alacritty.toml"
]

tmux Configuration

This config uses tmux plugin manager to add session save / reloading with tmux-ressurect. Before using the config, please download the plugin manager with:

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Then to use the config file, 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 + Ctrl + s Save session
Prefix + Ctrl + r Restore session
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 identifier
  • getfile {id}: Retrieve file from 0x0.st

Note: These scripts interact with https://0x0.st for file sharing.

Description
No description provided
Readme 7.2 MiB
Languages
Shell 44.8%
Lua 36.2%
CSS 18.8%
Vim Script 0.2%