Giter Site home page Giter Site logo

silverblue-tools's Introduction

Silverblue tools

A toolbox of scripts for toolbox, Silverblue, flatpak, and rpm-ostree.

Python requirements are in requirements.txt

pip install -r requirements.txt

toolbox-export

Export application metadata outside of a toolbox container.

Usage

$ toolbox-export foo
installed: ~/.local/share/applications/foo.desktop
installed: ~/.local/share/icons/hicolor/32x32/apps/foo.png
installed: ~/.local/share/icons/hicolor/64x64/apps/foo.png
installed: ~/.local/share/icons/hicolor/128x128/apps/foo.png
installed: ~/.local/share/icons/hicolor/scalable/apps/foo.svg
installed: ~/.local/share/appdata/foo.appdata.xml

Results in correct desktop entries

[Desktop Entry]
Name=foo
Exec=toolbox run foo %f
TryExec=toolbox
Icon=foo
Type=Application
Terminal=false
Categories=Foo;Bar

flatpak-curl

Quickly generate modules for your flatpak manifest.

Usage

$ flatpak-curl https://domain.org/foo-version.tar.gz
{
    "name": "foo-version",
    "buildsystem": "simple",
    "build-commands": [],
    "sources": [
        {
            "type": "archive",
            "url": "https://domain.org/foo-version.tar.gz",
            "sha256": "88d3b735e43f6f16a0181a8fec48847693fae80168d5f889fdbdeb962f1fc804"
        }
    ]
}

flatpak-alias

Quickly create alias for flatpak applications. Credits to Barthalion who presented this idea in Shell aliases for Flatpak applications.

Usage

$ flatpak-alias
Add

if [ -f "${XDG_CACHE_HOME}"/flatpak-aliases ] && ! [ "$HOSTNAME" == "toolbox" ] && [[ -z "${FLATPAK_ID}" ]]; then
    . "${XDG_CACHE_HOME}"/flatpak-aliases
fi

to your ~/.bashrc file.

Future ideas

TODO ostree-history

List recent commits by date to facilitate rollbacks.

$ ostree-history 4
History of fedora:fedora/32/x86_64/silverblue:
Jul 2 f0df14c641d2090b69f4860aa312a9098d9e5eb6a3c8f1d37327fd62293d916b
Jul 3 7402ccb7488428235c332ce1eaf94d836737bdeccf57b98fa2757d53b1f87985
Jul 5 7402ccb7488428235c332ce1eaf94d836737bdeccf57b98fa2757d53b1f87985
Jul 11 6e670d9a4cb48d15c8e2a8ab64246a5051148981da417b970e15b57290c34d82

To deploy: $ rpm-ostree deploy COMMIT, to compare rpm-ostree db diff COMMIT.

TODO ostree-copr

Enable copr repos in silverblue. Requires root permissions.

Usage

ostree-copr enable user/repository
ostree-copr disable user/repository

silverblue-tools's People

Contributors

a6gibkm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.