68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
config = {
|
|
modifier = "Mod4";
|
|
input = {
|
|
"*" = {
|
|
xkb_layout = "pl";
|
|
accel_profile = "flat";
|
|
};
|
|
};
|
|
bars = [{
|
|
id = "top";
|
|
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs";
|
|
position = "top";
|
|
trayOutput = "*";
|
|
}];
|
|
floating.criteria = [{ title = "Steam - Update News"; }];
|
|
};
|
|
wrapperFeatures.gtk = true;
|
|
systemdIntegration = true;
|
|
extraSessionCommands = ''
|
|
#export SDL_VIDEODRIVER=wayland
|
|
# needs qt5.qtwayland in systemPackages
|
|
export QT_QPA_PLATFORM=wayland
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
|
# Fix for some Java AWT applications (e.g. Android Studio),
|
|
# use this if they aren't displayed properly:
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
'';
|
|
};
|
|
|
|
programs.i3status-rust = {
|
|
enable = true;
|
|
bars.bar_0 = {
|
|
blocks = [
|
|
{ block = "hueshift"; }
|
|
{
|
|
block = "disk_space";
|
|
path = "/";
|
|
alias = "/";
|
|
info_type = "available";
|
|
unit = "GiB";
|
|
interval = 60;
|
|
warning = 20.0;
|
|
alert = 10.0;
|
|
}
|
|
{
|
|
block = "memory";
|
|
display_type = "memory";
|
|
format_mem = "{Mup}%";
|
|
format_swap = "{SUp}%";
|
|
}
|
|
{
|
|
block = "cpu";
|
|
interval = 1;
|
|
}
|
|
{ block = "sound"; }
|
|
{
|
|
block = "time";
|
|
interval = 60;
|
|
format = "%a %d/%m %R";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|