qol(qs): scaling based on exists, focused and not

This commit is contained in:
2026-03-11 11:32:07 +00:00
parent eb593db0c0
commit cbd3c408e1
3 changed files with 19 additions and 7 deletions

View File

@@ -13,7 +13,9 @@
<modules/hyprland/doloro-settings> <modules/hyprland/doloro-settings>
modules.sops modules.sops
modules.fish modules.fish
<modules/zen-browser> (<modules/zen-browser> {
default = true;
})
modules.kitty modules.kitty
modules.stylix modules.stylix
modules.quickshell modules.quickshell
@@ -42,7 +44,7 @@
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
telegram-desktop telegram-desktop
legcord equibop
obsidian obsidian
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@@ -136,10 +136,10 @@
HandleLidSwitchExternalPower = "suspend"; HandleLidSwitchExternalPower = "suspend";
HandleLidSwitchDocked = "ignore"; HandleLidSwitchDocked = "ignore";
}; };
systemd.sleep.extraConfig = '' # systemd.sleep.extraConfig = ''
HibernateDelaySec=30min # HibernateDelaySec=30min
SuspendEstimationSec=120 # SuspendEstimationSec=120
''; # '';
# programs.firefox.enable = true; # programs.firefox.enable = true;

View File

@@ -20,13 +20,22 @@ Item {
required property int index required property int index
property bool focused: HyprlandHelpers.getHyprlandWorkspaceById(index + 1).focused property bool focused: HyprlandHelpers.getHyprlandWorkspaceById(index + 1).focused
property bool exists: HyprlandHelpers.getHyprlandWorkspaceById(index + 1) ? true : false property bool exists: HyprlandHelpers.getHyprlandWorkspaceById(index + 1) ? true : false
state: focused && exists ? "FOCUSED" : "NOT" state: focused ? "FOCUSED" : (exists ? "EXISTS" : "NOT")
states: [ states: [
State { State {
name: "FOCUSED" name: "FOCUSED"
PropertyChanges { PropertyChanges {
target: content target: content
width: 10 width: 10
scale: 1
}
},
State {
name: "EXISTS"
PropertyChanges {
target: content
width: 10
scale: 0.85
} }
}, },
State { State {
@@ -34,6 +43,7 @@ Item {
PropertyChanges { PropertyChanges {
target: content target: content
width: 10 width: 10
scale: 0.75
} }
} }
] ]