Plasma/Tips: Difference between revisions

From KDE Wiki Sandbox
(Replace chevron arrows with unicode arrows. Format blockquotes. Update with a few more tips. Fix a few typos.)
(Rearrange tips, so the larger sections (web browsers) are at the bottom, and separate firefox's userChrome.css into a dedicated section.)
Line 2: Line 2:


-----
-----
<!-- ------- -->
<h3><span id="Autostarted_Apps">[[#Autostarted_Apps|Autostarted Apps]]</span></h3>
<h3><span id="Autostarted_Apps">[[#Autostarted_Apps|Autostarted Apps]]</span></h3>


Line 129: Line 130:
:System Settings → Window Management<br />
:System Settings → Window Management<br />
:Window Behaviour Tab → Focus Stealing Prevention: None<br />
:Window Behaviour Tab → Focus Stealing Prevention: None<br />
</p>
</li>
<li id="fix-alt-click-in-certain-games-software" class="tip">
[[#fix-alt-click-in-certain-games-software|Fix Alt+Click in certain games/software]]
<p>
:<code>Alt+Click+Drag</code> is a standard keybinding for moving a window in Linux. It tends to conflict with software designed for Windows like Games. To fix, we'll change it to <code>Meta+Click+Drag</code>.<br />
:System Settings → Window Management<br />
:Window Actions Tab → Inner Window, Titlebar, Frame → Modifier Key: <keycap>Meta</keycap><br />
:'''OR''' set Left button: "Nothing" to disable it completely.<br />
</p>
</p>
</li>
</li>
Line 328: Line 339:
:☰ Control → Configure Shortcuts<br />
:☰ Control → Configure Shortcuts<br />
:Paste → Set Alternative (Defaulted to Shift+Insert) as “None”<br />
:Paste → Set Alternative (Defaulted to Shift+Insert) as “None”<br />
</p>
</li>
</ul>
<h3><span id="LibreOffice_Writer">[[#LibreOffice_Writer|LibreOffice Writer]]</span></h3>
<ul>
<li id="save-as-docx-by-default" class="tip">
[[#save-as-docx-by-default|Save as .docx by default]]
<p>
:Tools → Options<br />
:Load/Save → General<br />
:Always save as: "Word 2007-2019 (*.docx)"<br />
:<blockquote>[https://help.libreoffice.org/Common/Using_Microsoft_Office_and#Saving_Documents_by_Default_in_Microsoft_Office_Formats LibreOffice wiki]</blockquote>
</p>
</li>
</ul>
<h3><span id="LibreOffice_Calc">[[#LibreOffice_Calc|LibreOffice Calc]]</span></h3>
<ul>
<li id="set-default-font-size-family-cellpadding" class="tip">
[[#set-default-font-size-family-cellpadding|Set Default Font Size/Family/CellPadding]]
<p>
:Styles → Manage Styles<br />
:Right click Default → Modify<br />
:Font → Family: Noto Sans (Office uses Carlito/Calibri)<br />
:Font → Size: 12 (Office uses 11)<br />
:Borders → Padding: 1.00mm<br />
:Ok<br />
:File → Templates → Save As Template<br />
:Name: Default<br />
:Category: My Templates<br />
:Check "Set as default template"<br />
</p>
</li>
</ul>
<h3><span id="Steam">[[#Steam|Steam]]</span></h3>
<ul>
<li id="hide-big-picture-etc-in-the-system-tray-context-menu" class="tip">
[[#hide-big-picture-etc-in-the-system-tray-context-menu|Hide “Big Picture”, etc in the System Tray Context Menu]]
<p>
:Steam → Settings → Interface Tab<br />
:Set Taskbar Preferences → Only Check: Library, Friends, Exit Steam<br />
</p>
</li>
<li id="cleanup-friends-list" class="tip">
[[#cleanup-friends-list|Cleanup Friends List]]
<p>
:Steam → Friends → View Friends List<br />
:Click on the Cog / Settings Icon<br />
:Ignore 'Away' status when sorting friends: On<br />
:Compact Favorites Area: On<br />
:Compact Friends List: On<br />
:Append nickname to friend's name: On<br />
:Hide offline friends in custom categories: On<br />
</p>
</li>
<li id="hide-friend-is-playing-notifications" class="tip">
[[#hide-friend-is-playing-notifications|Hide “Friend is playing ____” Notifications]]
<p>
:Steam → Friends → View Friends List<br />
:Click on the Cog / Settings Icon<br />
:Notifications → Uncheck: When friend joins a game<br />
:Notifications → Uncheck: When comes online<br />
</p>
</li>
<li id="never-show-advertisement-popups" class="tip">
[[#never-show-advertisement-popups|Never Show Advertisement Popups]]
<p>
:Steam → Settings → Interface Tab<br />
:Uncheck: Notify me about additions to my games and other releases<br />
</p>
</li>
<li id="startup-in-tray" class="tip">
[[#startup-in-tray|Startup in Tray]]
<p>
:Find Steam in the App Launcher widget<br />
:Right Click Steam → Edit Application<br />
:Application Tab → Command: <code>/usr/bin/steam -silent %U</code><br />
:If you added Steam to the autostarted apps, you will need to edit the command there as well.<br />
:Relevant [https://github.com/ValveSoftware/steam-for-linux/issues/5806 bug report].<br />
</p>
</li>
<li id="close-steam-to-tray" class="tip">
[[#close-steam-to-tray|Close Steam to Tray]]
<p>
:We need to launch steam using <code>STEAM_FRAME_FORCE_CLOSE=1 steam</code> as mentioned in [https://github.com/ValveSoftware/steam-for-linux/issues/5806 this bug report], but editing every single game shortcut that Steam generates is a hassel. So we'll set a [https://userbase.kde.org/Session_Environment_Variables/en session environment variable] by adding <code>export STEAM_FRAME_FORCE_CLOSE=1</code> to <code>~/.config/plasma-workspace/env/path.sh</code>. It's easier to run this commands:<br />
  <syntaxhighlight lang="bash">echo 'export STEAM_FRAME_FORCE_CLOSE=1' >> ~/.config/plasma-workspace/env/path.sh</syntaxhighlight>
:Then logout and back in so that your "panel" is launched with the session variable so that it can pass it to Steam when Steam is launched from the app launcher or desktop shortcut.<br />
</p>
</li>
</ul>
<h3><span id="Clementine">[[#Clementine|Clementine]]</span></h3>
<ul>
<li id="clean-up-ui" class="tip">
[[#clean-up-ui|Clean up UI]]
<p>
:Tools → Preferences<br />
:Playback Tab → Uncheck: Show a glowing animation on the current track<br />
:Search Tab → Uncheck: DigitallyImported, DropBox, Google Drive, Jazz<br />
:Last.fm Tab → Uncheck: Show the “love” amd “ban” buttons<br />
:Last.fm Tab → Uncheck: Show the scrobble button<br />
</p>
</li>
<li id="dont-fade-between-songs" class="tip">
[[#dont-fade-between-songs|Don’t fade between songs]]
<p>
:Playback Tab → Uncheck: Fade out when stopping a track<br />
:Playback Tab → Uncheck: Cross-fade when changing tracks manually<br />
</p>
</li>
<li id="double-click-song-should-play-song-now" class="tip">
[[#double-click-song-should-play-song-now|Double Click song should play song now]]
<p>
:Behaviour → Using the menu to add a song will: Always start playing<br />
:Behaviour → Double clicking a song will: Replace the playlist + Always start playing<br />
</p>
</li>
</ul>
<h3><span id="Gtk_Apps_(Gimp/Hexchat/etc)">[[#Gtk_Apps_(Gimp/Hexchat/etc)|Gtk Apps (Gimp/Hexchat/etc)]]</span></h3>
<ul>
<li id="fix-white-text-on-white-background-tooltips" class="tip">
[[#fix-white-text-on-white-background-tooltips|Fix white text on white background tooltips]]
<p>
:System Settings → Colors<br />
:Uncheck: Apply colors to non-Qt applications<br />
</p>
</li>
</ul>
<h3><span id="VirtualBox">[[#VirtualBox|VirtualBox]]</span></h3>
<ul>
<li id="prevent-windows-meta-key-from-opening-the-host-app-menu" class="tip">
[[#prevent-windows-meta-key-from-opening-the-host-app-menu|Prevent Windows/Meta Key from opening the host App Menu]]
<p>
:Run the Virtual Machine.<br />
:Press the host key (Right <keycap>Ctrl</keycap>)<br />
:Press <keycap>Alt+F3</keycap> → More Actions → Special Application Settings<br />
:Window Matching Tab → Window class: [<code>Exact Match</code>] <code>virtualbox machine</code><br />
:Appearances & Fixes Tab → Check "Ignore Global Shortcuts"<br />
:Change "Do Not Affect" to "Force", then select "Yes".<br />
:<blockquote>Note that this also disables Spectable's screenshot global shortcuts while the VM window is focused.</blockquote>
</p>
</p>
</li>
</li>
Line 372: Line 540:


<ul>
<ul>
<li id="use-the-kde-file-selector-dialog" class="tip">
<li id="use-the-kde-file-selector-dialog" class="tip">
[[#use-the-kde-file-selector-dialog|Use the KDE File selector dialog]]
[[#use-the-kde-file-selector-dialog|Use the KDE File selector dialog]]
<p>
<p>
:Make sure you have the <code>xdg-desktop-portal-kde</code> package installed.<br />
:Make sure you have the <code>xdg-desktop-portal</code> and <code>xdg-desktop-portal-kde</code> package installed.<br />
:Right click the Firefox launcher in the app launcher → Edit Application<br />
:Right click the Firefox launcher in the app launcher → Edit Application<br />
:Application tab → Command <code>GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u</code><br />
:Application tab → Command <code>GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u</code><br />
:Press <code>Ctrl+Esc</code> and search to make sure the <code>xdg-desktop-portal-gtk</code> process is not running. If it is, end all <code>xdg-</code> processes.<br />
:Restart Firefox<br />
</p>
</p>
</li>
</li>
Line 394: Line 565:
[[#open-new-tab-page-on-startup|Open New Tab page on startup]]
[[#open-new-tab-page-on-startup|Open New Tab page on startup]]
<p>
<p>
:Type <code>about:newtab</code> into the addressbar, do not press enter.<br />
:☰ → Preferences → Home<br />
:Select <code>about:newtab</code> and drag it onto the Home button.<br />
:Homepage and new windows: <code>Firefox Home</code><br />
:OR <code>Custom Url</code> with <code>about:newtab</code><br />
</p>
</p>
</li>
</li>
Line 407: Line 579:
:Uncheck: "Highlights"<br />
:Uncheck: "Highlights"<br />
:Under "Top Sites" change to "4 rows"<br />
:Under "Top Sites" change to "4 rows"<br />
</p>
</li>
<li id="show-bookmarks-toolbar-only-on-new-tab-page" class="tip">
[[#show-bookmarks-toolbar-only-on-new-tab-page|Show bookmarks toolbar only on New Tab page]]
<p>
:☰ → Customize<br />
:Toolbars → Check: Bookmarks Toolbar<br />
:Go to <code>~/.mozilla/firefox/</code> then open <code>ab1c2d.default</code> or whatever the folder name is.<br />
:Create <code>chrome/userChrome.css</code> if it does not exist.<br />
:Then paste [https://github.com/Timvde/UserChrome-Tweaks/blob/master/toolbars/show-bookmarks-only-on-newtab.css the following CSS] into <code>userChrome.css</code>.<br />
:Restart firefox<br />
</p>
</li>
<li id="remove-left-tabbar-padding-when-not-maximized" class="tip">
[[#remove-left-tabbar-padding-when-not-maximized|Remove left tabbar padding when not maximized]]
<p>
:Go to <code>~/.mozilla/firefox/</code> then open <code>ab1c2d.default</code> or whatever the folder name is.<br />
:Create <code>chrome/userChrome.css</code> if it does not exist.<br />
:Then paste the following CSS into <code>userChrome.css</code>.<br />
:Restart firefox<br />
  <syntaxhighlight lang="css">
.titlebar-placeholder[type="pre-tabs"] {
  display: none;
}
  </syntaxhighlight>
</p>
</p>
</li>
</li>
Line 500: Line 645:
:Note: Uppercase <code>%S</code> will not escape slashes so <code>r kde/new</code> works.<br />
:Note: Uppercase <code>%S</code> will not escape slashes so <code>r kde/new</code> works.<br />
:Note: Use lowercase <code>%s</code> in searches like <code>https://duckduckgo.com/?q=%s</code><br />
:Note: Use lowercase <code>%s</code> in searches like <code>https://duckduckgo.com/?q=%s</code><br />
</p>
</li>
<li id="cleanup-right-click-menu-aka-contextmenu" class="tip">
[[#cleanup-right-click-menu-aka-contextmenu|Cleanup right click menu (aka contextmenu)]]
<p>
:Click on µBlock → Click Settings Icon to open the dashboard<br />
:Uncheck: Make use of context menu where appropriate<br />
:To hide the Firefox default menu items we need to edit the <code>userChrome.css</code> [https://support.mozilla.org/en-US/questions/1177488 as mentioned here].<br />
:Go to <code>~/.mozilla/firefox/</code> then open <code>ab1c2d.default</code> or whatever the folder name is.<br />
:Create <code>chrome/userChrome.css</code> if it does not exist.<br />
:Then paste the following CSS into <code>userChrome.css</code>.<br />
:Restart firefox<br />
  <syntaxhighlight lang="css">
#contentAreaContextMenu #context-openlinkincurrent,
#contentAreaContextMenu #context-openlinkinusercontext-menu,
#contentAreaContextMenu #context-bookmarklink,
#contentAreaContextMenu #context-selectall,
#contentAreaContextMenu #context-sendlinktodevice,
#contentAreaContextMenu #context-sendpagetodevice,
#contentAreaContextMenu #context-sep-sendlinktodevice,
#contentAreaContextMenu #context-sep-sendpagetodevice,
#contentAreaContextMenu #context-viewpartialsource-selection {
  display: none !important;
}
  </syntaxhighlight>
:If you're not a web developer, you can hide "Take a screenshot" by going to <code>about:config</code><br />
:Search for <code>extensions.screenshots.disabled</code> and set it to <code>true</code><br />
</p>
</p>
</li>
</li>
Line 539: Line 656:
</p>
</p>
</li>
</li>
</ul>
<h3><span id="LibreOffice_Writer">[[#LibreOffice_Writer|LibreOffice Writer]]</span></h3>


<ul>
<li id="save-as-docx-by-default" class="tip">
[[#save-as-docx-by-default|Save as .docx by default]]
<p>
:Tools → Options<br />
:Load/Save → General<br />
:Always save as: "Word 2007-2019 (*.docx)"<br />
:<blockquote>[https://help.libreoffice.org/Common/Using_Microsoft_Office_and#Saving_Documents_by_Default_in_Microsoft_Office_Formats LibreOffice wiki]</blockquote>
</p>
</li>
</ul>
</ul>


<h3><span id="LibreOffice_Calc">[[#LibreOffice_Calc|LibreOffice Calc]]</span></h3>
<h3><span id="Firefox_(userChrome.css)">[[#Firefox_(userChrome.css)|Firefox (<code>userChrome.css</code>)]]</span></h3>


<ul>
A firefox user can change the look of the browser by editing a css file.
<li id="set-default-font-size-family-cellpadding" class="tip">
Checkout [https://www.reddit.com/r/FirefoxCSS/ /r/FirefoxCSS/] for help.
[[#set-default-font-size-family-cellpadding|Set Default Font Size/Family/CellPadding]]
<p>
:Styles → Manage Styles<br />
:Right click Default → Modify<br />
:Font → Family: Noto Sans (Office uses Carlito/Calibri)<br />
:Font → Size: 12 (Office uses 11)<br />
:Borders → Padding: 1.00mm<br />
:Ok<br />
:File → Templates → Save As Template<br />
:Name: Default<br />
:Category: My Templates<br />
:Check "Set as default template"<br />
</p>
</li>
</ul>


<h3><span id="Steam">[[#Steam|Steam]]</span></h3>
1. In FireFox v69 and later, we need to go to <code>about:config</code> and change <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> to <code>true</code>.
2. Then navigate to <code>~/.mozilla/firefox/</code>, inside will be a randomly generated folder similar to <code>abcdef12.default</code> which you should enter.
3. Inside the "default" folder, create a new folder called <code>chrome</code>, then create a file called <code>userChrome.css</code>.
4. You can now edit <code>~/.mozilla/firefox/abcdef12.default/chrome/userChrome.css</code>, and changes will be applied upon restarting Firefox.


<ul>
<ul>
<li id="hide-big-picture-etc-in-the-system-tray-context-menu" class="tip">
[[#hide-big-picture-etc-in-the-system-tray-context-menu|Hide “Big Picture”, etc in the System Tray Context Menu]]
<p>
:Steam → Settings → Interface Tab<br />
:Set Taskbar Preferences → Only Check: Library, Friends, Exit Steam<br />
</p>
</li>


<li id="cleanup-friends-list" class="tip">
<li id="show-bookmarks-toolbar-only-on-new-tab-page" class="tip">
[[#cleanup-friends-list|Cleanup Friends List]]
[[#show-bookmarks-toolbar-only-on-new-tab-page|Show bookmarks toolbar only on New Tab page]]
<p>
<p>
:Steam Friends → View Friends List<br />
:Customize<br />
:Click on the Cog / Settings Icon<br />
:Toolbars → Check: Bookmarks Toolbar<br />
:Ignore 'Away' status when sorting friends: On<br />
:Then paste [https://github.com/Timvde/UserChrome-Tweaks/blob/master/toolbars/show-bookmarks-only-on-newtab.css the following CSS] into <code>userChrome.css</code> ([[#Firefox_.28userChrome.css.29|instructions]]).<br />
:Compact Favorites Area: On<br />
:Restart firefox<br />
:Compact Friends List: On<br />
:Append nickname to friend's name: On<br />
:Hide offline friends in custom categories: On<br />
</p>
</p>
</li>
</li>


<li id="hide-friend-is-playing-notifications" class="tip">
<li id="remove-left-tabbar-padding-when-not-maximized" class="tip">
[[#hide-friend-is-playing-notifications|Hide “Friend is playing ____” Notifications]]
[[#remove-left-tabbar-padding-when-not-maximized|Remove left tabbar padding when not maximized]]
<p>
<p>
:Steam → Friends → View Friends List<br />
:Then paste the following CSS into <code>userChrome.css</code> ([[#Firefox_.28userChrome.css.29|instructions]]) and restart firefox.<br />
:Click on the Cog / Settings Icon<br />
  <syntaxhighlight lang="css">
:Notifications → Uncheck: When friend joins a game<br />
.titlebar-placeholder[type="pre-tabs"] {
:Notifications → Uncheck: When comes online<br />
  display: none;
}
  </syntaxhighlight>
</p>
</p>
</li>
</li>


<li id="never-show-advertisement-popups" class="tip">
<li id="cleanup-right-click-menu-aka-contextmenu" class="tip">
[[#never-show-advertisement-popups|Never Show Advertisement Popups]]
[[#cleanup-right-click-menu-aka-contextmenu|Cleanup right click menu (aka contextmenu)]]
<p>
<p>
:Steam → Settings → Interface Tab<br />
:Click on µBlock Click Settings Icon to open the dashboard<br />
:Uncheck: Notify me about additions to my games and other releases<br />
:Uncheck: Make use of context menu where appropriate<br />
</p>
:To hide the Firefox default menu items we need to edit the <code>userChrome.css</code> [https://support.mozilla.org/en-US/questions/1177488 as mentioned here].<br />
</li>
:Then paste the following CSS into <code>userChrome.css</code> ([[#Firefox_.28userChrome.css.29|instructions]]) and restart firefox.<br />
 
   <syntaxhighlight lang="css">
<li id="startup-in-tray" class="tip">
#contentAreaContextMenu #context-openlinkincurrent,
[[#startup-in-tray|Startup in Tray]]
#contentAreaContextMenu #context-openlinkinusercontext-menu,
<p>
#contentAreaContextMenu #context-bookmarklink,
:Find Steam in the App Launcher widget<br />
#contentAreaContextMenu #context-selectall,
:Right Click Steam → Edit Application<br />
#contentAreaContextMenu #context-sendlinktodevice,
:Application Tab → Command: <code>/usr/bin/steam -silent %U</code><br />
#contentAreaContextMenu #context-sendpagetodevice,
:If you added Steam to the autostarted apps, you will need to edit the command there as well.<br />
#contentAreaContextMenu #context-sep-sendlinktodevice,
:Relevant [https://github.com/ValveSoftware/steam-for-linux/issues/5806 bug report].<br />
#contentAreaContextMenu #context-sep-sendpagetodevice,
</p>
#contentAreaContextMenu #context-viewpartialsource-selection {
</li>
  display: none !important;
 
}
<li id="close-steam-to-tray" class="tip">
  </syntaxhighlight>
[[#close-steam-to-tray|Close Steam to Tray]]
:If you're not a web developer, you can hide "Take a screenshot" by going to <code>about:config</code><br />
<p>
:Search for <code>extensions.screenshots.disabled</code> and set it to <code>true</code><br />
:We need to launch steam using <code>STEAM_FRAME_FORCE_CLOSE=1 steam</code> as mentioned in [https://github.com/ValveSoftware/steam-for-linux/issues/5806 this bug report], but editing every single game shortcut that Steam generates is a hassel. So we'll set a [https://userbase.kde.org/Session_Environment_Variables/en session environment variable] by adding <code>export STEAM_FRAME_FORCE_CLOSE=1</code> to <code>~/.config/plasma-workspace/env/path.sh</code>. It's easier to run this commands:<br />
   <syntaxhighlight lang="bash">echo 'export STEAM_FRAME_FORCE_CLOSE=1' >> ~/.config/plasma-workspace/env/path.sh</syntaxhighlight>
:Then logout and back in so that your "panel" is launched with the session variable so that it can pass it to Steam when Steam is launched from the app launcher or desktop shortcut.<br />
</p>
</li>
</ul>
 
<h3><span id="Clementine">[[#Clementine|Clementine]]</span></h3>
 
<ul>
<li id="clean-up-ui" class="tip">
[[#clean-up-ui|Clean up UI]]
<p>
:Tools → Preferences<br />
:Playback Tab → Uncheck: Show a glowing animation on the current track<br />
:Search Tab → Uncheck: DigitallyImported, DropBox, Google Drive, Jazz<br />
:Last.fm Tab → Uncheck: Show the “love” amd “ban” buttons<br />
:Last.fm Tab → Uncheck: Show the scrobble button<br />
</p>
</li>
 
<li id="dont-fade-between-songs" class="tip">
[[#dont-fade-between-songs|Don’t fade between songs]]
<p>
:Playback Tab → Uncheck: Fade out when stopping a track<br />
:Playback Tab → Uncheck: Cross-fade when changing tracks manually<br />
</p>
</li>
 
<li id="double-click-song-should-play-song-now" class="tip">
[[#double-click-song-should-play-song-now|Double Click song should play song now]]
<p>
:Behaviour → Using the menu to add a song will: Always start playing<br />
:Behaviour → Double clicking a song will: Replace the playlist + Always start playing<br />
</p>
</p>
</li>
</li>
</ul>
<h3><span id="Gtk_Apps_(Gimp/Hexchat/etc)">[[#Gtk_Apps_(Gimp/Hexchat/etc)|Gtk Apps (Gimp/Hexchat/etc)]]</span></h3>


<ul>
<li id="fix-white-text-on-white-background-tooltips" class="tip">
[[#fix-white-text-on-white-background-tooltips|Fix white text on white background tooltips]]
<p>
:System Settings → Colors<br />
:Uncheck: Apply colors to non-Qt applications<br />
</p>
</li>
</ul>
<h3><span id="VirtualBox">[[#VirtualBox|VirtualBox]]</span></h3>
<ul>
<li id="prevent-windows-meta-key-from-opening-the-host-app-menu" class="tip">
[[#prevent-windows-meta-key-from-opening-the-host-app-menu|Prevent Windows/Meta Key from opening the host App Menu]]
<p>
:Run the Virtual Machine.<br />
:Press the host key (Right <keycap>Ctrl</keycap>)<br />
:Press <keycap>Alt+F3</keycap> → More Actions → Special Application Settings<br />
:Window Matching Tab → Window class: [<code>Exact Match</code>] <code>virtualbox machine</code><br />
:Appearances & Fixes Tab → Check "Ignore Global Shortcuts"<br />
:Change "Do Not Affect" to "Force", then select "Yes".<br />
:<blockquote>Note that this also disables Spectable's screenshot global shortcuts while the VM window is focused.</blockquote>
</p>
</li>
</ul>
</ul>


-----
-----


Note that this list is manually kept in sync with https://zren.github.io/kde/#configuration using [https://github.com/Zren/zren.github.io/blob/master/kde_tips_convert.py this script]. — [https://phabricator.kde.org/p/Zren/ Zren]
Note that this list is manually kept in sync with https://zren.github.io/kde/#configuration using [https://github.com/Zren/zren.github.io/tree/master/kde_tips this script]. — [https://phabricator.kde.org/p/Zren/ Zren]

Revision as of 15:01, 1 November 2019

This page aims to list common tweaks a user might make to setup a nice KDE Plasma5 desktop.


Autostarted Apps

Desktop

  • Hide the ☰ button in the top corner

    Right Click the desktop wallpaper → Desktop/Folder View Settings
    Tweaks Tab → Uncheck: Show the desktop toolbox

  • Hide the ☰ button in the panel on the bottom right

    Right Click the ☰ button → Lock Widgets.

  • Always Hide System Tray Notification Icons

    Right Click the “Expand System Tray Triangle” → System Tray Settings.
    Entries Tab → Networks → Visibility: Hidden

  • Disable Icon in System Tray

    Right Click the “Expand System Tray Triangle” → System Tray Settings.
    General Tab → Extra Items → Uncheck: Clipboard, Battery

  • Classic “Start” Menu

    While the widgets are unlocked
    Right Click the “Start” menu → Alternatives → Application Menu

  • Don’t sort windows in Taskbar

    Right Click a Task → Task Manager Settings
    General Tab → Sorting: Manual
    General Tab → Uncheck: Keep Launchers Separate

  • Hide windows from other Desktops in Taskbar

    Right Click a Task → Task Manager Settings
    General Tab → Filters → Check: Current Desktop

  • Pin Apps to Taskbar

    Launch App
    Right Click app in Taskbar → Check: Show Launcher When Not Running

  • Hide audio indicator in window list

    Right Click a Task → Task Manager Settings
    General Tab → Uncheck: Mark applications that play audio

  • Disable Top Left “Hot Corner”

    System Settings → Desktop Behaviour
    Screen Edges Tab → Top Left: No Action

  • Bind Ctrl+Alt+Left/Right to Switch Desktop

    System Settings → Desktop Behaviour
    Virtual Desktops Tab → Switching → Shortcuts
    Switch One Desktop Left: Ctrl+Alt+Left
    Switch One Desktop Right: Ctrl+Alt+Right
    Switch To Desktop 1, 2, …: None

  • Disable Switch Desktop when scrolling over desktop wallpaper

    Right Click the desktop wallpaper → Desktop/Folder View Settings
    Mouse Actions Tab → Remove: Vertical Scroll → Switch Desktop

  • Disable bouncing cursor when apps open

    System Settings → Applications
    Change "Bouncing" Cursor to "No Feedback"

  • Disable focus stealing prevention

    System Settings → Window Management
    Window Behaviour Tab → Focus Stealing Prevention: None

  • Fix Alt+Click in certain games/software

    Alt+Click+Drag is a standard keybinding for moving a window in Linux. It tends to conflict with software designed for Windows like Games. To fix, we'll change it to Meta+Click+Drag.
    System Settings → Window Management
    Window Actions Tab → Inner Window, Titlebar, Frame → Modifier Key: Meta
    OR set Left button: "Nothing" to disable it completely.

  • “Normal” Alt+Tab popup

    System Settings → Window Management
    Task Switcher Tab → Click the "star icon"
    Install "Thumbnail Grid", then close the installer window.
    Select "Thumbnail Grid" in the dropdown.

  • Show Alt+Tab popup as fast as possible

    Normally it will wait 90 milliseconds before trying to show the popup. This makes quick switches faster since it doesn't need to draw anything.
    We need to set DelayTime=0 under the group [TabBox] in the file ~/.config/kwinrc, then reload kwin.
    It's easier to use these commmands than doing it by hand.
    kwriteconfig5 --file ~/.config/kwinrc --group TabBox --key DelayTime 0
    qdbus org.kde.KWin /KWin reconfigure
    

  • Disable Lock Screen

    System Settings → Desktop Behaviour → Screen Locking Tab
    Uncheck: Lock screen automatically after __ min
    Uncheck: Lock screen on resume

  • Disable Logout/Shutdown Confirmation

    System Settings → Startup and Shutdown
    Desktop Session Tab → Uncheck: Confirm Logout

  • Windows Keybindings for moving windows

    System Settings → Shortcuts → Global Keyboard Shortcuts Tab
    KWin → Show Desktop: Win+M
    KWin → Maximize Window: Win+Up
    KWin → Minimize Window: Win+Down
    KWin → Quick Tile Window to the Left: Win+Left
    KWin → Quick Tile Window to the Right: Win+Right
    To open the “Start Menu” with the Windows key see the section below.

  • Present all windows with Win+Tab

    System Settings → Desktop Behavior
    Desktop Effects Tab → Check Present Windows
    Click the Gear Icon → Change the Ctrl+F10 shortcut to Meta+Tab
    Layout mode: "Natural" → "Flexible Grid"

  • Hide titlebars when maximized (like Ubuntu)

    We need to set BorderlessMaximizedWindows=true under the group [Windows] in the file ~/.config/kwinrc, then reload kwin.
    It's easier to use these commmands than doing it by hand.
    kwriteconfig5 --file ~/.config/kwinrc --group Windows --key BorderlessMaximizedWindows true
    qdbus org.kde.KWin /KWin reconfigure
    

Windows/Meta Key

  • Open “Start Menu” with Windows/Meta key

    Feature has been added by default since Plasma 5.8.
    If it's not working, make sure your "Start Menu" widget has a global shortcut like Alt+F1 set (you can't assign it directly to Meta, but it will open with Meta if another shortcut is assigned).
    Right Click the KDE Icon → Application Menu Settings
    Keyboard Shortcuts Tab → Shortcut: Alt+F1
    Latte Dock
    If you're using Latte Dock, you will need to run the following commands mentioned in it's Wiki.
    kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
    qdbus org.kde.KWin /KWin reconfigure
    
    If you wish to revert what the Meta key opens because you changed it to open KRunner or a Latte Dock widget, run the following:
    kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu"
    qdbus org.kde.KWin /KWin reconfigure
    

  • Do not open the "Start Menu" with Windows/Meta key

    We need to set Meta= under the group [ModifierOnlyShortcuts] in the file ~/.config/kwinrc, then reload kwin.
    It's easier to use these commmands than doing it by hand.
    kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta ""
    qdbus org.kde.KWin /KWin reconfigure
    

  • Open KRunner with Windows/Meta key

    We need to set Meta= under the group [ModifierOnlyShortcuts] in the file ~/.config/kwinrc, then reload kwin.
    It's easier to use these commmands than doing it by hand.
    kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/krunner,org.kde.kglobalaccel.Component,invokeShortcut,run command"
    qdbus org.kde.KWin /KWin reconfigure
    

Login Screen (SDDM) / Lock Screen

  • Change Login Screen Wallpaper

    System Settings → Startup and Shutdown
    Login Screen (SDDM) Tab → Background → Load From File
    We should also change the lock screen.
    System Settings → Desktop Bahviour
    Screen Locking Tab → Wallpaper → Wallpaper Type: Image

Dolphin (File Manager)

  • Double Click to open files

    Plasma 5.13
    System Settings → Desktop Behavior → Workspace
    Click Behavior: Double Click to open files and folders
    <= Plasma 5.12
    System Settings → Input Devices
    Mouse Tab → Icons: Double Click to open files and folders

  • Always Show Hidden Files

    ☰ Control → Adjust View Properties
    Check: Show hidden files
    Apply view properties to: All Folders
    Check: Use these view properties as default

  • Browse (.zip / .tar.gz / .rar) with Dolphin

    ☰ Control → Configure Dolphin
    Navigation Tab → Check: Open archives as folder

  • Clean up Context Menu (Right Click Menu)

    ☰ Control → Configure Dolphin
    Services Tab → Uncheck: “Copy To”, “Delete”, “File to activity”, “Send as Email”, “Send to IM”, “Send via Bluetooth”, “Send via KDE Connect”

  • Show Terminal Panel

    ☰ Control → Panels → Terminal (F4)

  • Paste into Terminal Panel

    ☰ Control → Configure Shortcuts
    Paste → Set Alternative (Defaulted to Shift+Insert) as “None”

LibreOffice Writer

LibreOffice Calc

  • Set Default Font Size/Family/CellPadding

    Styles → Manage Styles
    Right click Default → Modify
    Font → Family: Noto Sans (Office uses Carlito/Calibri)
    Font → Size: 12 (Office uses 11)
    Borders → Padding: 1.00mm
    Ok
    File → Templates → Save As Template
    Name: Default
    Category: My Templates
    Check "Set as default template"

Steam

  • Hide “Big Picture”, etc in the System Tray Context Menu

    Steam → Settings → Interface Tab
    Set Taskbar Preferences → Only Check: Library, Friends, Exit Steam

  • Cleanup Friends List

    Steam → Friends → View Friends List
    Click on the Cog / Settings Icon
    Ignore 'Away' status when sorting friends: On
    Compact Favorites Area: On
    Compact Friends List: On
    Append nickname to friend's name: On
    Hide offline friends in custom categories: On

  • Hide “Friend is playing ____” Notifications

    Steam → Friends → View Friends List
    Click on the Cog / Settings Icon
    Notifications → Uncheck: When friend joins a game
    Notifications → Uncheck: When comes online

  • Never Show Advertisement Popups

    Steam → Settings → Interface Tab
    Uncheck: Notify me about additions to my games and other releases

  • Startup in Tray

    Find Steam in the App Launcher widget
    Right Click Steam → Edit Application
    Application Tab → Command: /usr/bin/steam -silent %U
    If you added Steam to the autostarted apps, you will need to edit the command there as well.
    Relevant bug report.

  • Close Steam to Tray

    We need to launch steam using STEAM_FRAME_FORCE_CLOSE=1 steam as mentioned in this bug report, but editing every single game shortcut that Steam generates is a hassel. So we'll set a session environment variable by adding export STEAM_FRAME_FORCE_CLOSE=1 to ~/.config/plasma-workspace/env/path.sh. It's easier to run this commands:
    echo 'export STEAM_FRAME_FORCE_CLOSE=1' >> ~/.config/plasma-workspace/env/path.sh
    
    Then logout and back in so that your "panel" is launched with the session variable so that it can pass it to Steam when Steam is launched from the app launcher or desktop shortcut.

Clementine

  • Clean up UI

    Tools → Preferences
    Playback Tab → Uncheck: Show a glowing animation on the current track
    Search Tab → Uncheck: DigitallyImported, DropBox, Google Drive, Jazz
    Last.fm Tab → Uncheck: Show the “love” amd “ban” buttons
    Last.fm Tab → Uncheck: Show the scrobble button

  • Don’t fade between songs

    Playback Tab → Uncheck: Fade out when stopping a track
    Playback Tab → Uncheck: Cross-fade when changing tracks manually

  • Double Click song should play song now

    Behaviour → Using the menu to add a song will: Always start playing
    Behaviour → Double clicking a song will: Replace the playlist + Always start playing

Gtk Apps (Gimp/Hexchat/etc)

VirtualBox

  • Prevent Windows/Meta Key from opening the host App Menu

    Run the Virtual Machine.
    Press the host key (Right Ctrl)
    Press Alt+F3 → More Actions → Special Application Settings
    Window Matching Tab → Window class: [Exact Match] virtualbox machine
    Appearances & Fixes Tab → Check "Ignore Global Shortcuts"
    Change "Do Not Affect" to "Force", then select "Yes".

    Note that this also disables Spectable's screenshot global shortcuts while the VM window is focused.

Chrome

  • Overlay tabs on top of the title bar

    Button → Settings
    Appearance → Uncheck: Use system title bar and borders

  • Match Titlebar with Desktop Theme

    Breeze
    Breeze Dark: Chrome Theme

  • Enable Hardware Acceleration

    If you notice tearing while playing video, check chrome://gpu and see if it says hardware acceleration is unavailable. It's very likely that it's just that chrome doesn't recognize that it can use your GPU.

    Original Article

    Go to chrome://flags#ignore-gpu-blacklist, search for "Override software rendering list", enable it and restart Chrome.

  • Don't use native Linux notifications

    Since Chrome v64, Chrome now uses native notifications. If you prefer Chrome's however, you can still use them.
    Go to chrome://flags#enable-native-notifications, search for "Enable native notifications", disable it and restart Chrome.

Firefox

Firefox (userChrome.css)

A firefox user can change the look of the browser by editing a css file. Checkout /r/FirefoxCSS/ for help.

1. In FireFox v69 and later, we need to go to about:config and change toolkit.legacyUserProfileCustomizations.stylesheets to true. 2. Then navigate to ~/.mozilla/firefox/, inside will be a randomly generated folder similar to abcdef12.default which you should enter. 3. Inside the "default" folder, create a new folder called chrome, then create a file called userChrome.css. 4. You can now edit ~/.mozilla/firefox/abcdef12.default/chrome/userChrome.css, and changes will be applied upon restarting Firefox.

  • Show bookmarks toolbar only on New Tab page

    ☰ → Customize
    Toolbars → Check: Bookmarks Toolbar
    Then paste the following CSS into userChrome.css (instructions).
    Restart firefox

  • Remove left tabbar padding when not maximized

    Then paste the following CSS into userChrome.css (instructions) and restart firefox.
    .titlebar-placeholder[type="pre-tabs"] {
      display: none;
    }
    

  • Cleanup right click menu (aka contextmenu)

    Click on µBlock → Click Settings Icon to open the dashboard
    Uncheck: Make use of context menu where appropriate
    To hide the Firefox default menu items we need to edit the userChrome.css as mentioned here.
    Then paste the following CSS into userChrome.css (instructions) and restart firefox.
    #contentAreaContextMenu #context-openlinkincurrent,
    #contentAreaContextMenu #context-openlinkinusercontext-menu,
    #contentAreaContextMenu #context-bookmarklink,
    #contentAreaContextMenu #context-selectall,
    #contentAreaContextMenu #context-sendlinktodevice,
    #contentAreaContextMenu #context-sendpagetodevice,
    #contentAreaContextMenu #context-sep-sendlinktodevice,
    #contentAreaContextMenu #context-sep-sendpagetodevice,
    #contentAreaContextMenu #context-viewpartialsource-selection {
      display: none !important;
    }
    
    If you're not a web developer, you can hide "Take a screenshot" by going to about:config
    Search for extensions.screenshots.disabled and set it to true


Note that this list is manually kept in sync with https://zren.github.io/kde/#configuration using this script. — Zren