mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 19:06:06 -07:00
Compare commits
No commits in common. "ef247e758dccb70d9b42a1f21007aae57d7719c2" and "a2486cab219e690c6f2d01b779b18c523958c7a3" have entirely different histories.
ef247e758d
...
a2486cab21
11
home/bin/executable_linux-tmuxp-launcher
Normal file
11
home/bin/executable_linux-tmuxp-launcher
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/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
|
@ -5,22 +5,15 @@
|
|||||||
alias nu="cd ~/.local/share/chezmoi/provision && \
|
alias nu="cd ~/.local/share/chezmoi/provision && \
|
||||||
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
|
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
|
||||||
cd -"
|
cd -"
|
||||||
|
# sway
|
||||||
# sesh
|
alias s='sway'
|
||||||
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
|
# hyprland
|
||||||
alias h='Hyprland'
|
alias h='Hyprland'
|
||||||
|
|
||||||
|
# tmuxp
|
||||||
|
alias t='linux-tmuxp-launcher'
|
||||||
|
|
||||||
alias tw='linux-toggle-vpn'
|
alias tw='linux-toggle-vpn'
|
||||||
|
|
||||||
# chezmoi
|
# chezmoi
|
||||||
|
@ -22,9 +22,6 @@ eval "$(thefuck --alias)"
|
|||||||
# Setup direnv
|
# Setup direnv
|
||||||
eval "$(direnv hook bash)"
|
eval "$(direnv hook bash)"
|
||||||
|
|
||||||
# Setup zoxide
|
|
||||||
eval "$(zoxide init bash)"
|
|
||||||
|
|
||||||
# Enable some Bash 4 features when possible:
|
# Enable some Bash 4 features when possible:
|
||||||
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
|
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
|
||||||
# * Recursive globbing, e.g. `echo **/*.txt`
|
# * Recursive globbing, e.g. `echo **/*.txt`
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
!#/usr/bin/env bash
|
|
||||||
|
|
||||||
tmux rename-window edit
|
|
||||||
tmux new-window -n term
|
|
||||||
tmux select-window -t 1
|
|
||||||
exec "$EDITOR"
|
|
@ -1,6 +0,0 @@
|
|||||||
import = []
|
|
||||||
|
|
||||||
[[session]]
|
|
||||||
name = "edit dots"
|
|
||||||
path = "~/.local/share/chezmoi"
|
|
||||||
startup_command = "~/.config/sesh/scripts/two_window_editor"
|
|
20
home/dot_config/tmuxp/cad.yml
Normal file
20
home/dot_config/tmuxp/cad.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# 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
|
9
home/dot_config/tmuxp/dev.yml
Normal file
9
home/dot_config/tmuxp/dev.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# tmuxp config for general dev
|
||||||
|
|
||||||
|
session_name: dev
|
||||||
|
windows:
|
||||||
|
- window_name: editor
|
||||||
|
panes:
|
||||||
|
- shell_command:
|
||||||
|
- nvim
|
||||||
|
- window_name: term
|
11
home/dot_config/tmuxp/dot.yml
Normal file
11
home/dot_config/tmuxp/dot.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# 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
|
10
home/dot_config/tmuxp/files.yml
Normal file
10
home/dot_config/tmuxp/files.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# tmuxp config for nnn file manager
|
||||||
|
|
||||||
|
session_name: files
|
||||||
|
windows:
|
||||||
|
- window_name: files
|
||||||
|
shell_command_before:
|
||||||
|
- cd ~/
|
||||||
|
panes:
|
||||||
|
- shell_command:
|
||||||
|
- nnn
|
17
home/dot_config/tmuxp/scratch.yml
Normal file
17
home/dot_config/tmuxp/scratch.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# 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
|
@ -27,6 +27,7 @@
|
|||||||
virtualisation.docker.storageDriver = "btrfs";
|
virtualisation.docker.storageDriver = "btrfs";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
distrobox # Platform for creating and managing Linux distribution images.
|
||||||
];
|
];
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
virtualisation.docker.storageDriver = "btrfs";
|
virtualisation.docker.storageDriver = "btrfs";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
distrobox # Platform for creating and managing Linux distribution images.
|
||||||
];
|
];
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
|
@ -16,6 +16,7 @@ in {
|
|||||||
bash # GNU Bourne-Again SHell, a command language interpreter for Unix-like operating systems.
|
bash # GNU Bourne-Again SHell, a command language interpreter for Unix-like operating systems.
|
||||||
bash-completion # Provides programmable completion for the bash shell.
|
bash-completion # Provides programmable completion for the bash shell.
|
||||||
tmux # Terminal multiplexer, allowing multiple terminal sessions within a single window.
|
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.
|
thefuck # Corrects errors in previous console commands.
|
||||||
nnn # Terminal file manager with a focus on performance and ease of use.
|
nnn # Terminal file manager with a focus on performance and ease of use.
|
||||||
advcpmv # Advanced version of the Unix utilities cp and mv.
|
advcpmv # Advanced version of the Unix utilities cp and mv.
|
||||||
@ -27,8 +28,6 @@ in {
|
|||||||
ripgrep # Line-oriented search tool that recursively searches directories for a regex pattern.
|
ripgrep # Line-oriented search tool that recursively searches directories for a regex pattern.
|
||||||
cargo # Package manager and build system for Rust.
|
cargo # Package manager and build system for Rust.
|
||||||
docker-compose
|
docker-compose
|
||||||
sesh
|
|
||||||
zoxide
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user