Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freddez/gnome-shell-simple-message
Write message on top bar with dconf
https://github.com/freddez/gnome-shell-simple-message
dconf gnome gnome-shell-extension
Last synced: 13 days ago
JSON representation
Write message on top bar with dconf
- Host: GitHub
- URL: https://github.com/freddez/gnome-shell-simple-message
- Owner: freddez
- License: gpl-3.0
- Created: 2022-04-23T09:13:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T09:11:32.000Z (2 months ago)
- Last Synced: 2024-12-08T18:54:57.118Z (15 days ago)
- Topics: dconf, gnome, gnome-shell-extension
- Language: JavaScript
- Homepage:
- Size: 58.6 KB
- Stars: 17
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gnome-shell-simple-message
Install the extension from the [extension website](https://extensions.gnome.org/extension/5018/simple-message/).
You can change the message from command line with `gsettings` (or in the preference panel):
```sh
gsettings --schemadir $HOME/.local/share/gnome-shell/extensions/simple-message@freddez/schemas \
set org.gnome.shell.extensions.simple-message message "Hello world!"
```or `dconf`:
```sh
dconf write /org/gnome/shell/extensions/simple-message/message '"Hello world!"'
```It is also possible to launch a custom command on message click. See "command" property in dconf or preference panel.
I use this extension to view my current org-mode running task:
```emacs-lisp
(defun current-task-to-status ()
(interactive)
(if (fboundp 'org-clocking-p)
(if (org-clocking-p)
(call-process "dconf" nil nil nil "write"
"/org/gnome/shell/extensions/simple-message/message"
(concat "'" (org-clock-get-clock-string) "'"))
(call-process "dconf" nil nil nil "write"
"/org/gnome/shell/extensions/simple-message/message"
"'No active clock'"))))
(run-with-timer 0 60 'current-task-to-status)
(add-hook 'org-clock-in-hook 'current-task-to-status)
(add-hook 'org-clock-out-hook 'current-task-to-status)
(add-hook 'org-clock-cancel-hook 'current-task-to-status)
(add-hook 'org-clock-goto-hook 'current-task-to-status)
```Example Projects:
| Project | Description |
| :------ | :---------- |
| [Hextime](https://github.com/JohnAlexCO/hextime) | A base-16 clock for the gnome shell |