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 = [
|
imports = [
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./dwm.nix
|
./dwm
|
||||||
./flameshot.nix
|
./flameshot.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./media
|
./media
|
||||||
|
|
|
@ -12,17 +12,7 @@ with lib;
|
||||||
|
|
||||||
config = mkIf config.homeManagerModules.dwm.enable {
|
config = mkIf config.homeManagerModules.dwm.enable {
|
||||||
home = {
|
home = {
|
||||||
file."${config.home.sessionVariables.XINITRC}".text = ''
|
file."${config.home.sessionVariables.XINITRC}".source = ./xinitrc;
|
||||||
systemctl --user import-environment DISPLAY
|
|
||||||
|
|
||||||
poweralertd -s &
|
|
||||||
|
|
||||||
setbg &
|
|
||||||
|
|
||||||
systemctl --user start dwm-status &
|
|
||||||
|
|
||||||
exec dwm
|
|
||||||
'';
|
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
XINITRC = "${config.xdg.configHome}/X11/xinitrc";
|
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