2023-06-06 12:59:29 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-06-05 19:57:19 +02:00
|
|
|
{
|
2023-06-26 23:04:01 +02:00
|
|
|
|
|
|
|
|
2023-06-05 19:57:19 +02:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
2023-06-06 12:59:29 +02:00
|
|
|
config = rec {
|
|
|
|
startup = [
|
|
|
|
{
|
2023-09-29 10:32:24 +02:00
|
|
|
command = "${lib.getExe pkgs.swaybg} -i ${../../../../images/wallpaper.png} -m fill";
|
2023-06-06 12:59:29 +02:00
|
|
|
}
|
2023-06-12 16:49:45 +02:00
|
|
|
{
|
2023-09-29 10:32:24 +02:00
|
|
|
command = "${pkgs.autotiling-rs}/bin/autotiling-rs";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command = ''swaymsg -t subscribe -m "['workspace']" | jq --unbuffered -r 'select(.change == "focus") | .current.output' | xargs -L1 swaymsg input 1386:884:Wacom_Intuos_S_Pen map_to_output'';
|
2023-06-12 16:49:45 +02:00
|
|
|
}
|
2023-06-06 12:59:29 +02:00
|
|
|
];
|
2023-06-05 19:57:19 +02:00
|
|
|
modifier = "Mod4";
|
2023-06-19 13:22:15 +02:00
|
|
|
menu = lib.getExe pkgs.fuzzel;
|
2023-06-05 19:57:19 +02:00
|
|
|
terminal = "${pkgs.foot}/bin/footclient";
|
|
|
|
bars = [ ];
|
|
|
|
gaps = {
|
|
|
|
outer = 5;
|
|
|
|
inner = 12;
|
|
|
|
};
|
|
|
|
input = {
|
|
|
|
"*" = {
|
|
|
|
xkb_layout = "us";
|
|
|
|
xkb_variant = "dvorak-alt-intl";
|
|
|
|
};
|
2023-06-19 10:37:17 +02:00
|
|
|
"2:7:SynPS/2_Synaptics_TouchPad" = {
|
|
|
|
tap = "enabled";
|
|
|
|
drag = "enabled";
|
|
|
|
middle_emulation = "enabled";
|
2023-09-29 10:32:24 +02:00
|
|
|
accel_profile = "adaptive";
|
2023-06-19 10:37:17 +02:00
|
|
|
};
|
2023-06-05 19:57:19 +02:00
|
|
|
};
|
2023-06-06 12:59:29 +02:00
|
|
|
keybindings =
|
|
|
|
lib.mkOptionDefault {
|
|
|
|
"Mod1+space" = "exec ${menu}";
|
2023-12-01 15:05:38 +01:00
|
|
|
"Mod4+a" = "exec ${pkgs.wofi-emoji}/bin/wofi-emoji";
|
2023-08-03 13:30:40 +02:00
|
|
|
"Print" = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy area";
|
|
|
|
"XF86Launch2" = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot save area - | ${lib.getExe pkgs.swappy} -f -";
|
|
|
|
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 10";
|
2023-09-29 10:32:24 +02:00
|
|
|
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 10";
|
2023-06-06 12:59:29 +02:00
|
|
|
"XF86AudioMute" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
|
|
|
"XF86AudioMicMute" = "exec ${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
|
|
|
"XF86AudioRaiseVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
|
|
|
"XF86AudioLowerVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
|
|
|
"Shift+XF86AudioRaiseVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-source-volume @DEFAULT_SOURCE@ +5%";
|
|
|
|
"Shift+XF86AudioLowerVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-source-volume @DEFAULT_SOURCE@ -5%";
|
|
|
|
|
|
|
|
"XF86Favorites" = "exec ${pkgs.systemd}/bin/loginctl lock-session";
|
2023-08-03 13:30:40 +02:00
|
|
|
"XF86PowerOff" = "exec ${pkgs.wlogout}/bin/wlogout";
|
2023-06-06 12:59:29 +02:00
|
|
|
|
|
|
|
"XF86Messenger" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel";
|
|
|
|
"Cancel" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --hide-latest";
|
|
|
|
"Shift+Cancel" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --cloes-all";
|
|
|
|
};
|
2023-06-05 19:57:19 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2023-09-29 10:32:24 +02:00
|
|
|
|