- Notifications
You must be signed in to change notification settings - Fork6
🎮 Steam Icons Fixer - Fix runtime icons of Steam games on Linux.
License
BlueManCZ/SIF
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
SIF is a simple Python script allowing you to fix runtimeicons of Steam games displayed in dock or panel to matchLinux system icon theme.
It aims to be safe, simple and intuitive.
The script must be run by a regularuser and modifies only files in~/.local/share/applications
directory.
I created this script because I find it very frustrating when the gameicons don't fit the selected icon theme.
The script was tested onGnome andKDEwithDash to Dock,Plank,Latte andNumix-Circle,Numix-Square,PapirusandSuru++ icon themes.
Visitwiki/Description.
Make sure you have installed Python modulesPyGObject,requestsandvdf. You can use your package manager or pip3 to install them.
Example (after you clone the respository):pip3 install -r requirements.txt --user
Also make sure you havexdotool installed. It should be available in the official repositories.
After that, all you need to do isclone this repository:
git clone https://github.com/BlueManCZ/SIF.gitcd SIF
Gentoo users may useebuild in theEdgets overlay.
Arch users may usepkgbuild from theAUR.
See./sif.py --help
for all options.
You cancheck which games can be fixed before applying the fix:
./sif.py --icons
or:
./sif.py --pretend
If commands above worked without a problem, you canapply the fix:
./sif.py
If you want toclear previous fixes before applying new ones:
./sif.py --clear
You can also fix only one specific game:
./sif.py --single APP_ID
If you want toremove all changes and restore default icons:
./sif.py --restore
For the fix to work, I need to know WM_CLASS of each individual game.I can create fixes only for games which I have installed and I can gettheir WM_CLASS.
If you want append your game to our database, you have to knowAPP_IDandWM_CLASS of this game.
There are multiple ways, how to get APP_ID of Steam game.
- You can use
./sif.py --games
to get APP_IDs of all installed games. - From thesteamdb.info.
- From thestore.steampowered.com URL address.
Users with xorg can use xprop tool.
- Start your game from Steam library.
- Open new terminal window and run
xprop WM_CLASS
. - Switch to the game window with Alt-Tab and left click with mouse on it.
- Switch back to the terminal and get your WM_CLASS.
Some games have their WM_CLASS missing. In this case you can use a WM_NAME of the game.xprop WM_NAME
Do not contribute Proton games to the database, because they are supported natively.WM_CLASS of each Proton game issteam_app_<APP_ID>
. It is calculated automatically.
You can open anew issue, where you provide APP_ID, WM_CLASS (and your icon theme),and I will add your game to the database as soon as possible.
You can also fork this repository, editdatabase.jsonyourself and create apull request. Please keep the file sorted by APP_ID.
Your contribution is welcome.
About
🎮 Steam Icons Fixer - Fix runtime icons of Steam games on Linux.