Swap swaync for mako
Remove separate swaylockfx file, combine in default
This commit is contained in:
parent
9af40b1b40
commit
c9b3731026
|
@ -10,9 +10,9 @@
|
|||
imports = [
|
||||
../avizo/default.nix
|
||||
../fuzzel/default.nix
|
||||
../mako/default.nix
|
||||
../swaylock/default.nix
|
||||
../swayidle/default.nix
|
||||
../swaync/default.nix
|
||||
../waybar/default.nix
|
||||
../wlogout/default.nix
|
||||
];
|
||||
|
@ -175,6 +175,7 @@
|
|||
{
|
||||
command = "${pkgs.swaybg}/bin/swaybg -m fill -i ${../wallpapers/landscapes/tropic_island_day.jpg}";
|
||||
}
|
||||
{ command = "${config.services.mako.package}/bin/mako"; }
|
||||
];
|
||||
window = {
|
||||
border = 1;
|
||||
|
@ -243,8 +244,8 @@
|
|||
|
||||
# System utilities
|
||||
"Mod4+Mod1+l" = "exec swaylockfx";
|
||||
"${modifier}+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw";
|
||||
"${modifier}+Shift+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw";
|
||||
"${modifier}+z" = "exec ${config.services.mako.package}/bin/makoctl restore";
|
||||
"${modifier}+Shift+z" = "exec ${config.services.mako.package}/bin/makoctl dismiss -a";
|
||||
"${modifier}+Shift+p" = "exec ${config.programs.wlogout.package}/bin/wlogout";
|
||||
"${modifier}+Shift+Return" = "exec ${config.programs.emacs.finalPackage}/bin/emacsclient -c";
|
||||
};
|
||||
|
@ -266,8 +267,6 @@
|
|||
layer_effects "logout_dialog" blur enable; blur_ignore_transparent enable; shadows enable
|
||||
layer_effects "waybar" blur enable; blur_ignore_transparent enable; shadows enable
|
||||
layer_effects "avizo" blur enable; blur_ignore_transparent enable; shadows enable
|
||||
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; shadows enable
|
||||
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; shadows enable
|
||||
titlebar_separator enable
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(callPackage ./swaylockfx.nix { swaylock-effects = config.programs.swaylock.package; })
|
||||
(writeShellScriptBin "swaylockfx" ''
|
||||
${swaylock-effects}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse
|
||||
'')
|
||||
];
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
{ writeShellScriptBin, swaylock-effects, ... }:
|
||||
writeShellScriptBin "swaylockfx" "${swaylock-effects}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse"
|
|
@ -245,27 +245,14 @@
|
|||
};
|
||||
"custom/notification" =
|
||||
let
|
||||
swaync = pkgs.swaynotificationcenter;
|
||||
makoctl = "${config.services.mako.package}/bin/makoctl";
|
||||
jq = "${pkgs.jq}/bin/jq";
|
||||
in
|
||||
{
|
||||
tooltip = false;
|
||||
format = "{icon}{}";
|
||||
format-icons = {
|
||||
notification = " ";
|
||||
none = " ";
|
||||
dnd-notification = " ";
|
||||
dnd-none = " ";
|
||||
inhibited-notification = " ";
|
||||
inhibited-none = " ";
|
||||
dnd-inhibited-notification = " ";
|
||||
dnd-inhibited-none = " ";
|
||||
};
|
||||
return-type = "json";
|
||||
exec-if = "which ${swaync}/bin/swaync-client";
|
||||
exec = "${swaync}/bin/swaync-client -swb";
|
||||
on-click = "${swaync}/bin/swaync-client -t -sw";
|
||||
on-click-right = "${swaync}/bin/swaync-client -d -sw";
|
||||
escape = true;
|
||||
exec = "( ${makoctl} list | ${jq} -e '.data[] | length > 0' >/dev/null && echo ' ' ) || echo ' ' ";
|
||||
format = "{}";
|
||||
on-click = "${makoctl} dismiss -a";
|
||||
interval = 3;
|
||||
};
|
||||
"custom/weather" =
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue