cleanup
This commit is contained in:
parent
6e632a87c2
commit
223cad3082
3 changed files with 9 additions and 12 deletions
|
|
@ -270,6 +270,9 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
|
config.global = {
|
||||||
|
hide_env_diff = true;
|
||||||
|
}
|
||||||
stdlib = ''
|
stdlib = ''
|
||||||
layout_uv() {
|
layout_uv() {
|
||||||
if [[ ! -d .venv ]]; then
|
if [[ ! -d .venv ]]; then
|
||||||
|
|
|
||||||
|
|
@ -194,12 +194,12 @@ in
|
||||||
};
|
};
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
background = c.bg;
|
background = c.bg;
|
||||||
foreground = c.fg;
|
foreground = c.blue;
|
||||||
|
frame_color = c.blue;
|
||||||
};
|
};
|
||||||
urgency_normal = {
|
urgency_normal = {
|
||||||
background = c.bg;
|
background = c.bg;
|
||||||
foreground = c.blue;
|
foreground = c.fg;
|
||||||
frame_color = c.blue;
|
|
||||||
};
|
};
|
||||||
urgency_critical = {
|
urgency_critical = {
|
||||||
background = c.bg;
|
background = c.bg;
|
||||||
|
|
|
||||||
12
scripts/mux
12
scripts/mux
|
|
@ -173,13 +173,9 @@ cmd)
|
||||||
query=$(printf '%s' "$result" | head -1)
|
query=$(printf '%s' "$result" | head -1)
|
||||||
action=$(printf '%s' "$result" | sed -n '2p')
|
action=$(printf '%s' "$result" | sed -n '2p')
|
||||||
[ $rc -eq 130 ] && exit
|
[ $rc -eq 130 ] && exit
|
||||||
if [ -n "$action" ]; then
|
if [ -n "$query" ] && [ "$query" != "$action" ]; then
|
||||||
case "$query" in
|
tmux $query
|
||||||
"$action "*)
|
elif [ -n "$action" ]; then
|
||||||
tmux $query
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$action" in
|
case "$action" in
|
||||||
switch-client) pick_session ;;
|
switch-client) pick_session ;;
|
||||||
select-window) pick_window ;;
|
select-window) pick_window ;;
|
||||||
|
|
@ -228,8 +224,6 @@ cmd)
|
||||||
;;
|
;;
|
||||||
*) tmux "$action" ;;
|
*) tmux "$action" ;;
|
||||||
esac
|
esac
|
||||||
elif [ -n "$query" ]; then
|
|
||||||
tmux $query
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue