home | sway - fix logic for sway config
This commit is contained in:
parent
588184d080
commit
4517857d08
1 changed files with 52 additions and 50 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
with config;
|
||||||
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 = source;
|
xdg.configFile =
|
||||||
|
{
|
||||||
|
"sway/config".source =
|
||||||
|
if (builtins.getEnv "HOSTNAME_SHORT" == "pocket2")
|
||||||
|
then files/sway/pocket2
|
||||||
|
else files/sway/default;
|
||||||
|
};
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -100,4 +102,4 @@ in
|
||||||
#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; }
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue