Unix3r

Build. Break. Learn. Repeat.

Starting0%
Skip to content

unix3r/dotfiles

Public
main
U Unix3r Initial commit: sway + waybar dotfiles (Catppuccin Mocha) eb290df
11 lines · 416 B Raw History
1#!/usr/bin/env bash
2# clipboard.sh [wipe] — pick an entry from clipboard history (cliphist)
3source "$(dirname "$0")/_lib.sh"
4has cliphist || { notify clip dialog-error "Clipboard" "cliphist not installed"; exit 1; }
5
6if [[ $1 == wipe ]]; then
7 cliphist wipe && notify clip edit-clear "Clipboard history cleared"
8 exit
9fi
10
11cliphist list | menu "Clipboard" --width 700 --height 450 | cliphist decode | wl-copy