aboutsummaryrefslogtreecommitdiffstats
path: root/system/etc
diff options
context:
space:
mode:
authorSpacedio <spacedio@thernusen.net>2026-05-24 21:46:50 -0400
committerSpacedio <spacedio@thernusen.net>2026-05-24 21:46:50 -0400
commitc9631b31a16b18140b7e471193618f5618fd0521 (patch)
treea74a31fba0c3ed81b373adaec85adfd04bb0f0d4 /system/etc
parent7999b9ad79a5aba6b12be73a938c823fc5b329e8 (diff)
downloaddotfiles-c9631b31a16b18140b7e471193618f5618fd0521.tar.gz
Modification of the GPU toggle script. Added udev rules for future polybar integration.
Diffstat (limited to 'system/etc')
-rw-r--r--system/etc/udev/rules.d/99-dgpu-status.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/etc/udev/rules.d/99-dgpu-status.rules b/system/etc/udev/rules.d/99-dgpu-status.rules
new file mode 100644
index 0000000..a5467c6
--- /dev/null
+++ b/system/etc/udev/rules.d/99-dgpu-status.rules
@@ -0,0 +1,2 @@
+ACTION=="remove", SUBSYSTEM=="pci", KERNEL=="0000:57:00.0", RUN+="/usr/local/bin/polybar-gpu-trigger"
+ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:57:00.0", RUN+="/usr/local/bin/polybar-gpu-trigger"