tmux sessionizer fixed and other minor things
This commit is contained in:
parent
3852948adf
commit
7d2e441211
6 changed files with 22 additions and 14 deletions
|
@ -38,8 +38,17 @@ starship init fish | source
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
# >>> conda initialize >>>
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
# !! Contents within this block are managed by 'conda init' !!
|
||||||
if test -f /home/tsousa/.miniconda3/bin/conda
|
if test -f /home/tsousa/.miniforge3/bin/conda
|
||||||
eval /home/tsousa/.miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
eval /home/tsousa/.miniforge3/bin/conda "shell.fish" "hook" $argv | source
|
||||||
|
else
|
||||||
|
if test -f "/home/tsousa/.miniforge3/etc/fish/conf.d/conda.fish"
|
||||||
|
. "/home/tsousa/.miniforge3/etc/fish/conf.d/conda.fish"
|
||||||
|
else
|
||||||
|
set -x PATH "/home/tsousa/.miniforge3/bin" $PATH
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if test -f "/home/tsousa/.miniforge3/etc/fish/conf.d/mamba.fish"
|
||||||
|
source "/home/tsousa/.miniforge3/etc/fish/conf.d/mamba.fish"
|
||||||
end
|
end
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
conda deactivate
|
|
||||||
|
|
|
@ -226,7 +226,7 @@ assign [class="thunderbird"] 7
|
||||||
|
|
||||||
# startup programs
|
# startup programs
|
||||||
# sets up monitors and picom
|
# sets up monitors and picom
|
||||||
exec --no-startup-id $monitor_script
|
exec_always --no-startup-id $monitor_script
|
||||||
exec --no-startup-id nextcloud
|
exec --no-startup-id nextcloud
|
||||||
exec --no-startup-id nitrogen --restore
|
exec --no-startup-id nitrogen --restore
|
||||||
exec --no-startup-id i3-msg 'workspace 1; exec $terminal'
|
exec --no-startup-id i3-msg 'workspace 1; exec $terminal'
|
||||||
|
|
|
@ -9,6 +9,7 @@ return {
|
||||||
require("org-bullets").setup({
|
require("org-bullets").setup({
|
||||||
symbols = {
|
symbols = {
|
||||||
headlines = { "◉", "○", "●", "✸" },
|
headlines = { "◉", "○", "●", "✸" },
|
||||||
|
checkboxes = false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require('orgmode').setup_ts_grammar()
|
require('orgmode').setup_ts_grammar()
|
||||||
|
|
|
@ -220,7 +220,7 @@ format-charging = <animation-charging> <label-charging>
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
format-full= <label-full>
|
format-full= <label-full>
|
||||||
format-low= <animation-low> <label-low>
|
format-low= <animation-low> <label-low>
|
||||||
label-charging = %percentage%% %time%
|
label-charging = %percentage%%
|
||||||
label-discharging = %percentage%% %time%
|
label-discharging = %percentage%% %time%
|
||||||
label-full = %percentage%%
|
label-full = %percentage%%
|
||||||
label-low = BATTERY LOW
|
label-low = BATTERY LOW
|
||||||
|
|
|
@ -38,7 +38,7 @@ format = ' [$symbol($version(-$name) )]($style)'
|
||||||
|
|
||||||
[conda]
|
[conda]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
format = "[$symbol$environment]($style)"
|
format = "[$symbol$environment ]($style)"
|
||||||
|
|
||||||
[dart]
|
[dart]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
|
@ -16,17 +16,15 @@ tmux_running=$(pgrep tmux)
|
||||||
|
|
||||||
|
|
||||||
if [[ -z "$tmux_running" ]]; then
|
if [[ -z "$tmux_running" ]]; then
|
||||||
if [[ -z $TMUX ]]; then
|
tmux new-session -s "$selected_name" -c "$selected"
|
||||||
tmux new-session -s "$selected_name" -c "$selected"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
if [[ -z $TMUX ]]; then
|
|
||||||
tmux a
|
|
||||||
fi
|
|
||||||
if ! tmux has-session -t="$selected_name" 2> /dev/null; then
|
if ! tmux has-session -t="$selected_name" 2> /dev/null; then
|
||||||
tmux new-session -ds "$selected_name" -c "$selected"
|
tmux new-session -ds "$selected_name" -c "$selected"
|
||||||
fi
|
fi
|
||||||
tmux switch-client -t "$selected_name"
|
if [[ -z $TMUX ]]; then
|
||||||
|
tmux attach -t "$selected_name"
|
||||||
|
else
|
||||||
|
tmux switch-client -t "$selected_name"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue