Extract .xinitrc
into a separate file
This commit is contained in:
parent
01ffef86cd
commit
f0b37c1813
3 changed files with 7 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./discord.nix
|
||||
./dwm.nix
|
||||
./dwm
|
||||
./flameshot.nix
|
||||
./gtk.nix
|
||||
./media
|
||||
|
|
|
@ -12,17 +12,7 @@ with lib;
|
|||
|
||||
config = mkIf config.homeManagerModules.dwm.enable {
|
||||
home = {
|
||||
file."${config.home.sessionVariables.XINITRC}".text = ''
|
||||
systemctl --user import-environment DISPLAY
|
||||
|
||||
poweralertd -s &
|
||||
|
||||
setbg &
|
||||
|
||||
systemctl --user start dwm-status &
|
||||
|
||||
exec dwm
|
||||
'';
|
||||
file."${config.home.sessionVariables.XINITRC}".source = ./xinitrc;
|
||||
|
||||
sessionVariables = {
|
||||
XINITRC = "${config.xdg.configHome}/X11/xinitrc";
|
5
modules/home-manager/desktop/dwm/xinitrc
Normal file
5
modules/home-manager/desktop/dwm/xinitrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
systemctl --user import-environment DISPLAY
|
||||
poweralertd -s &
|
||||
setbg &
|
||||
systemctl --user start dwm-status &
|
||||
exec dwm
|
Loading…
Add table
Add a link
Reference in a new issue