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
21
bin/rice-bar
Executable file
21
bin/rice-bar
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
# rice-bar - polybar on every connected monitor.
|
||||
#
|
||||
# rice-bar start (re)launch the bar
|
||||
# rice-bar toggle hide or show it without restarting
|
||||
set -uo pipefail
|
||||
|
||||
start() {
|
||||
pkill -u "$UID" -x polybar
|
||||
while pgrep -u "$UID" -x polybar >/dev/null; do sleep 0.1; done
|
||||
local m
|
||||
for m in $(xrandr --query | awk '/ connected/ {print $1}'); do
|
||||
MONITOR="$m" setsid -f polybar --reload top >/dev/null 2>&1
|
||||
done
|
||||
}
|
||||
|
||||
case "${1:-start}" in
|
||||
start) start ;;
|
||||
toggle) if pgrep -u "$UID" -x polybar >/dev/null; then polybar-msg cmd toggle >/dev/null; else start; fi ;;
|
||||
*) echo "usage: rice-bar start|toggle" >&2; exit 2 ;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue