profiles/sway: i3gopher+konawall stuff from arcnmx-nixexprs, added

duration?
This commit is contained in:
kat witch 2021-05-03 18:19:30 +01:00
parent aae5a7d250
commit bdf77d77b0
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 6 additions and 16 deletions

View file

@ -8,6 +8,7 @@
(import (sources.arc-nixexprs + "/modules")).home-manager.base16
(import (sources.arc-nixexprs + "/modules")).home-manager.syncplay
(import (sources.arc-nixexprs + "/modules")).home-manager.konawall
(import (sources.arc-nixexprs + "/modules")).home-manager.i3gopher
(sources.arc-nixexprs + "/modules/home/weechat.nix")
];
}

View file

@ -1,5 +1,5 @@
{ config, ... }:
{ config, pkgs, lib, ... }:
{
services.konawall = { enable = true; };
services.konawall = { enable = true; interval = "20m"; };
}

View file

@ -17,19 +17,8 @@ in {
home.packages = with pkgs; [ grim slurp wl-clipboard jq ];
systemd.user.services.i3gopher = {
Unit = {
Description = "i3 focus history";
After = [ "sway-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "exec";
Restart = "on-failure";
StandardOutput = "null";
ExecStart = "${pkgs.i3gopher}/bin/i3gopher";
};
Install.WantedBy = [ "sway-session.target" ];
services.i3gopher = {
enable = true;
};
programs.zsh.profileExtra = ''
@ -152,7 +141,7 @@ in {
"${cfg.modifier}+Tab" = "workspace back_and_forth";
"${cfg.modifier}+Shift+Tab" =
"exec ${pkgs.i3gopher}/bin/i3gopher --focus-last";
"exec ${config.services.i3gopher.focus-last}";
"${cfg.modifier}+Ctrl+Left" = "workspace prev_on_output";
"${cfg.modifier}+Ctrl+Right" = "workspace next_on_output";