Skip to content

Commit

Permalink
New release with Gnome 43 fix for #35
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutbortis committed Nov 29, 2022
1 parent 80f89a0 commit a6cd763
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ From the official GNOME Shell Extensions website:

Or

[latest]: https://github.com/ionutbortis/gnome-bedtime-mode/releases/download/v11.0/gnome-bedtime-mode_11.0.zip
[latest]: https://github.com/ionutbortis/gnome-bedtime-mode/releases/download/v13.0/gnome-bedtime-mode_13.0.zip

You can download the [latest release package][latest] and manually install it to your extensions folder. The latest package only supports Gnome version 43!

For older Gnome versions please use the official [GNOME Shell Extensions website][ego] mentioned above.

```
wget https://github.com/ionutbortis/gnome-bedtime-mode/releases/download/v11.0/gnome-bedtime-mode_11.0.zip
wget https://github.com/ionutbortis/gnome-bedtime-mode/releases/download/v13.0/gnome-bedtime-mode_13.0.zip
# (Or manually download via browser and run the next commands from the download folder)
gnome-extensions install --force gnome-bedtime-mode_11.0.zip
gnome-extensions install --force gnome-bedtime-mode_13.0.zip
rm gnome-bedtime-mode_11.0.zip
rm gnome-bedtime-mode_13.0.zip
```

Next, you need to log out and log in again into your user account
Expand Down
4 changes: 2 additions & 2 deletions po/bedtime-mode.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: gnome-bedtime-mode 11\n"
"Project-Id-Version: gnome-bedtime-mode 13\n"
"Report-Msgid-Bugs-To: ionutbortis@gmail.com\n"
"POT-Creation-Date: 2022-09-20 18:10+0300\n"
"POT-Creation-Date: 2022-11-29 13:07+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
4 changes: 2 additions & 2 deletions src/metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"description": "Hey Gnome, it's bedtime! Converts to grayscale the entire Gnome workspace by using a smooth transition. Best to use during evening/night.\n\nThis behaviour is similar to Android's bedtime mode which converts the phone screen to grayscale. It should somewhat make your device less appealing and limit the usage of it before bedtime. On my side, at least, it still requires a fair amount of self control in order to make that happen.\n\nThe extension has a nice Settings UI where you can customize it to your liking:\n- Set an automatic schedule for turning on/off the Bedtime Mode\n- Add an On Demand button to Top Bar or System Menu to manually toggle the mode\n- Control the On Demand button visibility, appearance and position in Top Bar\n- Choose another color preset and intensity, if you prefer a different color scheme\n- Change color intensity on the fly by scrolling over the On Demand button in Top Bar\n\nMulti language support is also available, please check the GitHub page if you want to help with the translations. So far, the extension is fully translated to Spanish, Dutch, German, Romanian and English.\n\nIf you want to use a keyboard shortcut in order to toggle the Bedtime Mode then you can use this command for the shortcut:\n\nbash -c 'schema_id=org.gnome.shell.extensions.bedtime-mode; schema_dir=~/.local/share/gnome-shell/extensions/gnomebedtime@ionutbortis.gmail.com/schemas/; if [[ $(gsettings --schemadir $schema_dir get $schema_id bedtime-mode-active) == \"true\" ]]; then turn_on=false; else turn_on=true; fi; gsettings --schemadir $schema_dir set $schema_id bedtime-mode-active $turn_on;'\n",
"description": "Hey Gnome, it's bedtime! Converts to grayscale the entire Gnome workspace by using a smooth transition. Best to use during evening/night.\n\nThis behaviour is similar to Android's bedtime mode which converts the phone screen to grayscale. It should somewhat make your device less appealing and limit the usage of it before bedtime. On my side, at least, it still requires a fair amount of self control in order to make that happen.\n\nThe extension has a nice Settings UI where you can customize it to your liking:\n- Set an automatic schedule for turning on/off the Bedtime Mode\n- Add an On Demand button to Top Bar or a Quick Settings toggle to manually enable/disable the mode\n- Control the On Demand button visibility, appearance and position in Top Bar\n- Choose another color preset and intensity, if you prefer a different color scheme\n- Change color intensity on the fly by scrolling over the On Demand button in Top Bar\n\nMulti language support is also available, please check the GitHub page if you want to help with the translations. So far, the extension is fully translated to Spanish, Dutch, German, Romanian and English.\n\nIf you want to use a keyboard shortcut in order to toggle the Bedtime Mode then you can use this command for the shortcut:\n\nbash -c 'schema_id=org.gnome.shell.extensions.bedtime-mode; schema_dir=~/.local/share/gnome-shell/extensions/gnomebedtime@ionutbortis.gmail.com/schemas/; if [[ $(gsettings --schemadir $schema_dir get $schema_id bedtime-mode-active) == \"true\" ]]; then turn_on=false; else turn_on=true; fi; gsettings --schemadir $schema_dir set $schema_id bedtime-mode-active $turn_on;'\n",

"name": "Bedtime Mode",
"settings-schema": "org.gnome.shell.extensions.bedtime-mode",
"gettext-domain": "bedtime-mode",
"shell-version": ["43"],
"url": "https://github.com/ionutbortis/gnome-bedtime-mode",
"uuid": "gnomebedtime@ionutbortis.gmail.com",
"version": 11
"version": 13
}
4 changes: 3 additions & 1 deletion src/modules/Decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ var Decorator = class {
}

_getTopBarPosition() {
const quickSettingsMenuFinder = (entry) => entry.get_child() === MainPanel.statusArea.quickSettings;
const quickSettingsMenuFinder = (entry) => {
return entry.get_child && entry.get_child() === MainPanel.statusArea.quickSettings;
};
const quickSettingsMenuIndex = MainPanel._rightBox.get_children().findIndex(quickSettingsMenuFinder);

const defaultValue = quickSettingsMenuIndex > -1 ? quickSettingsMenuIndex : 0;
Expand Down

0 comments on commit a6cd763

Please sign in to comment.