dotfiles/.config/scripts/rofi-menus/clipboard-manager.sh
Sarthak b5a252c480 control centre, notification overhaul, and cleanup
One centred rofi panel (super+x, or the gear in the bar) now drives network,
bluetooth, audio, WireGuard, display, notifications, clipboard, emoji,
screenshots, wallpaper, the particle layer, the bar and power. The separate
per-function menus are gone.

dunst: icons and images were disabled outright (icon_position=off,
max_icon_size=0). Now icons resolve through Papirus, images render, progress
bars are styled, notifications gap and stack, and fullscreen windows are not
covered unless the message is critical. Volume up/down never notified at all;
they now show a stacking OSD with a progress bar.

Removed things that were broken or belonged to whoever this rice came from:
- vpn-launcher.sh (mullvad/openvpn) and dc-multivpn
- audio/bluetooth/network/power rofi menus, folded into the control centre
- untar-all, unzip-all, resetxdgportal (unreferenced)
- a sxhkd binding hardcoded to /home/sarthak/projects/scribe
- clipboard-manager.sh keyed off XDG_SESSION_TYPE, which is 'tty' here, so it
  only ever printed a Russian error; rewritten on greenclip
- toggle-bar.sh was bound to super+b but did not exist; written

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cn3dHfbgNYdbZvzb1b3GQt
2026-09-04 00:48:26 +05:30

17 lines
560 B
Bash
Executable file

#!/usr/bin/env bash
# Clipboard history through rofi, backed by greenclip (X11).
# The daemon is started from bspwmrc.
if ! command -v greenclip >/dev/null 2>&1; then
notify-send -a "Clipboard" -u critical "greenclip is not installed" \
"Install it with: paru -S rofi-greenclip"
exit 1
fi
pgrep -f 'greenclip daemon' >/dev/null 2>&1 || (setsid greenclip daemon >/dev/null 2>&1 &)
rofi -modi "clipboard:greenclip print" \
-show clipboard \
-run-command '{cmd}' \
-theme "$HOME/.config/rofi/control.rasi" \
-p "Clipboard"