Code Monkey home page Code Monkey logo

gnome-shell-simple-message's Introduction

gnome-shell-simple-message

Install the extension from the extension website.

You can change the message from command line with gsettings (or in the preference panel):

gsettings --schemadir $HOME/.local/share/gnome-shell/extensions/simple-message@freddez/schemas \
set org.gnome.shell.extensions.simple-message message "Hello world!"

or dconf:

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:

(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)

gnome-shell-simple-message's People

Contributors

cbertram avatar djinnalexio avatar freddez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gnome-shell-simple-message's Issues

Display output of commands?

On the description, you say that you can display the output of commands and keep it updated. But I can only show strings, to run commands.

How did you do it?

Top bar position is reset after screen lock

Steps to reproduce

  • open settings and select "Center" in top panel location
  • lock screen
  • unlock
  • message is moved to the right again, expected to be in the center
    • setting remains on center but is ignored until set again

System

  • Arch Linux
  • Gnome 43.3
  • Simple Message 13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.