From 146eae6f68a4f396ab116cf6e4a6c07615574aa8 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Wed, 19 Apr 2023 19:59:41 -0400 Subject: [PATCH] Setup sworkstyle --- home-manager/linux/programs/sway.nix | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/home-manager/linux/programs/sway.nix b/home-manager/linux/programs/sway.nix index 7fc9775..84ed5f3 100644 --- a/home-manager/linux/programs/sway.nix +++ b/home-manager/linux/programs/sway.nix @@ -41,6 +41,10 @@ in with lib; { evince # Productivity libreoffice-fresh + ## Sway addons + # sworkstyle - Automatic workspace renaming + swayest-workstyle + font-awesome ]; ######################### ## Sway @@ -179,6 +183,40 @@ in with lib; { }; }; ######################### + ## Sway Addons + ######################### + ## swayest_workstyle + # first setup the service + systemd.user.services.sworkstyle = { + Unit = { + Description = "sworkstyle - sway workspace renamer"; + After = [ "graphical-session.target" ]; + }; + Service = { + Type = "simple"; + ExecStart = '' + ${pkgs.swayest-workstyle}/bin/sworkstyle + ''; + Restart = "always"; + }; + Install = { WantedBy = [ "graphical-session.target" ]; }; + }; + # then setup the configuration + xdg.configFile."sworkstyle" = { + target = "sworkstyle/config.toml"; + text = '' + [matching] + 'firefox-beta' = '' + 'emacs' = '' + 'signal' = '' + 'chrome-messages.google.com__web-Default' = '' + 'chrome-app.cinny.in__-Default' = '' + 'chrome-messenger.com__-Default' = '' + 'chrome-localhost__iris_-Default' = '' + 'org.jellyfin.' = '' + ''; + }; + ######################### ## Mako (notifications) ######################### programs.mako = {