From 563a04671073b63dfcb100d49e79c38b01d5fc01 Mon Sep 17 00:00:00 2001 From: kat witch Date: Fri, 30 Apr 2021 21:43:59 +0100 Subject: [PATCH] profiles/sway: konawall enablement --- hosts/samhain/home/sway.nix | 6 +++--- hosts/yule/home/sway.nix | 2 +- modules/home/default.nix | 2 +- pkgs/default.nix | 2 ++ profiles/sway/home/default.nix | 2 +- profiles/sway/home/konawall.nix | 7 +++++++ profiles/sway/home/sway.nix | 4 ++++ 7 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 profiles/sway/home/konawall.nix diff --git a/hosts/samhain/home/sway.nix b/hosts/samhain/home/sway.nix index ffb472ba..03fa9daa 100644 --- a/hosts/samhain/home/sway.nix +++ b/hosts/samhain/home/sway.nix @@ -9,17 +9,17 @@ left = { res = "1920x1080"; pos = "0 0"; - bg = "${../../../private/files/wallpapers/left.jpg} fill"; + #bg = "${../../../private/files/wallpapers/left.jpg} fill"; }; middle = { res = "1920x1080"; pos = "1920 0"; - bg = "${../../../private/files/wallpapers/main.png} fill"; + #bg = "${../../../private/files/wallpapers/main.png} fill"; }; right = { res = "1920x1080"; pos = "3840 0"; - bg = "${../../../private/files/wallpapers/right.jpg} fill"; + #bg = "${../../../private/files/wallpapers/right.jpg} fill"; }; in { "DP-1" = left; diff --git a/hosts/yule/home/sway.nix b/hosts/yule/home/sway.nix index bf2cc104..eeb4178a 100644 --- a/hosts/yule/home/sway.nix +++ b/hosts/yule/home/sway.nix @@ -6,7 +6,7 @@ laptop = { res = "1920x1080"; pos = "0 0"; - bg = "${../../../private/files/wallpapers/main.png} fill"; + #bg = "${../../../private/files/wallpapers/main.png} fill"; }; in { "eDP-1" = laptop; }; diff --git a/modules/home/default.nix b/modules/home/default.nix index 7a7cee56..56f34bdc 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -7,7 +7,7 @@ (sources.tf-nix + "/modules/home/secrets.nix") (import (sources.arc-nixexprs + "/modules")).home-manager.base16 (import (sources.arc-nixexprs + "/modules")).home-manager.syncplay - # (sources.arc-nixexprs + "/modules/home/base16-shell.nix") + (import (sources.arc-nixexprs + "/modules")).home-manager.konawall (sources.arc-nixexprs + "/modules/home/weechat.nix") ]; } diff --git a/pkgs/default.nix b/pkgs/default.nix index f3f1b672..ccac89b7 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -54,6 +54,8 @@ let hextorgba = (import ../lib/colorhelpers.nix { inherit (super) lib; }).hextorgba; + konawall = super.konawall.overide { swaySupport = true; }; + ff-sponsorblock = self.callPackage ./ff-sponsorblock { }; kat-glauca-dns = self.callPackage ./kat-glauca-dns { }; diff --git a/profiles/sway/home/default.nix b/profiles/sway/home/default.nix index 22532153..334b7291 100644 --- a/profiles/sway/home/default.nix +++ b/profiles/sway/home/default.nix @@ -1,5 +1,5 @@ { config, pkgs, ... }: { - imports = [ ./waybar ./mako.nix ./sway.nix ./swayidle.nix ./gammastep.nix ]; + imports = [ ./waybar ./mako.nix ./sway.nix ./swayidle.nix ./gammastep.nix ./konawall.nix ]; } diff --git a/profiles/sway/home/konawall.nix b/profiles/sway/home/konawall.nix new file mode 100644 index 00000000..996b0af3 --- /dev/null +++ b/profiles/sway/home/konawall.nix @@ -0,0 +1,7 @@ +{ config, ... }: + +{ + services.konawall = { + enable = true; + }; +} diff --git a/profiles/sway/home/sway.nix b/profiles/sway/home/sway.nix index 19861f35..6dc3bd12 100644 --- a/profiles/sway/home/sway.nix +++ b/profiles/sway/home/sway.nix @@ -123,6 +123,10 @@ in { always = true; } { command = "mkchromecast -t"; } + { + command = "systemctl --user restart konawall.service"; + always = true; + } ]; window = {