feat: dashboard show on hover, media and weather tabs added
C++ / fmt (pull_request) Failing after 6s
C++ / build (pull_request) Failing after 9s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 13s
JS/TS / lint (pull_request) Successful in 8s
Python / static (pull_request) Successful in 30s
Rust / build (pull_request) Successful in 49s
Rust / fmt (pull_request) Successful in 26s
Python / verify (pull_request) Successful in 1m44s
Rust / clippy (pull_request) Successful in 44s
C++ / fmt (pull_request) Failing after 6s
C++ / build (pull_request) Failing after 9s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 13s
JS/TS / lint (pull_request) Successful in 8s
Python / static (pull_request) Successful in 30s
Rust / build (pull_request) Successful in 49s
Rust / fmt (pull_request) Successful in 26s
Python / verify (pull_request) Successful in 1m44s
Rust / clippy (pull_request) Successful in 44s
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import qs.Components
|
||||
import qs.Helpers
|
||||
|
||||
Singleton {
|
||||
function anySidebarOpen(): bool {
|
||||
return states.instances.some(s => s.sidebar);
|
||||
}
|
||||
|
||||
function forActive(): ScreenState {
|
||||
const mon = Hypr.focusedMonitor;
|
||||
for (const s of states.instances)
|
||||
if (Hypr.monitorFor(s.modelData) === mon)
|
||||
return s;
|
||||
return null;
|
||||
}
|
||||
|
||||
function forScreen(screen: ShellScreen): ScreenState {
|
||||
for (const s of states.instances)
|
||||
if (s.modelData === screen)
|
||||
return s;
|
||||
return null;
|
||||
}
|
||||
|
||||
Variants {
|
||||
id: states
|
||||
|
||||
model: Quickshell.screens
|
||||
|
||||
ScreenState {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user