diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-28 13:10:02 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-28 13:10:02 -0600 |
| commit | 7934fe2db74ef3e849e561d86757e3f9db3dc094 (patch) | |
| tree | 9edf463ba29e5c80eecdff514e97226a6ba1055d /dotfiles/hyprland/.local/bin/monitor-dashboard | |
| parent | d7d220b8a08219a795d49420abef2ec39483b94b (diff) | |
| download | archsetup-7934fe2db74ef3e849e561d86757e3f9db3dc094.tar.gz archsetup-7934fe2db74ef3e849e561d86757e3f9db3dc094.zip | |
feat(hyprland): add monitor-dashboard, remove htop scratchpad
- Monitor scratchpad now launches monitor-dashboard (tmux session with
btop, s-tui, nvtop, duf, bandwhich, wavemon, powertop)
- Remove htop scratchpad ($mod+Shift+H now free)
Diffstat (limited to 'dotfiles/hyprland/.local/bin/monitor-dashboard')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/monitor-dashboard | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.local/bin/monitor-dashboard b/dotfiles/hyprland/.local/bin/monitor-dashboard new file mode 100755 index 0000000..9236d20 --- /dev/null +++ b/dotfiles/hyprland/.local/bin/monitor-dashboard @@ -0,0 +1,37 @@ +#!/bin/sh +# monitor-dashboard - tmux session with system monitoring tools +# Each tool gets its own window for full screen real estate + +SESSION="monitor" + +# Check if system has a battery +has_battery() { + [ -d /sys/class/power_supply/BAT0 ] || [ -d /sys/class/power_supply/BAT1 ] +} + +# Attach to existing session or create new one +if tmux has-session -t "$SESSION" 2>/dev/null; then + exec tmux attach-session -t "$SESSION" +fi + +# Create new session with btop in first window +tmux new-session -d -s "$SESSION" -n btop btop + +# Add windows for other monitoring tools (grouped logically) +# CPU/GPU +tmux new-window -t "$SESSION" -n s-tui s-tui +tmux new-window -t "$SESSION" -n nvtop nvtop +# Disk +tmux new-window -t "$SESSION" -n duf "watch --color -n 60 duf" +# Network +tmux new-window -t "$SESSION" -n bandwhich "sudo bandwhich" +tmux new-window -t "$SESSION" -n wavemon wavemon +# Power (laptop only) +if has_battery; then + tmux new-window -t "$SESSION" -n powertop "sudo powertop" +fi + +# Start on btop window +tmux select-window -t "$SESSION:btop" + +exec tmux attach-session -t "$SESSION" |
