Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created October 7, 2019 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovesegfault/9306f472507a65ac982ebc6b78ed9e2b to your computer and use it in GitHub Desktop.
Save lovesegfault/9306f472507a65ac982ebc6b78ed9e2b to your computer and use it in GitHub Desktop.
xserver = {
enable = true;
autorun = false;
dpi = 200;
libinput = {
enable = true;
naturalScrolling = true;
};
multitouch = {
enable = true;
invertScroll = true;
};
useGlamor = true;
# videoDrivers = [ "intel" "modesetting" "nvidia" ];
wacom.enable = true;
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
alacritty
dunst
i3lock
light
polybarFull
scrot
xclip
xorg.xset
xsel
];
extraSessionCommands = ''
unset QT_QPA_PLATFORM
unset QT_WAYLAND_FORCE_DPI
unset QT_WAYLAND_DISABLE_WINDOWDECORATION
unset _JAVA_AWT_WM_NONREPARENTING
unset ECORE_EVAS_ENGINE
unset ELM_ENGINE
unset SDL_VIDEODRIVER
unset MOZ_ENABLE_WAYLAND
'';
};
xautolock = rec {
enable = true;
enableNotifier = true;
extraOptions = [ "-lockaftersleep" "-secure" ];
killer = "${pkgs.xorg.xset}/bin/xset dpms force off";
killtime = 10;
locker =
"${pkgs.i3lock}/bin/i3lock -i ~/pictures/walls/clouds.jpg -e -f";
notifier =
''${pkgs.libnotify}/bin/notify-send "Locking in 30 seconds"'';
notify = 30;
nowlocker = locker;
time = 5;
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment