Fix waybar
startup latency problem
This commit is contained in:
parent
27fdc7a92e
commit
d97229fa11
3 changed files with 13 additions and 9 deletions
|
@ -7,7 +7,9 @@
|
||||||
home.packages = [ pkgs.tremotesf ];
|
home.packages = [ pkgs.tremotesf ];
|
||||||
|
|
||||||
systemd.user.services.tremotesf = {
|
systemd.user.services.tremotesf = {
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
Install.WantedBy = [
|
||||||
|
"waybar.service"
|
||||||
|
];
|
||||||
|
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "tremotesf";
|
Description = "tremotesf";
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
systemd.user.services.zmkBATx = {
|
systemd.user.services.zmkBATx = {
|
||||||
Install.WantedBy = [
|
Install.WantedBy = [
|
||||||
"graphical-session.target"
|
|
||||||
"waybar.service"
|
"waybar.service"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -17,7 +16,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = lib.getExe pkgs.zmkBATx;
|
ExecStart = "sleep 5 && ${lib.getExe pkgs.zmkBATx}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,15 +3,18 @@
|
||||||
xdg = {
|
xdg = {
|
||||||
portal = {
|
portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = with pkgs; [
|
configPackages = with pkgs; [
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
];
|
];
|
||||||
config.common.default = "*";
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-hyprland
|
||||||
|
];
|
||||||
|
xdgOpenUsePortal = true;
|
||||||
|
wlr.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
|
||||||
GTK_USE_PORTAL = "1";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue