home | sway - add logic to get diff sway config per host

This commit is contained in:
Don Harper 2023-12-02 09:09:40 -06:00
parent a9e00558b2
commit fe602d5809
3 changed files with 395 additions and 4 deletions

View file

@ -1,6 +1,11 @@
{ config, pkgs, ... }:
let
lib.mkIf networking.hostName == "pocket2" then { source = files/sway/pocket2; }
lib.mkIf networking.hostName != "pocket2" then { source = files/sway/default; }
in
{
xdg.configFile."sway/config".source = files/sway.config;
xdg.configFile."sway/config".source = source;
programs.swaylock = {
enable = true;
settings = {
@ -92,9 +97,7 @@
#custom-mycal { background: #cccc99; color: #2a5c45; }
#temperature { background: #f0932b; }
#temperature.critical { background: #eb4d4b; }
#tray { background-color: #64727D; }
#idle_inhibitor { background-color: #2d3436; }
#idle_inhibitor.activated { background-color: #ecf0f1; color: #2d3436; }
#tray { background-color: #64727D; } idle_inhibitor { background-color: #2d3436; } idle_inhibitor.activated { background-color: #ecf0f1; color: #2d3436; }
'';
};
}