From 67574d12efd97804e339064b86c47194d09e1878 Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Sat, 3 Oct 2020 13:59:49 +0100 Subject: [PATCH] Updated Tricks (markdown) --- Tricks.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Tricks.md b/Tricks.md index 183898e..7954546 100644 --- a/Tricks.md +++ b/Tricks.md @@ -10,13 +10,15 @@ 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: -`Name=HTML Color Picker for Sway` -`Comment=Copies to Clipboard` -`Keywords=` -`Exec=/home/yourusername/.local/bin/html-color-picker-for-sway` -`Terminal=false` -`Type=Application` -`StartupNotify=true` +``` +Name=HTML Color Picker for Sway +Comment=Copies to Clipboard +Keywords= +Exec=/home/yourusername/.local/bin/html-color-picker-for-sway +Terminal=false +Type=Application +StartupNotify=true +``` Put the command above in `~/.local/bin/html-color-picker-for-sway` and add a shebang line as the first line: `#!/usr/bin/env bash`