From 480653fd63a4186e56914e9941846cca3ef19eab Mon Sep 17 00:00:00 2001 From: utensil Date: Tue, 29 Oct 2024 15:55:57 +0800 Subject: [PATCH] Improve sbar, tile, and kitty setup --- justfile | 26 ++++++++++++++++++++++++++ kitty.conf | 13 +++++++++++++ kitty_session.conf | 1 + uts-plugins.lua | 3 +++ 4 files changed, 43 insertions(+) diff --git a/justfile b/justfile index 4aee4a7..72ca28c 100644 --- a/justfile +++ b/justfile @@ -77,6 +77,7 @@ prep-term: prep-kitty @echo "And possibly: gh auth refresh -s read:project" which fzf || brew install fzf which yazi || brew install yazi + which nnn || brew install nnn which stylua || brew install stylua which sd || brew install sd which luarocks || brew install luarocks @@ -188,6 +189,31 @@ prep-py: uv python install 3.11 uv venv --python 3.11 +prep-sbar: + #!/usr/bin/env bash + curl -L https://raw.githubusercontent.com/FelixKratz/dotfiles/master/install_sketchybar.sh | sh + mkdir -p ~/.config/sketchybar/plugins + cp /opt/homebrew/opt/sketchybar/share/sketchybar/examples/sketchybarrc ~/.config/sketchybar/sketchybarrc + cp -r /opt/homebrew/opt/sketchybar/share/sketchybar/examples/plugins/ ~/.config/sketchybar/plugins/ + chmod +x ~/.config/sketchybar/plugins/* + brew services restart felixkratz/formulae/sketchybar + +# Inspired by https://github.com/FelixKratz/dotfiles +dotfiletmpdir := "/tmp/dotfiles-" + choose('8', HEX) + +config-sbar: + #!/usr/bin/env bash + rm -rf ~/.config/sketchybar + git clone https://github.com/FelixKratz/dotfiles {{dotfiletmpdir}} + cp -r {{dotfiletmpdir}}/.config/sketchybar ~/.config/ + rm -rf {{dotfiletmpdir}} + brew services restart felixkratz/formulae/sketchybar + +sbar: + brew services restart felixkratz/formulae/sketchybar + +prep-tile: + brew install --cask amethyst # act: # ./act.sh diff --git a/kitty.conf b/kitty.conf index 84bdf53..7f6b36b 100644 --- a/kitty.conf +++ b/kitty.conf @@ -7,4 +7,17 @@ font_size 18.0 placement_strategy center +macos_quit_when_last_window_closed yes + +map cmd+n new_os_window_with_cwd + +# BEGIN_KITTY_THEME +# GitHub Dark +include current-theme.conf +# END_KITTY_THEME + +# draw_minimal_borders yes +macos_titlebar_color dark + startup_session kitty_session.conf + diff --git a/kitty_session.conf b/kitty_session.conf index e33ba59..438a2ba 100644 --- a/kitty_session.conf +++ b/kitty_session.conf @@ -4,3 +4,4 @@ layout tall cd ~/projects/forest # Create a window and run the specified command in it launch zsh + diff --git a/uts-plugins.lua b/uts-plugins.lua index 83d9a77..85a6dbe 100644 --- a/uts-plugins.lua +++ b/uts-plugins.lua @@ -568,6 +568,9 @@ local plugins = { config = function() vim.g.mkdp_auto_start = 1 end, + keys = { + { "mm", "MarkdownPreviewToggle", desc = "Toggle Markdown Preview" }, + }, }, -- {