feat: installed

This commit is contained in:
Gustavo Carvalho
2025-12-12 02:52:18 -03:00
parent 119b3d59fa
commit 3b45021afe
2 changed files with 24 additions and 9 deletions

View File

@@ -15,16 +15,23 @@ echo -e "${BLUE}Setting up Windows 11 Clipboard History...${NC}"
# Install clipboard tools for GIF paste support
install_clipboard_tools() {
echo -e "${BLUE}Installing clipboard tools for GIF support...${NC}"
local installed=false
if command -v apt-get &> /dev/null; then
apt-get install -y xclip wl-clipboard 2>/dev/null || true
apt-get install -y xclip wl-clipboard 2>/dev/null && installed=true || true
elif command -v dnf &> /dev/null; then
dnf install -y xclip wl-clipboard 2>/dev/null || true
dnf install -y xclip wl-clipboard 2>/dev/null && installed=true || true
elif command -v pacman &> /dev/null; then
pacman -S --needed --noconfirm xclip wl-clipboard 2>/dev/null || true
pacman -S --needed --noconfirm xclip wl-clipboard 2>/dev/null && installed=true || true
elif command -v zypper &> /dev/null; then
zypper install -y xclip wl-clipboard 2>/dev/null || true
zypper install -y xclip wl-clipboard 2>/dev/null && installed=true || true
fi
if [ "$installed" = true ]; then
echo -e "${GREEN}${NC} Clipboard tools installed"
else
echo -e "${YELLOW}!${NC} Could not install clipboard tools automatically. Please install 'xclip' and 'wl-clipboard' manually."
fi
echo -e "${GREEN}${NC} Clipboard tools installed"
}
install_clipboard_tools