8 Commits

Author SHA1 Message Date
zach f4d5f54f9a hide when notif 2026-03-23 21:56:29 +01:00
AramJonghu a67e3383e8 Minor update to README.md
The url does still require an ssh key stored on a git.zach-dev.cc account.
2026-03-23 12:55:58 +01:00
zach 361b4e7979 non-freeze screenshot overlay semi-fixed 2026-03-22 22:19:46 +01:00
zach 7129db4276 non-freeze screenshot overlay semi-fixed 2026-03-22 22:19:36 +01:00
zach c022933d16 Merge pull request 'Updating README.md for NixOS flake installation' (#28) from nixos-readme-gitea into main
Reviewed-on: #28
2026-03-22 17:25:32 +01:00
AramJonghu c266665cff Updating README.md for NixOS flake installation
Flake was still pointing to github instead of the new git instance. Adjusted now.

Delete branch once merged.
2026-03-22 17:24:10 +01:00
zach 262d6404a4 cleanup 2026-03-22 17:19:15 +01:00
zach c99d8abeac Merge pull request 'Greeter + Hyprsunset toggle and scheduler' (#27) from settingsWindow into main
Reviewed-on: #27
2026-03-22 17:16:39 +01:00
6 changed files with 8 additions and 14 deletions
+1
View File
@@ -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
+1
View File
@@ -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
View File
@@ -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
View File
@@ -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
+2 -3
View File
@@ -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 {
View File