mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Merge pull request #17 from DarNCelsius/patch-2
Added support for additional window managers
This commit is contained in:
@@ -44,6 +44,18 @@ const FFWMResult* ffCalculateWM(FFinstance* instance)
|
||||
|
||||
if(ffStrbufIgnCaseCompS(&result.processName, "kwin_wayland") == 0 || ffStrbufIgnCaseCompS(&result.processName, "kwin_x11") == 0)
|
||||
ffStrbufSetS(&result.prettyName, "KWin");
|
||||
|
||||
if(ffStrbufIgnCaseCompS(&result.processName, "openbox") == 0)
|
||||
ffStrbufSetS(&result.prettyName, "Openbox");
|
||||
|
||||
if(ffStrbufIgnCaseCompS(&result.processName, "cinnamon") == 0)
|
||||
ffStrbufSetS(&result.prettyName, "Muffin");
|
||||
|
||||
if(ffStrbufIgnCaseCompS(&result.processName, "xfwm4") == 0)
|
||||
ffStrbufSetS(&result.prettyName, "XFCE Window Manager");
|
||||
|
||||
if(ffStrbufIgnCaseCompS(&result.processName, "wayfire") == 0)
|
||||
ffStrbufSetS(&result.prettyName, "Wayfire");
|
||||
|
||||
if(result.prettyName.length > 0)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user