From af6dbe15232e22094c30dfa3196f6a227624e09f Mon Sep 17 00:00:00 2001 From: throwaway1037 <79383296+throwaway1037@users.noreply.github.com> Date: Tue, 23 Feb 2021 14:44:31 +0000 Subject: [PATCH] Improve .desktop file --- Tricks.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tricks.md b/Tricks.md index 5b2b410..d3d86a0 100644 --- a/Tricks.md +++ b/Tricks.md @@ -21,10 +21,14 @@ Bind this to a key, select a point on the screen and get a HTML color code for t If you don't use a color picker frequently enough to reminder the keybinding, you can create a simple .desktop file for it in ~/.local/share/applications/ and then launch it searching for the name with a desktop file launcher like Rofi. Here's an example .desktop file: ``` +[Desktop Entry] Name=HTML Color Picker for Sway Comment=Copies HTML color code to clipboard +Encoding=UTF-8 +Version=1.0 Keywords= -Exec=/home/yourusername/.local/bin/html-color-picker-for-sway +Icon= +Exec=$HOME/.local/bin/html-color-picker-for-sway Terminal=false Type=Application StartupNotify=true