diff --git a/home/crow/Parzival.nix b/home/crow/Parzival.nix index 2fb134d..4f8bfa3 100644 --- a/home/crow/Parzival.nix +++ b/home/crow/Parzival.nix @@ -6,6 +6,7 @@ common/optional/comms common/optional/media common/optional/gaming + common/optional/misc/gromit-mpx.nix ]; monitors = [ diff --git a/home/crow/common/optional/desktops/sway/sway.conf b/home/crow/common/optional/desktops/sway/sway.conf index 925dce2..7a0a359 100644 --- a/home/crow/common/optional/desktops/sway/sway.conf +++ b/home/crow/common/optional/desktops/sway/sway.conf @@ -7,6 +7,10 @@ workspace 5 output DP-1 # Mudlet # Assign wacom tablet to primary monitor input type:tablet_tool map_to_output DP-1 +# FIXME: This is scary and bad and awful and horrible plz fix +exec sudo -E makima +exec gromit-mpx + set $mod Mod4 ########################### ### Systemd Integration ### diff --git a/home/crow/common/optional/misc/gromit-mpx.nix b/home/crow/common/optional/misc/gromit-mpx.nix new file mode 100644 index 0000000..06a570e --- /dev/null +++ b/home/crow/common/optional/misc/gromit-mpx.nix @@ -0,0 +1,17 @@ +# Allows drawing over the screen overlay with our fancy wacom tablet +{pkgs, ...}: let + makimaConfig = '' + [commands] + BTN_STYLUS = ["gromit-mpx -t"] + + [settings] + GRAB_DEVICE = "false" + ''; +in { + home.file.".config/makima/Wacom One by Wacom S Pen.toml".text = makimaConfig; + + home.packages = with pkgs; [ + makima + gromit-mpx + ]; +}