~tardypad/dotfiles

937cd6ac18b17672e4f0cf6f9262fde02f12ecf7 — Damien Tardy-Panis 2 years ago 0a5306c
move scripts commands used comments to a dependencies list in their man page
136 files changed, 359 insertions(+), 226 deletions(-)

M README.md
M TODO.md
M files/docs/git/git-init-todo.scd
M files/docs/git/git-reauthor.scd
M files/docs/git/git-run-command.scd
M files/docs/git/git-sed.scd
M files/docs/git/git-stamp.scd
M files/docs/git/git-url.scd
M files/docs/i3blocks/i3blocks-bluetooth.scd
M files/docs/i3blocks/i3blocks-chat.scd
M files/docs/i3blocks/i3blocks-do-not-disturb.scd
M files/docs/i3blocks/i3blocks-music.scd
M files/docs/i3blocks/i3blocks-network.scd
M files/docs/i3blocks/i3blocks-pomodoro.scd
M files/docs/i3blocks/i3blocks-power.scd
M files/docs/i3blocks/i3blocks-volume.scd
M files/docs/shell/backup-bookmarks.scd
M files/docs/shell/backup-notes.scd
M files/docs/shell/check-notify-low-battery.scd
M files/docs/shell/check-notify-package-updates.scd
M files/docs/shell/color-picker.scd
M files/docs/shell/do-not-disturb.scd
M files/docs/shell/documentation-all.scd
M files/docs/shell/documentation.scd
M files/docs/shell/http-env.scd
M files/docs/shell/i3blocks-mode.scd
M files/docs/shell/influx-env.scd
M files/docs/shell/mysql-env.scd
M files/docs/shell/notify-end-pomodoro.scd
M files/docs/shell/notify-tmux-alert.scd
M files/docs/shell/notify.scd
M files/docs/shell/pacman-pkgdiff.scd
M files/docs/shell/plot.scd
M files/docs/shell/pomodoro.scd
M files/docs/shell/project-path.scd
M files/docs/shell/redis-env.scd
M files/docs/shell/screenshot.scd
M files/docs/shell/ssh-tags.scd
M files/docs/shell/status.scd
M files/docs/shell/tmux-env.scd
M files/docs/sway/sway-app-chat.scd
M files/docs/sway/sway-app-mail.scd
M files/docs/sway/sway-app-monitor.scd
M files/docs/sway/sway-app-music.scd
M files/docs/sway/sway-app-news.scd
M files/docs/sway/sway-app-tmux-env.scd
M files/docs/sway/sway-command-input-exec.scd
M files/docs/sway/sway-command-input.scd
M files/docs/sway/sway-create-workspace.scd
M files/docs/sway/sway-focus-window-title.scd
M files/docs/sway/sway-fzf-launcher.scd
M files/docs/sway/sway-launch-app.scd
M files/docs/sway/sway-launch-command.scd
M files/docs/sway/sway-launch-note.scd
M files/docs/sway/sway-launch-password.scd
M files/docs/sway/sway-launch-system.scd
M files/docs/sway/sway-launch-tmux-env.scd
M files/docs/sway/sway-launcher.scd
M files/docs/sway/sway-move-window-new-workspace.scd
M files/docs/sway/sway-rename-workspace.scd
M files/docs/sway/sway-run-command.scd
M files/docs/tmux/tmux-extract-tokens.scd
M files/docs/tmux/tmux-move-pane-window-index.scd
M files/docs/tmux/tmux-move-window-index.scd
M files/docs/tmux/tmux-notify-alert.scd
M files/docs/tmux/tmux-select-pane-vim.scd
M files/docs/tmux/tmux-toggle-monitor-activity.scd
M files/docs/tmux/tmux-toggle-monitor-silence.scd
M files/docs/tmux/tmux-toggle-no-distraction.scd
M files/scripts/git/git-init-todo
M files/scripts/git/git-reauthor
M files/scripts/git/git-run-command
M files/scripts/git/git-sed
M files/scripts/git/git-stamp
M files/scripts/git/git-url
M files/scripts/i3blocks/i3blocks-bluetooth
M files/scripts/i3blocks/i3blocks-chat
M files/scripts/i3blocks/i3blocks-do-not-disturb
M files/scripts/i3blocks/i3blocks-music
M files/scripts/i3blocks/i3blocks-network
M files/scripts/i3blocks/i3blocks-pomodoro
M files/scripts/i3blocks/i3blocks-power
M files/scripts/i3blocks/i3blocks-volume
M files/scripts/shell/backup-bookmarks
M files/scripts/shell/backup-notes
M files/scripts/shell/check-notify-low-battery
M files/scripts/shell/check-notify-package-updates
M files/scripts/shell/color-picker
M files/scripts/shell/do-not-disturb
M files/scripts/shell/documentation
M files/scripts/shell/documentation-all
M files/scripts/shell/http-env
M files/scripts/shell/i3blocks-mode
M files/scripts/shell/influx-env
M files/scripts/shell/mysql-env
M files/scripts/shell/notify
M files/scripts/shell/notify-end-pomodoro
M files/scripts/shell/notify-tmux-alert
M files/scripts/shell/pacman-pkgdiff
M files/scripts/shell/plot
M files/scripts/shell/pomodoro
M files/scripts/shell/project-path
M files/scripts/shell/redis-env
M files/scripts/shell/screenshot
M files/scripts/shell/ssh-tags
M files/scripts/shell/status
M files/scripts/shell/tmux-env
M files/scripts/sway/sway-app-chat
M files/scripts/sway/sway-app-mail
M files/scripts/sway/sway-app-monitor
M files/scripts/sway/sway-app-music
M files/scripts/sway/sway-app-news
M files/scripts/sway/sway-app-tmux-env
M files/scripts/sway/sway-command-input
M files/scripts/sway/sway-command-input-exec
M files/scripts/sway/sway-create-workspace
M files/scripts/sway/sway-focus-window-title
M files/scripts/sway/sway-fzf-launcher
M files/scripts/sway/sway-launch-app
M files/scripts/sway/sway-launch-command
M files/scripts/sway/sway-launch-note
M files/scripts/sway/sway-launch-password
M files/scripts/sway/sway-launch-system
M files/scripts/sway/sway-launch-tmux-env
M files/scripts/sway/sway-launcher
M files/scripts/sway/sway-move-window-new-workspace
M files/scripts/sway/sway-rename-workspace
M files/scripts/sway/sway-run-command
M files/scripts/tmux/tmux-extract-tokens
M files/scripts/tmux/tmux-move-pane-window-index
M files/scripts/tmux/tmux-move-window-index
M files/scripts/tmux/tmux-notify-alert
M files/scripts/tmux/tmux-select-pane-vim
M files/scripts/tmux/tmux-toggle-monitor-activity
M files/scripts/tmux/tmux-toggle-monitor-silence
M files/scripts/tmux/tmux-toggle-no-distraction
M README.md => README.md +1 -1
@@ 100,7 100,7 @@ The Makefiles used for the setup are POSIX compliant.
### Scripts

Unless explicitly mentioned, all scripts are POSIX compliant.
Extra commands used are listed on top of each script file.
Extra commands used are listed as dependencies in their man page.
Their usage need to be checked within the script to see which options and
operands are actually required.


M TODO.md => TODO.md +0 -1
@@ 23,7 23,6 @@
    maybe Alt-r and Alt-q
  - better man pages:
    * add DESCRIPTION part with better explanation
    * move commands used listed on top of scripts to the doc (as DEPENDENCIES?)
    * add FILES used by the script
    * add ENVIRONMENT VARIABLES used by the script
    * check common man pages to see what other parts could be make sense to be added  

M files/docs/git/git-init-todo.scd => files/docs/git/git-init-todo.scd +4 -0
@@ 7,3 7,7 @@ git-init-todo - Commit a initial TODO file with usual skeleton
# SYNOPSIS

git init-todo

# DEPENDENCIES

- git (includes own command: root)

M files/docs/git/git-reauthor.scd => files/docs/git/git-reauthor.scd +4 -0
@@ 32,3 32,7 @@ takes precedence over values coming from -c
*-t* _id_
	define the type of identities affected by the rewrite++
valid ids: author, committer, both (default)

# DEPENDENCIES

- git

M files/docs/git/git-run-command.scd => files/docs/git/git-run-command.scd +4 -0
@@ 20,3 20,7 @@ _rev_range_

_command_
	command to execute on each revision of the range

# DEPENDENCIES

- git

M files/docs/git/git-sed.scd => files/docs/git/git-sed.scd +4 -0
@@ 12,3 12,7 @@ git sed _script_

_script_
	string to be used as the *sed*(1) script to apply

# DEPENDENCIES

- git

M files/docs/git/git-stamp.scd => files/docs/git/git-stamp.scd +4 -0
@@ 21,3 21,7 @@ _id_

_message_
	Message of the stamp

# DEPENDENCIES

- git

M files/docs/git/git-url.scd => files/docs/git/git-url.scd +4 -0
@@ 27,3 27,7 @@ valid types:
	- commit: URL of the selected commit
	- issue: URL of the issue related to selected commit
	- review: URL of the review related to selected commit

# DEPENDENCIES

- git (includes own commands: commit-issue-id, commit-review-id)

M files/docs/i3blocks/i3blocks-bluetooth.scd => files/docs/i3blocks/i3blocks-bluetooth.scd +5 -0
@@ 7,3 7,8 @@ i3blocks-bluetooth - Report the bluetooth status for i3blocks
# SYNOPSIS

i3blocks-bluetooth

# DEPENDENCIES

- bluetoothctl
- i3blocks-mode

M files/docs/i3blocks/i3blocks-chat.scd => files/docs/i3blocks/i3blocks-chat.scd +5 -0
@@ 7,3 7,8 @@ i3blocks-chat - Report the chat status for i3blocks
# SYNOPSIS

i3blocks-chat

# DEPENDENCIES

- i3blocks-mode
- pidof

M files/docs/i3blocks/i3blocks-do-not-disturb.scd => files/docs/i3blocks/i3blocks-do-not-disturb.scd +4 -0
@@ 7,3 7,7 @@ i3blocks-do-not-disturb - Report the do-not-disturb status for i3blocks
# SYNOPSIS

i3blocks-do-not-disturb

# DEPENDENCIES

- do-not-disturb

M files/docs/i3blocks/i3blocks-music.scd => files/docs/i3blocks/i3blocks-music.scd +5 -0
@@ 7,3 7,8 @@ i3blocks-music - Report the music status for i3blocks
# SYNOPSIS

i3blocks-music

# DEPENDENCIES

- i3blocks-mode
- mpc

M files/docs/i3blocks/i3blocks-network.scd => files/docs/i3blocks/i3blocks-network.scd +5 -0
@@ 7,3 7,8 @@ i3blocks-network - Report the network status for i3blocks
# SYNOPSIS

i3blocks-network

# DEPENDENCIES

- i3blocks-mode
- nmcli

M files/docs/i3blocks/i3blocks-pomodoro.scd => files/docs/i3blocks/i3blocks-pomodoro.scd +4 -0
@@ 7,3 7,7 @@ i3blocks-pomodoro - Report the pomodoro status for i3blocks
# SYNOPSIS

i3blocks-pomodoro

# DEPENDENCIES

- pomodoro

M files/docs/i3blocks/i3blocks-power.scd => files/docs/i3blocks/i3blocks-power.scd +5 -0
@@ 7,3 7,8 @@ i3blocks-power - Report the power status for i3blocks
# SYNOPSIS

i3blocks-power

# DEPENDENCIES

- battery-status
- i3blocks-mode

M files/docs/i3blocks/i3blocks-volume.scd => files/docs/i3blocks/i3blocks-volume.scd +5 -0
@@ 7,3 7,8 @@ i3blocks-volume - Report the volume status for i3blocks
# SYNOPSIS

i3blocks-volume

# DEPENDENCIES

- amixer
- i3blocks-mode

M files/docs/shell/backup-bookmarks.scd => files/docs/shell/backup-bookmarks.scd +4 -0
@@ 7,3 7,7 @@ backup-bookmarks - Backup browser bookmarks to remote server
# SYNOPSIS

backup-bookmarks

# DEPENDENCIES

- rsync

M files/docs/shell/backup-notes.scd => files/docs/shell/backup-notes.scd +5 -0
@@ 7,3 7,8 @@ backup-notes - Backup notes to remote server
# SYNOPSIS

backup-notes

# DEPENDENCIES

- rsync
- xdg-user-dir

M files/docs/shell/check-notify-low-battery.scd => files/docs/shell/check-notify-low-battery.scd +6 -0
@@ 7,3 7,9 @@ check-notify-low-battery - Check battery level and notify if too low
# SYNOPSIS

check-notify-low-battery

# DEPENDENCIES

- aplay
- battery-status
- notify

M files/docs/shell/check-notify-package-updates.scd => files/docs/shell/check-notify-package-updates.scd +6 -0
@@ 7,3 7,9 @@ check-notify-package-updates - Check for packages updates and notify if any
# SYNOPSIS

check-notify-package-updates

# DEPENDENCIES

- aur
- checkupdates
- notify

M files/docs/shell/color-picker.scd => files/docs/shell/color-picker.scd +6 -0
@@ 7,3 7,9 @@ color-picker - Color picker
# SYNOPSIS

color-picker

# DEPENDENCIES

- convert
- grim
- slurp

M files/docs/shell/do-not-disturb.scd => files/docs/shell/do-not-disturb.scd +5 -0
@@ 27,3 27,8 @@ _toggle_

_info_
	Extra information when the "Do not disturb" mode is enabled

# DEPENDENCIES

- ssh
- weechat-fifo

M files/docs/shell/documentation-all.scd => files/docs/shell/documentation-all.scd +7 -0
@@ 7,3 7,10 @@ documentation-all - Interactive selection of man page to display
# SYNOPSIS

documentation-all

# DEPENDENCIES

- fzf
- documentation
- stat
- zsh

M files/docs/shell/documentation.scd => files/docs/shell/documentation.scd +4 -0
@@ 15,3 15,7 @@ _topic_

_section_
	Select which *man*(1) section of the _topic_ to display

# DEPENDENCIES

- zsh

M files/docs/shell/http-env.scd => files/docs/shell/http-env.scd +4 -0
@@ 27,3 27,7 @@ _item_

_option_
	*http* option

# DEPENDENCIES

- http

M files/docs/shell/i3blocks-mode.scd => files/docs/shell/i3blocks-mode.scd +4 -0
@@ 23,3 23,7 @@ This is the default action if none is specified

_toggle_
	Toggle mode

# DEPENDENCIES

- pkill

M files/docs/shell/influx-env.scd => files/docs/shell/influx-env.scd +4 -0
@@ 18,3 18,7 @@ _query_

_option_
	*influx* option

# DEPENDENCIES

- influx

M files/docs/shell/mysql-env.scd => files/docs/shell/mysql-env.scd +4 -0
@@ 18,3 18,7 @@ _query_

_option_
	*mysql* option

# DEPENDENCIES

- mysql

M files/docs/shell/notify-end-pomodoro.scd => files/docs/shell/notify-end-pomodoro.scd +5 -0
@@ 7,3 7,8 @@ notify-end-pomodoro - Notify the end of a pomodoro session
# SYNOPSIS

notify-end-pomodoro

# DEPENDENCIES

- aplay
- notify

M files/docs/shell/notify-tmux-alert.scd => files/docs/shell/notify-tmux-alert.scd +5 -0
@@ 27,3 27,8 @@ _window_id_

_window_name_
	tmux window name where the alert is coming from

# DEPENDENCIES

- notify
- swaymsg

M files/docs/shell/notify.scd => files/docs/shell/notify.scd +4 -0
@@ 27,3 27,7 @@ _summary_

_body_
	Notification body

# DEPENDENCIES

- gdbus

M files/docs/shell/pacman-pkgdiff.scd => files/docs/shell/pacman-pkgdiff.scd +5 -0
@@ 12,3 12,8 @@ pacman-pkgdiff _package_

_package_
	Package to inspect

# DEPENDENCIES

- pacman
- tar

M files/docs/shell/plot.scd => files/docs/shell/plot.scd +4 -0
@@ 13,3 13,7 @@ plot [-- _option_...]

_option_
	*jp* option

# DEPENDENCIES

- jp

M files/docs/shell/pomodoro.scd => files/docs/shell/pomodoro.scd +5 -0
@@ 22,3 22,8 @@ This is the default action if none is specified

_toggle_
	Start session if not active, cancel it otherwise

# DEPENDENCIES

- do-not-disturb
- notify-end-pomodoro

M files/docs/shell/project-path.scd => files/docs/shell/project-path.scd +4 -0
@@ 21,3 21,7 @@ valid types:
_project_
	Project to use++
If none specified, the general path for _type_ is displayed

# DEPENDENCIES

- xdg-user-dir

M files/docs/shell/redis-env.scd => files/docs/shell/redis-env.scd +4 -0
@@ 18,3 18,7 @@ _query_

_option_
	*redis-cli* option

# DEPENDENCIES

- redis-cli

M files/docs/shell/screenshot.scd => files/docs/shell/screenshot.scd +6 -0
@@ 7,3 7,9 @@ screenshot - Take a screenshot of a region
# SYNOPSIS

screenshot

# DEPENDENCIES

- grim
- slurp
- xdg-user-dir

M files/docs/shell/ssh-tags.scd => files/docs/shell/ssh-tags.scd +6 -0
@@ 12,3 12,9 @@ ssh-tags [_tag_=_value_...]

_tag_=_value_
	Couple _tag_/_value_ to filter the hosts to display

# DEPENDENCIES

- fzf
- query-hosts-tags
- ssh

M files/docs/shell/status.scd => files/docs/shell/status.scd +4 -0
@@ 7,3 7,7 @@ status - Report current shell status
# SYNOPSIS

status

# DEPENDENCIES

- git (includes own command: current-branch)

M files/docs/shell/tmux-env.scd => files/docs/shell/tmux-env.scd +4 -0
@@ 21,3 21,7 @@ _target_
_session_
	_target_' session to start++
If none specified, a new empty one is created

# DEPENDENCIES

- tmux

M files/docs/sway/sway-app-chat.scd => files/docs/sway/sway-app-chat.scd +9 -0
@@ 7,3 7,12 @@ sway-app-chat - Launch chat app
# SYNOPSIS

sway-app-chat

# DEPENDENCIES

- sway-create-workspace
- sway-focus-window-title
- swaymsg
- termite
- tmux
- weechat

M files/docs/sway/sway-app-mail.scd => files/docs/sway/sway-app-mail.scd +9 -0
@@ 7,3 7,12 @@ sway-app-mail - Launch mail app
# SYNOPSIS

sway-app-mail

# DEPENDENCIES

- neomutt
- sway-create-workspace
- sway-focus-window-title
- swaymsg
- termite
- tmux

M files/docs/sway/sway-app-monitor.scd => files/docs/sway/sway-app-monitor.scd +8 -0
@@ 7,3 7,11 @@ sway-app-monitor - Launch monitor app
# SYNOPSIS

sway-app-monitor

# DEPENDENCIES

- htop
- sway-focus-window-title
- swaymsg
- termite
- tmux

M files/docs/sway/sway-app-music.scd => files/docs/sway/sway-app-music.scd +9 -0
@@ 7,3 7,12 @@ sway-app-music - Launch music app
# SYNOPSIS

sway-app-music

# DEPENDENCIES

- ncmpcpp
- sway-focus-window-title
- swaymsg
- systemctl
- termite
- tmux

M files/docs/sway/sway-app-news.scd => files/docs/sway/sway-app-news.scd +9 -0
@@ 7,3 7,12 @@ sway-app-news - Launch news app
# SYNOPSIS

sway-app-news

# DEPENDENCIES

- newsboat
- sway-create-workspace
- sway-focus-window-title
- swaymsg
- termite
- tmux

M files/docs/sway/sway-app-tmux-env.scd => files/docs/sway/sway-app-tmux-env.scd +8 -0
@@ 15,3 15,11 @@ _env_

_session_
	Name of the session

# DEPENDENCIES

- sway-create-workspace
- sway-focus-window-title
- swaymsg
- termite
- tmux-env

M files/docs/sway/sway-command-input-exec.scd => files/docs/sway/sway-command-input-exec.scd +4 -0
@@ 17,3 17,7 @@ default: %s

*-P* _prompt_
	Display before user input

# DEPENDENCIES

- swaymsg

M files/docs/sway/sway-command-input.scd => files/docs/sway/sway-command-input.scd +7 -0
@@ 12,3 12,10 @@ sway-command-input _args_

_args_
	*sway-command-input-exec*(1) arguments

# DEPENDENCIES

- sway-command-input-exec
- sway-focus-window-title
- swaymsg
- termite

M files/docs/sway/sway-create-workspace.scd => files/docs/sway/sway-create-workspace.scd +5 -0
@@ 12,3 12,8 @@ sway-create-workspace [ _name_ ]

_name_
	Name to give to the new workspace

# DEPENDENCIES

- jq
- swaymsg

M files/docs/sway/sway-focus-window-title.scd => files/docs/sway/sway-focus-window-title.scd +5 -0
@@ 12,3 12,8 @@ sway-focus-window-title _title_

_title_
	Title of the window to focus

# DEPENDENCIES

- jq
- swaymsg

M files/docs/sway/sway-fzf-launcher.scd => files/docs/sway/sway-fzf-launcher.scd +4 -0
@@ 12,3 12,7 @@ sway-fzf-launcher _prompt_

_prompt_
	Prompt for the fzf selection

# DEPENDENCIES

- fzf

M files/docs/sway/sway-launch-app.scd => files/docs/sway/sway-launch-app.scd +8 -0
@@ 7,3 7,11 @@ sway-launch-app - Launcher to start an app
# SYNOPSIS

sway-launch-app

# DEPENDENCIES

- column
- exec-desktop-entry
- stat
- sway-fzf-launcher
- swaymsg

M files/docs/sway/sway-launch-command.scd => files/docs/sway/sway-launch-command.scd +6 -0
@@ 7,3 7,9 @@ sway-launch-command - Launcher to run a command
# SYNOPSIS

sway-launch-command

# DEPENDENCIES

- stat
- sway-fzf-launcher
- swaymsg

M files/docs/sway/sway-launch-note.scd => files/docs/sway/sway-launch-note.scd +9 -0
@@ 7,3 7,12 @@ sway-launch-note - Launcher to open a note
# SYNOPSIS

sway-launch-note

# DEPENDENCIES

- sway-fzf-launcher
- swaymsg
- termite
- tmux
- vim
- xdg-user-dir

M files/docs/sway/sway-launch-password.scd => files/docs/sway/sway-launch-password.scd +5 -0
@@ 7,3 7,8 @@ sway-launch-password - Launcher to copy a password
# SYNOPSIS

sway-launch-password

# DEPENDENCIES

- pass
- sway-fzf-launcher

M files/docs/sway/sway-launch-system.scd => files/docs/sway/sway-launch-system.scd +7 -0
@@ 7,3 7,10 @@ sway-launch-system - Launcher to run system actions
# SYNOPSIS

sway-launch-system

# DEPENDENCIES

- sway-fzf-launcher
- swaylock
- swaymsg
- systemctl

M files/docs/sway/sway-launch-tmux-env.scd => files/docs/sway/sway-launch-tmux-env.scd +5 -0
@@ 12,3 12,8 @@ sway-launch-tmux-env _env_

_env_
	Name of the environment

# DEPENDENCIES

- sway-app-tmux-env
- sway-fzf-launcher

M files/docs/sway/sway-launcher.scd => files/docs/sway/sway-launcher.scd +6 -0
@@ 12,3 12,9 @@ sway-launcher _command_

_command_
	Command for the launcher instance

# DEPENDENCIES

- sway-focus-window-title
- swaymsg
- termite

M files/docs/sway/sway-move-window-new-workspace.scd => files/docs/sway/sway-move-window-new-workspace.scd +5 -0
@@ 7,3 7,8 @@ sway-move-window-new-workspace - Move a sway window to new workspace
# SYNOPSIS

sway-move-window-new-workspace

# DEPENDENCIES

- jq
- swaymsg

M files/docs/sway/sway-rename-workspace.scd => files/docs/sway/sway-rename-workspace.scd +6 -0
@@ 7,3 7,9 @@ sway-rename-workspace - Interactive renaming of current sway workspace
# SYNOPSIS

sway-rename-workspace

# DEPENDENCIES

- jq
- sway-command-input
- swaymsg

M files/docs/sway/sway-run-command.scd => files/docs/sway/sway-run-command.scd +6 -0
@@ 7,3 7,9 @@ sway-run-command - Interactive running of sway command
# SYNOPSIS

sway-run-command

# DEPENDENCIES

- jq
- sway-command-input
- swaymsg

M files/docs/tmux/tmux-extract-tokens.scd => files/docs/tmux/tmux-extract-tokens.scd +8 -0
@@ 27,3 27,11 @@ _words_

_WORDS_
	Extract words (any consecutive characters separated by spaces)

# DEPENDENCIES

- GNU grep #FIXME: This script is not POSIX compliant
- fzf-tmux
- tmux
- wl-copy
- xdg-open

M files/docs/tmux/tmux-move-pane-window-index.scd => files/docs/tmux/tmux-move-pane-window-index.scd +4 -0
@@ 12,3 12,7 @@ tmux-move-pane-window-index _index_

_index_
	Index of the window to move the pane to

# DEPENDENCIES

- tmux

M files/docs/tmux/tmux-move-window-index.scd => files/docs/tmux/tmux-move-window-index.scd +4 -0
@@ 12,3 12,7 @@ tmux-move-window-index _index_

_index_
	Index to move the window to

# DEPENDENCIES

- tmux

M files/docs/tmux/tmux-notify-alert.scd => files/docs/tmux/tmux-notify-alert.scd +5 -0
@@ 21,3 21,8 @@ _session_id_

_window_id_
	tmux window id where the alert is coming from

# DEPENDENCIES

- notify-tmux-alert
- tmux

M files/docs/tmux/tmux-select-pane-vim.scd => files/docs/tmux/tmux-select-pane-vim.scd +4 -0
@@ 12,3 12,7 @@ tmux-select-pane-vim _key_

_key_
	Directional key pressed

# DEPENDENCIES

- tmux

M files/docs/tmux/tmux-toggle-monitor-activity.scd => files/docs/tmux/tmux-toggle-monitor-activity.scd +5 -0
@@ 18,3 18,8 @@ _session_id_

_window_id_
	tmux window id of window to monitor

# DEPENDENCIES

- swaymsg
- tmux

M files/docs/tmux/tmux-toggle-monitor-silence.scd => files/docs/tmux/tmux-toggle-monitor-silence.scd +5 -0
@@ 18,3 18,8 @@ _session_id_

_window_id_
	tmux window id of window to monitor

# DEPENDENCIES

- swaymsg
- tmux

M files/docs/tmux/tmux-toggle-no-distraction.scd => files/docs/tmux/tmux-toggle-no-distraction.scd +6 -0
@@ 15,3 15,9 @@ _soft_

_hard_
	Hard mode

# DEPENDENCIES

- jq
- swaymsg
- tmux

M files/scripts/git/git-init-todo => files/scripts/git/git-init-todo +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git (includes own command: root)

TODO_FILE="$( git root )/TODO.md"


M files/scripts/git/git-reauthor => files/scripts/git/git-reauthor +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git

init_variables() {
  COMMAND=${0##*/}

M files/scripts/git/git-run-command => files/scripts/git/git-run-command +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git

# "heavily inspired" by Gary Bernhardt's dotfiles script
# https://github.com/garybernhardt/dotfiles/blob/master/bin/run-command-on-git-revisions

M files/scripts/git/git-sed => files/scripts/git/git-sed +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git

init_variables() {
  COMMAND=${0##*/}

M files/scripts/git/git-stamp => files/scripts/git/git-stamp +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git

init_variables() {
  COMMAND=${0##*/}

M files/scripts/git/git-url => files/scripts/git/git-url +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git (includes own commands: commit-issue-id, commit-review-id)

init_variables() {
  COMMAND=${0##*/}

M files/scripts/i3blocks/i3blocks-bluetooth => files/scripts/i3blocks/i3blocks-bluetooth +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - bluetoothctl
# - i3blocks-mode

MODE="$( i3blocks-mode )"


M files/scripts/i3blocks/i3blocks-chat => files/scripts/i3blocks/i3blocks-chat +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - i3blocks-mode
# - pidof

COUNT_FILE_PATH="${XDG_RUNTIME_DIR}/chat_count"


M files/scripts/i3blocks/i3blocks-do-not-disturb => files/scripts/i3blocks/i3blocks-do-not-disturb +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - do-not-disturb

if [ "$( do-not-disturb status )" = 'enabled' ]; then
  echo "<span foreground='#{color/notice/hex}'></span>"

M files/scripts/i3blocks/i3blocks-music => files/scripts/i3blocks/i3blocks-music +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - i3blocks-mode
# - mpc

MODE="$( i3blocks-mode )"


M files/scripts/i3blocks/i3blocks-network => files/scripts/i3blocks/i3blocks-network +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - i3blocks-mode
# - nmcli

MODE="$( i3blocks-mode )"


M files/scripts/i3blocks/i3blocks-pomodoro => files/scripts/i3blocks/i3blocks-pomodoro +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - pomodoro

SESSION_STATUS=$( pomodoro status )


M files/scripts/i3blocks/i3blocks-power => files/scripts/i3blocks/i3blocks-power +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - battery-status
# - i3blocks-mode

MODE="$( i3blocks-mode )"


M files/scripts/i3blocks/i3blocks-volume => files/scripts/i3blocks/i3blocks-volume +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - amixer
# - i3blocks-mode

MODE="$( i3blocks-mode )"


M files/scripts/shell/backup-bookmarks => files/scripts/shell/backup-bookmarks +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - rsync

LOCAL_BROWSER_FOLDER="${XDG_CONFIG_HOME:-$HOME/.config}/qutebrowser"
REMOTE_BOOKMARKS_FOLDER="$( uname -n )/bookmarks"

M files/scripts/shell/backup-notes => files/scripts/shell/backup-notes +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - rsync
# - xdg-user-dir

LOCAL_NOTES_FOLDER="$( xdg-user-dir NOTES )"
REMOTE_NOTES_FOLDER="$( uname -n )/notes"

M files/scripts/shell/check-notify-low-battery => files/scripts/shell/check-notify-low-battery +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - aplay
# - battery-status
# - notify

ALERT_THRESHOLD_PERCENT=10


M files/scripts/shell/check-notify-package-updates => files/scripts/shell/check-notify-package-updates +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - aur
# - checkupdates
# - notify

MESSAGE=


M files/scripts/shell/color-picker => files/scripts/shell/color-picker +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - convert
# - grim
# - slurp

PIXEL_REGION=$( slurp -p 2> /dev/null )


M files/scripts/shell/do-not-disturb => files/scripts/shell/do-not-disturb +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - ssh
# - weechat-fifo

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/documentation => files/scripts/shell/documentation +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - zsh

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/documentation-all => files/scripts/shell/documentation-all +0 -5
@@ 1,9 1,4 @@
#!/bin/sh
# commands used:
# - fzf
# - documentation
# - stat
# - zsh

CACHE_TOPICS_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/documentation_topics"
ZSH_VERSION=$( zsh --version | cut -d ' ' -f 2 )

M files/scripts/shell/http-env => files/scripts/shell/http-env +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - http

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/i3blocks-mode => files/scripts/shell/i3blocks-mode +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - pkill

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/influx-env => files/scripts/shell/influx-env +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - influx

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/mysql-env => files/scripts/shell/mysql-env +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - mysql

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/notify => files/scripts/shell/notify +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - gdbus

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/notify-end-pomodoro => files/scripts/shell/notify-end-pomodoro +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - aplay
# - notify

notify \
  -t 5 \

M files/scripts/shell/notify-tmux-alert => files/scripts/shell/notify-tmux-alert +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - notify
# - swaymsg

TYPE="$1"
SOCKET_NAME="$2"

M files/scripts/shell/pacman-pkgdiff => files/scripts/shell/pacman-pkgdiff +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - pacman
# - tar

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/plot => files/scripts/shell/plot +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - jp

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/pomodoro => files/scripts/shell/pomodoro +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - do-not-disturb
# - notify-end-pomodoro

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/project-path => files/scripts/shell/project-path +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - xdg-user-dir

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/redis-env => files/scripts/shell/redis-env +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - redis-cli

init_variables() {
  COMMAND=${0##*/}

M files/scripts/shell/screenshot => files/scripts/shell/screenshot +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - grim
# - slurp
# - xdg-user-dir

REGION=$( slurp 2> /dev/null )


M files/scripts/shell/ssh-tags => files/scripts/shell/ssh-tags +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - fzf
# - query-hosts-tags
# - ssh

TAGS=$*


M files/scripts/shell/status => files/scripts/shell/status +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - git (includes own command: current-branch)

# display general status info about the current shell


M files/scripts/shell/tmux-env => files/scripts/shell/tmux-env +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - tmux

init_variables() {
  COMMAND=${0##*/}

M files/scripts/sway/sway-app-chat => files/scripts/sway/sway-app-chat +0 -7
@@ 1,11 1,4 @@
#!/bin/sh
# commands used:
# - sway-create-workspace
# - sway-focus-window-title
# - swaymsg
# - termite
# - tmux
# - weechat

TITLE='Chat client'


M files/scripts/sway/sway-app-mail => files/scripts/sway/sway-app-mail +0 -7
@@ 1,11 1,4 @@
#!/bin/sh
# commands used:
# - neomutt
# - sway-create-workspace
# - sway-focus-window-title
# - swaymsg
# - termite
# - tmux

TITLE='Mail client'


M files/scripts/sway/sway-app-monitor => files/scripts/sway/sway-app-monitor +0 -6
@@ 1,10 1,4 @@
#!/bin/sh
# commands used:
# - htop
# - sway-focus-window-title
# - swaymsg
# - termite
# - tmux

TITLE='sway_monitor'


M files/scripts/sway/sway-app-music => files/scripts/sway/sway-app-music +0 -7
@@ 1,11 1,4 @@
#!/bin/sh
# commands used:
# - ncmpcpp
# - sway-focus-window-title
# - swaymsg
# - systemctl
# - termite
# - tmux

TITLE='sway_music'


M files/scripts/sway/sway-app-news => files/scripts/sway/sway-app-news +0 -7
@@ 1,11 1,4 @@
#!/bin/sh
# commands used:
# - newsboat
# - sway-create-workspace
# - sway-focus-window-title
# - swaymsg
# - termite
# - tmux

TITLE='News reader'


M files/scripts/sway/sway-app-tmux-env => files/scripts/sway/sway-app-tmux-env +0 -6
@@ 1,10 1,4 @@
#!/bin/sh
# commands used:
# - sway-create-workspace
# - sway-focus-window-title
# - swaymsg
# - termite
# - tmux-env

ENV_NAME="$1"
SESSION_NAME="$2"

M files/scripts/sway/sway-command-input => files/scripts/sway/sway-command-input +0 -5
@@ 1,9 1,4 @@
#!/bin/sh
# commands used:
# - sway-command-input-exec
# - sway-focus-window-title
# - swaymsg
# - termite

# try to focus existing window if it exists
sway-focus-window-title 'sway_command_input' && exit

M files/scripts/sway/sway-command-input-exec => files/scripts/sway/sway-command-input-exec +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - swaymsg

init_variables() {
  COMMAND=${0##*/}

M files/scripts/sway/sway-create-workspace => files/scripts/sway/sway-create-workspace +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - jq
# - swaymsg

# create a new workspace in the focused output
# at the lowest index available

M files/scripts/sway/sway-focus-window-title => files/scripts/sway/sway-focus-window-title +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - jq
# - swaymsg

# small wrapper to focus a window by title


M files/scripts/sway/sway-fzf-launcher => files/scripts/sway/sway-fzf-launcher +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - fzf

PROMPT="$1"
shift

M files/scripts/sway/sway-launch-app => files/scripts/sway/sway-launch-app +0 -6
@@ 1,10 1,4 @@
#!/bin/sh
# commands used:
# - column
# - exec-desktop-entry
# - stat
# - sway-fzf-launcher
# - swaymsg

APP_DESKTOP_FILES_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/applications"
CACHE_LIST_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/sway/launch_app"

M files/scripts/sway/sway-launch-command => files/scripts/sway/sway-launch-command +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - stat
# - sway-fzf-launcher
# - swaymsg

CACHE_LIST_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/sway/launch_command"


M files/scripts/sway/sway-launch-note => files/scripts/sway/sway-launch-note +0 -7
@@ 1,11 1,4 @@
#!/bin/sh
# commands used:
# - sway-fzf-launcher
# - swaymsg
# - termite
# - tmux
# - vim
# - xdg-user-dir

NOTES_FOLDER="$( xdg-user-dir NOTES )"


M files/scripts/sway/sway-launch-password => files/scripts/sway/sway-launch-password +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - pass
# - sway-fzf-launcher

PASSWORD_STORE_DIR="${PASSWORD_STORE_DIR:-$HOME/.password-store}"


M files/scripts/sway/sway-launch-system => files/scripts/sway/sway-launch-system +0 -5
@@ 1,9 1,4 @@
#!/bin/sh
# commands used:
# - sway-fzf-launcher
# - swaylock
# - swaymsg
# - systemctl

ACTION=$(
  {

M files/scripts/sway/sway-launch-tmux-env => files/scripts/sway/sway-launch-tmux-env +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - sway-app-tmux-env
# - sway-fzf-launcher

ENV_NAME="$1"


M files/scripts/sway/sway-launcher => files/scripts/sway/sway-launcher +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - sway-focus-window-title
# - swaymsg
# - termite

COMMAND="$*"


M files/scripts/sway/sway-move-window-new-workspace => files/scripts/sway/sway-move-window-new-workspace +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - jq
# - swaymsg

# move window to a new workspace in the focused output
# at the lowest index available

M files/scripts/sway/sway-rename-workspace => files/scripts/sway/sway-rename-workspace +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - jq
# - sway-command-input
# - swaymsg

# rename current workspace


M files/scripts/sway/sway-run-command => files/scripts/sway/sway-run-command +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - jq
# - sway-command-input
# - swaymsg

# run general sway command


M files/scripts/tmux/tmux-extract-tokens => files/scripts/tmux/tmux-extract-tokens +0 -6
@@ 1,10 1,4 @@
#!/bin/sh
# commands used:
# - GNU grep #FIXME: This script is not POSIX compliant
# - fzf-tmux
# - tmux
# - wl-copy
# - xdg-open

# Extract tokens from currently displayed pane (in copy-mode too)


M files/scripts/tmux/tmux-move-pane-window-index => files/scripts/tmux/tmux-move-pane-window-index +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - tmux

TARGET_INDEX="$1"


M files/scripts/tmux/tmux-move-window-index => files/scripts/tmux/tmux-move-window-index +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - tmux

TARGET_INDEX="$1"


M files/scripts/tmux/tmux-notify-alert => files/scripts/tmux/tmux-notify-alert +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - notify-tmux-alert
# - tmux

ALERT_TYPE="$1"
ALERT_SOCKET_PATH="$2"

M files/scripts/tmux/tmux-select-pane-vim => files/scripts/tmux/tmux-select-pane-vim +0 -2
@@ 1,6 1,4 @@
#!/bin/sh
# commands used:
# - tmux

KEY="$1"


M files/scripts/tmux/tmux-toggle-monitor-activity => files/scripts/tmux/tmux-toggle-monitor-activity +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - swaymsg
# - tmux

SOCKET_PATH="$1"
SESSION_ID="$2"

M files/scripts/tmux/tmux-toggle-monitor-silence => files/scripts/tmux/tmux-toggle-monitor-silence +0 -3
@@ 1,7 1,4 @@
#!/bin/sh
# commands used:
# - swaymsg
# - tmux

SOCKET_PATH="$1"
SESSION_ID="$2"

M files/scripts/tmux/tmux-toggle-no-distraction => files/scripts/tmux/tmux-toggle-no-distraction +0 -4
@@ 1,8 1,4 @@
#!/bin/sh
# commands used:
# - jq
# - swaymsg
# - tmux

LEVEL="$1"