{"id":13929548,"url":"https://github.com/ionutbortis/gnome-bedtime-mode","last_synced_at":"2025-07-19T11:32:18.097Z","repository":{"id":46609315,"uuid":"338821938","full_name":"ionutbortis/gnome-bedtime-mode","owner":"ionutbortis","description":"Home of the \"Bedtime Mode\" :zzz: GNOME Shell Extension.","archived":false,"fork":false,"pushed_at":"2024-09-14T09:35:32.000Z","size":2117,"stargazers_count":74,"open_issues_count":11,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-14T20:20:48.981Z","etag":null,"topics":["gnome","gnome-shell","gnome-shell-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ionutbortis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-14T14:20:22.000Z","updated_at":"2024-09-13T17:52:47.000Z","dependencies_parsed_at":"2024-01-14T17:58:27.162Z","dependency_job_id":"6fec24fb-5a81-493b-aaad-dc295cd5bafc","html_url":"https://github.com/ionutbortis/gnome-bedtime-mode","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionutbortis%2Fgnome-bedtime-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionutbortis%2Fgnome-bedtime-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionutbortis%2Fgnome-bedtime-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionutbortis%2Fgnome-bedtime-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionutbortis","download_url":"https://codeload.github.com/ionutbortis/gnome-bedtime-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226597727,"owners_count":17657202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gnome","gnome-shell","gnome-shell-extension"],"created_at":"2024-08-07T18:02:24.700Z","updated_at":"2025-07-19T11:32:18.085Z","avatar_url":"https://github.com/ionutbortis.png","language":"JavaScript","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# Gnome Bedtime Mode ![](./extras/images/bedtime-mode-icon.svg)\n\nHey Gnome, it's bedtime!\n\nConverts to grayscale the entire Gnome workspace by using a smooth transition. Best to use during evening/night.\n\nThis behavior 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 Preferences (Settings) UI where you can customize it to your liking:\n\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 [Translators hall of fame](#translators) section for the supported languages list and [Guide for translators](#guide-for-translators) section if you want to contribute with a translation for your native language.\n\nPeace! :sun_with_face:\n\n![](./extras/images/screenshot.png)\n\n# Installation\n\nFrom the official GNOME Shell Extensions website:\n\n[ego]: https://extensions.gnome.org/extension/4012/bedtime-mode/\n\n[\u003cimg src=\"https://raw.githubusercontent.com/andyholmes/gnome-shell-extensions-badge/master/get-it-on-ego.svg?sanitize=true\" alt=\"Get it on GNOME Extensions\" height=\"100\" align=\"middle\"\u003e][ego]\n\nOr\n\n[latest]: https://github.com/ionutbortis/gnome-bedtime-mode/releases/download/v22.0/gnome-bedtime-mode_22.0.zip\n\nYou can download the [latest release package][latest] and manually install it to your extensions folder. The latest package only supports Gnome versions '47' and '48'!\n\nFor older Gnome versions please use the official [GNOME Shell Extensions website][ego] mentioned above.\n\n```\nwget https://github.com/ionutbortis/gnome-bedtime-mode/releases/download/v22.0/gnome-bedtime-mode_22.0.zip\n# (Or manually download via browser and run the next commands from the download folder)\n\ngnome-extensions install --force gnome-bedtime-mode_22.0.zip\n\nrm gnome-bedtime-mode_22.0.zip\n```\n\nNext, you need to log out and log in again into your user account\n\nYou can now enable/disable the extension by running the Extensions app (search and install it from your distro repos or get it from [here](https://flathub.org/apps/details/org.gnome.Extensions)), or by\nbrowsing to https://extensions.gnome.org/local.\n\nAlternatively, you can do this from command line:\n\n```\ngnome-extensions enable gnomebedtime@ionutbortis.gmail.com\ngnome-extensions disable gnomebedtime@ionutbortis.gmail.com\n```\n\nTo open the extension's Preferences (Settings) UI, use the Extensions app or run this command:\n\n```\ngnome-extensions prefs gnomebedtime@ionutbortis.gmail.com\n```\n\n# Keyboard shortcut\n\nIf you want to use a keyboard shortcut in order to toggle the Bedtime Mode then you can do this:\n\n- Go to \"Settings -\u003e Keyboard -\u003e Keyboard Shortcuts\"\n- Click on \"View and Customize Shortcuts\"\n- Go to \"Custom Shortcuts\" and click \"Add Shortcut\" or the \"+\" button\n- Fill the inputs with the following\n  - Name: Toggle Bedtime Mode\n  - Command:\n\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```\n\n- Press \"Set Shortcut\" and use your preferred one\n- Done!\n\n# How can you contribute?\n\nHelp is always needed so if you found this extension helpful, the best way to contribute is to help with the creation of new translations (see next section).\n\nIf you encounter some bugs, please submit them as issues here on github. Also, feature requests or improvement ideas are welcomed.\n\n# Guide for translators\n\nIf you like the extension and want to help in creating a translation for your native language, please carry on reading. :thumbsup:\n\nFork this github repository and clone your fork onto your local machine. Also, checkout the `next-release` branch:\n\n```\ngit clone git@github.com:[your_github_username]/gnome-bedtime-mode.git\ncd gnome-bedtime-mode/ \u0026\u0026 git checkout next-release\n```\n\nRun the `languages.sh` script with the `--new-locale=xx` argument in order to create a new translation file (you need to replace `xx` with your language code):\n\n```\n./scripts/languages.sh --new-locale=xx\n```\n\nEnter your email address when prompted and a new translation file should be successfully generated into the `gnome-bedtime-mode/po` folder. It will have the name of the new locale and the `.po` extension.\n\nThen, you just need to use a tool for opening the .po file and translate the texts. Popular choices are [ Gtranslator](https://flathub.org/apps/details/org.gnome.Gtranslator) and [POEdit](https://flathub.org/apps/details/net.poedit.Poedit).\n\nWhen the new .po file is fully translated run the install script and the extension should be packaged with the new translations and installed to your Gnome shell:\n\n```\n./scripts/install.sh\n```\n\nAfter running the install script you need to re-login and manually enable the extension via an app or command line:\n\n```\ngnome-extensions enable gnomebedtime@ionutbortis.gmail.com\n```\n\nOpen the extension preferences and check if all the texts are properly translated. If the new translations look fine push the changes and create a pull request to the `next-release` branch on the original repository.\n\nThat's it! You are now an official contributor to this extension, YaaY! :partying_face: :tada: :pray:\n\n\u003ca name=\"translators\"\u003e\u003c/a\u003e\n\n# Translators hall of fame :trophy:\n\n- French: [Irénée Thirion](https://github.com/rene-coty) :medal_sports:\n- Italian: [Albano Battistella](https://github.com/albanobattistella) :medal_sports:\n- Spanish: [Óscar Fernández Díaz](https://github.com/oscfdezdz) :medal_sports:\n- Dutch: [Heimen Stoffels](https://github.com/Vistaus) :medal_sports:\n- German: [Philipp Kiemle](https://github.com/daPhipz) :medal_sports:\n- Czech: [Kryštof Černý](https://github.com/cleveHEX) :medal_sports:\n- Persian: [آوید](https://github.com/avds2) :medal_sports:\n- Romanian \u0026 English: [Ionuț Florin Bortiș](https://github.com/ionutbortis) (myself) :medal_sports:\n\n# Credits\n\nCredits for inspiration go to:\n\n- [Desaturate All](https://extensions.gnome.org/extension/1102/desaturate-all/) extension | [Github URL](https://github.com/laerne/desaturate_all)\n- [Tint All](https://extensions.gnome.org/extension/1471/tint-all/) extension | [Github URL](https://github.com/amarovita/tint-all)\n- [Night Theme Switcher](https://extensions.gnome.org/extension/2236/night-theme-switcher/) extension | [Gitlab URL](https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/)\n\nI wrote this extension because I use the Android's Bedtime Mode on a daily basis and I wanted something similar for my laptop. Having Ubuntu as my main OS, I liked the idea of extending the desktop shell to your liking. It was also a good way to improve on my JavaScript coding skills.\n\nMany thanks to the creator of the [Night Theme Switcher](https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/) extension. I used his code for reference since the Gnome Extensions Coding documentation was not that great when I first started.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionutbortis%2Fgnome-bedtime-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionutbortis%2Fgnome-bedtime-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionutbortis%2Fgnome-bedtime-mode/lists"}