configures paneru for mac

This commit is contained in:
Dennis Schoepf 2026-03-05 22:49:08 +01:00
parent 6d018f32b5
commit 652e74f790
4 changed files with 768 additions and 705 deletions

View file

@ -22,6 +22,10 @@
nixvim.url = "github:nix-community/nixvim"; nixvim.url = "github:nix-community/nixvim";
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
nix-homebrew.url = "github:zhaofengli/nix-homebrew"; nix-homebrew.url = "github:zhaofengli/nix-homebrew";
inputs.paneru = {
url = "github:karinushka/paneru";
inputs.nixpkgs.follows = "nixpkgs";
};
dms = { dms = {
url = "github:AvengeMedia/DankMaterialShell/stable"; url = "github:AvengeMedia/DankMaterialShell/stable";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -42,6 +42,9 @@ in
"keyboard-cowboy" "keyboard-cowboy"
"krita" "krita"
"darktable" "darktable"
"beekeeper-studio"
"qbittorrent"
"tpvirtual"
]; ];
masApps = { masApps = {

View file

@ -18,6 +18,7 @@ in
neovim neovim
terminal terminal
browser browser
scrolling-desktop
( (
{ ... }: { ... }:

View file

@ -63,9 +63,61 @@
{ {
imports = [ imports = [
inputs.dms.homeModules.dank-material-shell inputs.dms.homeModules.dank-material-shell
({ lib, pkgs, ... }: lib.mkIf pkgs.stdenv.isDarwin { }) inputs.paneru.homeModules.paneru
(
{ lib, pkgs, ... }:
lib.mkIf pkgs.stdenv.isDarwin {
services.paneru = {
enable = true;
settings = {
options = {
preset_column_widths = [
0.25
0.5
0.75
]; ];
swipe_gesture_fingers = 4;
swipe_gesture_direction = "Natural";
animation_speed = 4000;
padding_top = 4;
padding_bottom = 4;
padding_left = 4;
padding_right = 4;
};
bindings = {
window_focus_west = "cmd - h";
window_focus_east = "cmd - l";
window_focus_north = "cmd - k";
window_focus_south = "cmd - j";
window_swap_west = "alt - h";
window_swap_east = "alt - l";
window_swap_first = "alt + shift - h";
window_swap_last = "alt + shift - l";
window_center = "alt - c";
window_resize = "alt - r";
window_fullwidth = "alt - f";
window_manage = "ctrl + alt - t";
window_stack = "alt - ]";
window_unstack = "alt + shift - ]";
quit = "ctrl + alt - q";
};
windows = {
all = {
horizontal_padding = 4;
vertical_padding = 4;
};
pip = {
title = "Picture.*(in)?.*[Pp]icture";
floating = true;
};
};
};
};
}
)
(
{ lib, pkgs, ... }:
lib.mkIf pkgs.stdenv.isLinux {
services.polkit-gnome.enable = true; services.polkit-gnome.enable = true;
services.mpris-proxy.enable = true; services.mpris-proxy.enable = true;
@ -769,5 +821,8 @@
xdg.configFile."niri" = { xdg.configFile."niri" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/scrolling-desktop/niri"; source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/scrolling-desktop/niri";
}; };
}
)
];
}; };
} }