This commit is contained in:
Michael Chalupiak 2025-03-29 21:41:07 -04:00
parent bc3bb4ed16
commit 2fd20bd541
3 changed files with 9 additions and 3 deletions

View File

@ -171,13 +171,17 @@ tinty_source_shell_theme() {
# alias theme='tinty_source_shell_theme apply "$(tinty list | fzf --cycle)" && xrdb ~/.Xresources' # alias theme='tinty_source_shell_theme apply "$(tinty list | fzf --cycle)" && xrdb ~/.Xresources'
# fi # fi
run_kak() {
kak -c $SESH 2>/dev/null "$@" || kak -s $SESH "$@"
}
if [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ] && [ -z "$TMUX" ]; then if [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ] && [ -z "$TMUX" ]; then
SESH="$((tmux list-sessions 2>/dev/null || echo '-1') | cut -d' ' -f1 | tr -d ':-' | sort -r | head -n1 | xargs -I{} echo '{} + 1' | bc)" SESH="$((tmux list-sessions 2>/dev/null || echo '-1') | cut -d' ' -f1 | tr -d ':-' | sort -r | head -n1 | xargs -I{} echo '{} + 1' | bc)"
alias kak='tmux new-session -e "EDITOR=\"kak -c $SESH\"" -s $SESH kak -s $SESH > /dev/null' alias kak='tmux new-session -e "EDITOR=\"kak -c $SESH\"" -s $SESH kak -s $SESH > /dev/null'
elif [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ]; then elif [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ]; then
SESH="$(tmux display-message -p '#S')" SESH="$(tmux display-message -p '#S')"
alias kak='kak -c $SESH 2>/dev/null || kak -s $SESH' # alias kak='kak -c $SESH 2>/dev/null || kak -s $SESH'
alias kak=run_kak
alias vidir='EDITOR="kak -c $SESH 2/dev/null || kak -s $SESH" vidir' alias vidir='EDITOR="kak -c $SESH 2/dev/null || kak -s $SESH" vidir'
alias vipe='EDITOR="kak -c $SESH 2>/dev/null|| kak -s $SESH" vipe' alias vipe='EDITOR="kak -c $SESH 2>/dev/null|| kak -s $SESH" vipe'
fi fi

View File

@ -1633,8 +1633,8 @@ sort-column='name'
sort-directories-first=false sort-directories-first=false
sort-order='ascending' sort-order='ascending'
type-format='category' type-format='category'
window-position=(52, 39) window-position=(26, 23)
window-size=(1512, 1344) window-size=(1512, 1339)
[org/virt-manager/virt-manager] [org/virt-manager/virt-manager]
manager-window-height=1388 manager-window-height=1388

View File

@ -1,6 +1,8 @@
https://phaazon.net/blog/feed https://phaazon.net/blog/feed
https://danielde.dev/rss.xml https://danielde.dev/rss.xml
https://sizeof.cat/index.xml https://sizeof.cat/index.xml
https://pkolaczk.github.io/feed.xml
https://karl-voit.at/feeds/lazyblorg-all.atom_1.0.links-and-content.xml
https://lukesmith.xyz/index.xml https://lukesmith.xyz/index.xml
https://joeyh.name/blog/index.rss https://joeyh.name/blog/index.rss
https://kagifeedback.org/atom/t/release-notes https://kagifeedback.org/atom/t/release-notes