Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b4bfa3e7e | ||
|
|
35aa88b549 | ||
|
|
8ab7e9f91e | ||
|
|
2c5d9a135a | ||
|
|
4b6d096c1d | ||
|
|
9fdf20d936 |
@@ -1,3 +1,6 @@
|
||||
[submodule "mattpocock-skills"]
|
||||
path = mattpocock-skills
|
||||
url = ssh://git@git.grosinger.net:22322/tgrosinger/mattpocock-skills.git
|
||||
[submodule "openscad"]
|
||||
path = home/.agents/skills/openscad
|
||||
url = git@github.com:ModelRift/openscad-skill.git
|
||||
|
||||
Submodule
+1
Submodule home/.agents/skills/openscad added at b0f0c041ce
@@ -23,6 +23,6 @@ history_filter = [
|
||||
filters = [ "global", "host", "workspace", "directory" ]
|
||||
|
||||
[tmux]
|
||||
enabled = true
|
||||
enabled = false
|
||||
width = "80%"
|
||||
height = "60%"
|
||||
|
||||
@@ -30,9 +30,9 @@ function dev-wt-pr -d "Open a GitHub PR in a worktree in a new tmux window (Octo
|
||||
|
||||
set -l main_wt_path (git worktree list --porcelain | head -1 | string replace "worktree " "")
|
||||
set -l parent_dir (dirname "$main_wt_path")
|
||||
# Key the worktree on the PR number to stay unique and avoid slashes in
|
||||
# branch names producing nested directories.
|
||||
set -l wt_path "$parent_dir/$repo-pr-$pr_number"
|
||||
# Group in the per-repo worktree container; key on the PR number to stay
|
||||
# unique and avoid slashes in branch names producing nested directories.
|
||||
set -l wt_path "$parent_dir/$repo.worktrees/pr-$pr_number"
|
||||
|
||||
# Create the worktree if it doesn't already exist.
|
||||
if not test -d "$wt_path"
|
||||
|
||||
@@ -62,7 +62,9 @@ function __dev_wt_impl -a name
|
||||
if test -z "$wt_path"
|
||||
set -l main_wt_path (git worktree list --porcelain | head -1 | string replace "worktree " "")
|
||||
set -l parent_dir (dirname "$main_wt_path")
|
||||
set wt_path "$parent_dir/$repo-$name"
|
||||
# Group worktrees in a per-repo container so they don't look like sibling
|
||||
# projects (e.g. ~/obsidian/community.worktrees/workers, not community-workers).
|
||||
set wt_path "$parent_dir/$repo.worktrees/$name"
|
||||
set wt_branch "$name"
|
||||
|
||||
if test -d "$wt_path"
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# Requires vpype with gcode extension.
|
||||
# uv tool install "vpype[all]" --with vpype-gcode
|
||||
function svg2gcode -d "Convert an SVG to gcode for the Shapeoko pen plotter using vpype" -a input
|
||||
set -l output (string replace -r '\.svg$' '.gcode' $input)
|
||||
|
||||
vpype \
|
||||
# Load the SVG into the pipeline (curves are linearized to polylines)
|
||||
read $input \
|
||||
# Join lines whose endpoints nearly touch into single paths
|
||||
linemerge \
|
||||
# Reorder paths to minimize pen-up travel between them
|
||||
linesort \
|
||||
# Randomize where each closed path starts, hiding the seam mark
|
||||
reloop \
|
||||
# Drop redundant points within the default deviation tolerance
|
||||
linesimplify \
|
||||
# Emit gcode using the "shapeoko_pen" profile from the vpype config
|
||||
gwrite --profile shapeoko_pen $output
|
||||
end
|
||||
@@ -23,7 +23,7 @@
|
||||
"network",
|
||||
"power-profiles-daemon",
|
||||
"cpu",
|
||||
//"memory",
|
||||
"custom/memtmp",
|
||||
//"temperature",
|
||||
"backlight",
|
||||
//"sway/language",
|
||||
@@ -167,7 +167,14 @@
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false,
|
||||
"on-click": "alacritty -e /home/linuxbrew/.linuxbrew/bin/btop"
|
||||
"on-click": "alacritty -e /home/tgrosinger/.local/share/mise/shims/btop"
|
||||
},
|
||||
"custom/memtmp": {
|
||||
"exec": "bash $HOME/.config/waybar/memtmp.sh",
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"format": "{}",
|
||||
"on-click": "alacritty -e /home/tgrosinger/.local/share/mise/shims/btop"
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Waybar custom module: available RAM (GiB) and current /tmp usage.
|
||||
#
|
||||
# Available RAM uses MemAvailable, the kernel's honest "allocatable without
|
||||
# swapping" figure. /tmp is tmpfs, so its used space is live RAM consumption;
|
||||
# df -h auto-scales the unit (it is usually in the MB range).
|
||||
set -euo pipefail
|
||||
|
||||
MEM_ICON=$''
|
||||
TMP_ICON=$''
|
||||
|
||||
avail_gib=$(awk '/^MemAvailable:/ {printf "%.1f", $2/1048576}' /proc/meminfo)
|
||||
read -r tmp_used tmp_size < <(df -h --output=used,size /tmp | awk 'NR==2 {print $1, $2}')
|
||||
|
||||
printf '{"text":"%sG %s %s %s","tooltip":"RAM available: %s GiB\\n/tmp used: %s of %s"}\n' \
|
||||
"$avail_gib" "$MEM_ICON" "$tmp_used" "$TMP_ICON" \
|
||||
"$avail_gib" "$tmp_used" "$tmp_size"
|
||||
@@ -1,7 +1,7 @@
|
||||
@import "latte.css";
|
||||
|
||||
* {
|
||||
font-family: 'JetBrainsMono';
|
||||
font-family: 'JetBrainsMono Nerd Font';
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -89,6 +89,7 @@ button:hover {
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#custom-memtmp,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
|
||||
Reference in New Issue
Block a user