Fix and clean up shipped config files
This commit is contained in:
1 parent
010ab5fd4c
commit
2c506f99dd
16 files changed
+24
-29
No files matched your search
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# blob:summary=Annotate an image in Satty and save it in place
|
||||||
|
# blob:group=capture
|
||||||
|
# blob:args=<image-path>
|
||||||
|
|
||||||
|
image_path="${1:-}"
|
||||||
|
|
||||||
|
if [[ -z $image_path || ! -r $image_path ]]; then
|
||||||
|
echo "Usage: blob-capture-edit <image-path>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec satty --filename "$image_path" --output-filename "$image_path"
|
||||||
@@ -16,7 +16,7 @@ fi
|
|||||||
|
|
||||||
pkill slurp && exit 0
|
pkill slurp && exit 0
|
||||||
|
|
||||||
SCREENSHOT_EDITOR="${BLOB_SCREENSHOT_EDITOR:-tensaku-edit}"
|
SCREENSHOT_EDITOR="${BLOB_SCREENSHOT_EDITOR:-blob-capture-edit}"
|
||||||
|
|
||||||
# Parse --editor flag from any position
|
# Parse --editor flag from any position
|
||||||
ARGS=()
|
ARGS=()
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ open_image() {
|
|||||||
local path="$1"
|
local path="$1"
|
||||||
|
|
||||||
[[ -r $path ]] || exit 1
|
[[ -r $path ]] || exit 1
|
||||||
exec tensaku-edit "$path"
|
exec blob-capture-edit "$path"
|
||||||
}
|
}
|
||||||
|
|
||||||
open_text() {
|
open_text() {
|
||||||
|
|||||||
@@ -20,7 +20,5 @@ primary-paste=none
|
|||||||
clipboard-paste=Shift+Insert Control+Shift+v XF86Paste
|
clipboard-paste=Shift+Insert Control+Shift+v XF86Paste
|
||||||
|
|
||||||
[text-bindings]
|
[text-bindings]
|
||||||
# Send Shift+Return as CSI-u so TUIs can distinguish it from Return.
|
|
||||||
\x1b[13;2u=Shift+Return
|
\x1b[13;2u=Shift+Return
|
||||||
# Send Alt+Shift+Return as CSI-u so tmux can match M-S-Enter.
|
|
||||||
\x1b[13;4u=Mod1+Shift+Return
|
\x1b[13;4u=Mod1+Shift+Return
|
||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
ci = commit
|
ci = commit
|
||||||
st = status
|
st = status
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = main
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true # Rebase (instead of merge) on pull
|
rebase = true # Rebase (instead of merge) on pull
|
||||||
[push]
|
[push]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
-- Learn how to configure Hyprland: https://wiki.hypr.land/Configuring/Start/
|
-- Learn how to configure Hyprland: https://wiki.hypr.land/Configuring/Start/
|
||||||
|
|
||||||
-- Blob's bootstrap keeps path setup out of this user config.
|
-- Blob's bootstrap keeps path setup out of this user config.
|
||||||
dofile((os.getenv("BLOB_PATH") or "$HOME/.local/share/blob") .. "/default/hypr/bootstrap.lua")
|
dofile((os.getenv("BLOB_PATH") or (os.getenv("HOME") .. "/.local/share/blob")) .. "/default/hypr/bootstrap.lua")
|
||||||
|
|
||||||
-- Disable all Blob default bindings. Add your own in hypr/bindings.lua.
|
-- Disable all Blob default bindings. Add your own in hypr/bindings.lua.
|
||||||
-- blob_default_bindings = false
|
-- blob_default_bindings = false
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
|
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
|
||||||
-- List current monitors and supported resolutions with: hyprctl monitors all
|
-- List current monitors and supported resolutions with: hyprctl monitors all
|
||||||
|
|
||||||
local blob_gdk_scale = 2
|
|
||||||
local blob_monitor_scale = "auto"
|
local blob_monitor_scale = "auto"
|
||||||
|
|
||||||
hl.env("GDK_SCALE", tostring(blob_gdk_scale))
|
|
||||||
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = blob_monitor_scale })
|
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = blob_monitor_scale })
|
||||||
|
|
||||||
-- Configure a specific monitor.
|
-- Configure a specific monitor.
|
||||||
|
|||||||
+2
-2
@@ -12,5 +12,5 @@
|
|||||||
# Rotate the currently open image by 90 degrees
|
# Rotate the currently open image by 90 degrees
|
||||||
<Ctrl+r> = exec mogrify -rotate 90 "$imv_current_file"
|
<Ctrl+r> = exec mogrify -rotate 90 "$imv_current_file"
|
||||||
|
|
||||||
# Edit the current image in Tensaku and quit the viewer
|
# Annotate the current image in Satty and quit the viewer
|
||||||
<Ctrl+e> = exec tensaku-edit "$imv_current_file" & ; quit
|
<Ctrl+e> = exec blob-capture-edit "$imv_current_file" & ; quit
|
||||||
@@ -1,9 +1,3 @@
|
|||||||
# vim:ft=kitty
|
|
||||||
#
|
|
||||||
# Colors come from the active theme, the same way foot.ini takes them: the
|
|
||||||
# theme pipeline renders default/themed/kitty.conf.tpl into the current-theme
|
|
||||||
# directory, and blob-restart-terminal signals kitty to reload it.
|
|
||||||
|
|
||||||
include ~/.local/state/blob/current/theme/kitty.conf
|
include ~/.local/state/blob/current/theme/kitty.conf
|
||||||
|
|
||||||
|
|
||||||
@@ -16,9 +10,6 @@ font_size 14.0
|
|||||||
adjust_line_height 115%
|
adjust_line_height 115%
|
||||||
disable_ligatures cursor
|
disable_ligatures cursor
|
||||||
|
|
||||||
# Use CoreText's glyph rendering rather than kitty's own blending.
|
|
||||||
text_composition_strategy platform
|
|
||||||
|
|
||||||
|
|
||||||
# Window
|
# Window
|
||||||
window_padding_width 18
|
window_padding_width 18
|
||||||
@@ -61,10 +52,3 @@ visual_bell_duration 0.1
|
|||||||
|
|
||||||
# Scrollback
|
# Scrollback
|
||||||
scrollback_lines 20000
|
scrollback_lines 20000
|
||||||
|
|
||||||
|
|
||||||
# macOS specific
|
|
||||||
macos_option_as_alt yes
|
|
||||||
macos_quit_when_last_window_closed yes
|
|
||||||
macos_show_window_title_in all
|
|
||||||
macos_traditional_fullscreen no
|
|
||||||
Whitespace-only changes.
File renamed without changes.
@@ -1,2 +1,2 @@
|
|||||||
-- Disable mouse focus (see https://github.com/basecamp/omarchy/pull/5183#issuecomment-4189299971).
|
-- Disable mouse focus for JetBrains IDEs.
|
||||||
o.window("^(jetbrains-.*)$", { no_follow_mouse = true })
|
o.window("^(jetbrains-.*)$", { no_follow_mouse = true })
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Blob speaker tuning filter-chain
|
Description=Blob speaker tuning filter-chain
|
||||||
Documentation=https://github.com/basecamp/omarchy/blob/master/docs/AUDIO-TUNING.md
|
|
||||||
# WirePlumber does the linking, so starting before it is up risks the output being
|
# WirePlumber does the linking, so starting before it is up risks the output being
|
||||||
# linked before the speaker device has been discovered.
|
# linked before the speaker device has been discovered.
|
||||||
After=pipewire.service wireplumber.service
|
After=pipewire.service wireplumber.service
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ of the `blob` listing.
|
|||||||
|
|
||||||
| Command | Does | Arguments |
|
| Command | Does | Arguments |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
| `blob-capture-edit` | Annotate an image in Satty and save it in place | <image-path> |
|
||||||
| `blob-capture-qr` | Decode a QR code from a screenshot region | - |
|
| `blob-capture-qr` | Decode a QR code from a screenshot region | - |
|
||||||
| `blob-capture-record` | Start or stop screen recording | [--fullscreen] [--with-desktop-audio] [--with-microphone-audio] [--with-webcam] [--webcam-device=<device>] [--webcam-size=<small\|medium\|large>] [--resolution=<size>] [--stop-recording] |
|
| `blob-capture-record` | Start or stop screen recording | [--fullscreen] [--with-desktop-audio] [--with-microphone-audio] [--with-webcam] [--webcam-device=<device>] [--webcam-size=<small\|medium\|large>] [--resolution=<size>] [--stop-recording] |
|
||||||
| `blob-capture-record-webcam` | Pick a webcam and start a screen recording with it | - |
|
| `blob-capture-record-webcam` | Pick a webcam and start a screen recording with it | - |
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ tesseract
|
|||||||
tesseract-data-eng
|
tesseract-data-eng
|
||||||
qrencode
|
qrencode
|
||||||
zbar
|
zbar
|
||||||
|
satty
|
||||||
|
|
||||||
# Media: video and audio player, image viewer, PDF viewer
|
# Media: video and audio player, image viewer, PDF viewer
|
||||||
mpv
|
mpv
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ QtObject {
|
|||||||
// Run an argv vector without a shell interpreting it: the constant `exec "$@"`
|
// Run an argv vector without a shell interpreting it: the constant `exec "$@"`
|
||||||
// means the args only ever land in positional parameters, which bash expands
|
// means the args only ever land in positional parameters, which bash expands
|
||||||
// without re-tokenizing — so untrusted data ($(id), a filename) stays literal.
|
// without re-tokenizing — so untrusted data ($(id), a filename) stays literal.
|
||||||
// The login shell (-l) keeps the PATH/session env GUI targets (tensaku, mpv,
|
// The login shell (-l) keeps the PATH/session env GUI targets (satty, mpv,
|
||||||
// xdg-open) need. Prefer this over execDetached for anything built from input.
|
// xdg-open) need. Prefer this over execDetached for anything built from input.
|
||||||
function execArgv(argv) {
|
function execArgv(argv) {
|
||||||
Quickshell.execDetached(["bash", "-lc", 'exec "$@"', "bash"].concat(argv))
|
Quickshell.execDetached(["bash", "-lc", 'exec "$@"', "bash"].concat(argv))
|
||||||
|
|||||||
Reference in new issue
Block a user