~tardypad/dotfiles

cb1233ee38ea830ed32a6c5463ae030060f0c0d2 — Damien Tardy-Panis 9 months ago 200dd05
Rename presentation to presentation-mode

Not to be confused with a tool to make a presentation
Consistency with night-mode
10 files changed, 34 insertions(+), 34 deletions(-)

M files/configs/i3blocks/config
M files/configs/sway/config.d/bindings
M files/docs/shell/Makefile
M files/docs/shell/notify.scd
R files/docs/shell/{presentation.scd => presentation-mode.scd}
M files/scripts/i3blocks/Makefile
R files/scripts/i3blocks/{i3blocks-presentation => i3blocks-presentation-mode}
M files/scripts/shell/Makefile
M files/scripts/shell/notify
R files/scripts/shell/{presentation => presentation-mode}
M files/configs/i3blocks/config => files/configs/i3blocks/config +1 -1
@@ 23,7 23,7 @@ signal=4

[chat]

[presentation]
[presentation-mode]
signal=10

[microphone]

M files/configs/sway/config.d/bindings => files/configs/sway/config.d/bindings +1 -1
@@ 41,7 41,7 @@ bindsym $mod+{key/i} exec sway-toggle-window-idle-inhibitor visible \
bindsym --locked $mod+{key/t} exec night-mode toggle

# toggle presentation mode
bindsym $mod+Ctrl+{key/p} exec presentation toggle
bindsym $mod+Ctrl+{key/p} exec presentation-mode toggle


## notifications

M files/docs/shell/Makefile => files/docs/shell/Makefile +1 -1
@@ 34,7 34,7 @@ shell-docs:
	$(setup_file)/docs/shell/play-somafm.scd              | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/play-somafm.1perso
	$(setup_file)/docs/shell/plot.scd                     | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/plot.1perso
	$(setup_file)/docs/shell/pomodoro.scd                 | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/pomodoro.1perso
	$(setup_file)/docs/shell/presentation.scd             | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/presentation.1perso
	$(setup_file)/docs/shell/presentation-mode.scd        | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/presentation-mode.1perso
	$(setup_file)/docs/shell/project-path.scd             | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/project-path.1perso
	$(setup_file)/docs/shell/query-hosts-tags.scd         | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/query-hosts-tags.1perso
	$(setup_file)/docs/shell/read-news.scd                | scdoc > $(DESTDIR)$(DATA_DIR)/man/man1/read-news.1perso

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

- gdbus
- presentation
- presentation-mode

R files/docs/shell/presentation.scd => files/docs/shell/presentation-mode.scd +9 -9
@@ 1,16 1,16 @@
presentation(1perso)
presentation-mode(1perso)

# NAME

presentation - Manage "presentation" mode
presentation-mode - Manage presentation mode

# SYNOPSIS

presentation [ *status* | *enable* | *disable* | *toggle* ]
presentation-mode [ *status* | *enable* | *disable* | *toggle* ]

# DESCRIPTION

Manage "presentation" mode.
Manage presentation mode.

# OPTIONS



@@ 19,17 19,17 @@ None
# OPERANDS

*status*
	Display whether the "presentation" mode is "enabled" or "disabled"++
	Display whether the presentation mode is "enabled" or "disabled"++
This is the default action if none is specified

*disable*
	Disable "presentation" mode
	Disable presentation mode

*enable*
	Enable "presentation" mode
	Enable presentation mode

*toggle*
	Toggle "presentation" mode
	Toggle presentation mode

# ENVIRONMENT VARIABLES



@@ 39,7 39,7 @@ If unset, defaults to /tmp

# FILES

_$XDG_RUNTIME_DIR/presentation_
_$XDG_RUNTIME_DIR/presentation_mode_
	File used as a flag to store the status of the mode

# DEPENDENCIES

M files/scripts/i3blocks/Makefile => files/scripts/i3blocks/Makefile +15 -15
@@ 3,20 3,20 @@ all: i3blocks-scripts
i3blocks-scripts:
	mkdir -p $(DESTDIR)$(BIN_DIR)

	$(setup_file)/scripts/i3blocks/i3blocks-bluetooth      > $(DESTDIR)$(BIN_DIR)/i3blocks-bluetooth
	$(setup_file)/scripts/i3blocks/i3blocks-chat           > $(DESTDIR)$(BIN_DIR)/i3blocks-chat
	$(setup_file)/scripts/i3blocks/i3blocks-do-not-disturb > $(DESTDIR)$(BIN_DIR)/i3blocks-do-not-disturb
	$(setup_file)/scripts/i3blocks/i3blocks-idle-inhibitor > $(DESTDIR)$(BIN_DIR)/i3blocks-idle-inhibitor
	$(setup_file)/scripts/i3blocks/i3blocks-microphone     > $(DESTDIR)$(BIN_DIR)/i3blocks-microphone
	$(setup_file)/scripts/i3blocks/i3blocks-music          > $(DESTDIR)$(BIN_DIR)/i3blocks-music
	$(setup_file)/scripts/i3blocks/i3blocks-network        > $(DESTDIR)$(BIN_DIR)/i3blocks-network
	$(setup_file)/scripts/i3blocks/i3blocks-night-mode     > $(DESTDIR)$(BIN_DIR)/i3blocks-night-mode
	$(setup_file)/scripts/i3blocks/i3blocks-pomodoro       > $(DESTDIR)$(BIN_DIR)/i3blocks-pomodoro
	$(setup_file)/scripts/i3blocks/i3blocks-power          > $(DESTDIR)$(BIN_DIR)/i3blocks-power
	$(setup_file)/scripts/i3blocks/i3blocks-presentation   > $(DESTDIR)$(BIN_DIR)/i3blocks-presentation
	$(setup_file)/scripts/i3blocks/i3blocks-time-tracker   > $(DESTDIR)$(BIN_DIR)/i3blocks-time-tracker
	$(setup_file)/scripts/i3blocks/i3blocks-volume         > $(DESTDIR)$(BIN_DIR)/i3blocks-volume
	$(setup_file)/scripts/i3blocks/i3blocks-webcam         > $(DESTDIR)$(BIN_DIR)/i3blocks-webcam
	$(setup_file)/scripts/i3blocks/i3blocks-bluetooth         > $(DESTDIR)$(BIN_DIR)/i3blocks-bluetooth
	$(setup_file)/scripts/i3blocks/i3blocks-chat              > $(DESTDIR)$(BIN_DIR)/i3blocks-chat
	$(setup_file)/scripts/i3blocks/i3blocks-do-not-disturb    > $(DESTDIR)$(BIN_DIR)/i3blocks-do-not-disturb
	$(setup_file)/scripts/i3blocks/i3blocks-idle-inhibitor    > $(DESTDIR)$(BIN_DIR)/i3blocks-idle-inhibitor
	$(setup_file)/scripts/i3blocks/i3blocks-microphone        > $(DESTDIR)$(BIN_DIR)/i3blocks-microphone
	$(setup_file)/scripts/i3blocks/i3blocks-music             > $(DESTDIR)$(BIN_DIR)/i3blocks-music
	$(setup_file)/scripts/i3blocks/i3blocks-network           > $(DESTDIR)$(BIN_DIR)/i3blocks-network
	$(setup_file)/scripts/i3blocks/i3blocks-night-mode        > $(DESTDIR)$(BIN_DIR)/i3blocks-night-mode
	$(setup_file)/scripts/i3blocks/i3blocks-pomodoro          > $(DESTDIR)$(BIN_DIR)/i3blocks-pomodoro
	$(setup_file)/scripts/i3blocks/i3blocks-power             > $(DESTDIR)$(BIN_DIR)/i3blocks-power
	$(setup_file)/scripts/i3blocks/i3blocks-presentation-mode > $(DESTDIR)$(BIN_DIR)/i3blocks-presentation-mode
	$(setup_file)/scripts/i3blocks/i3blocks-time-tracker      > $(DESTDIR)$(BIN_DIR)/i3blocks-time-tracker
	$(setup_file)/scripts/i3blocks/i3blocks-volume            > $(DESTDIR)$(BIN_DIR)/i3blocks-volume
	$(setup_file)/scripts/i3blocks/i3blocks-webcam            > $(DESTDIR)$(BIN_DIR)/i3blocks-webcam

	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-bluetooth
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-chat


@@ 28,7 28,7 @@ i3blocks-scripts:
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-night-mode
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-pomodoro
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-power
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-presentation
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-presentation-mode
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-time-tracker
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-volume
	chmod +x $(DESTDIR)$(BIN_DIR)/i3blocks-webcam

R files/scripts/i3blocks/i3blocks-presentation => files/scripts/i3blocks/i3blocks-presentation-mode +2 -2
@@ 1,8 1,8 @@
#!/bin/sh
# commands used:
# - presentation
# - presentation-mode

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

COLOR='#{color/notice/hex}'
TEXT=''

M files/scripts/shell/Makefile => files/scripts/shell/Makefile +2 -2
@@ 34,7 34,7 @@ shell-scripts:
	$(setup_file)/scripts/shell/play-somafm                  > $(DESTDIR)$(BIN_DIR)/play-somafm
	$(setup_file)/scripts/shell/plot                         > $(DESTDIR)$(BIN_DIR)/plot
	$(setup_file)/scripts/shell/pomodoro                     > $(DESTDIR)$(BIN_DIR)/pomodoro
	$(setup_file)/scripts/shell/presentation                 > $(DESTDIR)$(BIN_DIR)/presentation
	$(setup_file)/scripts/shell/presentation-mode            > $(DESTDIR)$(BIN_DIR)/presentation-mode
	$(setup_file)/scripts/shell/project-path                 > $(DESTDIR)$(BIN_DIR)/project-path
	$(setup_file)/scripts/shell/query-hosts-tags             > $(DESTDIR)$(BIN_DIR)/query-hosts-tags
	$(setup_file)/scripts/shell/read-news                    > $(DESTDIR)$(BIN_DIR)/read-news


@@ 82,7 82,7 @@ shell-scripts:
	chmod +x $(DESTDIR)$(BIN_DIR)/play-somafm
	chmod +x $(DESTDIR)$(BIN_DIR)/plot
	chmod +x $(DESTDIR)$(BIN_DIR)/pomodoro
	chmod +x $(DESTDIR)$(BIN_DIR)/presentation
	chmod +x $(DESTDIR)$(BIN_DIR)/presentation-mode
	chmod +x $(DESTDIR)$(BIN_DIR)/project-path
	chmod +x $(DESTDIR)$(BIN_DIR)/query-hosts-tags
	chmod +x $(DESTDIR)$(BIN_DIR)/read-news

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

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

send_notification

R files/scripts/shell/presentation => files/scripts/shell/presentation-mode +1 -1
@@ 3,7 3,7 @@
init_variables() {
  COMMAND=${0##*/}

  FILE_PATH="${XDG_RUNTIME_DIR:-/tmp}/presentation"
  FILE_PATH="${XDG_RUNTIME_DIR:-/tmp}/presentation_mode"

  ACTION='status'
}