alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
sway: fix syntax
author
lassulus
date
10 months ago
(Dec 5, 2025, 1:51 PM CET)
commit
fcfdce05
fcfdce05222d519f171ba7a3798194b19f7f90e9
parent
7b472144
7b472144b4a61ee6b29f6f8a5ab60c124f69a746
+27
-14
1 changed file
Expand all
Collapse all
Unified
Split
2configs
desktops
sway
default.nix
+27
-14
2configs/desktops/sway/default.nix
View file
Reviewed
···
1
1
-
{ pkgs, lib, self, ... }:
1
1
+
{
2
2
+
pkgs,
3
3
+
lib,
4
4
+
self,
5
5
+
...
6
6
+
}:
2
7
let
3
8
4
9
term = "/run/current-system/sw/bin/alacritty";
···
177
182
partOf = [ "sway-session.target" ];
178
183
wantedBy = [ "sway-session.target" ];
179
184
unitConfig = {
180
180
-
ConditionPathExists = "/dev/input/event2";
181
181
-
ConditionPathExists = "/sys/class/input/event2/device/capabilities/ff";
185
185
+
ConditionPathExists = [
186
186
+
"/dev/input/event2"
187
187
+
"/sys/class/input/event2/device/capabilities/ff"
188
188
+
];
182
189
};
183
190
serviceConfig = {
184
191
Type = "simple";
185
185
-
ExecStart = lib.getExe (pkgs.writeShellApplication {
186
186
-
name = "sway-urgent-rumble";
187
187
-
runtimeInputs = [ pkgs.sway pkgs.jq self.packages.${pkgs.system}.gpd-rumble ];
188
188
-
text = ''
189
189
-
swaymsg -t subscribe -m '["window"]' | \
190
190
-
jq --unbuffered -r 'select(.change == "urgent" and .container.urgent == true) | "urgent"' | \
191
191
-
while read -r _; do
192
192
-
gpd-rumble 200 100 &
193
193
-
done
194
194
-
'';
195
195
-
});
192
192
+
ExecStart = lib.getExe (
193
193
+
pkgs.writeShellApplication {
194
194
+
name = "sway-urgent-rumble";
195
195
+
runtimeInputs = [
196
196
+
pkgs.sway
197
197
+
pkgs.jq
198
198
+
self.packages.${pkgs.system}.gpd-rumble
199
199
+
];
200
200
+
text = ''
201
201
+
swaymsg -t subscribe -m '["window"]' | \
202
202
+
jq --unbuffered -r 'select(.change == "urgent" and .container.urgent == true) | "urgent"' | \
203
203
+
while read -r _; do
204
204
+
gpd-rumble 200 100 &
205
205
+
done
206
206
+
'';
207
207
+
}
208
208
+
);
196
209
Restart = "on-failure";
197
210
RestartSec = 1;
198
211
};