~tardypad/dotfiles

00c0c349a1b8960152233f11caa9ea1a40e395a3 — Damien Tardy-Panis 18 days ago 03a818b
Add presentation mode to mako to hide notifications

New since last release
Notifications are kept and displayed when mode is switched back to default
M files/configs/mako/config => files/configs/mako/config +3 -0
@@ 35,3 35,6 @@ format=<span foreground='#{color/error/hex}' weight='bold'> %s</span>\n%b
[category="alert"]
border-color=#{color/alert/hex}
format=<span foreground='#{color/alert/hex}' weight='bold'> %s</span>\n%b

[mode=presentation]
invisible=1

M files/docs/shell/notify.scd => files/docs/shell/notify.scd +0 -1
@@ 46,4 46,3 @@ _$XDG_RUNTIME_DIR/notification_\*_
# DEPENDENCIES

- gdbus
- presentation-mode

M files/docs/shell/presentation-mode.scd => files/docs/shell/presentation-mode.scd +1 -0
@@ 46,5 46,6 @@ _$XDG_RUNTIME_DIR/presentation_mode_

# DEPENDENCIES

- makoctl
- pkill
- swaymsg

M files/scripts/shell/notify => files/scripts/shell/notify +0 -2
@@ 86,6 86,4 @@ init_variables
parse_command_line "$@"
validate_command_line

[ "$( presentation-mode status )" = 'disabled' ] || exit 0

send_notification

M files/scripts/shell/presentation-mode => files/scripts/shell/presentation-mode +2 -0
@@ 28,6 28,7 @@ exit_error() {

pres_enable() {
  swaymsg -q bar mode invisible
  makoctl set-mode presentation

  touch "${FILE_PATH}" \
    && update_i3blocks


@@ 35,6 36,7 @@ pres_enable() {

pres_disable() {
  swaymsg -q bar mode dock
  makoctl set-mode default

  rm -f "${FILE_PATH}" \
    && update_i3blocks