From d42a15d637fd127f440fac89aab645982f63f8a3 Mon Sep 17 00:00:00 2001 From: utensil Date: Fri, 10 Jan 2025 17:38:05 +0800 Subject: [PATCH] Try HomeGallery and yabai --- dev.ts | 1 + justfile | 13 +++++++++++++ trees/uts-002G.tree | 7 ++++--- trees/uts-002J.tree | 2 ++ 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dev.ts b/dev.ts index e27c98f4..e37d990e 100644 --- a/dev.ts +++ b/dev.ts @@ -69,6 +69,7 @@ app.listen(port, async ({ hostname, port }) => { ) lastSent = Date.now() lastSentFile = updated_file_name + console.log(`Serving: http://${hostname}:${port}/`) }, 10) } } diff --git a/justfile b/justfile index d87f3374..bdcb5970 100644 --- a/justfile +++ b/justfile @@ -669,3 +669,16 @@ prep-annex: # brew services start git-annex mkdir -p ~/annex (cd ~/annex && git annex webapp) + + +gal: + #!/usr/bin/env zsh + mkdir -p ~/home-gallery/data/config + cd ~/home-gallery/ + alias gallery="docker run -ti --rm \ + -v $(pwd)/data:/data \ + -v $HOME/Pictures/photos:/data/Pictures \ + -u $(id -u):$(id -g) \ + -p 3000:3000 docker.wanpeng.top/xemle/home-gallery:latest" + gallery run init --source /data/Pictures + gallery run server diff --git a/trees/uts-002G.tree b/trees/uts-002G.tree index 86be1949..e1757d7e 100644 --- a/trees/uts-002G.tree +++ b/trees/uts-002G.tree @@ -41,9 +41,9 @@ Keys: - `Option + Shift + J/K` to cycle through windows - `Option + Shift + H/L` to resize windows -Alternative setup (not recommended): +Alternative setup: -- Give [yabai](https://github.com/koekeishiya/yabai) another shot +- Use [yabai](https://github.com/koekeishiya/yabai) - requires skhd for key bindings - Use `just prep-yabai` to install yabai - Intentionally choose not to disable SIP @@ -52,8 +52,9 @@ Keys: - Space manipulation won't work with SIP enabled - keys to switch between windows are confusing +- place windows on another window to split with it, there is visual hint for the split layout when overlapping with different areas - `Shift + Alt + s`: change how windows are splitted, prefer use Kitty's own layout management -- `Ctrl + Alt + g`: toggle gaps between windows, prefer no gap +- `Ctrl + Alt + g`: toggle gaps between windows, prefer some gap for normal apps but no gap for terminals } \mdblock{Terminal}{ diff --git a/trees/uts-002J.tree b/trees/uts-002J.tree index 3454cf82..67f6e15b 100644 --- a/trees/uts-002J.tree +++ b/trees/uts-002J.tree @@ -63,6 +63,8 @@ I wish to note down my exploration of solutions to organize massive amount of (m - [macFUSE](https://macfuse.github.io/) - needed to mount various filesystems - photo management + - [HomeGallery](https://home-gallery.org/) + - [librephotos](https://github.com/LibrePhotos/librephotos) - [digiKam](https://www.digikam.org/) - [PhotoPrism](https://www.photoprism.app/) - [Immich](https://immich.app/)