mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat: switch to niri+noctalia
This commit is contained in:
parent
a343de7a90
commit
694dd794f7
38 changed files with 3922 additions and 2066 deletions
|
|
@ -6,16 +6,18 @@
|
|||
systemd.user.services.anki-applet = {
|
||||
Unit = {
|
||||
Description = "Anki applet";
|
||||
Requires = [ "tray.target" ];
|
||||
Requires = [ "graphical-session.target" ];
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"tray.target"
|
||||
];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"tray.target"
|
||||
];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
WantedBy = [ "tray.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ in
|
|||
config = lib.mkIf config.swarselmodules.${moduleName} {
|
||||
services.${moduleName} = {
|
||||
enable = true;
|
||||
systemdTarget = config.wayland.systemd.target;
|
||||
systemdTarget = "sway-session.target";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
bak
|
||||
timer
|
||||
e
|
||||
niri-resize
|
||||
swarselcheck
|
||||
swarselcheck-niri
|
||||
waybarupdate
|
||||
|
|
|
|||
|
|
@ -6,16 +6,18 @@
|
|||
systemd.user.services.element-applet = {
|
||||
Unit = {
|
||||
Description = "Element applet";
|
||||
Requires = [ "tray.target" ];
|
||||
Requires = [ "graphical-session.target" ];
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"tray.target"
|
||||
];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"tray.target"
|
||||
];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
WantedBy = [ "tray.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
|||
|
|
@ -6,18 +6,18 @@
|
|||
systemd.user.services.firezone-applet = {
|
||||
Unit = {
|
||||
Description = "Firezone applet";
|
||||
Requires = [
|
||||
"tray.target"
|
||||
];
|
||||
Requires = [ "graphical-session.target" ];
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"tray.target"
|
||||
];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"tray.target"
|
||||
];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
WantedBy = [ "tray.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ in
|
|||
{
|
||||
options.swarselmodules.gammastep = lib.mkEnableOption "gammastep settings";
|
||||
config = lib.mkIf config.swarselmodules.gammastep {
|
||||
systemd.user.services.gammastep = confLib.overrideTarget "sway-session.target";
|
||||
services.gammastep = lib.mkIf (config.swarselsystems.isNixos && !config.swarselsystems.isPublic) {
|
||||
enable = true;
|
||||
provider = "manual";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ self, lib, pkgs, config, ... }:
|
||||
{ self, lib, pkgs, config, confLib, ... }:
|
||||
{
|
||||
options.swarselmodules.kanshi = lib.mkEnableOption "kanshi settings";
|
||||
config = lib.mkIf config.swarselmodules.kanshi {
|
||||
|
|
@ -14,6 +14,8 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.kanshi = confLib.overrideTarget "sway-session.target";
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
|
|
|
|||
|
|
@ -6,16 +6,18 @@
|
|||
systemd.user.services.obsidian-applet = {
|
||||
Unit = {
|
||||
Description = "Obsidian applet";
|
||||
Requires = [ "tray.target" ];
|
||||
Requires = [ "graphical-session.target" ];
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"tray.target"
|
||||
];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"tray.target"
|
||||
];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
WantedBy = [ "tray.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ in
|
|||
startup = config.swarselsystems.startup ++ [
|
||||
{ command = "kitty -T kittyterm -o confirm_os_window_close=0 zellij attach --create kittyterm"; }
|
||||
{ command = "sleep 60; kitty -T spotifytui -o confirm_os_window_close=0 spotify_player"; }
|
||||
{ command = "mako"; }
|
||||
];
|
||||
seat = {
|
||||
"*" = {
|
||||
|
|
|
|||
|
|
@ -10,23 +10,25 @@ in
|
|||
brightnessctl = "${lib.getExe pkgs.brightnessctl}";
|
||||
swaylock = "${lib.getExe pkgs.swaylock-effects}";
|
||||
suspend = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
noctalia = "/etc/profiles/per-user/${config.swarselsystems.mainUser}/bin/noctalia-shell ipc call";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
systemdTarget = config.wayland.systemd.target;
|
||||
# systemdTarget = "sway-session.target";
|
||||
extraArgs = [ "-w" ];
|
||||
timeouts = [
|
||||
{ timeout = 60; command = "${brightnessctl} -s; ${brightnessctl} set 80%-"; resumeCommand = "${brightnessctl} -r"; }
|
||||
# { timeout = 300; command = "${lib.getExe pkgs.swaylock-effects} -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2"; }
|
||||
{ timeout = 300; command = "${swaylock} -f"; }
|
||||
# { timeout = 300; command = "${swaylock} -f"; }
|
||||
{ timeout = 300; command = "${noctalia} lockScreen lock || ${swaylock} -f"; }
|
||||
# { timeout = 600; command = ''${pkgs.sway}/bin/swaymsg "output * dpms off"; resumeCommand = "${pkgs.sway}/bin/swaymsg output * dpms on''; }
|
||||
{ timeout = 600; command = "${suspend}"; }
|
||||
{ timeout = 600; command = "${noctalia} sessionMenu lockAndSuspend || ${suspend}"; }
|
||||
];
|
||||
events = {
|
||||
# { event = "before-sleep"; command = "${lib.getExe pkgs.swaylock-effects} -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2"; }
|
||||
# { event = "after-resume"; command = "${swaylock} -f "; }
|
||||
before-sleep = "${swaylock} -f ";
|
||||
lock = "${swaylock} -f ";
|
||||
# before-sleep = "${swaylock} -f ";
|
||||
# lock = "${swaylock} -f ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{ lib, pkgs, config, confLib, ... }:
|
||||
{
|
||||
options.swarselmodules.swayosd = lib.mkEnableOption "swayosd settings";
|
||||
config = lib.mkIf config.swarselmodules.swayosd {
|
||||
systemd.user.services.swayosd = confLib.overrideTarget "sway-session.target";
|
||||
services.swayosd = {
|
||||
enable = true;
|
||||
package = pkgs.dev.swayosd;
|
||||
|
|
|
|||
|
|
@ -6,16 +6,18 @@
|
|||
systemd.user.services.vesktop-applet = {
|
||||
Unit = {
|
||||
Description = "Vesktop applet";
|
||||
Requires = [ "tray.target" ];
|
||||
Requires = [ "graphical-session.target" ];
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"tray.target"
|
||||
];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"tray.target"
|
||||
];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
WantedBy = [ "tray.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ in
|
|||
enable = true;
|
||||
systemd = {
|
||||
enable = false;
|
||||
# target = "sway-session.target";
|
||||
inherit (config.wayland.systemd) target;
|
||||
target = "sway-session.target";
|
||||
# inherit (config.wayland.systemd) target;
|
||||
};
|
||||
settings = {
|
||||
mainBar = {
|
||||
|
|
|
|||
|
|
@ -5,12 +5,14 @@
|
|||
programs.zellij = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
attachExistingSession = false;
|
||||
exitShellOnExit = true;
|
||||
settings = {
|
||||
pane_frames = false;
|
||||
simplified_ui = false;
|
||||
default_shell = "zsh";
|
||||
copy_on_select = true;
|
||||
on_force_close = "detach";
|
||||
on_force_close = "quit";
|
||||
show_startup_tips = false;
|
||||
support_kitty_keyboard_protocol = true;
|
||||
default_layout = "swarsel";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue