tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
sway: add jellyfin to idle inhibiter list
wiro.world
1 month ago
8b9edc96
5627e12f
verified
This commit was signed with the committer's
known signature
.
wiro.world
SSH Key Fingerprint:
SHA256:SmMcWpNAnL+VAgItSawvXgdPVn7f1rsyAuB/5VNclKY=
+32
-44
1 changed file
expand all
collapse all
unified
split
home-manager
fragments
sway.nix
+32
-44
home-manager/fragments/sway.nix
···
144
144
145
145
window = {
146
146
titlebar = false;
147
147
-
commands = [
148
148
-
# Tag of shame
149
149
-
{
150
150
-
# Equivalent to `[shell="xwayland"] title_format "%title [XWayland]"` but for all other shells
151
151
-
criteria.shell = "^((?!xdg_shell).)*$";
152
152
-
command = ''title_format "%title <small>[%shell]</small>"'';
153
153
-
}
154
154
-
155
155
-
# Toggle floating mode for some specific windows
156
156
-
{
157
157
-
# TODO: Bitwarden window glitches on opening
158
158
-
criteria = {
159
159
-
app_id = "^firefox$";
160
160
-
title = "Bitwarden Password Manager";
161
161
-
};
162
162
-
command = ''floating enable'';
163
163
-
}
164
164
-
{
165
165
-
# Toggles floating for every Unity window but the main one
166
166
-
# Only the main window begins with `Unity - `
167
167
-
criteria = {
168
168
-
title = "^((?!^Unity - ).)*$";
169
169
-
class = "^Unity$";
170
170
-
instance = "^Unity$";
147
147
+
commands =
148
148
+
let
149
149
+
fullscreenAppInhibitIdle = appId: {
150
150
+
criteria.app_id = "^${appId}$";
151
151
+
command = "inhibit_idle fullscreen";
171
152
};
172
172
-
command = ''floating enable'';
173
173
-
}
153
153
+
in
154
154
+
[
155
155
+
# Tag of shame
156
156
+
{
157
157
+
# Equivalent to `[shell="xwayland"] title_format "%title [XWayland]"` but for all other shells
158
158
+
criteria.shell = "^((?!xdg_shell).)*$";
159
159
+
command = ''title_format "%title <small>[%shell]</small>"'';
160
160
+
}
174
161
175
175
-
# Inhibit IDLE when these are fullscreen
176
176
-
{
177
177
-
criteria.app_id = "firefox";
178
178
-
command = "inhibit_idle fullscreen";
179
179
-
}
180
180
-
{
181
181
-
criteria.app_id = "mpv";
182
182
-
command = "inhibit_idle fullscreen";
183
183
-
}
184
184
-
{
185
185
-
criteria.app_id = "spotify";
186
186
-
command = "inhibit_idle fullscreen";
187
187
-
}
188
188
-
{
189
189
-
criteria.app_id = "zen-beta";
190
190
-
command = "inhibit_idle fullscreen";
191
191
-
}
192
192
-
];
162
162
+
# Toggle floating mode for some specific windows
163
163
+
{
164
164
+
# Toggles floating for every Unity window but the main one
165
165
+
# Only the main window begins with `Unity - `
166
166
+
criteria = {
167
167
+
title = "^((?!^Unity - ).)*$";
168
168
+
class = "^Unity$";
169
169
+
instance = "^Unity$";
170
170
+
};
171
171
+
command = ''floating enable'';
172
172
+
}
173
173
+
174
174
+
# Inhibit IDLE when these are fullscreen
175
175
+
(fullscreenAppInhibitIdle "firefox")
176
176
+
(fullscreenAppInhibitIdle "mpv")
177
177
+
(fullscreenAppInhibitIdle "spotify")
178
178
+
(fullscreenAppInhibitIdle "zen-beta")
179
179
+
(fullscreenAppInhibitIdle "org.jellyfin.JellyfinDesktop")
180
180
+
];
193
181
};
194
182
195
183
focus.followMouse = false;