{"id":20829982,"url":"https://github.com/bimlas/xfce4-night-mode","last_synced_at":"2025-04-06T06:14:14.215Z","repository":{"id":39972266,"uuid":"254729814","full_name":"bimlas/xfce4-night-mode","owner":"bimlas","description":"XFCE4 GenMon plugin: Switch between light and dark variants of a theme","archived":false,"fork":false,"pushed_at":"2024-10-24T05:36:09.000Z","size":21,"stargazers_count":100,"open_issues_count":10,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T05:08:59.627Z","etag":null,"topics":["dark-mode","night-mode","xfce","xfce4","xfce4-genmon-plugin","xfce4-panel-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bimlas.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-10T20:28:11.000Z","updated_at":"2025-03-23T10:18:57.000Z","dependencies_parsed_at":"2024-02-05T18:54:07.557Z","dependency_job_id":"a92d0c88-4cea-4d84-ac8a-9247a2ff8a0d","html_url":"https://github.com/bimlas/xfce4-night-mode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fxfce4-night-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fxfce4-night-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fxfce4-night-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fxfce4-night-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bimlas","download_url":"https://codeload.github.com/bimlas/xfce4-night-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441063,"owners_count":20939239,"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":["dark-mode","night-mode","xfce","xfce4","xfce4-genmon-plugin","xfce4-panel-plugin"],"created_at":"2024-11-17T23:22:48.128Z","updated_at":"2025-04-06T06:14:14.184Z","avatar_url":"https://github.com/bimlas.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"= XFCE Night Mode\n\nShell script that allows you to easily *switch between dark and light variants\nof the currently used themes*. When used as a\nhttps://docs.xfce.org/panel-plugins/xfce4-genmon-plugin[Generic Monitor\n(Genmon)] plugin, it will automatically switch at the times specified.\n\nimage::https://i.imgur.com/UVSz6QB.gif[]\n\n*It is important to set the desired color schemes before use* (see Settings).\n\n* https://github.com/bimlas/xfce4-night-mode (*please star if you like the plugin*)\n\n== Command line usage\n\n....\n$ xfce4-night-mode.sh [day|night|toggle]\n....\n\n*Parameters*\n\n`day`:: Use light variant\n`night`:: Use dark variant\n`toggle`:: Switch between light and dark variants\n\nWithout parameters, it will use dark variant from sunset to sunrise according\nto the settings (see later).\n\n== Generic Monitor (Genmon) plugin usage\n\n* First you have to install `xfce4-genmon-plugin` package if it is not on your system\n* Add the monitor to the panel\n** Right click on the panel\n** Select _Panel -\u003e Add new items_\n** Add _Generic Monitor_ plugin\n* Set up the generic monitor to use with night mode\n** Right click on the newly added generic monitor -\u003e _Properties_\n** Command: `/path/to/xfce4-night-mode.sh`\n** Uncheck the checkbox of _Label_\n** Set _Period_ to `300` seconds (5 minutes)\n\n== Settings\n\nFor settings, open the XFCE Settings Editor -\u003e `night-mode` channel.\n\nTo find out what values to enter, set the color schemes you want and copy them\nfrom the appropriate location:\n\n* GTK theme\n** `xsettings/Net/ThemeName`\n* Icon theme\n** `xsettings/Net/IconThemeName`\n* Cursor theme\n** `xsettings/Gtk/CursorThemeName`\n* Window manager theme\n** `xfwm4/general/theme`\n\nThe specified `UserScript` will be executed when switching the mode, you can use\nthis for example to change the theme of the terminal, set desktop wallpaper,\netc. You can use the variable `XFCE_NIGHT_MODE` in your script if you want to\nuse the same script in both cases, for example:\n\n....\n#!/bin/bash\nnotify-send --icon \"dialog-info\" \"Mode: $XFCE_NIGHT_MODE\"\n....\n\n=== Example `UserScript`\n\n==== Change wallpaper\n\nFirst you have to find the property of the wallpaper (this could be different on\nmulti-monitor setup) by executing the command below then changing the wallpaper\nin _Desktop_ setting.\n\n```\nxfconf-query --channel xfce4-desktop --monitor\n```\n\nYou have to execute the command below to set up the wallpaper for this desktop.\n\n```\nxfconf-query --channel xfce4-desktop --property \u003cproperty\u003e --set \u003c/path/to/image.jpg\u003e\n```\n\n==== Change panel dark mode\n\nYou have to execute the command below to change the panel mode opposite to the\nwindows mode (light windows, dark panel).\n\n```\nxfconf-query --channel xfce4-panel --property /panels/dark-mode --set \"$([ \"$XFCE_NIGHT_MODE\" = \"day\" ] \u0026\u0026 echo true || echo false)\"\n```\n\n=== Switch at a time specified by antoher program\n\nFor example, to use http://jonls.dk/redshift/[Redshift] or another program to\ndetermine when it is night, use `xfce4-night-mode-redshift.sh` (or a modified\nversion of it) instad of `xfce4-night-mode.sh` in \"Generic Monitor plugin\nusage\".\n\n== Changes\n\n=== https://github.com/bimlas/xfce4-night-mode/-/compare/v1.0.0\\...v2.0.0[2.0.0]\n\n* Add options to change GTK, mouse, icon, and window manager theme\n** *Breaking change*: You must set these before use\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimlas%2Fxfce4-night-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbimlas%2Fxfce4-night-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimlas%2Fxfce4-night-mode/lists"}