qol(qs): scaling based on exists, focused and not
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
<modules/hyprland/doloro-settings>
|
||||
modules.sops
|
||||
modules.fish
|
||||
<modules/zen-browser>
|
||||
(<modules/zen-browser> {
|
||||
default = true;
|
||||
})
|
||||
modules.kitty
|
||||
modules.stylix
|
||||
modules.quickshell
|
||||
@@ -42,7 +44,7 @@
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
telegram-desktop
|
||||
legcord
|
||||
equibop
|
||||
obsidian
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@@ -136,10 +136,10 @@
|
||||
HandleLidSwitchExternalPower = "suspend";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
};
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=30min
|
||||
SuspendEstimationSec=120
|
||||
'';
|
||||
# systemd.sleep.extraConfig = ''
|
||||
# HibernateDelaySec=30min
|
||||
# SuspendEstimationSec=120
|
||||
# '';
|
||||
|
||||
# programs.firefox.enable = true;
|
||||
|
||||
|
||||
@@ -20,13 +20,22 @@ Item {
|
||||
required property int index
|
||||
property bool focused: HyprlandHelpers.getHyprlandWorkspaceById(index + 1).focused
|
||||
property bool exists: HyprlandHelpers.getHyprlandWorkspaceById(index + 1) ? true : false
|
||||
state: focused && exists ? "FOCUSED" : "NOT"
|
||||
state: focused ? "FOCUSED" : (exists ? "EXISTS" : "NOT")
|
||||
states: [
|
||||
State {
|
||||
name: "FOCUSED"
|
||||
PropertyChanges {
|
||||
target: content
|
||||
width: 10
|
||||
scale: 1
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "EXISTS"
|
||||
PropertyChanges {
|
||||
target: content
|
||||
width: 10
|
||||
scale: 0.85
|
||||
}
|
||||
},
|
||||
State {
|
||||
@@ -34,6 +43,7 @@ Item {
|
||||
PropertyChanges {
|
||||
target: content
|
||||
width: 10
|
||||
scale: 0.75
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user