2021-05-05 21:13:27 +00:00
|
|
|
{ pkgs, depot, lib, config, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./graphical-client.nix ];
|
|
|
|
|
|
|
|
home.packages = lib.mkAfter (with pkgs; [
|
|
|
|
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";
|
|
|
|
"${modifier}+Return" = "exec ${pkgs.alacritty}/bin/alacritty";
|
|
|
|
};
|
|
|
|
startup = [
|
2021-08-30 13:26:25 +00:00
|
|
|
{ command = "${pkgs._1password-gui}/bin/1password --silent"; }
|
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
|
|
|
};
|
|
|
|
};
|
2021-05-06 02:56:20 +00:00
|
|
|
|
|
|
|
my.alacritty.fontSize = 12;
|
2021-05-05 21:13:27 +00:00
|
|
|
}
|