mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-07 05:19:43 +01:00
dwm: Move autostart programs out of .xinitrc
This commit is contained in:
parent
3f9ed977cf
commit
e99b5916db
18
home/dwm.nix
18
home/dwm.nix
@ -2,6 +2,7 @@
|
||||
|
||||
let
|
||||
inherit (config.lib.stylix.colors.withHashtag) base00 base03 base05;
|
||||
inherit (config.home) homeDirectory;
|
||||
|
||||
barScript = "dwm/bar.fish";
|
||||
in
|
||||
@ -35,8 +36,16 @@ in
|
||||
};
|
||||
|
||||
static const char *const autostart[] = {
|
||||
"${pkgs.nemo}/bin/nemo-desktop", NULL,
|
||||
"xrdb", "-merge", "${homeDirectory}/.Xresources", NULL,
|
||||
"mpDris2", NULL,
|
||||
"dunst", NULL,
|
||||
"picom", NULL,
|
||||
"fcitx5", NULL,
|
||||
"xset", "r", "rate", "300", "50", NULL,
|
||||
"xset", "-dpms", NULL,
|
||||
"fish", "${homeDirectory}/.config/${barScript}", NULL,
|
||||
"feh", "--no-fehbg", "--bg-scale", "${config.stylix.image}", NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -171,15 +180,6 @@ in
|
||||
export GLFW_IM_MODULE=ibus
|
||||
export GTK_CSD=0
|
||||
|
||||
xrdb -merge ~/.Xresources
|
||||
xset r rate 300 50
|
||||
feh --no-fehbg --bg-scale ${config.stylix.image}
|
||||
~/.config/${barScript} &
|
||||
picom --daemon
|
||||
${pkgs.nemo}/bin/nemo-desktop &
|
||||
fcitx5 &
|
||||
xset -dpms
|
||||
|
||||
while true; do
|
||||
dbus-launch --sh-syntax --exit-with-session dwm
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user