diff --git a/data/icons/hicolor/scalable/apps/io.github.amit9838.weather.Source.svg b/data/icons/hicolor/scalable/apps/io.github.amit9838.mousam.Source.svg similarity index 99% rename from data/icons/hicolor/scalable/apps/io.github.amit9838.weather.Source.svg rename to data/icons/hicolor/scalable/apps/io.github.amit9838.mousam.Source.svg index 89955d5..f271334 100644 --- a/data/icons/hicolor/scalable/apps/io.github.amit9838.weather.Source.svg +++ b/data/icons/hicolor/scalable/apps/io.github.amit9838.mousam.Source.svg @@ -10,7 +10,7 @@ id="svg11300" sodipodi:version="0.32" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" - sodipodi:docname="io.github.amit9838.weather.Source.svg" + sodipodi:docname="io.github.amit9838.mousam.Source.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape" version="1.0" style="display:inline;enable-background:new" diff --git a/data/icons/hicolor/scalable/apps/io.github.amit9838.weather.svg b/data/icons/hicolor/scalable/apps/io.github.amit9838.mousam.svg similarity index 100% rename from data/icons/hicolor/scalable/apps/io.github.amit9838.weather.svg rename to data/icons/hicolor/scalable/apps/io.github.amit9838.mousam.svg diff --git a/data/icons/hicolor/symbolic/apps/io.github.amit9838.weather-symbolic.svg b/data/icons/hicolor/symbolic/apps/io.github.amit9838.mousam-symbolic.svg similarity index 100% rename from data/icons/hicolor/symbolic/apps/io.github.amit9838.weather-symbolic.svg rename to data/icons/hicolor/symbolic/apps/io.github.amit9838.mousam-symbolic.svg diff --git a/data/icons/meson.build b/data/icons/meson.build index cb2228e..efa7286 100644 --- a/data/icons/meson.build +++ b/data/icons/meson.build @@ -1,4 +1,4 @@ -application_id = 'io.github.amit9838.weather' +application_id = 'io.github.amit9838.mousam' scalable_dir = join_paths('hicolor', 'scalable', 'apps') diff --git a/data/io.github.amit9838.weather.appdata.xml.in b/data/io.github.amit9838.mousam.appdata.xml.in similarity index 98% rename from data/io.github.amit9838.weather.appdata.xml.in rename to data/io.github.amit9838.mousam.appdata.xml.in index f581fb4..5198fca 100644 --- a/data/io.github.amit9838.weather.appdata.xml.in +++ b/data/io.github.amit9838.mousam.appdata.xml.in @@ -1,10 +1,10 @@ - io.github.amit9838.weather.desktop + io.github.amit9838.mousam.desktop CC0-1.0 GPL-3.0-or-later Weather - Beautiful and lightweight weather app + Beautiful and lightweight mousam app

Current Weather conditions and forcasts.

Features:

diff --git a/data/io.github.amit9838.weather.desktop.in b/data/io.github.amit9838.mousam.desktop.in similarity index 63% rename from data/io.github.amit9838.weather.desktop.in rename to data/io.github.amit9838.mousam.desktop.in index c074270..b4196fe 100644 --- a/data/io.github.amit9838.weather.desktop.in +++ b/data/io.github.amit9838.mousam.desktop.in @@ -1,8 +1,8 @@ [Desktop Entry] Name=Mousam -Exec=weather -Comment=Beautiful and lightweight weather app -Icon=io.github.amit9838.weather +Exec=mousam +Comment=Beautiful and lightweight mousam app +Icon=io.github.amit9838.mousam Terminal=false Type=Application Categories=Application;Utility;GTK; diff --git a/data/io.github.amit9838.weather.gschema.xml b/data/io.github.amit9838.mousam.gschema.xml similarity index 88% rename from data/io.github.amit9838.weather.gschema.xml rename to data/io.github.amit9838.mousam.gschema.xml index 572e85c..769e562 100644 --- a/data/io.github.amit9838.weather.gschema.xml +++ b/data/io.github.amit9838.mousam.gschema.xml @@ -1,6 +1,6 @@ - - + + ['Delhi,India,28.6517178,77.2219388'] @@ -19,7 +19,7 @@ - true + false Launch the app in maximized mode. diff --git a/data/meson.build b/data/meson.build index fcefcea..0f03dd8 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,6 +1,6 @@ desktop_file = i18n.merge_file( - input: 'io.github.amit9838.weather.desktop.in', - output: 'io.github.amit9838.weather.desktop', + input: 'io.github.amit9838.mousam.desktop.in', + output: 'io.github.amit9838.mousam.desktop', type: 'desktop', po_dir: '../po', install: true, @@ -13,8 +13,8 @@ if desktop_utils.found() endif appstream_file = i18n.merge_file( - input: 'io.github.amit9838.weather.appdata.xml.in', - output: 'io.github.amit9838.weather.appdata.xml', + input: 'io.github.amit9838.mousam.appdata.xml.in', + output: 'io.github.amit9838.mousam.appdata.xml', po_dir: '../po', install: true, install_dir: join_paths(get_option('datadir'), 'appdata') @@ -26,7 +26,7 @@ if appstream_util.found() endif -install_data('io.github.amit9838.weather.gschema.xml', +install_data('io.github.amit9838.mousam.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas'), ) diff --git a/io.github.amit9838.weather.json b/io.github.amit9838.mousam.json similarity index 88% rename from io.github.amit9838.weather.json rename to io.github.amit9838.mousam.json index 3cbc3c2..85fdfef 100644 --- a/io.github.amit9838.weather.json +++ b/io.github.amit9838.mousam.json @@ -1,9 +1,9 @@ { - "app-id" : "io.github.amit9838.weather", + "app-id" : "io.github.amit9838.mousam", "runtime" : "org.gnome.Platform", "runtime-version" : "45", "sdk" : "org.gnome.Sdk", - "command" : "weather", + "command" : "mousam", "finish-args" : [ "--share=network", "--share=ipc", @@ -25,7 +25,7 @@ "modules" : [ "data/dependencies/python3-requests.json", { - "name" : "weather", + "name" : "mousam", "builddir" : true, "buildsystem" : "meson", "sources" : [ diff --git a/meson.build b/meson.build index fc62ead..6bc6b5c 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('weather', +project('mousam', version: '1.0.1', meson_version: '>= 0.61.0', default_options: [ 'warning_level=2', 'werror=false', ], diff --git a/po/meson.build b/po/meson.build index bfaf5f6..5df6c76 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1 +1 @@ -i18n.gettext('weather', preset: 'glib') +i18n.gettext('mousam', preset: 'glib') diff --git a/src/backendWeather.py b/src/backendWeather.py index 5939247..9bd5452 100644 --- a/src/backendWeather.py +++ b/src/backendWeather.py @@ -14,7 +14,7 @@ class Weather: def __init__(self) -> None: global settings, measurement_type, temperature_unit, wind_speed_unit - settings = Gio.Settings(schema_id="io.github.amit9838.weather") + settings = Gio.Settings(schema_id="io.github.amit9838.mousam") measurement_type = settings.get_string("measure-type") if measurement_type == "imperial": temperature_unit = "fahrenheit" diff --git a/src/frontendCurrentCond.py b/src/frontendCurrentCond.py index cb37900..fc330fe 100644 --- a/src/frontendCurrentCond.py +++ b/src/frontendCurrentCond.py @@ -64,7 +64,7 @@ def paint_ui(self): ) self.attach(box_right, 1, 0, 1, 1) - self.settings = Gio.Settings(schema_id="io.github.amit9838.weather") + self.settings = Gio.Settings(schema_id="io.github.amit9838.mousam") self.added_cities = self.settings.get_strv("added-cities") self.selected_city = self.settings.get_string("selected-city") diff --git a/src/main.py b/src/main.py index 523fade..bb051a3 100644 --- a/src/main.py +++ b/src/main.py @@ -24,17 +24,17 @@ gi.require_version('Adw', '1') from gi.repository import Gtk, Gio,Adw,Gdk -from .weather import WeatherMainWindow +from .mousam import WeatherMainWindow from .css import css class WeatherApplication(Adw.Application): """The main application singleton class.""" def __init__(self): - super().__init__(application_id='io.github.amit9838.weather', + super().__init__(application_id='io.github.amit9838.mousam', flags=Gio.ApplicationFlags.DEFAULT_FLAGS) self.create_action('quit', lambda *_: self.quit(), ['q']) - self.settings = Gio.Settings(schema_id="io.github.amit9838.weather") + self.settings = Gio.Settings(schema_id="io.github.amit9838.mousam") self.main_window = None def do_activate(self): diff --git a/src/meson.build b/src/meson.build index b1cab9a..b65f86c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,9 +1,9 @@ pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()) -moduledir = join_paths(pkgdatadir, 'weather') +moduledir = join_paths(pkgdatadir, 'mousam') gnome = import('gnome') -gnome.compile_resources('weather', - 'weather.gresource.xml', +gnome.compile_resources('mousam', + 'mousam.gresource.xml', gresource_bundle: true, install: true, install_dir: pkgdatadir, @@ -18,8 +18,8 @@ conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir'))) conf.set('pkgdatadir', pkgdatadir) configure_file( - input: 'weather.in', - output: 'weather', + input: 'mousam.in', + output: 'mousam', configuration: conf, install: true, install_dir: get_option('bindir'), @@ -28,7 +28,7 @@ configure_file( weather_sources = [ 'main.py', - 'weather.py', + 'mousam.py', 'weatherData.py', 'Models.py', diff --git a/src/weather.gresource.xml b/src/mousam.gresource.xml similarity index 68% rename from src/weather.gresource.xml rename to src/mousam.gresource.xml index c0e9cf4..70b702c 100644 --- a/src/weather.gresource.xml +++ b/src/mousam.gresource.xml @@ -1,6 +1,6 @@ - + css/style.css diff --git a/src/weather.in b/src/mousam.in similarity index 83% rename from src/weather.in rename to src/mousam.in index f839422..85452f9 100755 --- a/src/weather.in +++ b/src/mousam.in @@ -31,16 +31,16 @@ localedir = '@localedir@' sys.path.insert(1, pkgdatadir) signal.signal(signal.SIGINT, signal.SIG_DFL) -locale.bindtextdomain('weather', localedir) -locale.textdomain('weather') -gettext.install('weather', localedir) +locale.bindtextdomain('mousam', localedir) +locale.textdomain('mousam') +gettext.install('mousam', localedir) if __name__ == '__main__': import gi from gi.repository import Gio - resource = Gio.Resource.load(os.path.join(pkgdatadir, 'weather.gresource')) + resource = Gio.Resource.load(os.path.join(pkgdatadir, 'mousam.gresource')) resource._register() - from weather import main + from mousam import main sys.exit(main.main(VERSION)) diff --git a/src/weather.py b/src/mousam.py similarity index 99% rename from src/weather.py rename to src/mousam.py index 765428c..f0a1ce4 100644 --- a/src/weather.py +++ b/src/mousam.py @@ -33,7 +33,7 @@ def __init__(self, *args, **kwargs): global application self.main_window = application = self - self.settings = Gio.Settings(schema_id="io.github.amit9838.weather") + self.settings = Gio.Settings(schema_id="io.github.amit9838.mousam") self.set_default_size(1220, 860) self.set_title("") # Adding a button into header diff --git a/src/units.py b/src/units.py index eb4b46e..4da31da 100644 --- a/src/units.py +++ b/src/units.py @@ -1,5 +1,5 @@ from gi.repository import Gio def get_measurement_type(): - settings = Gio.Settings.new("io.github.amit9838.weather") + settings = Gio.Settings.new("io.github.amit9838.mousam") return settings.get_string("measure-type") diff --git a/src/utils.py b/src/utils.py index b96df63..618a69f 100644 --- a/src/utils.py +++ b/src/utils.py @@ -20,7 +20,7 @@ def check_internet_connection(): def get_selected_city_coords(): - settings = Gio.Settings.new("io.github.amit9838.weather") + settings = Gio.Settings.new("io.github.amit9838.mousam") selected_city = int(str(settings.get_value("selected-city"))) added_cities = list(settings.get_value("added-cities")) city_loc = added_cities[selected_city].split(",") @@ -41,7 +41,7 @@ def convert_to_local_time(timestamp, timezone_stamp): def get_cords(): - settings = Gio.Settings(schema_id="io.github.amit9838.weather") + settings = Gio.Settings(schema_id="io.github.amit9838.mousam") selected_city_ = settings.get_string("selected-city") return [float(x) for x in selected_city_.split(",")] diff --git a/src/weatherData.py b/src/weatherData.py index 7ada1d5..06f9bc3 100644 --- a/src/weatherData.py +++ b/src/weatherData.py @@ -161,7 +161,7 @@ def classify_wind_speed_level(wind_speed): def transform_visibility_data(unit, data): - settings = Gio.Settings(schema_id="io.github.amit9838.weather") + settings = Gio.Settings(schema_id="io.github.amit9838.mousam") measurement_type = settings.get_string('measure-type') dist_unit = "km" dist = data/1000 diff --git a/src/windowAbout.py b/src/windowAbout.py index 8188a8c..c64a972 100644 --- a/src/windowAbout.py +++ b/src/windowAbout.py @@ -6,7 +6,7 @@ def AboutWindow(parent,*args): dialog = Adw.AboutWindow.new() dialog.set_application_name("Weather") - dialog.set_application_icon("io.github.amit9838.weather") + dialog.set_application_icon("io.github.amit9838.mousam") dialog.set_version("1.0.1") dialog.set_developer_name("Amit Chaudhary") dialog.set_license_type(Gtk.License(Gtk.License.GPL_3_0)) diff --git a/src/windowPreferences.py b/src/windowPreferences.py index 9c5ad27..a42412f 100644 --- a/src/windowPreferences.py +++ b/src/windowPreferences.py @@ -4,7 +4,7 @@ gi.require_version('Gtk', '4.0') gi.require_version('Adw', '1') -from gi.repository import Gtk, Adw,Gio,GLib +from gi.repository import Gtk, Adw,GLib from .units import get_measurement_type from .utils import create_toast @@ -56,7 +56,7 @@ def __init__(self, application, **kwargs): # Launch the app in maximize mode launch_maximized = Adw.ActionRow.new() launch_maximized.set_activatable(True) - launch_maximized.set_title(_("Open Maximized")) + launch_maximized.set_title(_("Launch Maximized")) launch_maximized.set_subtitle(_("Launch the weather app in maximized mode (Restart required)")) self.g_switch_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL,valign=Gtk.Align.CENTER)