I found this script somewhere, it makes a nice HTML file showing a demo of all your fonts. I made some small tweaks to the script so it works better. Here is a screen shot and the code below. Save it as fonts.sh then chmod +x the file and run it. Will output fonts.html that looks like this
Wednesday, January 08, 2025
Bash script to show demo of all fonts on Linux
Wednesday, November 13, 2024
Linux speakers hum after no audio
Linux (Artix / Arch) is putting my speakers to sleep after a few seconds of no audio activity and the speakers hum because of it. Found the fix on reddit
# echo 0 > /sys/module/snd_hda_intel/parameters/power_save
Friday, November 08, 2024
Set KDE to use X11 instead of Wayland
I use Artix Linux and by default it uses Wayland. Some programs I have don't support that yet so I need to switch to X11 permanently. If you are in KDE you can log out and change the session to X11 but this doesn't "stick" long term. The fix is
- Open KDE start menu
- Search for Login and pick Login Screen (SDDM)
- In the top menu click Behavior
- At the top change it to X11 where it says "Automatically login with session"
- Click Apply
Wednesday, October 30, 2024
KDE Halloween color scheme
Put the color file in the following path then go to Settings > Colors
/home/[username]/.local/share/color-schemes/
Color file here : https://github.com/htx80nerd/kde-halloween-colors/tree/main
Monday, September 30, 2024
KDE System Settings crashes opening
I use KDE Systems Settings often sometimes, especially when changing fonts or color themes I might end up inside of it several times in 1 hr. Sometimes when I open it crashes straight away.
The cause is there is some 'systemsettings' process running in the background. So the fix here is to open a terminal and kill it then try to open again.
$killall systemsettings
Tuesday, August 06, 2024
Geany in dark mode on KDE
This is how to get Geany into light mode using KDE. My KDE is already in light mode so I am unsure why Geany opens in dark mode. Open the KDE menu and go to geany then right click > edit. Then click Applications tab at the top. In the line 'Environmental variables' add this
GTK_THEME=Breeze
Tuesday, July 30, 2024
LibreOffice Writer stuck in dark mode
I was able to force LibreOffice Writer into light mode by editing this line to the libreoffice-writer.desktop file found here
/home/USERNAME/.local/share/applications/
You can see your available theme names here
/usr/share/themes/
Orig :
Exec=libreoffice --writer %U
Edit :
Exec=env GTK_THEME=Breeze libreoffice --writer %U
NOTE THIS HAD TO BE CHANGED ON 2 DIFFERENT LINES
Monday, July 29, 2024
KDE custom keyboard shortcuts using kdotool
For my job I have many windows open across multiple desktops and I often need to get back to a window on a different desktop quickly, or pressing ALT+Tab isnt a good option because I have 5+ windows open.
In KDE system settings search for 'shortcut' then click Add New button > 'Command or Script' and use a command like this
kdotool search --name slack windowactivate
After that click 'add custom shortcut' button and press the keyboard combo you want.