replace the old dotfiles with the sakura line rice
The bare $HOME repo is gone. This is now the rice: install.sh, rice-* scripts in bin/, configs in home/ linked into $HOME, theme templates, st and the particle wallpaper. Clone to ~/rice and run install.sh. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLLuuQfeDiqFHHSgd2VWrQ
This commit is contained in:
commit
4b203d06bd
104 changed files with 8077 additions and 0 deletions
14
bin/rice-osd
Executable file
14
bin/rice-osd
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
# rice-osd <glyph> <label> <percent|text>
|
||||
# An on-screen display that replaces itself in place (dunst [osd] rule).
|
||||
# A number draws dunst's progress bar; anything else is shown as text.
|
||||
glyph="${1:?usage: rice-osd <glyph> <label> <percent|text>}"
|
||||
label="${2:-}"
|
||||
value="${3:-}"
|
||||
tag="osd-${label,,}"
|
||||
|
||||
if [[ $value =~ ^[0-9]+$ ]]; then
|
||||
notify-send -a osd -u low -h "int:value:$value" -h "string:x-dunst-stack-tag:$tag" "$glyph $label $value%"
|
||||
else
|
||||
notify-send -a osd -u low -h "string:x-dunst-stack-tag:$tag" "$glyph $label $value"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue