mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
added dnd mode and window swallowing
This commit is contained in:
parent
fd46423f0f
commit
9346f157b7
|
@ -7,6 +7,8 @@
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pulseaudio # installed to have pactl
|
pulseaudio # installed to have pactl
|
||||||
|
jq
|
||||||
|
notify-desktop
|
||||||
wofi
|
wofi
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
grim
|
grim
|
||||||
|
@ -78,6 +80,16 @@
|
||||||
save_dir = ~/Pictures/Screenshots/
|
save_dir = ~/Pictures/Screenshots/
|
||||||
early_exit = true
|
early_exit = true
|
||||||
'';
|
'';
|
||||||
|
"mako/do-not-disturb.sh".text = ''
|
||||||
|
if [[ $(makoctl mode) = 'default' ]];then
|
||||||
|
notify-desktop 'Enabled Do Not Disturb mode'
|
||||||
|
sleep 5
|
||||||
|
makoctl mode -s do-not-disturb
|
||||||
|
else
|
||||||
|
makoctl mode -s default
|
||||||
|
notify-desktop 'Disabled Do Not Disturb mode'
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mako = {
|
programs.mako = {
|
||||||
|
@ -91,6 +103,8 @@
|
||||||
[urgency=high]
|
[urgency=high]
|
||||||
background-color=#${config.colorScheme.colors.base08}
|
background-color=#${config.colorScheme.colors.base08}
|
||||||
default-timeout=0
|
default-timeout=0
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,12 @@ gestures {
|
||||||
workspace_swipe = off # doesn't really work
|
workspace_swipe = off # doesn't really work
|
||||||
}
|
}
|
||||||
|
|
||||||
|
misc {
|
||||||
|
enable_swallow = true
|
||||||
|
swallow_regex = ^Alacritty$
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Example windowrule v1
|
# Example windowrule v1
|
||||||
# windowrule = float, ^(kitty)$
|
# windowrule = float, ^(kitty)$
|
||||||
# Example windowrule v2
|
# Example windowrule v2
|
||||||
|
@ -152,9 +158,9 @@ bind = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||||
bind = ,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
|
bind = ,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||||
|
|
||||||
# even more fancy stuff (aka abusing XF86 keys)
|
# even more fancy stuff (aka abusing XF86 keys)
|
||||||
bind = ,XF86WLAN, exec, wpa_gui
|
|
||||||
bind = ,XF86Messenger, exec, makoctl dismiss
|
bind = ,XF86Messenger, exec, makoctl dismiss
|
||||||
bind = SHIFT ,XF86Messenger, exec, makoctl restore
|
bind = SHIFT ,XF86Messenger, exec, makoctl restore
|
||||||
bind = ,XF86Go, exec, makoctl invoke
|
bind = ,XF86Go, exec, makoctl invoke
|
||||||
|
bind = ,Cancel, exec, sh ~/.config/mako/do-not-disturb.sh
|
||||||
bind = ,XF86Display, exec, hyprpaper
|
bind = ,XF86Display, exec, hyprpaper
|
||||||
bind = ,Cancel, exec, swaylock
|
bind = ,XF86Favorites, exec, swaylock
|
||||||
|
|
Loading…
Reference in a new issue