Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f4d5f54f9a | |||
| a67e3383e8 | |||
| 361b4e7979 | |||
| 7129db4276 | |||
| c022933d16 | |||
| c266665cff | |||
| 262d6404a4 | |||
| c99d8abeac |
@@ -66,6 +66,7 @@ JsonObject {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
property int height: 34
|
property int height: 34
|
||||||
|
property bool hideWhenNotif: false
|
||||||
property Popouts popouts: Popouts {
|
property Popouts popouts: Popouts {
|
||||||
}
|
}
|
||||||
property int rounding: 8
|
property int rounding: 8
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ Singleton {
|
|||||||
function serializeBar(): var {
|
function serializeBar(): var {
|
||||||
return {
|
return {
|
||||||
autoHide: barConfig.autoHide,
|
autoHide: barConfig.autoHide,
|
||||||
|
hideWhenNotif: barConfig.hideWhenNotif,
|
||||||
rounding: barConfig.rounding,
|
rounding: barConfig.rounding,
|
||||||
border: barConfig.border,
|
border: barConfig.border,
|
||||||
height: barConfig.height,
|
height: barConfig.height,
|
||||||
|
|||||||
+1
-1
@@ -129,7 +129,7 @@ Variants {
|
|||||||
Binding {
|
Binding {
|
||||||
property: "bar"
|
property: "bar"
|
||||||
target: visibilities
|
target: visibilities
|
||||||
value: visibilities.sidebar || visibilities.dashboard || visibilities.osd || visibilities.notif || visibilities.resources || visibilities.settings || bar.isHovered
|
value: visibilities.sidebar || visibilities.dashboard || visibilities.osd || (!Config.barConfig.hideWhenNotif && visibilities.notif) || visibilities.resources || visibilities.settings || bar.isHovered
|
||||||
when: Config.barConfig.autoHide
|
when: Config.barConfig.autoHide
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-10
@@ -159,6 +159,7 @@ MouseArea {
|
|||||||
overlay.visible = border.visible = false;
|
overlay.visible = border.visible = false;
|
||||||
screencopy.visible = false;
|
screencopy.visible = false;
|
||||||
screencopy.active = true;
|
screencopy.active = true;
|
||||||
|
saveTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,14 +226,6 @@ MouseArea {
|
|||||||
sourceComponent: ScreencopyView {
|
sourceComponent: ScreencopyView {
|
||||||
captureSource: root.screen
|
captureSource: root.screen
|
||||||
paintCursor: false
|
paintCursor: false
|
||||||
|
|
||||||
onHasContentChanged: {
|
|
||||||
if (hasContent) {
|
|
||||||
overlay.visible = border.visible = true;
|
|
||||||
if (!root.loader.freeze)
|
|
||||||
root.save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,7 +237,7 @@ MouseArea {
|
|||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
opacity: 0.3
|
opacity: 0.3
|
||||||
radius: root.realRounding
|
radius: root.realRounding
|
||||||
visible: false
|
visible: screencopy.item.hasContent || !root.loader.freeze
|
||||||
|
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
maskEnabled: true
|
maskEnabled: true
|
||||||
@@ -282,7 +275,7 @@ MouseArea {
|
|||||||
implicitHeight: selectionRect.implicitHeight + root.realBorderWidth * 2
|
implicitHeight: selectionRect.implicitHeight + root.realBorderWidth * 2
|
||||||
implicitWidth: selectionRect.implicitWidth + root.realBorderWidth * 2
|
implicitWidth: selectionRect.implicitWidth + root.realBorderWidth * 2
|
||||||
radius: root.realRounding > 0 ? root.realRounding + root.realBorderWidth : 0
|
radius: root.realRounding > 0 ? root.realRounding + root.realBorderWidth : 0
|
||||||
visible: false
|
visible: screencopy.item.hasContent || !root.loader.freeze
|
||||||
x: selectionRect.x - root.realBorderWidth
|
x: selectionRect.x - root.realBorderWidth
|
||||||
y: selectionRect.y - root.realBorderWidth
|
y: selectionRect.y - root.realBorderWidth
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ In your flake.nix file, add the following in your inputs.
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
z-bar-qt = {
|
z-bar-qt = {
|
||||||
url = "github:Zacharias-Brohn/z-bar-qt/";
|
url = "git+ssh://git@git.zach-dev.cc/zach/z-bar-qt.git";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -64,7 +64,7 @@ Below a full example of what it could look like.
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
z-bar-qt = {
|
z-bar-qt = {
|
||||||
url = "github:Zacharias-Brohn/z-bar-qt/";
|
url = "git+ssh://git@git.zach-dev.cc/zach/z-bar-qt.git";
|
||||||
inputs.nixpkgs.follows = "nixpgks";
|
inputs.nixpkgs.follows = "nixpgks";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -77,7 +77,6 @@ Below a full example of what it could look like.
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
|
|||||||
Reference in New Issue
Block a user