add sway systemd session
This commit is contained in:
parent
a0eaadddbc
commit
7e3c92dd25
@ -5,6 +5,7 @@ let
|
||||
browserpass
|
||||
carapace
|
||||
chromium
|
||||
cliphist
|
||||
comma
|
||||
firefox
|
||||
git
|
||||
|
@ -46,6 +46,10 @@
|
||||
};
|
||||
};
|
||||
rbingwp = {
|
||||
Unit = {
|
||||
Description = "Restart bingwp and wpd services";
|
||||
After = "sway-session.target";
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = [ "${pkgs.nushell}/bin/nu -c '${pkgs.systemd}/bin/systemctl --user restart bingwp.service; ${pkgs.systemd}/bin/systemctl --user restart wpd.service'" ];
|
||||
|
6
modules/home/programs/cliphist/default.nix
Normal file
6
modules/home/programs/cliphist/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
services.cliphist = {
|
||||
enable = true;
|
||||
systemdTarget = "sway-session.target";
|
||||
};
|
||||
}
|
@ -7,6 +7,7 @@
|
||||
browserpass = { programs.browserpass.enable = true; };
|
||||
carapace = import ./carapace;
|
||||
chromium = import ./chromium { inherit pkgs; };
|
||||
cliphist = import ./cliphist;
|
||||
comma = import ./comma;
|
||||
firefox = import ./firefox { inherit pkgs; };
|
||||
git = import ./git;
|
||||
|
@ -6,12 +6,9 @@ set $right l
|
||||
set $term kitty
|
||||
set $menu bemenu-run | xargs swaymsg exec --
|
||||
|
||||
exec waybar
|
||||
exec swaymsg "workspace 1; exec kitty"
|
||||
exec swaymsg "workspace 2; exec firefox"
|
||||
|
||||
exec systemctl --user restart rbingwp.service
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ pkgs, ... }: {
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
config = null;
|
||||
extraConfig = builtins.readFile ./config;
|
||||
};
|
||||
|
@ -29,5 +29,9 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd = {
|
||||
enable = true;
|
||||
target = "sway-session.target";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user