diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-29 22:12:48 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-29 22:12:48 +0200 |
commit | 5d3c8e21d2d79a6ed3e324b833002a9bb0317b34 (patch) | |
tree | 08e26e0a885d575c8399fb65bbef3ddc2ad233db /platforms/linux/xorg/default.nix | |
parent | a24f50c8a264fd0e42c789f4cf16a8796ab97e47 (diff) | |
download | dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.tar.gz dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.zip |
Linux config
Diffstat (limited to 'platforms/linux/xorg/default.nix')
-rw-r--r-- | platforms/linux/xorg/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/platforms/linux/xorg/default.nix b/platforms/linux/xorg/default.nix new file mode 100644 index 0000000..21bb4de --- /dev/null +++ b/platforms/linux/xorg/default.nix @@ -0,0 +1,55 @@ +{ pkgs, ... }: +let + pndwmblocks = pkgs.nur.repos.pn.dwmblocks.override { + patches = [ + ./dwmblocks.diff + ]; + }; + pndwm = pkgs.nur.repos.pn.dwm.override { + patches = [ + ./dwm-systray.diff + ./dwm-center.diff + ./dwm-apps.diff + ./dwm-autostart.diff + # ./dwm-rounded.diff - Resize dont work + ]; + }; +in +{ + home.packages = with pkgs; [ + mpd + xcompmgr + picom + dunst + unclutter + nur.repos.pn.dockd + pndwmblocks + pndwm + ]; + + xsession = { + enable = true; + windowManager.command = "dbus-run-session -- dwm"; + profileExtra = '' + # Fix Gnome Apps Slow Start due to failing services + # Add this when you include flatpak in your system + dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY + + mpd & # music player daemon-you might prefer it as a service though + remaps & # run the remaps script, switching caps/esc and more; check it for more info + setbg & # set the background with the `setbg` script + #xrdb $\{XDG_CONFIG_HOME:-$HOME/.config}/Xresources & # Uncomment to use Xresources colors/settings on startup + picom & + dunst & # dunst for notifications + xset r rate 300 50 & # Speed xrate up + unclutter & # Remove mouse when idle + #sxhkd & + dockd --daemon & + for app in `ls ~/.config/autostart/*.desktop`; do + $(grep '^Exec' $app | sed 's/^Exec=//') & + done + sleep .5 && screen-orient & + ''; + scriptPath = ".xinitrc"; + }; +} |