forked from mirrors_public/oddlama_nix-config
feat: use extra-modules to set wallpaper
This commit is contained in:
parent
3036c53d87
commit
d10cd74dc6
3 changed files with 11 additions and 36 deletions
|
@ -54,6 +54,7 @@ in {
|
|||
xsession.numlock.enable = true;
|
||||
xsession.windowManager.i3 = {
|
||||
enable = true;
|
||||
enableSystemdTarget = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
terminal = "kitty";
|
||||
|
@ -201,11 +202,6 @@ in {
|
|||
};
|
||||
};
|
||||
in [
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/systemctl --user start i3-session.target";
|
||||
always = false;
|
||||
notification = false;
|
||||
}
|
||||
{
|
||||
command = "${getExe i3-per-workspace-layout} --config ${configLayouts}";
|
||||
always = false;
|
||||
|
@ -215,33 +211,9 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
systemd.user = {
|
||||
targets.i3-session = {
|
||||
Unit = {
|
||||
Description = "i3 session";
|
||||
Documentation = ["man:systemd.special(7)"];
|
||||
BindsTo = ["graphical-session.target"];
|
||||
Wants = ["graphical-session-pre.target"];
|
||||
After = ["graphical-session-pre.target"];
|
||||
};
|
||||
};
|
||||
services = {
|
||||
#feh = {
|
||||
# Unit = {
|
||||
# Description = "feh background";
|
||||
# PartOf = [ "i3-session.target" ];
|
||||
# After = [ "xrandr.service" "picom.service" ];
|
||||
# };
|
||||
# Service = {
|
||||
# ExecStart = "${pkgs.feh}/bin/feh --bg-fill ${config.xdg.dataHome}/wall.png";
|
||||
# RemainAfterExit = true;
|
||||
# Type = "oneshot";
|
||||
# };
|
||||
# Install.WantedBy = [ "i3-session.target" ];
|
||||
#};
|
||||
wired.Install.WantedBy = lib.mkForce ["i3-session.target"];
|
||||
flameshot.Install.WantedBy = lib.mkForce ["i3-session.target"];
|
||||
};
|
||||
systemd.user.services = {
|
||||
wired.Install.WantedBy = lib.mkForce ["i3-session.target"];
|
||||
flameshot.Install.WantedBy = lib.mkForce ["i3-session.target"];
|
||||
};
|
||||
|
||||
programs.autorandr.enable = true;
|
||||
|
@ -284,6 +256,8 @@ in {
|
|||
QT_SCREEN_SCALE_FACTORS = 2;
|
||||
};
|
||||
|
||||
xsession.wallpapers.enable = true;
|
||||
|
||||
home.file.".xinitrc".text = ''
|
||||
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
|
||||
eval $(dbus-launch --exit-with-session --sh-syntax)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue