mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-08-04 19:57:22 +02:00
Compare commits
3 Commits
b55dbfcdf8
...
ec688dae70
Author | SHA1 | Date | |
---|---|---|---|
ec688dae70 | |||
698e00d925 | |||
7cff4776d5 |
@ -117,6 +117,7 @@ _{{ page.excerpt }}_
|
|||||||
- Debian: `sudo apt install systemd-zram-generator`
|
- Debian: `sudo apt install systemd-zram-generator`
|
||||||
- To check that it works `zramctl`. May take a while after
|
- To check that it works `zramctl`. May take a while after
|
||||||
`sudo systemctl reload` or a reboot.
|
`sudo systemctl reload` or a reboot.
|
||||||
|
- `inxi` - system information script (and dependencies)
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- `zram-tools` - small compressed swap in RAM
|
- `zram-tools` - small compressed swap in RAM
|
||||||
@ -155,18 +156,31 @@ Just remember to `pipx upgrade-all` occassionally!
|
|||||||
## Fedora Atomic
|
## Fedora Atomic
|
||||||
|
|
||||||
_By which I mean Fedora Kinoite unless otherwise specified._ A system where
|
_By which I mean Fedora Kinoite unless otherwise specified._ A system where
|
||||||
everyone runs the same image, except that as this section shows, I alter it a
|
everyone runs the same image, except that as this section shows, I add to it a
|
||||||
bit...
|
bit...
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Alter base image by adding packages I need on the base system
|
# Layer packages I need on top of the base image.
|
||||||
sudo rpm-ostree install btop clang darkman duperemove gamescope git-lfs gnome-console htop mosh mpv neovim pipx pre-commit sshguard steam-devices symlinks syncthing terminus-fonts-console tmux tor unbound zsh
|
sudo rpm-ostree install btop clang darkman duperemove gamescope git-lfs gnome-console htop inxi mosh mpv neovim pipx pre-commit sshguard steam-devices symlinks syncthing terminus-fonts-console tmux tor unbound zsh
|
||||||
# Delete kernel boot arguments that would display boot splash screen and hide verbose kernel messages
|
# Disable bootscreen, ensure CPU vulnerability mitigation, enable lockdown
|
||||||
sudo rpm-ostree kargs --delete=rhgb --delete=quiet
|
# mode. REMEMBER! lockdown is incompatible with unsigned additional
|
||||||
# Add kernel boot arguments for stricter lockdown mode and CPU vulnerability mitigation
|
# kernel modules
|
||||||
sudo rpm-ostree kargs --append=lockdown=confidentiality --append=mitigations=auto,nosmt
|
sudo rpm-ostree kargs --delete=rhgb --delete=quiet --append=mitigations=auto,nosmt --append=lockdown=confidentiality
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Consider also adding
|
||||||
|
[RPMFusion through their OSTree instructions](https://rpmfusion.org/Howto/OSTree).
|
||||||
|
The _Major releases_ uninstalling and installing is especially important so it
|
||||||
|
switches from local package to layered package, which also affects all other
|
||||||
|
third party repositories such as `google-chrome-stable` if it was added. While
|
||||||
|
there is repository breakage risk stopping system upgrades, at least it will
|
||||||
|
upgrade itself as opposed to errorring about being a local not upgraded package
|
||||||
|
in the future.
|
||||||
|
|
||||||
|
Why RPMFusion? At least `Broadcom BCM43142` wireless NIC requires
|
||||||
|
`sudo rpm-ostree install akmod-wl kernel-devel` from `rpmfusion-nonfree` and
|
||||||
|
there are likely other such devices/drivers as well.
|
||||||
|
|
||||||
### Flatpaks
|
### Flatpaks
|
||||||
|
|
||||||
These also affect non-Fedora-Kinoite for which my first production installation
|
These also affect non-Fedora-Kinoite for which my first production installation
|
||||||
|
123
n/kwin.md
Normal file
123
n/kwin.md
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
---
|
||||||
|
title: Useful KDE window rules
|
||||||
|
excerpt:
|
||||||
|
KDE Window rules (kwin?) are very helpful when windows just don't align to
|
||||||
|
your wishes, especially on small displays like Steam Deck or when your games
|
||||||
|
launch positioned wrong or your gamescope fullscreen flag just gets ignored.
|
||||||
|
layout: mini
|
||||||
|
permalink: /n/kwin.html
|
||||||
|
redirect_from:
|
||||||
|
- n/windowrules.html
|
||||||
|
- n/kdewindowrules.html
|
||||||
|
sitemap: true
|
||||||
|
lang: en
|
||||||
|
robots: noai
|
||||||
|
---
|
||||||
|
|
||||||
|
_{{ page.excerpt }}_
|
||||||
|
|
||||||
|
First step is opening `LC_ALL=C.UTF-8 systemsettings`, scrolling down to
|
||||||
|
`Apps & Windows` where there is `Window Management` which opens a sidebar with
|
||||||
|
`Window Rules`.
|
||||||
|
|
||||||
|
Alternatively one can just second click any titlebar, choose more actions and
|
||||||
|
select either `Window specific special settings` or
|
||||||
|
`App specific special settings` (backtranslated from Finnish).
|
||||||
|
|
||||||
|
<!-- editorconfig-checker-disable -->
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
|
||||||
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||||
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||||
|
<em lang="fi">Automaattinen sisällysluettelo</em> / <em lang="en">Automatically generated Table of Contents</em>
|
||||||
|
|
||||||
|
- [Gamescope](#gamescope)
|
||||||
|
- [All apps](#all-apps)
|
||||||
|
- [FanFicFare](#fanficfare)
|
||||||
|
- [GNOME Console](#gnome-console)
|
||||||
|
|
||||||
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||||
|
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
<!-- editorconfig-checker-enable -->
|
||||||
|
|
||||||
|
## Gamescope
|
||||||
|
|
||||||
|
My first papercut that I thought for a longer time on Fedora Kinoite (instead of
|
||||||
|
SteamOS) on Steam Deck was that my games with Heroic Launcher were focusing
|
||||||
|
wrong, partially across the screen. A few times I just double clicked the
|
||||||
|
titlebar to maximize it, but then I realized I can right click the window,
|
||||||
|
select the more actions and make rules for the window. Of course the add rule
|
||||||
|
from `systemsettings` would work too.
|
||||||
|
|
||||||
|
- Description: `settings for gamescope`
|
||||||
|
- Windows class (application): `Exact match`: `gamescope`
|
||||||
|
- Match whole window class: `Yes`
|
||||||
|
- Window types: `All selected`
|
||||||
|
- _Add Property_, _Size & Position_:
|
||||||
|
- Initial placement: `Force` `Maximized`
|
||||||
|
- _Originally I went just with this, but then I realized that I can fix
|
||||||
|
gamescope ignoring `--fullscreen` flag with the next property:_
|
||||||
|
- _Add Property_, _Size & Position_:
|
||||||
|
- `Fullscreen`: `Apply initially` `Yes`
|
||||||
|
|
||||||
|
## All apps
|
||||||
|
|
||||||
|
My Steam Deck has a small display and I generally use it docked to TV, so why
|
||||||
|
not maximize everything by another rule?
|
||||||
|
|
||||||
|
- Description: `everything?`
|
||||||
|
- Windows class (application): `Unimportant`: ``
|
||||||
|
- Match whole window class: `Yes`
|
||||||
|
- Window types: `Normal window`
|
||||||
|
- _Add Property,_ _Size & Position_
|
||||||
|
- Initial placement: `Force` `Maximized`
|
||||||
|
|
||||||
|
And there is one papercut less on enjoying Fedora Kinoite on Steam Deck. I think
|
||||||
|
this would also work with SteamOS, but that launches to game mode aka big
|
||||||
|
display mode anyway, so it's unnecessary.
|
||||||
|
|
||||||
|
Offtopic lifehack:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p ~/.config/autostart/
|
||||||
|
ln -nsfv /var/lib/flatpak/exports/share/applications/com.heroicgameslauncher.hgl.desktop ~/.config/autostart/
|
||||||
|
ln -nsfv /var/lib/flatpak/exports/share/applications/com.valvesoftware.Steam.desktop ~/.config/autostart/
|
||||||
|
```
|
||||||
|
|
||||||
|
Next login you will autostart Heroic Games and Steam. I suggest visiting Heroic
|
||||||
|
Games settings to start minimized so it will background update games and Steam
|
||||||
|
settings to start in big picture mode, so you will have Steam Deck like
|
||||||
|
experience even without SteamOS.
|
||||||
|
|
||||||
|
With Heroic Games your mileage may vary as some games want minimizing Steam for
|
||||||
|
controller to work, others want Steam to be quit.
|
||||||
|
|
||||||
|
## FanFicFare
|
||||||
|
|
||||||
|
Funnily this is the first window rule I remember making on my main laptop
|
||||||
|
regarding FFF's browser cache feature.
|
||||||
|
|
||||||
|
- Description: `Calibre FFF on top`
|
||||||
|
- Windows class (application): `Unimportant`: ``
|
||||||
|
- Match whole window class: `Yes`
|
||||||
|
- Window types: `Normal window`
|
||||||
|
- _Add Property_
|
||||||
|
- Window title: `Exact match`: `Downloading metadata for stories`
|
||||||
|
- _Add Property_, _Arrangement & Access_
|
||||||
|
- Keep above other windows: `Force` `Yes`
|
||||||
|
|
||||||
|
## GNOME Console
|
||||||
|
|
||||||
|
I don't remember making these settings, but they seem to be working?
|
||||||
|
|
||||||
|
- Description: `Preferences for org.gnome.Console`
|
||||||
|
- Windows class (application): `Exact match`: `kgx org.gnome.Console`
|
||||||
|
- Match whole window class: `Yes`
|
||||||
|
- Window types: `All selected`
|
||||||
|
- _Add Property_ _Size & Position_
|
||||||
|
- Position: `Apply initially`: `768` x `432`
|
||||||
|
- _Add Property_, _Size & Position_
|
||||||
|
- Size: `Apply initially`: `768` x `432`
|
||||||
|
|
||||||
|
And my GNOME Console aka `kgx` launches on bottom right of the display.
|
Loading…
x
Reference in New Issue
Block a user