Skip to content

Instantly share code, notes, and snippets.

@andersondanilo
Created September 11, 2021 20:39
Show Gist options
  • Save andersondanilo/85b5f470d294ec360d3498a06e534158 to your computer and use it in GitHub Desktop.
Save andersondanilo/85b5f470d294ec360d3498a06e534158 to your computer and use it in GitHub Desktop.
Snap connect local themes
The folder would looks like that:
.
├── local-source
│   └── share
│   ├── icons
│   │   └── oomox-CustomOneHalf
│   └── themes
│   └── oomox-CustomOneHalf
└── snap
│ └── snapcraft.yml
└── setup.sh
#!/bin/bash
for i in $(snap connections | grep gtk-common-themes:gtk-3-themes | awk '{print $2}'); do
sudo snap connect $i my-local-themes:gtk-3-themes
done
name: my-local-themes # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: My local themes
description: |
My local themes
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
slots:
gtk-3-themes:
interface: content
source:
read:
- $SNAP/share/themes/oomox-CustomOneHalf
- $SNAP/share/icons/oomox-CustomOneHalf
parts:
theme-files:
source: local-source/
plugin: dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment