Setup sworkstyle

This commit is contained in:
Nathan McCarty 2023-04-19 19:59:41 -04:00
parent ee50baf6aa
commit 146eae6f68
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 38 additions and 0 deletions

View File

@ -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 = {