Code Monkey home page Code Monkey logo

sticky's Introduction

Sticky

build

Sticky is a note-taking app for the Linux desktop that simulates traditional "sticky note" style stationery on your desktop. Some of its features include basic text formatting (bold, italics, monospaced, etc.), spell-checking, a tray icon for controlling note visibility, color notes, manual and automatic backups, and a manager to organize your notes into groups. Sticky is written in Python, and uses the GTK3 toolkit

img

How to build and install

Download the source code and enter the source directory

# Clone this repo:
git clone https://github.com/collinss/sticky.git

# Enter the folder:
cd sticky

Mint, Debian, Ubuntu and derivatives:

# Try to build. If this fails, it's probably due to missing dependencies.
# Take note of these packages, install them using apt-get:
dpkg-buildpackage --no-sign

# Once that succeeds, install:
cd ..
sudo dpkg -i sticky*.deb

# If this fails, make note of missing runtime dependencies (check list below),
# install them, repeat previous command (apt-get install -f may also work).

Build and install using Meson

Sticky has support for the meson build system. See https://mesonbuild.com/Running-Meson.html for more details on using meson to build and install.

Otherwise you can copy files directly to the file system:

sudo cp -r usr/* /usr/
chmod +x /usr/bin/sticky
sudo cp etc/xdg/autostart/sticky.desktop /etc/xdg/autostart/
sudo cp data/sticky.desktop.in /usr/share/applications/sticky.desktop
sudo cp data/org.x.sticky.service /usr/share/dbus-1/services/org.x.sticky.service

Note

This method doesn't install translations, so Sticky may not get translated if you install it this way.

runtime deps

  • gir1.2-glib-2.0
  • gir1.2-gtk-3.0 (>= 3.20.0)
  • gir1.2-xapp-1.0 (>= 1.6.0)
  • gir1.2-gspell-1
  • python3
  • python3-gi
  • python3-xapp (>= 1.6.0)

Controlling Sticky via DBUS

Sticky offers the following dbus methods and signals:

  • 'ShowNotes' (method): toggles visibility and focus of the notes on the screen
  • 'NewNote' (method): creates a new note containing the provided text
    • Takes 1 addtional argument containing the text of the new note
  • 'NewNoteBlank' (method): creates a new empty note
  • 'NotesChanged' (signal): indicates that the notes have changed in some way and the changes have been saved

Command Line

You can use dbus-send to call dbus methods (and dbus-monitor for signals) at a command prompt, in a script, etc.

dbus-send --type=method_call --dest="org.x.sticky" /org/x/sticky org.x.sticky.ShowNotes
dbus-send --type=method_call --dest="org.x.sticky" /org/x/sticky org.x.sticky.NewNoteBlank
dbus-send --type=method_call --dest="org.x.sticky" /org/x/sticky org.x.sticky.NewNote string:'New note text'
dbus-monitor "type='signal',interface='org.x.sticky',member=NotesChanged"

Translations

Please use Launchpad to translate Sticky Notes: https://translations.launchpad.net/linuxmint/latest/.

The PO files in this project are imported from there.

License

  • Code: GPLv2

sticky's People

Contributors

63beetlesmurf avatar clefebvre avatar collinss avatar fthaltun avatar haggen88 avatar hduelme avatar heath123 avatar josephmcc avatar m8 avatar morciej avatar mtwebster avatar paseaf avatar secret-chest avatar sulincix avatar swamprabbit avatar

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.