2020-08-22 17:44:39 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
swaylock # lockscreen
|
|
|
|
swayidle # autolock
|
|
|
|
xwayland # for legacy apps
|
|
|
|
(waybar.override { pulseSupport = true; }) # better status bar
|
|
|
|
mako # notification daemon
|
|
|
|
#kanshi # autorandr
|
2020-08-25 20:50:22 +02:00
|
|
|
unstable.alacritty # temrinal
|
2020-08-22 17:44:39 +02:00
|
|
|
unstable.dmenu-wayland # launcher
|
|
|
|
brightnessctl # control screen brightness
|
|
|
|
#redshift-wlr # natural color temperature
|
|
|
|
unstable.sway-contrib.grimshot # screenshots
|
|
|
|
];
|
|
|
|
extraSessionCommands = ''
|
|
|
|
export CLUTTER_BACKEND=wayland
|
|
|
|
export GDK_BACKEND=wayland
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export QT_QPA_PLATFORM=wayland-egl
|
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
|
|
export SDL_VIDEODRIVER=wayland
|
2020-08-24 20:59:26 +02:00
|
|
|
export WLR_NO_HARDWARE_CURSORS=1
|
2020-08-22 17:44:39 +02:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.redshift = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.redshift-wlr;
|
2020-08-24 19:25:54 +02:00
|
|
|
extraOptions = [ "-v" "-m" "wayland" ];
|
2020-08-22 17:44:39 +02:00
|
|
|
temperature = {
|
|
|
|
day = 6500;
|
|
|
|
night = 3500;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.targets.graphical-session.wantedBy = [ "multi-user.target" ];
|
|
|
|
|
|
|
|
services.logind.lidSwitchDocked = config.services.logind.lidSwitch;
|
|
|
|
}
|