M modules/desktop/qtile/config/autostart.sh => modules/desktop/qtile/config/autostart.sh +2 -0
@@ 1,5 1,7 @@
#!/usr/bin/env sh
+systemctl start --user qtile-services.target
+
# Browser
firefox &
M modules/desktop/qtile/config/config.py => modules/desktop/qtile/config/config.py +1 -1
@@ 630,7 630,7 @@ floating_layout = layout.Floating(
*layout.Floating.default_float_rules,
]
)
-auto_fullscreen = False
+auto_fullscreen = True
focus_on_window_activation = 'never'
reconfigure_screens = True
auto_minimize = True
M modules/desktop/qtile/home.nix => modules/desktop/qtile/home.nix +9 -1
@@ 18,10 18,11 @@ in {
mpris-ctld = {
Unit = {
Description = "Daemon for mpris-ctl cli, that will keep track of last playing media";
+ PartOf = [ "qtile-services.target" ];
};
Install = {
- WantedBy = [ "default.target" ];
+ WantedBy = [ "qtile-services.target" ];
};
Service = {
@@ 30,6 31,13 @@ in {
};
};
+ systemd.user.targets.qtile-services = {
+ Unit = {
+ Description = "A target that is enabled when starting Qtile";
+ Requires = [ "graphical-session.target" ];
+ };
+ };
+
programs.autorandr = {
enable = true;
profiles = {
M modules/services/dunst.nix => modules/services/dunst.nix +11 -1
@@ 8,7 8,17 @@ let
colors = import ../themes/colors.nix; # Import colors theme
in
{
- home.packages = [ pkgs.libnotify ]; # Dependency
+ home.packages = lib.mkIf config.services.dunst.enable [ pkgs.libnotify ]; # Dependency
+
+ systemd.user.services.dunst = lib.mkIf config.services.dunst.enable {
+ Unit = {
+ PartOf = lib.mkForce [ "qtile-services.target" ];
+ };
+ Install = {
+ WantedBy = lib.mkForce [ "qtile-services.target" ];
+ };
+ };
+
services.dunst = {
enable = true;
iconTheme = { # Icons
M modules/services/flameshot.nix => modules/services/flameshot.nix +10 -0
@@ 7,6 7,16 @@
let
screensDir = "/home/${user}/screens";
in {
+
+ systemd.user.services.flameshot = lib.mkIf config.services.flameshot.enable {
+ Unit = {
+ PartOf = lib.mkForce [ "qtile-services.target" ];
+ };
+ Install = {
+ WantedBy = lib.mkForce [ "qtile-services.target" ];
+ };
+ };
+
services = { # sxhkd shortcut = Printscreen button (Print)
flameshot = {
enable = true;
M modules/services/picom.nix => modules/services/picom.nix +10 -1
@@ 4,7 4,16 @@
{ config, lib, pkgs, ... }:
-{
+{
+ systemd.user.services.picom = lib.mkIf config.services.picom.enable {
+ Unit = {
+ PartOf = lib.mkForce [ "qtile-services.target" ];
+ };
+ Install = {
+ WantedBy = lib.mkForce [ "qtile-services.target" ];
+ };
+ };
+
services.picom = {
enable = true;
package = pkgs.picom;
M modules/services/redshift.nix => modules/services/redshift.nix +9 -0
@@ 4,6 4,15 @@
{ config, lib, pkgs, ...}:
{
+ systemd.user.services.redshift = lib.mkIf config.services.redshift.enable {
+ Unit = {
+ PartOf = lib.mkForce [ "qtile-services.target" ];
+ };
+ Install = {
+ WantedBy = lib.mkForce [ "qtile-services.target" ];
+ };
+ };
+
services = {
redshift = {
enable = true;