depot/ops/nixos/lib/home-manager/graphical-client-wayland.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

2021-05-05 21:13:27 +00:00
{ pkgs, depot, lib, config, ... }:
{
imports = [ ./graphical-client.nix ];
home.packages = lib.mkAfter (with pkgs; [
element-desktop-wayland
2021-05-05 21:13:27 +00:00
swaylock
swayidle
wl-clipboard
waybar
mako
kanshi
2021-05-06 02:56:20 +00:00
qt5.qtwayland
2021-05-05 21:13:27 +00:00
]);
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
2021-05-06 02:56:20 +00:00
extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export XDG_CURRENT_DESKTOP=sway
export MOZ_ENABLE_WAYLAND=1
export MOZ_USE_XINPUT2=1
'';
2021-05-05 21:13:27 +00:00
config = {
modifier = "Mod4";
keybindings = let
modifier = config.wayland.windowManager.sway.config.modifier;
in lib.mkOptionDefault {
2021-05-06 02:56:20 +00:00
"${modifier}+l" = "exec ${pkgs.swaylock}/bin/swaylock";
2021-05-05 21:13:27 +00:00
"${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui";
2021-11-28 12:51:40 +00:00
"${modifier}+Return" = "exec ${pkgs.kitty}/bin/kitty";
2021-05-05 21:13:27 +00:00
};
startup = [
2021-08-30 13:26:25 +00:00
{ command = "${pkgs._1password-gui}/bin/1password --silent"; }
{ command = "${pkgs.mako}/bin/mako --anchor=bottom-right"; }
2021-05-05 21:13:27 +00:00
];
2021-05-06 02:56:20 +00:00
output."*".bg = "${depot.pkgs.lukegb-wallpapers}/lunik1-gruvbox-dark-rainbow.png fill";
# howl: tap-to-click
input."1739:24385:Synaptics_TM2438-005" = {
tap = "enabled";
tap_button_map = "lrm";
middle_emulation = "enabled";
};
2021-05-05 21:13:27 +00:00
};
};
}