You are not logged in.

#1 2017-11-19 07:49:27

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

qtPad - a modern and customizable sticky note application

I tried all the sticky note applications that I could find and as I was never satisfied, I finally decided to make my own. I use it quite a lot, and as far as I know it is now the best option on Linux. There are many functionnalities but I try to keep it simple to use and maintain. It is written with Python and Qt5, and seems to be fairly cross-platform. Have a look!

Gitlab page, AUR page



search.png

Last edited by alfalfa (2018-07-12 19:49:50)

Offline

#2 2017-11-26 11:29:18

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: qtPad - a modern and customizable sticky note application

Looks very promising so far! And it is in Python, so I like it even more. :-)

I agree, sticky note apps on Linux are a problem. Some of them even lose your notes after a while—I am not saying which one that was :-). Xpad is the app I have been using; it's decent but not great.

As for qtPad, I think the right-click context menu needs (a) an entry for creating a new note and (b) a selection of pre-defined background colors to apply, instead of using the full color mixer. The sticky notes app on the Mac has six pleasing preset background colors to choose from, so I would just copy their approach: https://freeair101.files.wordpress.com/ … ture-4.png (There is also light gray but that is not in the screenshot).

P.S. Oh, another wish: I'd like stickies to be resizable.

Last edited by Morn (2017-11-26 11:36:05)

Offline

#3 2017-11-27 05:04:23

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

Thank you for your feedback!

about your comments..

a, b) I'll add this on the todo list

c) Of course, the notes are resizable on Openbox, what DE do you use? I had some trouble finding a way to display the notes without creating a new entry in the task bar. On Linux, it seems that the only way to do it with Qt is to set the 'toolbar type' attribute on the window, that might be a part of the problem.

You can toggle a "resize corner" by pressing Ctrl+Shift+R, does it help? Maybe it should be enabled by default then

Offline

#4 2017-11-27 08:44:57

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: qtPad - a modern and customizable sticky note application

I am using KDE 5. After Ctrl-Shift-R, I can see the mouse pointer change to a resize symbol when I hover near the window corner, but I still cannot actually resize the window. When I try to (with the pointer inside the sticky), I actually drag the window behind it. The mouse dragging seems to be going though the window.

I also note that the maximize, minimize, and resize actions are grayed out in the window's menu, so that might be related. It looks like KWin thinks the stickies should not be resizable for some reason.

Offline

#5 2017-11-27 21:45:32

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

I fixed the resizing problem, along with various others bugs for KDE. Still, the handling of the tray icon context menu is very odd. KDE seems to calculate the fully expanded size and unfold it from top to bottom. I suspect the problem rather come from their side. The easiest workaround would be to replace the preferences submenu with a dedicated gui, but I hope there is another way as a submenu is easier to maintain.

So far it seem to work fine on most DE: Openbox, MATE, Cinnamon, XFCE, Deepin, and even on Windows 7

Last edited by alfalfa (2017-11-28 01:15:02)

Offline

#6 2017-11-28 09:41:02

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: qtPad - a modern and customizable sticky note application

Thanks for the update, resizing works now!

Offline

#7 2017-11-29 13:50:14

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

I went forward with the pre-defined styles idea. On startup, the presets and icons are generated from preferences.json, so you can add your own;

quickstyle.png

It is a big update so if you want to upgrade your script you'll have to clone the whole repository and transfert your notes in /db/.
Thanks again for your suggestions smile

Offline

#8 2017-11-29 14:28:36

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: qtPad - a modern and customizable sticky note application

Works great! Maybe the first context menu entry should be either Style or New note, because if you right-click accidentally (as I immediately did just now), it will hide the note, which looks like the app has crashed. I think the principle of least surprise dictates that something harmless and obvious should happen. If users think "where did my sticky go now?" that is not something that inspires confidence in a program.

So now all that is needed is an AUR PKGBUILD, together with a desktop file and the Autostart stuff so qtPad gets launched when logging in. And then it is time for me to "pacman -Rs xpad" I think. smile

Offline

#9 2017-12-13 14:55:19

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

I wanted to make a little follow up as I worked a lot on the code during the last week. As Morn suggested, the first entry of the context menu is now 'New note', and the hide option was removed altogether, as closing the widget has the same effect. I also added a decent expendable preferences gui, so it will speed up the generation of context menu, fix the weird menu handling in KDE and leaves plenty of room for future improvements. But most of all, I've rewritten many parts of the code to make it simpler, more efficient and straightforward. At some point I had to set up the logging to follow what was going on and to avoid useless duplicate IO and such. The screenshots have been updated so if you are interested you may want to take a look at the Github page for an overall view of the project.

