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