在你的 Linux KDE 桌面上粘贴便签
便签

> 
> 使用 Kontact 套件的功能 KNotes 温和地提醒你自己的日常任务。
> 
> 
> 


![](/data/attachment/album/202203/11/083349wujq4dbh6ccqb5kq.jpg "Working from home at a laptop")


我记得我第一次参加一个“不算会议的”会议，起初这是一个混乱的活动，有很多社交和个人项目的分享，但它逐渐凝聚成一个主要是自发组织的技术活动。这一切并没有用魔法，而用的是便签。人们在那些彩色的粘性记事贴上写下演讲和演示的想法，并将它们贴在共同的墙上，其他人将类似的想法分组，最终每个人都知道聚集在哪里讨论特定的话题。这是一件美好而令人满意的见证，它让我对便签有了新的认识。所以我很高兴最近发现 KDE Plasma 桌面有了数字便签，而且在很多方面它们甚至比实体的更有用。该应用叫做 KNotes，如果你有随意的想法想记下来，那么你可能想在自己的 Linux 桌面贴上它。


### 安装 KNotes


KNotes 是 Kontact 套件的一部分，这是 KDE 的个人信息管理器（PIM）。如果你正在运行 Plasma 桌面，那么你可能已经安装了 KNotes。如果没有，你可以从包管理器安装它：



```
$ sudo dnf install kontact

```

在基于 Debian 的发行版上，使用 `apt` 命令而不是 `dnf`。


### Linux 桌面上的 KNotes


尽管 KNotes 是 Kontact 的一部分，但它也是一个可以在后台运行的独立应用，随时可以在你需要时生成空白便签。从你的应用菜单启动 KNotes，它会将自身最小化到你的系统托盘。它的图标是一个黄色的小方块，因为在便签在现实生活中变得丰富多彩之前，它们往往都是黄色的。


要创建新便签，请右键单击系统托盘中的 KNote 图标并选择 “<ruby> 新便签 <rt>  New Note </rt></ruby>”。第一次创建便签时，系统会提示你选择保存的位置。选择本地 KNotes 数据库文件（它由 Kontact 管理，因此你不会直接与该文件交互）并默认使用此位置。之后就不会再收到这种提示。


你的桌面上会出现一个新便签，你可以自己在其中输入。


![Start using KNotes](/data/attachment/album/202203/11/083359f1q010dh8b8lx10l.jpg "Start using KNotes")


就这么简单。至少它可以像这种老式的纸质便签一样。但这些是数字版的 KDE KNotes，因此你可以做的不仅仅是记下一些提醒文本给自己。


### 更改便签颜色


当一堆黄色便签开始混合在一起，你可以对便签进行颜色编码。右键单击便签的标题栏（带有日期和时间的部分），然后从出现的上下文菜单中选择 “<ruby> 首选项 <rt>  Preferences </rt></ruby>”。在该窗口中，你可以更改标题和正文字体和字体大小，然后选择 “<ruby> 显示设置 <rt>  Display Settings </rt></ruby>” 选项卡以更改便签纸和字体的颜色。


![KNotes with added color](/data/attachment/album/202203/11/083400guypu0bbu964qzpu.jpg "KNotes with added color")


### 发送便签


以前自己写便签的时候，经常会在 [Emacs](https://opensource.com/downloads/emacs-cheat-sheet) 的暂存缓冲区中给自己写一些提醒。有更好的方法来管理 [Emacs 中的便签](https://opensource.com/article/18/7/emacs-modes-note-taking)，但是我将便签内容记下后，之后心不在焉地关闭而没保存的习惯很难改掉。


有了 KNotes，便签会自动保存到 Kontact，因此你不必担心需要记着它们。更好的是，它们是数字的，因此你可以将它们发送给自己的其他设备。你可以通过电子邮件将便签发送给自己，也可以通过网络将它们发送到另一台计算机。只需右键单击便签的标题栏，你就可以选择“<ruby> 电子邮件 <rt>  Email </rt></ruby>”或“<ruby> 发送 <rt>  Send </rt></ruby>”。


要从一个到另一个 KDE Plasma 桌面以 KNotes 方式接收便签，你必须在接收机器上授予 KNotes 接收便签的权限。要允许传入便签，请右键单击系统托盘中的 KNotes 图标并选择 “<ruby> 配置 Knotes <rt>  Configure KNotes </rt></ruby>”。


![Configure KNotes](/data/attachment/album/202203/11/083400i0e2dd22yagjz2b1.jpg "Configure KNotes")


### 设置闹钟


至少对我来说，写便签通常是因为我答应了某人的事情，通常是在短期内，比如一天结束之前。随着我的工作和打开越来越多的窗口，贴在桌面上的便签往往会被掩盖，所以 KNotes 允许你为真正重要的便签设置闹钟，这一点特别有用。


要为便签设置闹钟，请右键单击便签的标题栏并选择 “<ruby> 设置闹钟 <rt>  Set alarm </rt></ruby>”。


### 在 Linux 上做便签


便笺是记录日常任务的简单而有趣的方法。它们不是对每个人都“有效”，也不是我跟踪每天要做的事情的唯一手段，但它们是很好的选择，而且在一天结束时，在删除已完成的便签前将它们移到“已完成”那一堆，没有什么比这更令人心满意足的了。试一试吧，这是个可能能坚持下去的习惯。




---


via: <https://opensource.com/article/22/2/sticky-notes-linux-kde>


作者：[Seth Kenlon](https://opensource.com/users/seth) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
I remember the first time I went to an "un" conference. It was a chaotic event at first, with lots of socializing and sharing of personal projects, but it gradually coalesced into a mostly self-organized technical event. It didn't happen with magic, but with sticky notes. People wrote ideas for talks and presentations on those colorful adhesive notepads, and stuck them to a common wall, and other people grouped similar ideas into clusters, and eventually everyone knew where to congregate to discuss specific topics. It was a beautiful and satisfying thing to witness, and it gave me a new respect for sticky notes. So I was happy to recently discover that the KDE Plasma Desktop has digital sticky notes, and in many ways they're even more useful than the physical ones. The application is called KNotes, and if you have random ideas that you feel like jotting down, it's probably something you want to consider for your own Linux desktop.

## Install KNotes

KNotes is part of the Kontact suite, which is the personal information manager (PIM) for KDE. If you're running the Plasma Desktop, then you probably already have KNotes installed. If not, you can install it from your package manager:

`$ sudo dnf install kontact`


On a Debian-based distribution, use the `apt`

command instead of `dnf`

.


## KNotes on the Linux desktop

Even though KNotes is part of Kontact, it's also a stand-alone application that can run in the background, ready to produce a blank note whenever you need one. Launch KNotes from your application menu, and it minimizes itself to your system tray. Its icon is a small yellow square, because before sticky notes got colorful in real life they tended to all be yellow.

To create a new note, right-click the KNote icon in your system tray and select **New Note**. The first time you create a note, you're prompted to choose a destination for the saved note. Select the local KNotes database file (it's managed by Kontact, so you won't interact with that file directly) and enable the selection to use this location by default. From then on, you won't be prompted again.

A new note appears on your desktop, and you can type yourself a note.

![Start using KNotes Start using KNotes](https://opensource.com/sites/default/files/knote-yellow.jpg)

(Seth Kenlon, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/))

It's as simple as that. Or at least, it would be, were these old-fashioned physical notes. But these are digital KDE KNotes, so you can do a lot more than just jot down some reminder text to yourself.

## Changing note colors

A bunch of yellow notes start to blend together, but you can color-code notes. Right-click on the title bar of the note (the part with the date and time) and select **Preferences** from the contextual menu that appears. In the **Preferences **window, you can change the title and body font and font size, and then select the **Display Settings** tab to change the note and font colors.

![KNotes with added color KNotes with added color](https://opensource.com/sites/default/files/knote-color.jpg)

(Seth Kenlon, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/))

## Sending notes

When I used to write myself notes, I often jotted reminders to myself in the scratch buffer of [Emacs](https://opensource.com/downloads/emacs-cheat-sheet). There are better ways to manage [notes in Emacs](https://opensource.com/article/18/7/emacs-modes-note-taking), but my habit of jotting notes down in places that I was destined to be absent-mindedly close later, without saving, was difficult to break.

With KNotes, the notes are automatically saved to Kontact, so you don't have to worry about keeping track of them. Better still, they're digital, so you can send them to yourself on other devices. You can email notes to yourself, or you can send them to another computer over your network. All it takes is a right-click on the title bar of a note, and you can select **Email **or **Send**.

To receive notes as KNotes from one KDE Plasma Desktop to another, you must give KNotes permission on the recipient machine to accept notes. To allow incoming notes, right-click on the KNotes icon in the system tray and select **Configure KNotes**.

![Configure KNotes Configure KNotes](https://opensource.com/sites/default/files/knotes-preferences.jpg)

(Seth Kenlon, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/))

## Setting alarms

At least for me, notes usually happen because I've promised someone something in the short term, often by the end of the day. Notes stuck to my desktop do tend to get covered up as I work and open more and more windows, so it's especially helpful that KNotes allow you to set alarms for the really important ones.

To set an alarm for a note, right-click on the note's title bar and select **Set alarm**.

## Take notes on Linux

Sticky notes are easy and fun ways to keep track of daily tasks. They don't "work" for everyone, and they aren't my only means of tracking things I mean to do each day, but they're great options to have, and there's nothing more satisfying than moving a completed note into the "done" pile before deleting them all at the end of the day. Give it a try, it's a habit that just might stick.

## Comments are closed.