From 02b7ac7e7802a600ca2432d19afbc470acfad2ef Mon Sep 17 00:00:00 2001 From: David Crompton Date: Mon, 29 Jan 2024 13:19:38 -0500 Subject: [PATCH] Tiling & Shortcuts:tm: --- machines/universeair/configuration.nix | 5 +++++ machines/universeair/sketchybar.nix | 27 ++++++++++++++++++++++++++ machines/universeair/skhd.nix | 7 +++++++ machines/universeair/yabai.nix | 12 ++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 machines/universeair/sketchybar.nix create mode 100644 machines/universeair/skhd.nix create mode 100644 machines/universeair/yabai.nix diff --git a/machines/universeair/configuration.nix b/machines/universeair/configuration.nix index f27f7f1..1da6f19 100644 --- a/machines/universeair/configuration.nix +++ b/machines/universeair/configuration.nix @@ -2,7 +2,12 @@ in { imports = [ + # Install Apps Detactable by Spotlight ./app-fix.nix + # Tiling Window Manager + ./yabai.nix + # Shortcuts babe, not Automator + ./skhd.nix ]; nix.registry.nixpkgs.flake = inputs.nixpkgs; nixpkgs.config.allowUnfree = true; diff --git a/machines/universeair/sketchybar.nix b/machines/universeair/sketchybar.nix new file mode 100644 index 0000000..555258a --- /dev/null +++ b/machines/universeair/sketchybar.nix @@ -0,0 +1,27 @@ +{config, pkgs, lib, ...}: { + services.sketchybar = { + enable = true; + config = '' +##### Bar Appearance ##### +# Configuring the general appearance of the bar, these are only some of the +# options available. For all options see: +# https://felixkratz.github.io/SketchyBar/config/bar +# If you are looking for other colors, see the color picker: +# https://felixkratz.github.io/SketchyBar/config/tricks#color-picker + +sketchybar --bar height=32 \ + blur_radius=30 \ + position=top \ + sticky=off \ + padding_left=10 \ + padding_right=10 \ + color=0x15ffffff + +##### Finalizing Setup ##### +# The below command is only needed at the end of the initial configuration to +# force all scripts to run the first time, it should never be run in an item script. + +sketchybar --update + ''; + }; +} diff --git a/machines/universeair/skhd.nix b/machines/universeair/skhd.nix new file mode 100644 index 0000000..ea9d060 --- /dev/null +++ b/machines/universeair/skhd.nix @@ -0,0 +1,7 @@ +{config, pkgs, lib, ...}: { + services.skhd = { + enable = true; + skhdConfig = '' + ''; + }; +} diff --git a/machines/universeair/yabai.nix b/machines/universeair/yabai.nix new file mode 100644 index 0000000..ee7b2e8 --- /dev/null +++ b/machines/universeair/yabai.nix @@ -0,0 +1,12 @@ +{config, pkgs, lib, ...}: { + imports = [ + # Custom Bar + ./sketchybar.nix + ]; + services.yabai = { + enable = true; + config = { + + }; + }; +}