mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 10:56:05 -07:00
Compare commits
3 Commits
a2486cab21
...
ef247e758d
Author | SHA1 | Date | |
---|---|---|---|
ef247e758d | |||
1ac7250542 | |||
f90c13ad03 |
@ -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
|
@ -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
|
||||
|
@ -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`
|
||||
|
@ -0,0 +1,6 @@
|
||||
!#/usr/bin/env bash
|
||||
|
||||
tmux rename-window edit
|
||||
tmux new-window -n term
|
||||
tmux select-window -t 1
|
||||
exec "$EDITOR"
|
6
home/dot_config/sesh/sesh.toml
Normal file
6
home/dot_config/sesh/sesh.toml
Normal file
@ -0,0 +1,6 @@
|
||||
import = []
|
||||
|
||||
[[session]]
|
||||
name = "edit dots"
|
||||
path = "~/.local/share/chezmoi"
|
||||
startup_command = "~/.config/sesh/scripts/two_window_editor"
|
@ -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
|
@ -1,9 +0,0 @@
|
||||
# tmuxp config for general dev
|
||||
|
||||
session_name: dev
|
||||
windows:
|
||||
- window_name: editor
|
||||
panes:
|
||||
- shell_command:
|
||||
- nvim
|
||||
- window_name: term
|
@ -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
|
@ -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
|
@ -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
|
@ -27,7 +27,6 @@
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
distrobox # Platform for creating and managing Linux distribution images.
|
||||
];
|
||||
|
||||
# Secrets
|
||||
|
@ -17,7 +17,6 @@
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
distrobox # Platform for creating and managing Linux distribution images.
|
||||
];
|
||||
|
||||
# Modules
|
||||
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user