Of course I want to make it available through the AUR at some point, although I had some trouble finding tutorial about writing a PKGBUILD for a python script. I lack of time to make extensive testing at the moment so I'll get back to it in the next weeks. Here is the draft I made so far, hopefully I did it right but if you can give me some feedback I would appreciate. This is my first attemp so please be nice smile

https://pastebin.com/0BmYaxLc

Offline

#10 2017-12-25 20:34:40

jooch
Member
Registered: 2010-03-09
Posts: 48

Re: qtPad - a modern and customizable sticky note application

Looks very promising, been looking for a lightweight xpad alternative for a long time.
However when i tried the PKGBUILD:

barry ~/tmp/qtpad $ yaourt -U qtpad-0.1-1-any.pkg.tar.xz 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) qtpad-0.1-1

Total Installed Size:  0.21 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
qtpad: /lib exists in filesystem
Errors occurred, no packages were upgraded.

EDIT: Nevermind, some extra spaces were added because of copy/pasting big_smile Copying the RAW data fixed it

My opinion: Absolutely awesome! Only 1.2MB of resident memory compared to 60MB for Xpad, well done.

Last edited by jooch (2017-12-25 20:41:33)

Offline

#11 2018-02-01 01:20:10

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

Thanks for your feedback !
At last you may now install qtpad from the AUR, or with pip for non-arch users. This is my first package, please let me know if you encounter any problem smile

Offline

#12 2018-02-01 10:02:42

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: qtPad - a modern and customizable sticky note application

Nice! For some reason it does not show my old notes though. Did the config path change perhaps?

P.S. Maybe you should add an icon and desktop file too.

Last edited by Morn (2018-02-01 10:03:32)

Offline

#13 2018-02-01 12:53:43

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

There should be a desktop file at /usr/share/applications/qtpad.desktop
As for the notes, in the version you tried they were stored in the script directory. To allow the installation into sys.path they are now stored into ~/.config/qtpad/notes/

Offline

#14 2018-02-01 15:15:05

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: qtPad - a modern and customizable sticky note application

alfalfa wrote:

There should be a desktop file at /usr/share/applications/qtpad.desktop

You're right, there is a very basic desktop file. But I think it would be much better with a distinctive icon. Open Clipart has plenty to choose from: https://openclipart.org/search/?query=post+it+note Maybe add Categories and GenericName to the desktop file too.

alfalfa wrote:

As for the notes, in the version you tried they were stored in the script directory. To allow the installation into sys.path they are now stored into ~/.config/qtpad/notes/

Ok, thanks. There was nothing important in my notes so far, but I felt it was important to point this out for other users.

P.S. And please add the link to the AUR page to the first post.

Last edited by Morn (2018-02-01 15:15:52)

Offline

#15 2018-02-01 20:07:04

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

It is done, thank you for your suggestions

Offline

#16 2018-05-12 20:35:48

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: qtPad - a modern and customizable sticky note application

Thanks for the app.

Is there any way to customize keybindings?

Thanks!

Offline

#17 2018-05-13 15:51:58

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

prosoitos wrote:

Thanks for the app.

Is there any way to customize keybindings?

Thanks!

Absolutely! That functionnality has been added in the next release, which is currently in testing. It should be released in a few weeks, along with an improved version of the  preferences GUI and many new features.

Last edited by alfalfa (2018-05-13 15:52:59)

Offline

#18 2018-05-13 22:01:17

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: qtPad - a modern and customizable sticky note application

!!! So great!!! Thank you! I look forward to checking the new release out!!!

Offline

#19 2018-05-15 21:12:10

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

(deleted)

Last edited by alfalfa (2018-05-28 16:44:00)

Offline

#20 2018-05-28 15:31:29

avg_joe
Member
Registered: 2016-08-18
Posts: 7

Re: qtPad - a modern and customizable sticky note application

Really neat little app, thank you for making it! Giving it a try as replacement for xpad and so far looking great - will provide any feedback as I use it.

Offline

#21 2018-05-28 17:37:26

alfalfa
Member
Registered: 2017-06-30
Posts: 63
Website

Re: qtPad - a modern and customizable sticky note application

Thank you for the feedback! I've put countless hours into that project so it is always great to know that it is used and appreciated smile

Today I've uploaded a major update, which include many new features such as a much improved preferences GUI and a search and replace GUI. As of now, you can customize the hotkeys, style presets and context menus from the GUI. Hope you like it! If you enjoy the app please take a moment to share the word and leave an upvote on the AUR or Github smile

Offline

Board footer

Powered by FluxBB