commit 0a6f782f2f57302d57e83e2feb8f15ca5b16ad34
parent 5d5db0ec88ba7bf3a19a75d525dc25e66ce0891e
Author: mtmn <miro@haravara.org>
Date: Sat, 13 Jun 2026 16:42:29 +0200
dotfiles: tmux preview, etc.
Diffstat:
5 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -162,11 +162,11 @@
]
},
"locked": {
- "lastModified": 1781305496,
- "narHash": "sha256-g8Vv4Qfc7n+lgov97REu3X6BeJtvYY0hlSUZR1GrGQQ=",
+ "lastModified": 1781365335,
+ "narHash": "sha256-zqDBhXMzfbdlO7F2bGHe7MOtB3xngd/+4ieMHDC+ZXo=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "c87a39aa979acc4848016d2220c6238390d84779",
+ "rev": "5b6f5733726a1b2ccafb5dec6ac4ca7299fad66c",
"type": "github"
},
"original": {
@@ -248,11 +248,11 @@
},
"nixpkgs_3": {
"locked": {
- "lastModified": 1781229721,
- "narHash": "sha256-ORvqDbb/LYxiJljGIejapjkc/kJbVote2N1WSb9W45I=",
+ "lastModified": 1781268102,
+ "narHash": "sha256-Zn5KTggEmUB3lXn/ccERNcBdddE6IaOFber9dWViWDg=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "173d0ad7a974f8543a9ab01d2271b2e290341b33",
+ "rev": "49a4bd0573c376468dd7996ddb6f9fa31d8c4d97",
"type": "github"
},
"original": {
diff --git a/hosts/void/default.nix b/hosts/void/default.nix
@@ -19,7 +19,6 @@
vdirsyncer
khal
tiny
- ungoogled-chromium
];
data = [
@@ -95,6 +94,7 @@
entr
buck2
skopeo
+ podman
sccache
];
@@ -111,7 +111,6 @@
clang-tools
parallel
pbpctrl
- podman
tenv
cosign
treefmt
diff --git a/hosts/void/overlays/config/shell/rc/void b/hosts/void/overlays/config/shell/rc/void
Binary files differ.
diff --git a/modules/mixins/dotfiles/config/shell/rc/aliased-short-names b/modules/mixins/dotfiles/config/shell/rc/aliased-short-names
@@ -8,8 +8,10 @@ alias m='mntmenu'
alias p='pmn'
alias l='ls'
+alias la='ls -a'
alias ll='ls -l'
+alias tst='tmux set status'
alias tls='tmux list-sessions'
alias tms="tmux display-message -p '#{session_name}'"
diff --git a/modules/mixins/dotfiles/config/shell/rc/functions b/modules/mixins/dotfiles/config/shell/rc/functions
@@ -144,17 +144,32 @@ cd() {
}
t() {
+ window_id=""
if [ $# -eq 0 ]; then
- result=$(tmux list-sessions -F '#{session_name}' 2>/dev/null | fzf --print-query)
+ tab=$(printf '\t')
+ result=$(tmux list-windows -a -F "#{session_name}/#{window_name}${tab}#{window_id}" 2>/dev/null | fzf --print-query \
+ --delimiter '\t' --with-nth 1 \
+ --preview 'tmux capture-pane -ep -t {2}' \
+ --preview-window 'right:60%')
fzf_exit=$?
[ $fzf_exit -eq 130 ] && return
- session=$(printf '%s' "$result" | tail -1)
- [ -z "$session" ] && return
+ selection=$(printf '%s' "$result" | tail -1)
+ [ -z "$selection" ] && return
+ case "$selection" in
+ *"$tab"*)
+ session=${selection%%/*}
+ window_id=${selection##*"$tab"}
+ ;;
+ *)
+ session=$selection
+ ;;
+ esac
else
session="$1"
fi
if tmux has-session -t "${session}" 2>/dev/null; then
+ [ -n "$window_id" ] && tmux select-window -t "$window_id" 2>/dev/null
if [ -n "$TMUX" ]; then
tmux switch-client -t "${session}"
else