Fixed kwin-get-class countdown timer when starting on 0
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
export def lumen-kwin-get-class [waittimesec: int]: nothing -> string {
|
||||
for $i in $waittimesec..1 {
|
||||
$i | print
|
||||
sleep 1sec
|
||||
if ($waittimesec == 0) {
|
||||
qdbus6 org.kde.KWin /KWin queryWindowInfo
|
||||
} else {
|
||||
for $i in $waittimesec..1 {
|
||||
$i | print
|
||||
sleep 1sec
|
||||
}
|
||||
qdbus6 org.kde.KWin /KWin queryWindowInfo
|
||||
}
|
||||
qdbus6 org.kde.KWin /KWin queryWindowInfo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user