diff --git a/files/moc/config b/files/moc/config index 4c6d5fc..d43056b 100755 --- a/files/moc/config +++ b/files/moc/config @@ -69,7 +69,7 @@ # # Example: MusicDir = "/home/joe/music" # -#MusicDir = +MusicDir = "/media/documents/musique/" # Start in the music directory by default? If set to 'no', start # in the current directory by default. A single directory on @@ -191,7 +191,7 @@ # # Example: Theme = laras_theme # -Theme = green_theme +Theme = "moca_theme" # The theme used when running on an xterm. # diff --git a/files/moc/keymap b/files/moc/keymap index 7cc7c2d..7d02062 100644 --- a/files/moc/keymap +++ b/files/moc/keymap @@ -1,20 +1,21 @@ -# This is the example kepmap file for MOC. You can define your own key -# mappings for MOC commands by creating your own keymap file and setting +# This is the example keymap file for MOC. You can define your own key +# bindings for MOC commands by creating your own keymap file and setting # the 'Keymap' option in ~/.moc/config. # # The format of this file is: # # - Lines beginning with # are comments. # - Blank lines are ignored. -# - Every other line is expected to be in format: +# - Every other line is expected to be in one of the formats: # # COMMAND = [KEY ...] +# COMMAND += KEY ... # # The KEY can be: # # - Just a char, like i, L, ", * # - CTRL-KEY sequence: ^k (CTRL-k), ^4 -# - ALT-KEY (meta sequence): M-j (ALT-j), M-% +# - ALT-KEY (meta) sequence: M-j (ALT-j), M-/ # - Special keys: DOWN, UP # LEFT, RIGHT # HOME, END @@ -27,9 +28,35 @@ # ESCAPE # F1 - F12 # +# Note that the use of a digit as a KEY is deprecated. +# # Maximum number of KEYs for one COMMAND is 5. # -# Omitting the KEY for a command will disassociate the KEY from the COMMAND. +# Omitting the KEY for a COMMAND will unbind all its default keys. They +# will also be automatically unbound when you bind new KEYs to it. Individual +# default KEYs will be automatically unbound when they are explicitly bound +# to some other COMMAND. +# +# Using the '+=' form will cause the KEYs to be appended to any existing +# (default or explicit) bindings for the COMMAND. Appending an existing +# default binding for the same COMMAND will cause MOC to think of that KEY +# as then being explicitly bound. +# +# Only one binding for any given COMMAND can appear in the keymap file. One +# exception to this is that if the default keys for a COMMAND are explicitly +# unbound then a subsequent binding may appear for it. A second exception +# is that multiple appending bindings may appear. +# +# Meta-key detection is sensitive to the ESCDELAY environment variable (see +# the manpage for ncurses(3)). In its absence, MOC resets the default +# delay to 25ms. If you need to emulate meta-key sequences using the ESC +# key, then you may need to set the value of ESCDELAY back to its ncurses +# default of 1000ms (but doing so will make the response to the ESC key +# sluggish). +# +# If MOC's keypresses are being filtered through some other program (in a +# GUI environment, for example) which also does meta-key detection, then +# MOC is at the mercy of the timings with which that program presents them. # # Default key configuration for MOC (and a list of all available commands): @@ -38,24 +65,23 @@ quit_client = q quit = Q # Menu and interface control keys: -go = ENTER -menu_down = DOWN -menu_up = UP +go = ENTER l +menu_down = DOWN j +menu_up = UP k menu_page_down = PAGE_DOWN menu_page_up = PAGE_UP menu_first_item = HOME menu_last_item = END -search_menu = g / +search_menu = / toggle_read_tags = f toggle_show_time = ^t toggle_show_format = ^f toggle_menu = TAB -toggle_layout = l toggle_hidden_files = H next_search = ^g ^n show_lyrics = L theme_menu = T -help = h ? +help = ? refresh = ^r reload = r @@ -71,6 +97,7 @@ previous = b toggle_shuffle = S toggle_repeat = R toggle_auto_next = X +toggle_mixer = x go_url = o # Volume control keys: @@ -103,7 +130,7 @@ go_to_fast_dir8 = * go_to_fast_dir9 = ( go_to_fast_dir10 = ) go_to_playing_file = G -go_up = BACKSPACE +go_up = h # Playlist specific keys: add_file = a @@ -111,8 +138,6 @@ add_directory = A plist_add_stream = ^u delete_from_playlist = d playlist_full_paths = P -plist_move_up = u -plist_move_down = j save_playlist = V remove_dead_entries = Y clear_playlist = C @@ -130,15 +155,12 @@ cancel = ^x ESCAPE hide_message = M # Softmixer specific keys: -toggle_mixer = x toggle_softmixer = w +toggle_make_mono = J # Equalizer specific keys: toggle_equalizer = E equalizer_refresh = e -equalizer_prev = K -equalizer_next = k -toggle_make_mono = J # External commands: mark_start = ' diff --git a/files/tmuxinator/bopytex.yml b/files/tmuxinator/bopytex.yml new file mode 100644 index 0000000..6a847dd --- /dev/null +++ b/files/tmuxinator/bopytex.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: bopytex +root: ~/scripts/Bopytex + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon bopytex + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/enseignement.yml b/files/tmuxinator/enseignement.yml new file mode 100644 index 0000000..c50e76c --- /dev/null +++ b/files/tmuxinator/enseignement.yml @@ -0,0 +1,39 @@ +# ~/.tmuxinator/marbenj_sigal.yml + +name: enseignement +root: /home/lafrite/Cours/Prof/Enseignements/2018-2019/ +#root: /media/documents/Cours/Prof/Enseignements + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start +# pre: workon marbenj_sigal + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: . ./config.sh + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t marbenj_sigal + +windows: + - editor: vim -c NERDTree + - server: + layout: main-vertical + panes: + - + - diff --git a/files/tmuxinator/mapytex.yml b/files/tmuxinator/mapytex.yml new file mode 100644 index 0000000..d64f29c --- /dev/null +++ b/files/tmuxinator/mapytex.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: mapytex +root: ~/scripts/Mapytex/ + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: source .venv/bin/activate + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim -c NERDTree + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/marbenj_sigal.yml b/files/tmuxinator/marbenj_sigal.yml new file mode 100644 index 0000000..dcd2652 --- /dev/null +++ b/files/tmuxinator/marbenj_sigal.yml @@ -0,0 +1,38 @@ +# ~/.tmuxinator/marbenj_sigal.yml + +name: marbenj_sigal +root: /media/documents/marbenj/ + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start +#pre: workon marbenj_sigal + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon marbenj_sigal + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t marbenj_sigal + +windows: + - editor: vim + - server: + layout: main-vertical + panes: + - + - diff --git a/files/tmuxinator/marbenj_sigal_dev.yml b/files/tmuxinator/marbenj_sigal_dev.yml new file mode 100644 index 0000000..8fbff63 --- /dev/null +++ b/files/tmuxinator/marbenj_sigal_dev.yml @@ -0,0 +1,38 @@ +# ~/.tmuxinator/marbenj_sigal.yml + +name: marbenj_sigal +root: ~/scripts/marbenj_signal + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start +#pre: workon marbenj_sigal + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon marbenj_sigal + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t marbenj_sigal + +windows: + - editor: vim + - server: + layout: main-vertical + panes: + - + - diff --git a/files/tmuxinator/marksEditor.yml b/files/tmuxinator/marksEditor.yml new file mode 100644 index 0000000..dfa7485 --- /dev/null +++ b/files/tmuxinator/marksEditor.yml @@ -0,0 +1,38 @@ +# ~/.tmuxinator/marbenj_sigal.yml + +name: markseditor +root: ~/scripts/marksEditor + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start +#pre: workon marbenj_sigal + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon marksEditor + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t marbenj_sigal + +windows: + - editor: vim + - server: + layout: main-vertical + panes: + - + - diff --git a/files/tmuxinator/notes_analysis.yml b/files/tmuxinator/notes_analysis.yml new file mode 100644 index 0000000..7cfbcf4 --- /dev/null +++ b/files/tmuxinator/notes_analysis.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: notes_analysis +root: ~/scripts/notes_analysis/ + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon notes_analysis + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/opytex.yml b/files/tmuxinator/opytex.yml new file mode 100644 index 0000000..42397a4 --- /dev/null +++ b/files/tmuxinator/opytex.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: opytex +root: ~/scripts/Opytex + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon opytex + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/pymath.yml b/files/tmuxinator/pymath.yml new file mode 100644 index 0000000..3496e57 --- /dev/null +++ b/files/tmuxinator/pymath.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: pymath +root: ~/scripts/pyMath/ + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon pymath + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/pytex.yml b/files/tmuxinator/pytex.yml new file mode 100644 index 0000000..7ac64af --- /dev/null +++ b/files/tmuxinator/pytex.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: Pytex +root: ~/scripts/Pytex + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon pytex + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/repytex.yml b/files/tmuxinator/repytex.yml new file mode 100644 index 0000000..3b1ef8f --- /dev/null +++ b/files/tmuxinator/repytex.yml @@ -0,0 +1,43 @@ +# ~/.tmuxinator/pymath.yml + +name: repytex +root: ~/scripts/Repytex/ + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon repytex + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t pymath + +windows: + - editor: + - vim + - giting: + layout: main-vertical + panes: + - git fetch && git status + - tig + - testing: + layout: main-vertical + panes: + - #empty + - #empty diff --git a/files/tmuxinator/site_opytex.yml b/files/tmuxinator/site_opytex.yml new file mode 100644 index 0000000..f5bffdf --- /dev/null +++ b/files/tmuxinator/site_opytex.yml @@ -0,0 +1,38 @@ +# ~/.tmuxinator/site_opytex.yml + +name: site_opytex +root: ~/scripts/site_opytex/ + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 +pre_window: workon site_opytex + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t site_opytex + +windows: + - editor: vim + - server: + layout: main-vertical + panes: + - cd output && python -m http.server + - + - git: tig diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index 5ff6bc9..aac4463 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -26,6 +26,17 @@ gem: name: tmuxinator state: latest + when: not minimal and not server + +- name: Copy .tmuxinator/ + copy: + src: files/tmuxinator/ + dest: /home/{{ item.username }}/.tmuxinator/ + owner: "{{ item.username }}" + group: "{{ item.username }}" + with_items: "{{ me }}" + when: not minimal and not server + - name: Copy local zshrc template: