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

View file

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

View file

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

View file

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