🐛 fix graphical-session.target is not running under ubuntu

This commit is contained in:
Ingolf Wagner 2025-06-13 10:50:47 +02:00
parent 2abd8b5fd9
commit 7f3f9d2dd4
3 changed files with 33 additions and 11 deletions
homes
ingolf-wagner
palo

View file

@ -13,6 +13,7 @@
./ssh.nix
./taskwarrior.nix
./vpn.nix
./i3.nix
];
gui.enable = true;
@ -38,14 +39,4 @@
ll = "ls -lah";
};
gui.i3.defaultOrientation = "horizontal";
# todo check home-manager nixGL options
# we need nixGL to run kitty, because it depends on GL it's not nice, but not to bad either
xsession.windowManager.i3.config.terminal = lib.mkForce "nixGLIntel kitty";
# todo
xsession.windowManager.i3.config.keybindings."Print" =
lib.mkForce "exec ${pkgs.flameshot}/bin/flameshot gui -c -p ~/Pictures/Screenshots/";
}

View file

@ -0,0 +1,25 @@
{ lib, pkgs, ... }:
{
gui.i3.defaultOrientation = "horizontal";
# todo check home-manager nixGL options
# we need nixGL to run kitty, because it depends on GL it's not nice, but not to bad either
xsession.windowManager.i3.config.terminal = lib.mkForce "nixGLIntel kitty";
# todo
xsession.windowManager.i3.config.keybindings."Print" =
lib.mkForce "exec ${pkgs.flameshot}/bin/flameshot gui --clipboard --path ~/Pictures/Screenshots/";
# for some reason `graphical-session.target` is not hooked to `default.target`
systemd.user.targets."graphical-session" = {
Unit = {
Description = "Graphical Session Target";
Requires = "basic.target";
};
Install = {
WantedBy = [ "default.target" ];
};
};
}

View file

@ -142,8 +142,14 @@ in
};
};
services.flameshot = {
enable = true;
settings.General.showStartupLaunchMessage = false;
};
services.copyq = {
enable = true;
forceXWayland = false;
};
stylix.targets.i3.enable = true;
@ -216,7 +222,7 @@ in
modifier = config.xsession.windowManager.i3.config.modifier;
in
{
"Print" = "exec ${pkgs.flameshot}/bin/flameshot gui -c -p /share/";
"Print" = "exec ${pkgs.flameshot}/bin/flameshot gui --clipboard --path /share/";
# --- Brightness controls --- #
"XF86MonBrightnessUp" = "exec --no-startup-id ${pkgs.brightnessctl}/bin/brightnessctl set +5%";