Skip to content

Commit

Permalink
settings to build
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarxz committed Nov 22, 2024
1 parent 3f9de1f commit 119fd26
Show file tree
Hide file tree
Showing 35 changed files with 515 additions and 668 deletions.
12 changes: 12 additions & 0 deletions build-aux/meson/postinstall.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python3

import os
import subprocess

prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local')
datadir = os.path.join(prefix, 'share')
schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')

if not os.environ.get('DESTDIR'):
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', schemadir])
46 changes: 0 additions & 46 deletions com.github.sammarxz.json

This file was deleted.

33 changes: 33 additions & 0 deletions com.github.sammarxz.pomerode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
app-id: com.github.sammarxz.pomerode
runtime: org.gnome.Platform
runtime-version: '45'
sdk: org.gnome.Sdk
command: pomerode
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --talk-name=org.freedesktop.Notifications
- --filesystem=xdg-config/glib-2.0
- --metadata=X-DConf=migrate-path=/com/github/sammarxz/pomerode/

modules:
- name: libadwaita
buildsystem: meson
config-opts:
- -Dexamples=false
- -Dtests=false
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libadwaita.git
tag: '1.4.0'

- name: pomerode
buildsystem: meson
sources:
- type: dir
path: .
post-install:
- install -Dm644 data/com.github.sammarxz.pomerode.gschema.xml /app/share/glib-2.0/schemas/
- glib-compile-schemas /app/share/glib-2.0/schemas/
10 changes: 0 additions & 10 deletions data/com.github.sammarxz.desktop.in

This file was deleted.

10 changes: 10 additions & 0 deletions data/com.github.sammarxz.pomerode.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=Pomerode
Comment=A simple focus timer app
Exec=pomerode
Icon=com.github.sammarxz.pomerode
Terminal=false
Categories=Utility;Productivity;GTK;
Keywords=Pomodoro;Timer;Focus;
X-GNOME-UsesNotifications=true
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/sammarxz">
<gresource prefix="/com/github/sammarxz/pomerode">
<file preprocess="xml-stripblanks">ui/window.ui</file>
<file preprocess="xml-stripblanks">ui/preferences.ui</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="pomerode">
<schema id="com.github.sammarxz" path="/com/github/sammarxz/">
<key name="work-duration" type="i">
<schemalist>
<schema id="com.github.sammarxz.pomerode" path="/com/github/sammarxz/pomerode/">
<key name="work-duration" type="i">
<default>25</default>
<summary>Work Duration</summary>
<description>Duration of work intervals in minutes</description>
Expand All @@ -26,5 +26,5 @@
<summary>Autostart Intervals</summary>
<description>Automatically start next interval when current one ends</description>
</key>
</schema>
</schemalist>
</schema>
</schemalist>
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.github.sammarxz</id>
<id>@appid@</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>

<name>Pomerode</name>
<summary>Minimal Pomodoro timer</summary>
<description>
<p>Pomerode is a sleek and user-friendly Pomodoro timer designed for elementary OS. Built with GTK4 and Libadwaita, it helps you maintain focus and productivity using the Pomodoro Technique.</p>
<p>Pomerode is a sleek and user-friendly Pomodoro timer designed for elementary OS. Built with
GTK4 and Libadwaita, it helps you maintain focus and productivity using the Pomodoro
Technique.</p>
<h3>Features</h3>
<ul>
<li><strong>Clean and Modern Interface</strong> ollows elementary OS's design guidelines for a native look and feel</li>
<li><strong>Customizable Intervals</strong> Adjust work duration, break duration, and long break settings</li>
<li><strong>Session Tracking</strong> Visual indicators show your progress through work intervals</li>
<li><strong>Clean and Modern Interface</strong> ollows elementary OS's design guidelines for a
native look and feel</li>
<li><strong>Customizable Intervals</strong> Adjust work duration, break duration, and long
break settings</li>
<li><strong>Session Tracking</strong> Visual indicators show your progress through work
intervals</li>
<li><strong>Smart Breaks</strong> Automatically switches between focus sessions and breaks</li>
<li><strong>Autostart Option</strong> Seamlessly transition between sessions with automatic start</li>
<li><strong>Autostart Option</strong> Seamlessly transition between sessions with automatic
start</li>
<li><strong>System Notifications</strong> Get notified when sessions end or breaks begin</li>
<li><strong>Distraction-free</strong> Minimal interface helps you stay focused on your tasks</li>
</ul>
<br />
<h3>The Pomodoro Technique</h3>
<p>The Pomodoro Technique is a time management method that uses a timer to break work into focused intervals (traditionally 25 minutes) separated by short breaks. After a set number of work intervals, you take a longer break. This helps maintain mental freshness and sustained concentration.</p>
<p>The Pomodoro Technique is a time management method that uses a timer to break work into
focused intervals (traditionally 25 minutes) separated by short breaks. After a set number of
work intervals, you take a longer break. This helps maintain mental freshness and sustained
concentration.</p>
</description>

<developer id="tld.vendor">
Expand All @@ -29,13 +38,16 @@

<!-- Requered: Should be a link to the upstream homepage for the component -->
<url type="homepage">https://github.com/sammarxz/pomerode</url>
<!-- Recommended: It is highly recommended for open-source projects to display the source code repository -->
<!-- Recommended: It is highly recommended for open-source projects to display the source code
repository -->
<url type="vcs-browser">https://github.com/sammarxz/pomerode</url>
<translation type="gettext">pomerode</translation>
<!-- All graphical applications having a desktop file must have this tag in the MetaInfo.
If this is present, appstreamcli compose will pull icons, keywords and categories from the desktop file. -->
<launchable type="desktop-id">com.github.sammarxz.desktop</launchable>
<!-- Use the OARS website (https://hughsie.github.io/oars/generate.html) to generate these and make sure to use oars-1.1 -->
If this is present, appstreamcli compose will pull icons, keywords and categories from the desktop
file. -->
<launchable type="desktop-id">com.github.sammarxz.pomerode.desktop</launchable> <!-- Use the OARS
website (https://hughsie.github.io/oars/generate.html) to generate these and make sure to use
oars-1.1 -->
<content_rating type="oars-1.1" />

<!-- Applications should set a brand color in both light and dark variants like so -->
Expand All @@ -45,16 +57,19 @@
</branding>

<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/sammarxz/pomerode/refs/heads/main/data/appdata/pomo-dark.png</image>
<screenshot type="default">
<image>
https://raw.githubusercontent.com/sammarxz/pomerode/refs/heads/main/data/appdata/pomo-dark.png</image>
<caption>Initial screen (dark mode)</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/sammarxz/pomerode/refs/heads/main/data/appdata/pomo-light.png</image>
<image>
https://raw.githubusercontent.com/sammarxz/pomerode/refs/heads/main/data/appdata/pomo-light.png</image>
<caption>Initial screen (light mode)</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/sammarxz/pomerode/refs/heads/main/data/appdata/pomo-settings.png</image>
<image>
https://raw.githubusercontent.com/sammarxz/pomerode/refs/heads/main/data/appdata/pomo-settings.png</image>
<caption>Preferences screen</caption>
</screenshot>
</screenshots>
Expand All @@ -72,4 +87,4 @@
</release>
</releases>

</component>
</component>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=com.github.sammarxz
Name=com.@name@
Exec=@bindir@/pomerode --gapplication-service
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 119fd26

Please sign in to comment.