<repo_name>getsolus/plasma-desktop-branding<file_sep>/mkrelease.sh
#!/bin/bash
set -e

rm -rf build
meson --prefix /usr build
ninja dist -C build

# Bump in tandem with meson.build, run script once new tag is up.
VERSION="4"
TAR="plasma-desktop-branding-${VERSION}.tar.xz"
mv build/meson-dist/$TAR .

# Automatically sign the tarball with GPG key of user running this script
gpg --armor --detach-sign $TAR
gpg --verify "${TAR}.asc"
<file_sep>/solus-desktoptheme/Solus/layout-templates/solus.desktop.defaultPanel/contents/layout.js
// This is based on the Plasma default panel which is licensed under LGPLv2+

var panel = new Panel
var panelScreen = panel.screen
var freeEdges = {"bottom": true, "top": true, "left": true, "right": true}

for (i = 0; i < panelIds.length; ++i) {
    var tmpPanel = panelById(panelIds[i])
    if (tmpPanel.screen == panelScreen) {
        if (tmpPanel.id != panel.id) {
            freeEdges[tmpPanel.location] = false;
        }
    }
}

if (freeEdges["bottom"] == true) {
    panel.location = "bottom";
} else if (freeEdges["top"] == true) {
    panel.location = "top";
} else if (freeEdges["left"] == true) {
    panel.location = "left";
} else if (freeEdges["right"] == true) {
    panel.location = "right";
} else {
    panel.location = "top";
}

panel.height = 2 * Math.floor(gridUnit * 2.5 / 2)

const maximumAspectRatio = 21/9;
if (panel.formFactor === "horizontal") {
    const geo = screenGeometry(panelScreen);
    const maximumWidth = Math.ceil(geo.height * maximumAspectRatio);

    if (geo.width > maximumWidth) {
        panel.alignment = "center";
        panel.minimumLength = maximumWidth;
        panel.maximumLength = maximumWidth;
    }
}

var kicker = panel.addWidget("org.kde.plasma.kicker")
kicker.currentConfigGroup = ["Shortcuts"]
kicker.writeConfig("global", "Alt+F1")

panel.addWidget("org.kde.plasma.pager")
panel.addWidget("org.kde.plasma.icontasks")
panel.addWidget("org.kde.plasma.marginsseparator")


var langIds = ["as",    // Assamese
               "bn",    // Bengali
               "bo",    // Tibetan
               "brx",   // Bodo
               "doi",   // Dogri
               "gu",    // Gujarati
               "hi",    // Hindi
               "ja",    // Japanese
               "kn",    // Kannada
               "ko",    // Korean
               "kok",   // Konkani
               "ks",    // Kashmiri
               "lep",   // Lepcha
               "mai",   // Maithili
               "ml",    // Malayalam
               "mni",   // Manipuri
               "mr",    // Marathi
               "ne",    // Nepali
               "or",    // Odia
               "pa",    // Punjabi
               "sa",    // Sanskrit
               "sat",   // Santali
               "sd",    // Sindhi
               "si",    // Sinhala
               "ta",    // Tamil
               "te",    // Telugu
               "th",    // Thai
               "ur",    // Urdu
               "vi",    // Vietnamese
               "zh_CN", // Simplified Chinese
               "zh_TW"] // Traditional Chinese



if (langIds.indexOf(languageId) != -1) {
    panel.addWidget("org.kde.plasma.kimpanel");
}

panel.addWidget("org.kde.plasma.systemtray")
panel.addWidget("org.kde.plasma.minimizeall")
panel.addWidget("org.kde.plasma.digitalclock")
<file_sep>/env/50-solus-defaults.sh
# Begin /usr/share/xdg/plasma-workspace/env/50-solus-defaults.sh

# Load agent if it isn't already
if [ -z "${SSH_AGENT_PID}" ]; then
    eval `ssh-agent -s`
fi

# Set ksshaskpass as the SSH_ASKPASS client
if [ -f /usr/bin/ksshaskpass ]; then
    export SSH_ASKPASS="/<PASSWORD>"
fi

# End /usr/share/xdg/plasma-workspace/env/50-solus-defaults.sh
