mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 09:36:46 +00:00
quickshell and hyprland additions
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
pragma Singleton
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import qs.services
|
||||
|
||||
Singleton {
|
||||
// Prefer Compositor scales because niri and hyprland have diffrent scaling factors
|
||||
function scaledWidth(ratio) {
|
||||
return Compositor.screenW * ratio / Compositor.screenScale
|
||||
}
|
||||
|
||||
function scaledHeight(ratio) {
|
||||
return Compositor.screenH * ratio / Compositor.screenScale
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user