Skip to content

Commit

Permalink
add supported gnome versions, change default icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthSidious007 committed Nov 27, 2024
1 parent d361592 commit 028b049
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ A GNOME Shell extension that allows you to toggle the **AmneziaWG** (via awg-qui

## Gnome Versions Support

- 43 - `master` branch, `v1` tag
- 40|41|42|43|44 - `master` branch, `v3` tag

## Manual Installation

Expand All @@ -44,15 +44,18 @@ A GNOME Shell extension that allows you to toggle the **AmneziaWG** (via awg-qui
```bash
git clone https://github.com/amnezia-vpn/amneziawg-gnome-extension.git ~/.local/share/gnome-shell/extensions/amneziawg@amnezia-vpn
```
> add `--branch v<version tag>` if you need exact version

> [!TIP]
> add `--branch <version tag>` if you need exact version
### Get extension from ZIP:
```bash
wget https://github.com/amnezia-vpn/amneziawg-gnome-extension/releases/download/v1/[email protected]
wget https://github.com/amnezia-vpn/amneziawg-gnome-extension/releases/download/v3/[email protected]
gnome-extensions install [email protected] --force
```

> Replace `v1` in url with `v<version tag>` if you need exact version
> [!TIP]
> Replace `v3` in url with `<version tag>` if you need another version
### Apply extension

Expand Down
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Extension {
this._settings.set_string('interface', 'awg0');
}
if (!this._settings.get_int('icon-size')) {
this._settings.set_int('icon-size', 32);
this._settings.set_int('icon-size', 24);
}
if (!this._settings.get_string('manual-theme')) {
this._settings.set_string('manual-theme', 'dark');
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"uuid": "amneziawg@amnezia-vpn",
"name": "AmneziaWG Toggle Button",
"description": "A button to toggle AmneziaWG service on/off",
"shell-version": ["43"],
"shell-version": ["40", "41", "42", "43", "44"],
"url": "https://github.com/amnezia-vpn/amneziawg-gnome-extension",
"settings-schema": "org.gnome.shell.extensions.amneziawg",
"version": 2
"version": 3
}
Binary file modified schemas/gschemas.compiled
Binary file not shown.
2 changes: 1 addition & 1 deletion schemas/org.gnome.shell.extensions.amneziawg.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<summary>"Interface"</summary>
</key>
<key name="icon-size" type="i">
<default>32</default>
<default>24</default>
<summary>"Icon Size"</summary>
<description>"The size of the toggle button icon in pixels"</description>
</key>
Expand Down

0 comments on commit 028b049

Please sign in to comment.