diff --git a/dots/hyprland.nix b/dots/hyprland.nix index b46c8d0..07520b9 100755 --- a/dots/hyprland.nix +++ b/dots/hyprland.nix @@ -36,7 +36,7 @@ in # Or execute your favorite apps at launch like this: exec-once = [ #"waybar" - "quickshell" + #"quickshell" "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1" "fcitx5 -d" "foot -s" diff --git a/dots/quickshell/config/BarConfig.qml b/dots/quickshell/config/BarConfig.qml index 31577c4..46af17a 100644 --- a/dots/quickshell/config/BarConfig.qml +++ b/dots/quickshell/config/BarConfig.qml @@ -5,7 +5,7 @@ JsonObject { property int innerHeight: 30 property int windowPreviewSize: 400 property int trayMenuWidth: 300 - property int batteryWidth: 250 + property int batteryWidth: 300 } property JsonObject workspaces: JsonObject { diff --git a/home/homePkgs.nix b/home/homePkgs.nix index 4427ee3..863cb3e 100755 --- a/home/homePkgs.nix +++ b/home/homePkgs.nix @@ -187,7 +187,7 @@ in networkmanagerapplet #inputs.way-inhibitor.packages.${pkgs.system}.default inputs.zen-browser.packages.${pkgs.system}.twilight - inputs.quickshell.packages.${pkgs.system}.default + #inputs.quickshell.packages.${pkgs.system}.default inputs.qs-qml.packages.${pkgs.system}.tree-sitter-qmljs inputs.qs-qml.packages.${pkgs.system}.qml-ts-mode lxqt.pcmanfm-qt diff --git a/home/mrfluffy.nix b/home/mrfluffy.nix index 901633f..83a81b8 100755 --- a/home/mrfluffy.nix +++ b/home/mrfluffy.nix @@ -22,11 +22,13 @@ in ../dots/hyprlock.nix ./stylix.nix ./homePkgs.nix + ./services.nix ../dots/xdg.nix ../dots/river.nix ../dots/niri.nix ../dots/hyprland.nix ../dots/hyprpaper.nix + ]; # you can go look here for a list of color schemes https://github.com/tinted-theming/schemes diff --git a/home/services.nix b/home/services.nix new file mode 100644 index 0000000..afba22b --- /dev/null +++ b/home/services.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + pkgs, + inputs, + ... +}: +let + quickshellPackage = inputs.quickshell.packages.${pkgs.system}.default; +in +{ + systemd.user.services.quickshell = { + Unit = { + Description = "QuickShell Application"; + After = [ "graphical-session.target" ]; + Requires = [ "graphical-session.target" ]; + }; + + Service = { + Type = "simple"; + ExecStart = "${quickshellPackage}/bin/quickshell"; + ExecStartPre = "/bin/sh -c 'test -n \"$WAYLAND_DISPLAY\"'"; + Restart = "always"; + RestartSec = "5s"; + }; + + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + }; +}