Difference between revisions of "LXQt"
added paragraph
imported>Excalibur1234 (added paragraph) |
imported>Excalibur1234 (added paragraph) |
||
Line 139: | Line 139: | ||
If you want to use a flag icon, use this line in the <code>.desktop</code> file: | If you want to use a flag icon, use this line in the <code>.desktop</code> file: | ||
Icon=/usr/share/icons/gnome/48x48/apps/locale.png | Icon=/usr/share/icons/gnome/48x48/apps/locale.png | ||
=Create Custom Icon on Panel= | |||
Right click on your panel and choose "Add panel widget". Then add a Quick Launch / Starter widget. A text will appear on your panel. | |||
You can drag and drop any icon file (from your start menu / mainmenu or your custom icon file) there in order to create a Quick Launch / Starter icon in your panel. But if you want your custom icon in your panel, you must first create your own <code>.desktop</code> file (as you can read in the last chapter of this tutorial). | |||
For demonstration purposes, let's create a custom icon, which will shut down our computer when clicked: | |||
First, let's create a new file (e.g. in your home directory or any other directory you want): Right click and choose "Create New" --> "Blank File". Name the file <code>ShutDown.desktop</code>. You can choose any name you want, but the <code>.desktop</code> in the end is important. | |||
Next, edit this file with a text editor: | |||
[Desktop Entry] | |||
Type=Application | |||
Name=ShutDown | |||
Comment=Shut down my computer | |||
Exec=poweroff | |||
Icon=/usr/share/icons/Menda-Circle/actions/scalable/bottom.svg | |||
* <code>Name=</code> is the name of the icon | |||
* <code>Comment=</code> gets shown when you hover with your mouse cursor over the icon | |||
* <code>Exec=</code> defines the terminal command, which is executed when the icon is clicked | |||
* <code>Icon=</code> specifies the path to the icon | |||
Finally, you can drag and drop your custom icon file onto the panel (as described in the beginning of this chapter) to create your custom icon. | |||