Skip to content

Commit 0e812ef

Browse files
authored
Merge pull request #23 from ellie-commons/Add-gschema
Add gschema
2 parents 06d0bb0 + 62206ed commit 0e812ef

18 files changed

+106
-44
lines changed

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ configure_file(
4545
add_custom_target(uninstall
4646
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake)
4747

48-
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.tom95.indicator-synapse.appdata.xml DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/metainfo/)
49-
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.tom95.indicator-synapse.desktop DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications)
48+
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/io.github.ellie_commons.indicator-synapse.appdata.xml DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/metainfo/)
49+
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/io.github.ellie_commons.indicator-synapse.desktop DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications)
5050

51-
install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/)
52-
install (FILES data/icons/16/com.github.tom95.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/16x16/apps/)
53-
install (FILES data/icons/24/com.github.tom95.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/24x24/apps/)
54-
install (FILES data/icons/32/com.github.tom95.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/32x32/apps/)
55-
install (FILES data/icons/48/com.github.tom95.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/48x48/apps/)
56-
install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/64x64/apps/)
57-
install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/128x128/apps/)
51+
install (FILES data/icons/io.github.ellie_commons.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/)
52+
install (FILES data/icons/16/io.github.ellie_commons.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/16x16/apps/)
53+
install (FILES data/icons/24/io.github.ellie_commons.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/24x24/apps/)
54+
install (FILES data/icons/32/io.github.ellie_commons.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/32x32/apps/)
55+
install (FILES data/icons/48/io.github.ellie_commons.indicator-synapse.png DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/48x48/apps/)
56+
install (FILES data/icons/io.github.ellie_commons.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/64x64/apps/)
57+
install (FILES data/icons/io.github.ellie_commons.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/128x128/apps/)
5858

5959
# work around elementary/houston requiring an installed "binary"
60-
install (PROGRAMS data/com.github.tom95.indicator-synapse DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
60+
install (PROGRAMS data/io.github.ellie_commons.indicator-synapse DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

README.md

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,50 @@
11
# Indicator Synapse
22

3-
This codebase bundles the original [Synapse Launcher project](https://launchpad.net/synapse-project) code and retains its original license. It does not use Synapse's UI part and instead provides a Wingpanel indicator.
43

5-
![Screenshot](https://raw.githubusercontent.com/tom95/indicator-synapse/master/screenshots/Screenshot.png)
4+
<div align="center">
5+
<h1 align="center">Synapse indicator</h1>
6+
<h3 align="center">Search everything</h3>
7+
<a href="https://elementary.io">
8+
<img src="https://ellie-commons.github.io/community-badge.svg" alt="Made for elementary OS">
9+
</a>
10+
</div>
11+
12+
<div align="center">
13+
<span align="center">
14+
<img class="center" src="data/screenshot.png" alt="Synapse indicator">
15+
</span>
16+
</div>
17+
</br>
18+
19+
20+
This codebase bundles the original [Synapse Launcher project](https://launchpad.net/synapse-project) code and retains its original license. It does not use Synapse's UI part and instead provides a Wingpanel indicator.
621

722
### Global Shortcut
23+
824
To open the indicator via shortcut, add a custom shortcut in your keyboard settings with the following command:
925
```
10-
wingpanel --toggle-indicator=com.github.tom95.indicator-synapse
26+
wingpanel --toggle-indicator=io.github.ellie_commons.indicator-synapse
1127
```
12-
### Build instructions
28+
## 🏗️ Building
29+
30+
Install dependencies with:
31+
32+
```bash
33+
sudo apt install libglib2.0-dev libgranite-dev libwingpanel-dev valac meson libzeitgeist-2.0-dev
1334
```
14-
mkdir build
35+
36+
Run `meson` to configure the build environment and then `ninja` to build
37+
38+
```bash
39+
meson build --prefix=/usr
1540
cd build
16-
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ../
17-
make
18-
sudo make install
41+
ninja
1942
```
43+
44+
To install
45+
46+
```bash
47+
sudo ninja install
48+
```
49+
50+
To uninstall, same but "uninstall"

data/com.github.tom95.indicator-synapse

Lines changed: 0 additions & 4 deletions
This file was deleted.

data/com.github.tom95.indicator-synapse.gresource.xml renamed to data/gresource.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<gresources>
3-
<gresource prefix="/com/github/tom95/indicator-synapse/">
3+
<gresource prefix="/io/github/ellie_commons/indicator-synapse/">
44
<file alias="Indicator.css">Indicator.css</file>
55
</gresource>
66
</gresources>

data/gschema.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<schemalist>
3+
<schema path="/io/github/ellie_commons/indicator-synapse/" id="io.github.ellie_commons.indicator-synapse">
4+
<key name="visible" type="b">
5+
<default>true</default>
6+
<summary>Whether indicator is visible</summary>
7+
<description>Hide indicator if set to false. It is still running, just hidden</description>
8+
</key>
9+
</schema>
10+
</schemalist>

data/icons/16/com.github.tom95.indicator-synapse.png renamed to data/icons/16/io.github.ellie_commons.indicator-synapse.png

File renamed without changes.

data/icons/24/com.github.tom95.indicator-synapse.png renamed to data/icons/24/io.github.ellie_commons.indicator-synapse.png

File renamed without changes.

data/icons/32/com.github.tom95.indicator-synapse.png renamed to data/icons/32/io.github.ellie_commons.indicator-synapse.png

File renamed without changes.

data/icons/48/com.github.tom95.indicator-synapse.png renamed to data/icons/48/io.github.ellie_commons.indicator-synapse.png

File renamed without changes.

data/icons/com.github.tom95.indicator-synapse.svg renamed to data/icons/io.github.ellie_commons.indicator-synapse.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)