89 lines
2.0 KiB
Markdown
89 lines
2.0 KiB
Markdown
# KDE Notes
|
|
|
|
## Fixing alt tab or taskbar icons
|
|
|
|
1. System Settings - Window Management - Window Rules - Add New...
|
|
2. Bring the buggy app window side-by-side with system settings.
|
|
3. Click "Detect Window Properties..." in the bottom.
|
|
4. Move the crosshair to the buggy window and click.
|
|
5. Click "Window class (application)".
|
|
6. Click "Add Property..." in the bottm left.
|
|
7. Click "Desktop file name".
|
|
8. Enter the base name of the desktop file
|
|
|
|
For flatpak, check `/var/lib/flatpak/exports/share/applications/`
|
|
|
|
For system apps, check `/usr/share/applications/`
|
|
|
|
For user apps, check `~/.local/share/applications/`
|
|
|
|
9. Click "Apply".
|
|
10. The icon should be fixed immediately.
|
|
|
|
## KDE Connect
|
|
|
|
Allow KDE Connect via 1714-1764 tcp/udp
|
|
|
|
```bash
|
|
# Set source address to allow connections
|
|
sudo firewall-cmd \
|
|
--zone=drop \
|
|
--permanent \
|
|
--add-port=1714-1764/udp \
|
|
--add-port=1714-1764/tcp
|
|
|
|
sudo firewall-cmd --reload
|
|
```
|
|
|
|
## Automatic Display Switching
|
|
|
|
```bash
|
|
# List displays
|
|
# Builtin: eDP-2
|
|
# Roku: DP-13
|
|
# Lenovo: DP-11
|
|
kscreen-doctor -o
|
|
|
|
# Put the builtin display back to normal
|
|
kscreen-doctor \
|
|
output.eDP-2.enable \
|
|
output.eDP-2.position.0,0 \
|
|
output.eDP-2.primary \
|
|
output.eDP-2.mode.2560x1600@165 \
|
|
output.eDP-2.scale.1.25
|
|
|
|
# Show on Roku TV and Monitor
|
|
kscreen-doctor \
|
|
output.DP-11.enable \
|
|
output.DP-11.position.0,0 \
|
|
output.DP-11.mode.2560x1440@60 \
|
|
output.DP-11.scale.1 \
|
|
output.DP-13.enable \
|
|
output.DP-13.position.0,0 \
|
|
output.DP-13.mode.2560x1440@100 \
|
|
output.DP-13.scale.1 \
|
|
output.DP-13.primary \
|
|
output.eDP-2.disable
|
|
|
|
# Show only on the roku TV
|
|
kscreen-doctor \
|
|
output.DP-11.enable \
|
|
output.DP-11.position.0,0 \
|
|
output.DP-11.primary \
|
|
output.DP-11.mode.3840x2160@60 \
|
|
output.DP-11.scale.2 \
|
|
output.DP-13.disable \
|
|
output.eDP-2.disable
|
|
|
|
# Mirror the builtin display to the roku tv
|
|
kscreen-doctor \
|
|
output.DP-11.enable \
|
|
output.DP-11.position.0,0 \
|
|
output.DP-11.primary \
|
|
output.DP-11.mode.3840x2160@60 \
|
|
output.DP-11.scale.2 \
|
|
output.eDP-2.enable \
|
|
output.eDP-2.mode.1920x1080@60 \
|
|
output.eDP-2.scale.1 \
|
|
output.eDP-2.position.0,0
|
|
``` |