aboutsummaryrefslogtreecommitdiff
path: root/home-manager/homeModules/attachments/hypr-scripts/switch-sink.py
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-12-06 10:30:10 +0300
committerspl3g <spleefer6@yandex.ru>2025-12-06 10:30:10 +0300
commit1986eaa0ce7478d56b63089e83804f254dceb05e (patch)
tree0dfb783f82ddca74f044baa50fd8428db2dbcdde /home-manager/homeModules/attachments/hypr-scripts/switch-sink.py
parentcbe4b83d252102603ae53aac14c3c18c19d2812a (diff)
fix(hypr): fix the bug for long sink numbers
Diffstat (limited to 'home-manager/homeModules/attachments/hypr-scripts/switch-sink.py')
-rwxr-xr-xhome-manager/homeModules/attachments/hypr-scripts/switch-sink.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/home-manager/homeModules/attachments/hypr-scripts/switch-sink.py b/home-manager/homeModules/attachments/hypr-scripts/switch-sink.py
index a043238..aa7eec1 100755
--- a/home-manager/homeModules/attachments/hypr-scripts/switch-sink.py
+++ b/home-manager/homeModules/attachments/hypr-scripts/switch-sink.py
@@ -22,7 +22,7 @@ for line in status_lines[sink_line:]:
nums = line[0]
name = line[1]
end_name = line[1].index('[')
- sink = nums[8:]
+ sink = nums[2:].strip()
if nums[4] == '*':
continue