fix(gaming): add Deadlock window classes and enable stayfocused
- Adds 'project8' and 'citadel' to the games list to correctly match Valve's Deadlock window class. - Enables 'stayfocused' rule in mkGameRules to prevent focus loss.
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
}: let
|
}: let
|
||||||
games = [
|
games = [
|
||||||
"Deadlock"
|
"Deadlock"
|
||||||
|
"project8"
|
||||||
|
"citadel"
|
||||||
];
|
];
|
||||||
|
|
||||||
mkGameRules = selector: [
|
mkGameRules = selector: [
|
||||||
@@ -13,7 +15,7 @@
|
|||||||
"workspace name:gaming, ${selector}"
|
"workspace name:gaming, ${selector}"
|
||||||
"fullscreen, ${selector}"
|
"fullscreen, ${selector}"
|
||||||
"immediate, ${selector}"
|
"immediate, ${selector}"
|
||||||
# "stayfocused, ${selector}"
|
"stayfocused, ${selector}"
|
||||||
];
|
];
|
||||||
|
|
||||||
manualGameRules = lib.flatten (map (
|
manualGameRules = lib.flatten (map (
|
||||||
@@ -75,4 +77,3 @@ in {
|
|||||||
++ manualGameRules;
|
++ manualGameRules;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user