From 180e998158797565e53e130f72fc7e29b185cf7b Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 29 Jun 2026 01:16:48 +0400 Subject: [PATCH] install --- install.sh | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..7d40f5c --- /dev/null +++ b/install.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +## CONSTANTS + +## FUNCTIONS + +function assert_debian13 { + test -f /etc/debian_version && + grep --quiet ^13\. /etc/debian_version || + echo "assert: Debian 13 missing!" +} + +function assert_gnome_desktop { + [[ $XDG_SESSION_DESKTOP == "gnome" ]] || + echo "assert: Gnome Shell missing!" +} + +function install_ghostty { + + if ! command -v ghostty >/dev/null; then + curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | + sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg + + echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | + sudo tee /etc/apt/sources.list.d/debian.griffo.io.list + + sudo apt-get update && + sudo apt-get install -y ghostty + else + echo Ghostty already installed! + fi + + if ! systemctl is-enabled --user --quiet app-com.mitchellh.ghostty; then + systemctl enable --user app-com.mitchellh.ghostty.service + else + echo "Ghostty service already enabled!" + fi +} + +function install_homebrew { + : +} + +function configure_default { + # CAPS LOCK means ESC + gsettings set org.gnome.desktop.input-sources xkb-options "['caps:escape']" + +} +## MAIN + +assert_debian13 +assert_gnome_desktop + +echo "MIAOU-DESKTOP installation..." + +install_ghostty +install_homebrew +configure_default +echo SUCCESS