Compare commits

...

3 Commits

Author SHA1 Message Date
ef247e758d basic sesh config 2024-09-24 22:45:56 -07:00
1ac7250542 remove tmuxp 2024-09-24 20:34:14 -07:00
f90c13ad03 remove distrobox 2024-09-24 17:01:01 -07:00
13 changed files with 29 additions and 86 deletions

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
# https://github.com/starr-dusT/dotfiles
tmuxp_files() {
ls ~/.config/tmuxp -1
}
selected="$(tmuxp_files | sed 's/.yml//g' | sort | fzf -e -i -m --reverse --delimiter / --with-nth -1)"
[ -z "$selected" ] && exit
echo "$selected"
tmuxp load "~/.config/tmuxp/$selected.yml" -y

View File

@ -5,15 +5,22 @@
alias nu="cd ~/.local/share/chezmoi/provision && \
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
cd -"
# sway
alias s='sway'
# sesh
function s() {
{
exec </dev/tty
exec <&1
local session
session=$(sesh list -i | fzf --ansi --height 40% --reverse --border-label ' sesh ' --border --prompt '⚡ ')
[[ -z "$session" ]] && return
sesh connect $session
}
}
# hyprland
alias h='Hyprland'
# tmuxp
alias t='linux-tmuxp-launcher'
alias tw='linux-toggle-vpn'
# chezmoi

View File

@ -22,6 +22,9 @@ eval "$(thefuck --alias)"
# Setup direnv
eval "$(direnv hook bash)"
# Setup zoxide
eval "$(zoxide init bash)"
# Enable some Bash 4 features when possible:
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`

View File

@ -0,0 +1,6 @@
!#/usr/bin/env bash
tmux rename-window edit
tmux new-window -n term
tmux select-window -t 1
exec "$EDITOR"

View File

@ -0,0 +1,6 @@
import = []
[[session]]
name = "edit dots"
path = "~/.local/share/chezmoi"
startup_command = "~/.config/sesh/scripts/two_window_editor"

View File

@ -1,20 +0,0 @@
# tmuxp config for 3d modelling and printing
session_name: cad
shell_command_before:
- cmd: distrobox enter arch-box && clear
windows:
- window_name: term
panes:
- shell_command:
- cd
- clear
- window_name: cq
panes:
- shell_command:
- cd ~/cq-editor
- ./run.sh
- window_name: simp
panes:
- shell_command:
- /opt/Simplify3D-5.1.2/LaunchScript.sh

View File

@ -1,9 +0,0 @@
# tmuxp config for general dev
session_name: dev
windows:
- window_name: editor
panes:
- shell_command:
- nvim
- window_name: term

View File

@ -1,11 +0,0 @@
# tmuxp config for general dev
session_name: dot
windows:
- window_name: editor
shell_command_before:
- cd ~/.local/share/chezmoi
panes:
- shell_command:
- nvim
- window_name: term

View File

@ -1,10 +0,0 @@
# tmuxp config for nnn file manager
session_name: files
windows:
- window_name: files
shell_command_before:
- cd ~/
panes:
- shell_command:
- nnn

View File

@ -1,17 +0,0 @@
# tmuxp config for terminal scratchpad
session_name: scratch
windows:
- window_name: files
shell_command_before:
- cd ~/
panes:
- shell_command:
- nnn
- window_name: dots
shell_command_before:
- cd ~/.local/share/chezmoi
panes:
- shell_command:
- nvim
- window_name: term

View File

@ -27,7 +27,6 @@
virtualisation.docker.storageDriver = "btrfs";
environment.systemPackages = with pkgs; [
distrobox # Platform for creating and managing Linux distribution images.
];
# Secrets

View File

@ -17,7 +17,6 @@
virtualisation.docker.storageDriver = "btrfs";
environment.systemPackages = with pkgs; [
distrobox # Platform for creating and managing Linux distribution images.
];
# Modules

View File

@ -16,7 +16,6 @@ in {
bash # GNU Bourne-Again SHell, a command language interpreter for Unix-like operating systems.
bash-completion # Provides programmable completion for the bash shell.
tmux # Terminal multiplexer, allowing multiple terminal sessions within a single window.
tmuxp # Manages tmux sessions through simple, declarative configuration files.
thefuck # Corrects errors in previous console commands.
nnn # Terminal file manager with a focus on performance and ease of use.
advcpmv # Advanced version of the Unix utilities cp and mv.
@ -28,6 +27,8 @@ in {
ripgrep # Line-oriented search tool that recursively searches directories for a regex pattern.
cargo # Package manager and build system for Rust.
docker-compose
sesh
zoxide
];
};
}