Reorganize files, use less extra options on Sway, move session commands to home-manager
This commit is contained in:
parent
5cdd7b1de8
commit
ee3b40f61f
25 changed files with 64 additions and 107 deletions
|
@ -1,9 +1,5 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./makotoggle
|
||||
];
|
||||
|
||||
services.mako = {
|
||||
enable = config.home.desktop.enable;
|
||||
borderColor = "#${config.look.colors.accent}";
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; lib.mkIf config.services.mako.enable [
|
||||
(pkgs.writeScriptBin "makotoggle" ''
|
||||
mode_output=$(makoctl mode)
|
||||
|
||||
# Extract the second line after "default"
|
||||
mode_line=$(echo "$mode_output" | sed -n '/default/{n;p}')
|
||||
|
||||
if [[ "$mode_line" == "do-not-disturb" ]]; then
|
||||
makoctl mode -r do-not-disturb
|
||||
notify-send 'Notifications Enabled'
|
||||
else
|
||||
notify-send 'Notifications Disabled'
|
||||
sleep 2
|
||||
makoctl mode -a do-not-disturb
|
||||
fi
|
||||
'')
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue