mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 22:43:58 +01:00
Updated Tricks (markdown)
parent
edddd7b6c2
commit
67574d12ef
16
Tricks.md
16
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:
|
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`
|
Name=HTML Color Picker for Sway
|
||||||
`Keywords=`
|
Comment=Copies to Clipboard
|
||||||
`Exec=/home/yourusername/.local/bin/html-color-picker-for-sway`
|
Keywords=
|
||||||
`Terminal=false`
|
Exec=/home/yourusername/.local/bin/html-color-picker-for-sway
|
||||||
`Type=Application`
|
Terminal=false
|
||||||
`StartupNotify=true`
|
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`
|
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`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user