mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-05 00:54:24 +03:00
cf59968dca
fix: 📝 provide more feedback after installation
30 lines
978 B
Bash
30 lines
978 B
Bash
#!/usr/bin/env sh
|
|
|
|
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Installation script, that comes inside of the tar.gz package
|
|
|
|
set -e
|
|
|
|
# Install icons
|
|
echo "🖼️ Installing icons..."
|
|
APP_ICONS_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/icons/hicolor/scalable/apps"
|
|
mkdir -p "$APP_ICONS_DIR"
|
|
cp icons/bismuth.svg "$APP_ICONS_DIR/bismuth.svg"
|
|
|
|
# Upgrade/install script
|
|
echo "📦 Installing the script..."
|
|
KWINPKG_FILE="bismuth.kwinscript"
|
|
plasmapkg2 -u "$KWINPKG_FILE" > /dev/null || plasmapkg2 -i "$KWINPKG_FILE" > /dev/null
|
|
|
|
# Enable user configuration dialog
|
|
echo "🔧 Enabling user configuration..."
|
|
mkdir -p ~/.local/share/kservices5/
|
|
ln -sf ~/.local/share/kwin/scripts/bismuth/metadata.desktop ~/.local/share/kservices5/bismuth.desktop
|
|
|
|
echo "🎉 Installation finished."
|
|
echo "💡 You can enable and configure Bismuth in the System Settings > Window Management > KWin Scripts."
|
|
echo "🦾 Enjoy your tiling!"
|