feat: added fusama swipe touchpad gestures

This commit is contained in:
Nickiel12 2023-01-27 12:46:41 -08:00
parent 6fa32e623e
commit 1e266371e8
5 changed files with 49 additions and 10 deletions

View file

@ -6,7 +6,6 @@
{
boot.supportedFilesystems = [ "nfts" ];
boot.loader.systemd-boot.configurationLimit = 5;
@ -19,7 +18,6 @@
options = "--delete-generations 8d";
};
programs.git.enable = true;
programs.zsh.enable = true;
users.users.${user} = {
isNormalUser = true;

View file

@ -28,12 +28,12 @@ in {
users.${user} = {
imports = [
./home.nix
../modules/git.nix
../modules/emacs.nix
../modules/wezterm.nix
../modules/urxvt.nix
../modules/xdg.nix
../modules/git.nix
../modules/fusuma.nix
../modules/vim.nix
../modules/wezterm.nix
../modules/xdg.nix
../modules/zsh.nix
];
};

View file

@ -40,14 +40,18 @@ in
pandoc
fontpreview
texlive.combined.scheme-medium
# commandline utils
pfetch
fortune
rmtrash
ripgrep
fd
neofetch
ranger
exa
xdotool
vhs
nodejs # required for coc-nvim

View file

@ -10,14 +10,18 @@ in
enable = true;
package = pkgs.emacs-gtk;
};
services.emacs.enable = true;
services.emacs = {
enable = true;
};
home.activation.doom = lib.hm.dag.entryAfter["writeBoundary"] ''
if [ ! -d .emacs.d ]; then
${git} clone --depth 1 https://github.com/doomemacs/doomemacs .emacs.d
fi
mkdir -p .doom.d
${git} clone ${configRepoUrl} .doom.d
'';
# mkdir -p .doom.d
# ${git} clone ${configRepoUrl} .doom.d
home.packages = with pkgs; [
# Doom Emacs fonts, manually installed with

33
modules/fusuma.nix Normal file
View file

@ -0,0 +1,33 @@
{ lib, pkgs, ... }:
{
services.fusuma = {
enable = true;
extraPackages = with pkgs; [ coreutils xdotool ];
settings = {
swipe = {
"4" = {
left = {
command = "xdotool set_desktop --relative -- 1";
};
};
right = {
command = "xdotool set_desktop --relative -- -1";
};
};
};
plugin = {
inputs = {
libinput_command_input = {
# options for lib/plugin/inputs/libinput_command_input
enable-tap = true; # click to tap
enable-dwt = true; # disable tap while typing
};
};
};
};
};
}