sway: center align titles, use vulkan renderer
This commit is contained in:
parent
9e1e6df979
commit
01c0995f38
|
@ -199,6 +199,9 @@ in
|
|||
'';
|
||||
wayland.windowManager.sway = {
|
||||
wrapperFeatures.gtk = true;
|
||||
extraConfig = ''
|
||||
title_align center
|
||||
'';
|
||||
config = let swayConfig = {
|
||||
bars = [
|
||||
{
|
||||
|
@ -289,6 +292,7 @@ in
|
|||
bg = "~/var/wallpaper.jpg fill";
|
||||
# improved screen latency, apparently
|
||||
max_render_time = "2";
|
||||
adaptive_sync = "on";
|
||||
};
|
||||
};
|
||||
input = {
|
||||
|
@ -300,6 +304,7 @@ in
|
|||
menu = "${rofiSway}/bin/rofi -show drun";
|
||||
}; in commonConfig // swayConfig;
|
||||
extraSessionCommands = ''
|
||||
export WLR_RENDERER=vulkan
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
|
@ -328,8 +333,8 @@ in
|
|||
];
|
||||
timeouts = [
|
||||
{ timeout = 300;
|
||||
command = "${pkgs.sway}/bin/swaymsg \"output * dpms off\"";
|
||||
resumeCommand = "${pkgs.sway}/bin/swaymsg \"output * dpms on\""; }
|
||||
command = "${pkgs.sway}/bin/swaymsg \"output * power off\"";
|
||||
resumeCommand = "${pkgs.sway}/bin/swaymsg \"output * power on\""; }
|
||||
{ timeout = 600;
|
||||
command = swaylock-start; }
|
||||
];
|
||||
|
|
|
@ -92,6 +92,8 @@ in {
|
|||
video.hidpi.enable = true;
|
||||
enableRedistributableFirmware = true;
|
||||
opengl.driSupport32Bit = true;
|
||||
# sway WLR_RENDERER=vulkan
|
||||
opengl.extraPackages = with pkgs; [ vulkan-validation-layers ];
|
||||
};
|
||||
|
||||
services.tlp.settings = {
|
||||
|
|
Loading…
Reference in a new issue