LatteDock/FAQ: Difference between revisions
Psifidotos (talk | contribs) (add latte logo) |
Psifidotos (talk | contribs) (disable autocolor for specific applet) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<translate> | <translate> | ||
<!--T:1--> | |||
[[Special:myLanguage/LatteDock|←Latte Dock]] | [[Special:myLanguage/LatteDock|←Latte Dock]] | ||
<!--T:143--> | |||
[[File:LLoXdgK.png|right|Latte Dock!]] | [[File:LLoXdgK.png|right|Latte Dock!]] | ||
== What is Latte Dock? How did it begin? == | == What is Latte Dock? How did it begin? == <!--T:2--> | ||
<!--T:3--> | |||
'''Latte Dock''' is a dock based on plasma frameworks and a direct successor of [https://github.com/psifidotos/nowdock-panel Now Dock]. '''Latte''' is the combined effort from the developers of [https://github.com/psifidotos/nowdock-panel Now Dock] and [https://github.com/audoban/Candil-Dock Candil Dock]. | '''Latte Dock''' is a dock based on plasma frameworks and a direct successor of [https://github.com/psifidotos/nowdock-panel Now Dock]. '''Latte''' is the combined effort from the developers of [https://github.com/psifidotos/nowdock-panel Now Dock] and [https://github.com/audoban/Candil-Dock Candil Dock]. | ||
== Which Linux distros provide "Out Of The Box" Latte Dock experience? == | == Which Linux distros provide "Out Of The Box" Latte Dock experience? == <!--T:144--> | ||
<!--T:145--> | |||
* [https://nxos.org/ Nitrux] | * [https://nxos.org/ Nitrux] | ||
* [https://garudalinux.org/ Garuda KDE Dragonized] | * [https://garudalinux.org/ Garuda KDE Dragonized] | ||
Line 17: | Line 21: | ||
* [https://pearos.xyz/ pearOS] | * [https://pearos.xyz/ pearOS] | ||
== How can I add launchers? == | == How can I add launchers? == <!--T:4--> | ||
<!--T:5--> | |||
The easiest and most memory-efficient way to do so is to drag n' drop them on the task manager (this is the area where dots and lines are shown under running windows). | The easiest and most memory-efficient way to do so is to drag n' drop them on the task manager (this is the area where dots and lines are shown under running windows). | ||
You can also add them | <!--T:6--> | ||
You can also add them outside the task manager, but this creates animation issues for sizes <64px and it is memory hungry. | |||
== My launcher and its window are not associated correctly OR my launcher is using a low-resolution icon? == | == My launcher and its window are not associated correctly OR my launcher is using a low-resolution icon? == <!--T:15--> | ||
<!--T:16--> | |||
This issue means that plasma '''libtaskmanager''' has not associated your launcher and app windows correctly to the relevant desktop file. Plasma is trying to be smart enough in order to correctly identify which desktop files are associated to which specific windows, but there are cases when it fails. Best way to solve this is to check the <code>StartupWMClass</code> record in the desktop file. This record should point at the proper <code>WM_CLASS</code> record at all times. For example even though the Latte Dock desktop file is called {{Path|1=org.kde.latte-dock.desktop}}, its <code>StartupWMClass</code> is <code>lattedock</code>. In order to correctly identify the <code>StartupWMClass</code> of an application, you can use <code>xprop</code>. | This issue means that plasma '''libtaskmanager''' has not associated your launcher and app windows correctly to the relevant desktop file. Plasma is trying to be smart enough in order to correctly identify which desktop files are associated to which specific windows, but there are cases when it fails. Best way to solve this is to check the <code>StartupWMClass</code> record in the desktop file. This record should point at the proper <code>WM_CLASS</code> record at all times. For example even though the Latte Dock desktop file is called {{Path|1=org.kde.latte-dock.desktop}}, its <code>StartupWMClass</code> is <code>lattedock</code>. In order to correctly identify the <code>StartupWMClass</code> of an application, you can use <code>xprop</code>. | ||
<!--T:17--> | |||
'''Example:''' | '''Example:''' | ||
# Run <code>xprop</code> from the command line.</translate> | # Run <code>xprop</code> from the command line.</translate> | ||
<translate> | <translate> | ||
<!--T:121--> | |||
# Click on the window you are interested in.</translate> | # Click on the window you are interested in.</translate> | ||
<translate> | <translate> | ||
<!--T:122--> | |||
# Locate at the end of the output the record <code>WM_CLASS(STRING) =</code>.</translate> | # Locate at the end of the output the record <code>WM_CLASS(STRING) =</code>.</translate> | ||
<translate> | <translate> | ||
<!--T:123--> | |||
# Add the previously mentioned record in the application desktop file at the <code>StartupWMClass</code> field. | # Add the previously mentioned record in the application desktop file at the <code>StartupWMClass</code> field. | ||
<!--T:18--> | |||
For instance, with "Gimp 2.10", even though its desktop file is called {{Path|1=gimp.desktop}}, its <code>StartupWMClass</code> is "gimp-2.10". <code>StartupWMClass</code> is not needed to be added for "Gimp" since plasma developers have taken special care to map it properly through {{Path|1=/etc/xdg/taskmanagerrulesrc}}. | For instance, with "Gimp 2.10", even though its desktop file is called {{Path|1=gimp.desktop}}, its <code>StartupWMClass</code> is "gimp-2.10". <code>StartupWMClass</code> is not needed to be added for "Gimp" since plasma developers have taken special care to map it properly through {{Path|1=/etc/xdg/taskmanagerrulesrc}}. | ||
== How can I enable Latte Global Shortcuts? == | == How can I enable Latte Global Shortcuts? == <!--T:46--> | ||
<!--T:47--> | |||
In most cases you need to go to <menuchoice>Plasma System Settings</menuchoice> → <menuchoice>Global Shortcuts</menuchoice> → <menuchoice>Latte Dock</menuchoice> and enable what shortcuts you need. | In most cases you need to go to <menuchoice>Plasma System Settings</menuchoice> → <menuchoice>Global Shortcuts</menuchoice> → <menuchoice>Latte Dock</menuchoice> and enable what shortcuts you need. | ||
<!--T:48--> | |||
* <menuchoice>Super + Number</menuchoice> : Activate a task</translate> | * <menuchoice>Super + Number</menuchoice> : Activate a task</translate> | ||
<translate> | <translate> | ||
<!--T:125--> | |||
* <menuchoice>Super + Ctrl + Number</menuchoice> : A new instance for a task</translate> | * <menuchoice>Super + Ctrl + Number</menuchoice> : A new instance for a task</translate> | ||
<translate> | <translate> | ||
* < | <!--T:126--> | ||
* <keycap>Super + `</keycap>: Show a hidden dock | |||
== Can I use my super key to open the app launcher? == | == Can I use my super key to open the app launcher? == <!--T:49--> | ||
<!--T:146--> | |||
* The official way to enable this is to right click <menuchoice>Dock</menuchoice> → <menuchoice>Configure Latte...</menuchoice> → <menuchoice>Enable autostart during startup</menuchoice> | * The official way to enable this is to right click <menuchoice>Dock</menuchoice> → <menuchoice>Configure Latte...</menuchoice> → <menuchoice>Enable autostart during startup</menuchoice> | ||
<!--T:147--> | |||
* The manual way is to <menuchoice>Close Latte</menuchoice> → <menuchoice>Execute in command prompt:</menuchoice> {{Input|1=<nowiki>kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu" | * The manual way is to <menuchoice>Close Latte</menuchoice> → <menuchoice>Execute in command prompt:</menuchoice> {{Input|1=<nowiki>kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu" | ||
qdbus org.kde.KWin /KWin reconfigure</nowiki>}} | qdbus org.kde.KWin /KWin reconfigure</nowiki>}} | ||
== Launchers are disappearing before the relevant window is shown even though they shouldn't. == | == Launchers are disappearing before the relevant window is shown even though they shouldn't. == <!--T:75--> | ||
<!--T:76--> | |||
We are acquainted with this, but this behavior is provided by plasma's '''libtaskmanager'''. You can read more at: [https://github.com/psifidotos/Latte-Dock/issues/72 Latte Issue #72], [https://bugs.kde.org/show_bug.cgi?id=368386 KDE bug report] | We are acquainted with this, but this behavior is provided by plasma's '''libtaskmanager'''. You can read more at: [https://github.com/psifidotos/Latte-Dock/issues/72 Latte Issue #72], [https://bugs.kde.org/show_bug.cgi?id=368386 KDE bug report] | ||
== My left dock behaves strangely from Plasma 5.10 onwards, how can I fix this? == <!--T:81--> | == My left dock behaves strangely from Plasma 5.10 onwards, how can I fix this? == <!--T:81--> | ||
<!--T:82--> | |||
In Plasma 5.10, the KWin developers introduced gesture functionality for touch screens, which is enabled by default for all systems. You can disable it through plasma <menuchoice>System Settings</menuchoice> → <menuchoice>Workspace Behavior</menuchoice> → <menuchoice>Touchscreen</menuchoice>. Relogin your plasma session if the change doesn't take effect immediately. | In Plasma 5.10, the KWin developers introduced gesture functionality for touch screens, which is enabled by default for all systems. You can disable it through plasma <menuchoice>System Settings</menuchoice> → <menuchoice>Workspace Behavior</menuchoice> → <menuchoice>Touchscreen</menuchoice>. Relogin your plasma session if the change doesn't take effect immediately. | ||
<!--T:83--> | |||
[https://bugs.kde.org/show_bug.cgi?id=382219 KWin bug report] [https://bugs.kde.org/show_bug.cgi?id=392464 Plasma bug report] | [https://bugs.kde.org/show_bug.cgi?id=382219 KWin bug report] [https://bugs.kde.org/show_bug.cgi?id=392464 Plasma bug report] | ||
== Is there a way to tell Latte Dock to launch only in '''Plasma Session''' ? == | == Is there a way to tell Latte Dock to launch only in '''Plasma Session''' ? == <!--T:90--> | ||
<!--T:91--> | |||
Of course you can, please follow these steps: | Of course you can, please follow these steps: | ||
<!--T:92--> | |||
# Go to <menuchoice>System Settings</menuchoice> → <menuchoice>Startup and Shutdown</menuchoice> → <menuchoice>Autostart</menuchoice>.</translate> | # Go to <menuchoice>System Settings</menuchoice> → <menuchoice>Startup and Shutdown</menuchoice> → <menuchoice>Autostart</menuchoice>.</translate> | ||
<translate> | <translate> | ||
<!--T:129--> | |||
# Choose '''Latte Dock''' from the applications list.</translate> | # Choose '''Latte Dock''' from the applications list.</translate> | ||
<translate> | <translate> | ||
<!--T:130--> | |||
# <menuchoice>Advanced</menuchoice> → <menuchoice>Autostart only in Plasma</menuchoice>. | # <menuchoice>Advanced</menuchoice> → <menuchoice>Autostart only in Plasma</menuchoice>. | ||
== What happens if I drag 'n' drop files on launchers? == | == What happens if I drag 'n' drop files on launchers? == <!--T:113--> | ||
<!--T:114--> | |||
The file will be passed as a parameter to the specific application, creating a new instance (e.g. passing an image to '''Kolourpaint''' will open the image with '''Kolourpaint'''). | The file will be passed as a parameter to the specific application, creating a new instance (e.g. passing an image to '''Kolourpaint''' will open the image with '''Kolourpaint'''). | ||
== My right click does not work ? == | == My right click does not work ? == <!--T:119--> | ||
<!--T:120--> | |||
When right-click does not work both for applets and tasks it means that your Latte has not been built with the same KDE Frameworks libraries like Plasma Desktop. The only solution is either your distro to update its Latte package properly or to build Latte by yourself. | When right-click does not work both for applets and tasks it means that your Latte has not been built with the same KDE Frameworks libraries like Plasma Desktop. The only solution is either your distro to update its Latte package properly or to build Latte by yourself. | ||
== How can I set the maximum icon size for applets in Plasma panels? == | == How can I set the maximum icon size for applets in Plasma panels? == <!--T:132--> | ||
<!--T:133--> | |||
If you want to set 192px. as maximum icon size for applets in panels you can execute: | If you want to set 192px. as maximum icon size for applets in panels you can execute: | ||
<!--T:134--> | |||
{{Input|1=<nowiki>kwriteconfig --file ~/.config/kdeglobals --group PanelIcons --key Size "192"</nowiki>}} | {{Input|1=<nowiki>kwriteconfig --file ~/.config/kdeglobals --group PanelIcons --key Size "192"</nowiki>}} | ||
<!--T:135--> | |||
In the previous example, any plasma applets larger than 192px. are going to use their full Desktop representation when are placed inside panels. | In the previous example, any plasma applets larger than 192px. are going to use their full Desktop representation when are placed inside panels. | ||
== How can I improve CPU usage? == | == How can I improve CPU usage? == <!--T:136--> | ||
<!--T:137--> | |||
Latte, in general, has as a focus to provide maximum configurability and performance, so all its graphics and animations are set to BEST values... | Latte, in general, has as a focus to provide maximum configurability and performance, so all its graphics and animations are set to BEST values... | ||
<!--T:138--> | |||
An easy and known solution if you want better CPU usage it to DISABLE tasks/applets shadows. Latte is using DropShadow qml element extensively and it is quite costly. To disable all shadows in a dock, you can do: | An easy and known solution if you want better CPU usage it to DISABLE tasks/applets shadows. Latte is using DropShadow qml element extensively and it is quite costly. To disable all shadows in a dock, you can do: | ||
'''Right click Dock -> Dock | <!--T:139--> | ||
'''Right click Dock -> Edit Dock... -> Effects -> "Shadows" [disable that options group from its header]''' | |||
<!--T:140--> | |||
In my system, when using the parabolic effect, ''CPU usage is dropped around 75%'' | In my system, when using the parabolic effect, ''CPU usage is dropped around 75%'' | ||
== My badge counters do not work in Latte Dock. How can I fix it? == | == My badge counters do not work in Latte Dock. How can I fix it? == <!--T:141--> | ||
<!--T:142--> | |||
Please make sure you have libunity installed. On KDE versions of Ubuntu such as Kubuntu and KDE Neon, you will need <code>libunity-dev</code> installed. | Please make sure you have libunity installed. On KDE versions of Ubuntu such as Kubuntu and KDE Neon, you will need <code>libunity-dev</code> installed. | ||
== How can I autocolor my Latte panel based on specific application? == | == How can I autocolor my Latte panel based on specific application? == <!--T:148--> | ||
# Install <menuchoice>Latte Window Colors </menuchoice> KWin script from [https://store.kde.org/p/1290287/ KDE Store] | <!--T:149--> | ||
# Right click <menuchoice>Latte Panel</menuchoice> → <menuchoice>Edit Panel...</menuchoice> → <menuchoice>Appearance</menuchoice> → <menuchoice>Colors</menuchoice> → <menuchoice>From Window</menuchoice> → <menuchoice>Any Touching Window</menuchoice> | # Install <menuchoice>Latte Window Colors </menuchoice> KWin script from [https://store.kde.org/p/1290287/ KDE Store]</translate> | ||
# Specify different color schemes for your applications: | <translate> | ||
#* Right click <menuchoice>Window Titlebar</menuchoice> | <!--T:150--> | ||
#* <menuchoice>More Actions</menuchoice> → <menuchoice>Configure Special Application Settings...</menuchoice> | # Right click <menuchoice>Latte Panel</menuchoice> → <menuchoice>Edit Panel...</menuchoice> → <menuchoice>Appearance</menuchoice> → <menuchoice>Colors</menuchoice> → <menuchoice>From Window</menuchoice> → <menuchoice>Any Touching Window</menuchoice></translate> | ||
#* <menuchoice>Add Property</menuchoice> → <menuchoice>Appearance and Fixes</menuchoice> → <menuchoice>Titlebar color scheme</menuchoice> | <translate> | ||
<!--T:151--> | |||
# Specify different color schemes for your applications:</translate> | |||
<translate> | |||
<!--T:152--> | |||
#* Right click <menuchoice>Window Titlebar</menuchoice></translate> | |||
<translate> | |||
<!--T:153--> | |||
#* <menuchoice>More Actions</menuchoice> → <menuchoice>Configure Special Application Settings...</menuchoice></translate> | |||
<translate> | |||
<!--T:154--> | |||
#* <menuchoice>Add Property</menuchoice> → <menuchoice>Appearance and Fixes</menuchoice> → <menuchoice>Titlebar color scheme</menuchoice></translate> | |||
<translate> | |||
<!--T:155--> | |||
#* Select <menuchoice>Force</menuchoice> → <menuchoice>Choose your preferred color scheme</menuchoice> | #* Select <menuchoice>Force</menuchoice> → <menuchoice>Choose your preferred color scheme</menuchoice> | ||
== Are there any known compatibility issues with specific graphics drivers? == | == Can I disable autocolor for specific applet? == <!--T:161--> | ||
<!--T:162--> | |||
Yes, right click <menuchoice>Dock</menuchoice> → <menuchoice>Edit Dock...</menuchoice> → <menuchoice>Rearrange and configure your widgets</menuchoice> → <menuchoice>Disable "drop" icon</menuchoice> from mentioned applet tooltip | |||
== Are there any known compatibility issues with specific graphics drivers? == <!--T:115--> | |||
<!--T:116--> | |||
If you have Intel Graphics and experience problems with rendering such as pixelated graphics, corrupt text and others, you can try changing the 2D rendering method from ''SNA'' to ''UXA''. | If you have Intel Graphics and experience problems with rendering such as pixelated graphics, corrupt text and others, you can try changing the 2D rendering method from ''SNA'' to ''UXA''. | ||
<!--T:117--> | |||
{{Path|1=/etc/X11/xorg.conf.d/20-intel.conf}} | {{Path|1=/etc/X11/xorg.conf.d/20-intel.conf}} | ||
<!--T:118--> | |||
{{Input|1=<nowiki> | {{Input|1=<nowiki> | ||
section "Device" | section "Device" | ||
Line 128: | Line 185: | ||
EndSection</nowiki>}} | EndSection</nowiki>}} | ||
== Can I have different '''Borderless Maximized''' windows options between different layouts? == | == Can I have different '''Borderless Maximized''' windows options between different layouts? == <!--T:156--> | ||
<!--T:157--> | |||
1. Yes, this is possible. First enable this functionality in Latte's Preferences settings: | 1. Yes, this is possible. First enable this functionality in Latte's Preferences settings: | ||
<!--T:158--> | |||
[[File:Borderless.png]] | [[File:Borderless.png]] | ||
<!--T:159--> | |||
2. Enable/Disable this functionality per layout on the Latte Layout settings afterwards. | 2. Enable/Disable this functionality per layout on the Latte Layout settings afterwards. | ||
<!--T:160--> | |||
[[File:Layout.png]] | [[File:Layout.png]] | ||
</translate> | </translate> |
Latest revision as of 11:54, 12 June 2022
What is Latte Dock? How did it begin?
Latte Dock is a dock based on plasma frameworks and a direct successor of Now Dock. Latte is the combined effort from the developers of Now Dock and Candil Dock.
Which Linux distros provide "Out Of The Box" Latte Dock experience?
How can I add launchers?
The easiest and most memory-efficient way to do so is to drag n' drop them on the task manager (this is the area where dots and lines are shown under running windows).
You can also add them outside the task manager, but this creates animation issues for sizes <64px and it is memory hungry.
My launcher and its window are not associated correctly OR my launcher is using a low-resolution icon?
This issue means that plasma libtaskmanager has not associated your launcher and app windows correctly to the relevant desktop file. Plasma is trying to be smart enough in order to correctly identify which desktop files are associated to which specific windows, but there are cases when it fails. Best way to solve this is to check the StartupWMClass
record in the desktop file. This record should point at the proper WM_CLASS
record at all times. For example even though the Latte Dock desktop file is called org.kde.latte-dock.desktop, its StartupWMClass
is lattedock
. In order to correctly identify the StartupWMClass
of an application, you can use xprop
.
Example:
- Run
xprop
from the command line. - Click on the window you are interested in.
- Locate at the end of the output the record
WM_CLASS(STRING) =
. - Add the previously mentioned record in the application desktop file at the
StartupWMClass
field.
For instance, with "Gimp 2.10", even though its desktop file is called gimp.desktop, its StartupWMClass
is "gimp-2.10". StartupWMClass
is not needed to be added for "Gimp" since plasma developers have taken special care to map it properly through /etc/xdg/taskmanagerrulesrc.
How can I enable Latte Global Shortcuts?
In most cases you need to go to
→ → and enable what shortcuts you need.- : Activate a task
- : A new instance for a task
- Super + `: Show a hidden dock
Can I use my super key to open the app launcher?
- The official way to enable this is to right click → →
- The manual way is to
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu" qdbus org.kde.KWin /KWin reconfigure
→
Launchers are disappearing before the relevant window is shown even though they shouldn't.
We are acquainted with this, but this behavior is provided by plasma's libtaskmanager. You can read more at: Latte Issue #72, KDE bug report
My left dock behaves strangely from Plasma 5.10 onwards, how can I fix this?
In Plasma 5.10, the KWin developers introduced gesture functionality for touch screens, which is enabled by default for all systems. You can disable it through plasma
→ → . Relogin your plasma session if the change doesn't take effect immediately.KWin bug report Plasma bug report
Is there a way to tell Latte Dock to launch only in Plasma Session ?
Of course you can, please follow these steps:
- Go to → → .
- Choose Latte Dock from the applications list.
- → .
What happens if I drag 'n' drop files on launchers?
The file will be passed as a parameter to the specific application, creating a new instance (e.g. passing an image to Kolourpaint will open the image with Kolourpaint).
My right click does not work ?
When right-click does not work both for applets and tasks it means that your Latte has not been built with the same KDE Frameworks libraries like Plasma Desktop. The only solution is either your distro to update its Latte package properly or to build Latte by yourself.
How can I set the maximum icon size for applets in Plasma panels?
If you want to set 192px. as maximum icon size for applets in panels you can execute:
kwriteconfig --file ~/.config/kdeglobals --group PanelIcons --key Size "192"
In the previous example, any plasma applets larger than 192px. are going to use their full Desktop representation when are placed inside panels.
How can I improve CPU usage?
Latte, in general, has as a focus to provide maximum configurability and performance, so all its graphics and animations are set to BEST values...
An easy and known solution if you want better CPU usage it to DISABLE tasks/applets shadows. Latte is using DropShadow qml element extensively and it is quite costly. To disable all shadows in a dock, you can do:
Right click Dock -> Edit Dock... -> Effects -> "Shadows" [disable that options group from its header]
In my system, when using the parabolic effect, CPU usage is dropped around 75%
My badge counters do not work in Latte Dock. How can I fix it?
Please make sure you have libunity installed. On KDE versions of Ubuntu such as Kubuntu and KDE Neon, you will need libunity-dev
installed.
How can I autocolor my Latte panel based on specific application?
- Install KDE Store KWin script from
- Right click → → → → →
- Specify different color schemes for your applications:
- Right click
- →
- → →
- Select →
Can I disable autocolor for specific applet?
Yes, right click
→ → → from mentioned applet tooltip
Are there any known compatibility issues with specific graphics drivers?
If you have Intel Graphics and experience problems with rendering such as pixelated graphics, corrupt text and others, you can try changing the 2D rendering method from SNA to UXA.
/etc/X11/xorg.conf.d/20-intel.conf
section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "uxa" EndSection
Can I have different Borderless Maximized windows options between different layouts?
1. Yes, this is possible. First enable this functionality in Latte's Preferences settings:
2. Enable/Disable this functionality per layout on the Latte Layout settings afterwards.