dots: public mirror (history reset after licence cleanup)
This commit is contained in:
commit
693822ad5f
226 files changed
+22502
No files matched your search
Executable
+70
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env bash
|
||||
# wbar — run the custom waybar rig (layouts/custom.jsonc + custom.css) as a
|
||||
# supervised systemd user service, and control it.
|
||||
#
|
||||
# Why a service: waybar 0.15.0 segfaults when the LG 4K drops its DisplayPort
|
||||
# link on power-off (output removed) and again when it comes back (output
|
||||
# re-added). Launched as a bare scope nothing relaunched it, so the bar was gone
|
||||
# every morning. As a transient *service* with Restart=always systemd brings it
|
||||
# back after RestartSec, at both ends of the cycle. StartLimitIntervalSec=0 keeps
|
||||
# systemd from giving up while the monitor is gone and Hyprland sits on its
|
||||
# headless fallback output (the default limit of 5 starts per 10 s would
|
||||
# reproduce the original "stays dead" behavior). RestartSec=3 keeps that
|
||||
# potential loop cheap; `systemctl --user show dots-waybar.service -p NRestarts`
|
||||
# after a night says how many restarts a sleep cycle really costs.
|
||||
#
|
||||
# The unit is dots-owned on purpose. HyDE's own bar unit
|
||||
# (hyde-$XDG_SESSION_DESKTOP-bar.service) is masked on rig hosts (README.md) so
|
||||
# waybar.py can never spawn a second, plain bar — reusing that name would need
|
||||
# the mask lifted. Under a different name HyDE keeps seeing "no bar", exactly as
|
||||
# before.
|
||||
#
|
||||
# Because a killed waybar now comes straight back, every killall-based control
|
||||
# goes through here:
|
||||
# wbar restart (what the old `wbar` abbr did) also: hc.start.bar
|
||||
# wbar toggle Ctrl+Alt+W
|
||||
# wbar reload re-read config + CSS in place (SIGUSR2), no restart
|
||||
# wbar start|stop|status
|
||||
set -euo pipefail
|
||||
|
||||
unit="dots-waybar.service"
|
||||
cfg="$HOME/.config/waybar/layouts/custom.jsonc"
|
||||
css="$HOME/.config/waybar/layouts/custom.css"
|
||||
|
||||
active() { systemctl --user is-active --quiet "$unit"; }
|
||||
|
||||
start() {
|
||||
active && return 0
|
||||
systemctl --user reset-failed "$unit" 2>/dev/null || true
|
||||
# A service gets the user manager's environment, not Hyprland's. Forward the
|
||||
# session vars app2unit forwards for HyDE's own units, plus GTK scaling
|
||||
# (GDK_SCALE=1 is what keeps the bar sized right on the 1.25-scaled output).
|
||||
local -a env=()
|
||||
local v
|
||||
for v in XDG_VTNR XDG_SEAT XDG_SEAT_PATH XDG_SESSION_ID XDG_SESSION_PATH GDK_SCALE GDK_DPI_SCALE; do
|
||||
[ -n "${!v:-}" ] && env+=("--setenv=$v=${!v}")
|
||||
done
|
||||
systemd-run --user --quiet --collect \
|
||||
--unit="$unit" --slice=app-graphical.slice --description="waybar (dots custom rig)" \
|
||||
--property=Type=exec --property=ExitType=cgroup \
|
||||
--property=Restart=always --property=RestartSec=3 --property=StartLimitIntervalSec=0 \
|
||||
--property=After=graphical-session.target --property=PartOf=graphical-session.target \
|
||||
"${env[@]}" -- waybar -c "$cfg" -s "$css"
|
||||
}
|
||||
|
||||
case "${1:-restart}" in
|
||||
start) start ;;
|
||||
stop) systemctl --user stop "$unit" ;;
|
||||
restart)
|
||||
if active; then systemctl --user restart "$unit"; else start; fi
|
||||
;;
|
||||
toggle)
|
||||
if active; then systemctl --user stop "$unit"; else start; fi
|
||||
;;
|
||||
reload) systemctl --user kill -s SIGUSR2 "$unit" ;;
|
||||
status) systemctl --user status --no-pager "$unit" ;;
|
||||
*)
|
||||
echo "usage: wbar [start|stop|restart|toggle|reload|status] (default: restart)" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,9 @@
|
||||
# gui package — the one surviving line of HyDE's retired hyde.conf.
|
||||
#
|
||||
# HyDE 26.x ships neither ~/.local/share/hyde/hyde.conf nor hyprland.conf; the repo carried
|
||||
# copies of both as the hyprlang chain's framework sources until LUA-PORT.md step 8 retired
|
||||
# that chain (2026-09-10). Nothing in Lua mode reads them — except get_hyprConf() in
|
||||
# globalcontrol.sh, which HyDE's rofi/menu scripts call for FONT and which falls back to
|
||||
# `$default.FONT` in exactly this file when the active theme's hypr.theme has no font-name
|
||||
# line (the Catppuccin themes don't). Without it the menus drop to rofi's default font.
|
||||
$default.FONT=Cantarell
|
||||
@@ -0,0 +1,12 @@
|
||||
[Icon Theme]
|
||||
Name=dots-icons
|
||||
Comment=Thin overlay over Tela-circle-dracula: monochrome tray/status icons at every size. Tela only ships its flat panel icons at fixed 16/22/24 - on a fractionally scaled monitor waybar requests size*2 (e.g. 44), which falls through to scalable/devices, whose icons are colored circles (the blue nm-applet blob). This theme is searched first and serves the panel SVGs as scalable, so status icons stay flat; everything else inherits Tela unchanged. Pinned via hc.ui.icon_theme in gui/.config/hypr/hyprland.lua. The status icons are symlinks into the host's own Tela-circle-dracula, made by bin/dots-icons-link.sh (install.sh step 3.6) - Tela-circle publishes no licence, so the repo ships none of its files.
|
||||
Inherits=Tela-circle-dracula
|
||||
Directories=scalable/status
|
||||
|
||||
[scalable/status]
|
||||
Context=Status
|
||||
Size=22
|
||||
MinSize=8
|
||||
MaxSize=512
|
||||
Type=Scalable
|
||||
Reference in new issue
Block a user