Plasma/Tips: Difference between revisions
m (Mention bookmarks toolbar on newtab doesn't work anymore. Fix anchor link to heading.) |
(firefox autoscrolling + firefox toolbar on hover) |
||
Line 558: | Line 558: | ||
:;<b>[https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/ Privacy Badger]</b><br /> | :;<b>[https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/ Privacy Badger]</b><br /> | ||
</p> | |||
</li> | |||
<li id="enable-middle-click-autoscroll" class="tip"> | |||
[[#enable-middle-click-autoscroll|Enable Middle Click AutoScroll]] | |||
<p> | |||
:☰ → Preferences → General<br /> | |||
:Browsing → Check: Use autoscrolling<br /> | |||
</p> | </p> | ||
</li> | </li> | ||
Line 672: | Line 680: | ||
<ul> | <ul> | ||
<li id="show-bookmarks-toolbar-only-on- | <li id="show-bookmarks-toolbar-only-on-hover" class="tip"> | ||
[[#show-bookmarks-toolbar-only-on- | [[#show-bookmarks-toolbar-only-on-hover|Show bookmarks toolbar only on hover]] | ||
<p> | <p> | ||
:☰ → Customize<br /> | :☰ → Customize<br /> | ||
:Toolbars → Check: Bookmarks Toolbar<br /> | :Toolbars → Check: Bookmarks Toolbar<br /> | ||
:Then paste | :Then paste the following CSS into <code>userChrome.css</code> ([[#Firefox_.28userChrome.css.29|instructions]]) and restart firefox.<br /> | ||
: | <syntaxhighlight lang="css"> | ||
#PersonalToolbar { | |||
visibility: collapse !important; | |||
display: block; | |||
position: absolute !important; | |||
z-index: 1; | |||
width: 100%; | |||
} | |||
#nav-bar:focus-within + #PersonalToolbar, | |||
#PersonalToolbar:focus-within, | |||
#PersonalToolbar[customizing="true"], | |||
#navigator-toolbox:hover #PersonalToolbar { | |||
visibility: visible !important; | |||
} | |||
</syntaxhighlight> | |||
</p> | </p> | ||
</li> | </li> |
Revision as of 19:00, 29 February 2020
This page aims to list common tweaks a user might make to setup a nice KDE Plasma5 desktop.
Autostarted Apps
-
Disable restoring session on Login (restarting apps open during Logout)
- System Settings → Startup & Shutdown
- Desktop Session Tab → On Login: Check Start with an empty session
- System Settings → Startup & Shutdown
Desktop
-
Always Hide System Tray Notification Icons
- Right Click the “Expand System Tray Triangle” → System Tray Settings.
- Entries Tab → Networks → Visibility: Hidden
- Right Click the “Expand System Tray Triangle” → System Tray Settings.
-
Disable Icon in System Tray
- Right Click the “Expand System Tray Triangle” → System Tray Settings.
- General Tab → Extra Items → Uncheck: Clipboard, Battery
- Right Click the “Expand System Tray Triangle” → System Tray Settings.
-
Don’t sort windows in Taskbar
- Right Click a Task → Task Manager Settings
- General Tab → Sorting: Manual
- General Tab → Uncheck: Keep Launchers Separate
- Right Click a Task → Task Manager Settings
-
Hide windows from other Desktops in Taskbar
- Right Click a Task → Task Manager Settings
- General Tab → Filters → Check: Current Desktop
- Right Click a Task → Task Manager Settings
-
Pin Apps to Taskbar
- Launch App
- Right Click app in Taskbar → Check: Show Launcher When Not Running
- Launch App
-
Hide audio indicator in window list
- Right Click a Task → Task Manager Settings
- General Tab → Uncheck: Mark applications that play audio
- Right Click a Task → Task Manager Settings
-
Disable Top Left “Hot Corner”
- System Settings → Desktop Behaviour
- Screen Edges Tab → Top Left: No Action
- System Settings → Desktop Behaviour
-
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
- System Settings → Desktop Behaviour
-
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
- Right Click the desktop wallpaper → Desktop/Folder View Settings
-
Disable bouncing cursor when apps open
- System Settings → Applications
- Change "Bouncing" Cursor to "No Feedback"
- System Settings → Applications
-
Disable focus stealing prevention
- System Settings → Window Management
- Window Behaviour Tab → Focus Stealing Prevention: None
- System Settings → Window Management
-
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 toMeta+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.
- System Settings → Window Management
-
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
- 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.
-
Disable Lock Screen
- System Settings → Desktop Behaviour → Screen Locking Tab
- Uncheck: Lock screen automatically after __ min
- Uncheck: Lock screen on resume
- System Settings → Desktop Behaviour → Screen Locking Tab
-
Disable Logout/Shutdown Confirmation
- System Settings → Startup and Shutdown
- Desktop Session Tab → Uncheck: Confirm Logout
- System Settings → Startup and Shutdown
-
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.
- System Settings → Shortcuts → Global Keyboard Shortcuts Tab
-
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"
- System Settings → Desktop Behavior
-
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
- We need to set
Windows/Meta Key
-
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
- We need to set
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
- System Settings → Startup and Shutdown
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.13
- <= Plasma 5.12
- System Settings → Input Devices
- Mouse Tab → Icons: Double Click to open files and folders
- <= Plasma 5.12
-
Browse (.zip / .tar.gz / .rar) with Dolphin
- ☰ Control → Configure Dolphin
- Navigation Tab → Check: Open archives as folder
- ☰ Control → Configure Dolphin
-
Show Terminal Panel
- ☰ Control → Panels → Terminal (F4)
- ☰ Control → Panels → Terminal (F4)
-
Paste into Terminal Panel
- ☰ Control → Configure Shortcuts
- Paste → Set Alternative (Defaulted to Shift+Insert) as “None”
- ☰ Control → Configure Shortcuts
LibreOffice Writer
-
Save as .docx by default
- Tools → Options
- Load/Save → General
- Always save as: "Word 2007-2019 (*.docx)"
- Tools → Options
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"
- Styles → Manage Styles
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
- Steam → Friends → View Friends List
-
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
- Steam → Friends → View Friends List
-
Never Show Advertisement Popups
- Steam → Settings → Interface Tab
- Uncheck: Notify me about additions to my games and other releases
- Steam → Settings → Interface Tab
-
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.
- Find Steam in the App Launcher widget
-
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 addingexport 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.
- We need to launch steam using
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
- Tools → Preferences
-
Don’t fade between songs
- Playback Tab → Uncheck: Fade out when stopping a track
- Playback Tab → Uncheck: Cross-fade when changing tracks manually
- Playback Tab → Uncheck: Fade out when stopping a track
-
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
- Behaviour → Using the menu to add a song will: Always start playing
Gtk Apps (Gimp/Hexchat/etc)
-
Fix white text on white background tooltips
- System Settings → Colors
- Uncheck: Apply colors to non-Qt applications
- System Settings → Colors
VirtualBox
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
- Breeze
-
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. - Go to
chrome://flags#ignore-gpu-blacklist
, search for "Override software rendering list", enable it and restart Chrome.
- If you notice tearing while playing video, check
-
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.
- Since Chrome v64, Chrome now uses native notifications. If you prefer Chrome's however, you can still use them.
Firefox
-
Use the KDE File selector dialog
- Make sure you have the
xdg-desktop-portal
andxdg-desktop-portal-kde
package installed. - Right click the Firefox launcher in the app launcher → Edit Application
- Application tab → Command
GTK_USE_PORTAL=1 /usr/lib/firefox/firefox %u
- Press
Ctrl+Esc
and search to make sure thexdg-desktop-portal-gtk
process is not running. If it is, end allxdg-
processes. - Restart Firefox
- Make sure you have the
-
Install privacy addons
-
Enable Middle Click AutoScroll
- ☰ → Preferences → General
- Browsing → Check: Use autoscrolling
- ☰ → Preferences → General
-
Open New Tab page on startup
- ☰ → Preferences → Home
- Homepage and new windows:
Firefox Home
- OR
Custom Url
withabout:newtab
- ☰ → Preferences → Home
-
Leaner New Tab page
- ☰ → Preferences → Home
- Uncheck: "Web Search"
- Uncheck: "Recommended by Pocket"
- Uncheck: "Highlights"
- Under "Top Sites" change to "4 rows"
- ☰ → Preferences → Home
-
Leaner toolbar area
- ☰ → Customize
- Density → Compact
- Drag the Home button from the toolbar into the main area.
- Drag the rectangle spacers to remove them as well.
- Right click the uBlock Origin icon → "Pin to Overflow Menu"
- Right click the "Save to Pocket" icon → "Remove from Address Bar"
- ☰ → Customize
-
Disable Pocket
- Go to
about:config
- Search for
extensions.pocket.enabled
and set it tofalse
- Go to
-
Disable Ctrl+Tab's recently used order
- Go to
about:config
- Search for
browser.ctrlTab.recentlyUsedOrder
and set it tofalse
- Go to
-
Browse a website as 2nd User without logging out
- Install Mozilla's Multi-Account Containers extension
- Right click the extension's icon in the toolbar → Pin it to the overflow menu.
- You can easily open a new tab in a specific container by clicking and holding the "Open a new tab" button.
- Install Mozilla's Multi-Account Containers extension
-
Quickly browse subreddits using custom search engines
- Create a new Bookmark with:
- Name:
/r/
- URL:
https://www.reddit.com/r/%S
- Keyword:
r
- Now you can type
r kde
to visit /r/kde - Note: Uppercase
%S
will not escape slashes sor kde/new
works. - Note: Use lowercase
%s
in searches likehttps://duckduckgo.com/?q=%s
- Create a new Bookmark with:
-
First click UrlBar selects all + double click selects word
- Go to
about:config
- Search for
browser.urlbar.clickSelectsAll
and set it totrue
- Search for
browser.urlbar.doubleClickSelectsAll
and set it tofalse
- Go to
Firefox (userChrome.css
)
A firefox user can change the look of the browser by editing a css file. Checkout /r/FirefoxCSS/ for help.
- In FireFox v69 and later, we need to go to
about:config
and changetoolkit.legacyUserProfileCustomizations.stylesheets
totrue
. - Then navigate to
~/.mozilla/firefox/
, inside will be a randomly generated folder similar toabcdef12.default
which you should enter. - Inside the "default" folder, create a new folder called
chrome
, then create a file calleduserChrome.css
. - You can now edit
~/.mozilla/firefox/abcdef12.default/chrome/userChrome.css
, and changes will be applied upon restarting Firefox.
-
Show bookmarks toolbar only on hover
- ☰ → Customize
- Toolbars → Check: Bookmarks Toolbar
- Then paste the following CSS into
userChrome.css
(instructions) and restart firefox.
#PersonalToolbar { visibility: collapse !important; display: block; position: absolute !important; z-index: 1; width: 100%; } #nav-bar:focus-within + #PersonalToolbar, #PersonalToolbar:focus-within, #PersonalToolbar[customizing="true"], #navigator-toolbox:hover #PersonalToolbar { visibility: visible !important; }
- ☰ → Customize
-
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; } /* Firefox 64 */ .titlebar-spacer[type="pre-tabs"] { width: 0 !important; } /* Firefox 65+ */
- Then paste the following CSS into
Note that this list is manually kept in sync with https://zren.github.io/kde/#configuration using this script. — Zren