Skip to content

Commit

Permalink
Fix emacs tiling
Browse files Browse the repository at this point in the history
  • Loading branch information
peel committed Mar 7, 2024
1 parent 097b594 commit 0a883d2
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 126 deletions.
44 changes: 22 additions & 22 deletions flake.lock
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
./modules/nixos/setup
{
virtualisation.host.pkgs = nixpkgs.legacyPackages.aarch64-darwin;
nixpkgs.pkgs = nixpkgs.legacyPackages.aarch64-linux.pkgs;
nixpkgs.config.pkgs = nixpkgs.legacyPackages.aarch64-linux.pkgs;
virtualisation.sharedDirectories = {
wrk = {
source = "/Users/peel/wrk";
Expand Down
2 changes: 1 addition & 1 deletion machines/demo/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ in {
boot.loader.efi.canTouchEfiVariables = true;
boot.growPartition = true;
boot.loader.grub.device = pkgs.lib.mkDefault "/dev/vda";
hardware.video.hidpi.enable = true;
# hardware.video.hidpi.enable = true;
hardware.opengl = {
enable = true;
driSupport = true;
Expand Down
99 changes: 0 additions & 99 deletions modules/darwin/linux-builder/default.nix

This file was deleted.

4 changes: 4 additions & 0 deletions modules/darwin/setup/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
services.activate-system.enable = true;
services.nix-daemon.enable = true;
programs.nix-index.enable = true;
nix.linux-builder = {
enable = true;
systems = [ "aarch64-linux" ];
};
nixpkgs.config.allowBroken = false;
}
7 changes: 4 additions & 3 deletions modules/darwin/setup/wm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ in {
yabai -m config right_padding 0
yabai -m config window_gap 0
yabai -m rule --add app="emacs" title!="(^$|${captureTitle})" manage="on"
yabai -m rule --add app="emacs" role="AXTextField" subrole="AXStandardWindow" manage="on"
# grid="<rows>:<cols>:<start-x>:<start-y>:<width>:<height>"
yabai -m rule --add app="emacs" title="^${captureTitle}$" manage="off" sticky="on" grid="1:2:1:1:4:4"
yabai -m rule --add app="Synology Surveillance Station Client" sticky="on" grid="1:4:3:0:1:1"
# yabai -m rule --add app="emacs" role="AXTextField" subrole="AXStandardWindow" title="^${captureTitle}$" manage="off" sticky="on" grid="1:2:1:1:4:4"
yabai -m rule --add app="Synology Surveillance Station Client" sticky="on" grid="4:4:3:0:1:1"
yabai -m rule --add app="Dash" manage="off"
yabai -m rule --add app="1Password" manage="off"
yabai -m rule --add app="System Preferences" manage="off"
Expand Down

0 comments on commit 0a883d2

Please sign in to comment.