Skip to content

Instantly share code, notes, and snippets.

View txhammer68's full-sized avatar
🏠
Free from work

Maximus txhammer68

🏠
Free from work
View GitHub Profile
@txhammer68
txhammer68 / kdeWidgetUpdates.md
Last active February 21, 2026 19:41
Auto Update KDE Plasma Widgets/Themes

Auto-Update KDE Plasma Widgets/Themes

  • Thought of a way to auto update KDE Plasma Widgets. I don't use discover to update my system so this seemed a good way of providing an alternate way of delivering updates for plasma widgets/themes. Every widget or plasma theme uses metadata.json to provide info about the widget/theme. In the metadata.json file there is a version key, use this to check for a new version. Put this in your config setup or main.qml so that when the widget first runs it checks for updates, could auto update or prompt user to update. Only tested on github, not sure for gitlab or other platforms
property string updateURL:"https://raw.githubusercontent.com/txhammer68/pirateWeather/refs/heads/main/metadata.json"
property string updateCMD:"git clone https://github.com/TxHammer68/pirateWeather /tmp/pirateWeather/ && kpackagetool6 -t Plasma/Applet -u /tmp/pirateWeather/"
property double currentVersion:Plasmoid.metaData.version
property double updateVersion:0.0
property bool updateAv
@txhammer68
txhammer68 / linux.md
Last active November 12, 2025 20:53
Linux Optimizations

Useful tips for optimizing Linux

System Tuning

Before making changes to your system run these commands and take note of the info, then compare when finished
Check system log for errors or issues, try to resolve those first before proceeding
free -m
sudo hdparm -t --direct /dev/nvme0n1p2
systemd-analyze critical-chain
systemd-analyze --user blame