Basic libinput gestures + structured shell aliases
This commit is contained in:
parent
2d6084b28a
commit
1f49192ab3
6 changed files with 68 additions and 19 deletions
7
home.nix
7
home.nix
|
|
@ -66,10 +66,12 @@ in
|
||||||
# audacity
|
# audacity
|
||||||
authy
|
authy
|
||||||
# blender
|
# blender
|
||||||
|
catgirl # IRC
|
||||||
ckan
|
ckan
|
||||||
discord
|
discord
|
||||||
evolution
|
evolution
|
||||||
firefox
|
firefox
|
||||||
|
foliate # ebook reader
|
||||||
gallery-dl
|
gallery-dl
|
||||||
gnome.dconf-editor
|
gnome.dconf-editor
|
||||||
gnome.eog
|
gnome.eog
|
||||||
|
|
@ -128,7 +130,6 @@ in
|
||||||
hunspellDicts.en_GB-large
|
hunspellDicts.en_GB-large
|
||||||
hunspellDicts.en_US-large
|
hunspellDicts.en_US-large
|
||||||
|
|
||||||
|
|
||||||
blender
|
blender
|
||||||
(
|
(
|
||||||
dwarf-fortress-packages.dwarf-fortress-full.override {
|
dwarf-fortress-packages.dwarf-fortress-full.override {
|
||||||
|
|
@ -150,6 +151,7 @@ in
|
||||||
] ++ (
|
] ++ (
|
||||||
with nixos; [
|
with nixos; [
|
||||||
tdesktop
|
tdesktop
|
||||||
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
@ -181,6 +183,7 @@ in
|
||||||
./modules/keychain.nix
|
./modules/keychain.nix
|
||||||
# ./modules/kitty.nix
|
# ./modules/kitty.nix
|
||||||
./modules/lf.nix
|
./modules/lf.nix
|
||||||
|
./modules/libinput-gestures.nix
|
||||||
./modules/lorri.nix
|
./modules/lorri.nix
|
||||||
./modules/man.nix
|
./modules/man.nix
|
||||||
# ./modules/nix-index.nix
|
# ./modules/nix-index.nix
|
||||||
|
|
@ -193,6 +196,7 @@ in
|
||||||
./modules/rofi.nix
|
./modules/rofi.nix
|
||||||
./modules/screen_locker.nix
|
./modules/screen_locker.nix
|
||||||
./modules/ssh.nix
|
./modules/ssh.nix
|
||||||
|
./modules/starship.nix
|
||||||
./modules/sxhkd.nix
|
./modules/sxhkd.nix
|
||||||
./modules/syncthing.nix
|
./modules/syncthing.nix
|
||||||
./modules/terminator.nix
|
./modules/terminator.nix
|
||||||
|
|
@ -203,6 +207,7 @@ in
|
||||||
./modules/zoxide.nix
|
./modules/zoxide.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
|
|
||||||
|
./modules/shell_aliases.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
26
modules/libinput-gestures.nix
Normal file
26
modules/libinput-gestures.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
libinputGesturesCmd = "${pkgs.libinput-gestures}/bin/libinput-gestures";
|
||||||
|
xdotool = "${pkgs.xdotool}/bin/xdotool";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
systemd.user.services."libinput-gestures" = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Touchpad gestures";
|
||||||
|
After = [ "graphical-session-pre.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = libinputGesturesCmd;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."libinput-gestures.conf".text = ''
|
||||||
|
gesture swipe left ${xdotool} key alt+Right
|
||||||
|
gesture swipe right ${xdotool} key alt+Left
|
||||||
|
'';
|
||||||
|
}
|
||||||
11
modules/shell_aliases.nix
Normal file
11
modules/shell_aliases.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
shellAliases = {
|
||||||
|
"sc" = "systemctl";
|
||||||
|
"scu" = "systemctl --user";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.bash = { inherit shellAliases; };
|
||||||
|
programs.zsh = { inherit shellAliases; };
|
||||||
|
}
|
||||||
19
modules/starship.nix
Normal file
19
modules/starship.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
directory.truncation_symbol = "…/";
|
||||||
|
hostname.format = "[$hostname]($style) ";
|
||||||
|
line_break.disabled = true;
|
||||||
|
nix_shell.symbol = "❄️ ";
|
||||||
|
python.python_binary = "python3";
|
||||||
|
status = {
|
||||||
|
disabled = false;
|
||||||
|
format = "[$symbol $status]($style) ";
|
||||||
|
};
|
||||||
|
username.format = "[$user]($style)@";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -45,22 +45,4 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings = {
|
|
||||||
directory.truncation_symbol = "…/";
|
|
||||||
hostname.format = "[$hostname]($style) ";
|
|
||||||
line_break.disabled = true;
|
|
||||||
nix_shell.symbol = "❄️ ";
|
|
||||||
python.python_binary = "python3";
|
|
||||||
status = {
|
|
||||||
disabled = false;
|
|
||||||
format = "[$symbol $status]($style) ";
|
|
||||||
};
|
|
||||||
username.format = "[$user]($style)@";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,12 @@
|
||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
|
# # Tablet
|
||||||
|
# hardware.opentabletdriver = {
|
||||||
|
# enable = true;
|
||||||
|
# daemon.enable = true;
|
||||||
|
# };
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
services.xserver.libinput.enable = true;
|
services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue