Added an option to make HyprPanel compatible with Hyprland tearing. (#243)

* Adding an option to make HyprPanel compatible with Hyprland tearing.

* Added bar to Tearing Compatibility checks
This commit is contained in:
Jas Singh
2024-09-10 00:58:27 -07:00
committed by GitHub
parent 4721b4fbf9
commit af51aa838d
6 changed files with 41 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import { opt, mkOptions } from "lib/option"
import { NetstatIcon, NetstatLabelType, PowerIcon, RateUnit, ResourceLabelType, StorageIcon, UpdatesIcon } from "lib/types/bar";
import { KbIcon, KbLabelType } from "lib/types/customModules/kbLayout";
import { BarButtonStyles, NotificationAnchor, OSDAnchor, OSDOrientation } from "lib/types/options";
import { BarButtonStyles, NotificationAnchor, OSDAnchor, OSDOrientation, WindowLayer } from "lib/types/options";
import { MatugenScheme, MatugenTheme, MatugenVariation } from "lib/types/options";
import { UnitType } from "lib/types/weather";
@@ -130,7 +130,7 @@ const options = mkOptions(OPTIONS, {
bar: {
scaling: opt(100),
floating: opt(false),
layer: opt<"top" | "bottom" | "overlay" | "background">("top"),
layer: opt<WindowLayer>("top"),
margin_top: opt("0.5em"),
opacity: opt(100),
margin_bottom: opt("0em"),
@@ -1067,6 +1067,8 @@ const options = mkOptions(OPTIONS, {
terminal: opt("kitty"),
tear: opt(false),
wallpaper: {
enable: opt(true),
image: opt(""),