diff options
Diffstat (limited to 'roles/tools/templates')
-rw-r--r-- | roles/tools/templates/tmux.conf.j2 | 88 | ||||
-rw-r--r-- | roles/tools/templates/youtube-viewer.conf.j2 | 89 |
2 files changed, 177 insertions, 0 deletions
diff --git a/roles/tools/templates/tmux.conf.j2 b/roles/tools/templates/tmux.conf.j2 new file mode 100644 index 0000000..8aad615 --- /dev/null +++ b/roles/tools/templates/tmux.conf.j2 | |||
@@ -0,0 +1,88 @@ | |||
1 | # Pour les nostalgiques de screen | ||
2 | # comme les raccourcis ne sont pas les mêmes, j'évite | ||
3 | set-option -g prefix C-a | ||
4 | unbind-key C-b | ||
5 | bind-key a send-prefix | ||
6 | |||
7 | bind-key C-d detach | ||
8 | unbind-key C-z | ||
9 | bind-key C-z resize-pane -Z | ||
10 | bind-key h switch-client -t remote | ||
11 | |||
12 | unbind-key ) | ||
13 | unbind-key ( | ||
14 | bind-key -r ( switch-client -p | ||
15 | bind-key -r ) switch-client -n | ||
16 | |||
17 | bind-key -n M-Left previous-window | ||
18 | bind-key -n M-Right next-window | ||
19 | bind-key -n M-PageDown switch-client -n | ||
20 | bind-key -n M-PageUp switch-client -p | ||
21 | |||
22 | bind-key M set-window-option monitor-activity | ||
23 | bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer; rm -f /tmp/tmux-buffer"' | ||
24 | |||
25 | bind-key C-c run-shell -b "tmux save-buffer - | xclip -i -sel clipboard" | ||
26 | bind-key C-v run-shell "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" | ||
27 | |||
28 | bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" | ||
29 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" | ||
30 | bind-key -T root MouseUp2Pane run-shell "tmux set-buffer \"$(xclip -o -selection primary)\"; tmux paste-buffer" | ||
31 | |||
32 | # même hack que sur screen lorsqu'on veut profiter du scroll du terminal | ||
33 | # (xterm ...) | ||
34 | set-option -g terminal-overrides 'xterm*:smcup@:rmcup@:Tc' | ||
35 | |||
36 | # Renumeroter les fenetres quand on en ferme une | ||
37 | set-option -g renumber-windows on | ||
38 | |||
39 | #Pour les ctrl+arrow | ||
40 | set-option -g xterm-keys on | ||
41 | |||
42 | # c'est un minimum (defaut 2000) | ||
43 | set-option -g history-limit 10000 | ||
44 | |||
45 | # lorsque j'ai encore un tmux ailleurs seule | ||
46 | # sa fenetre active réduit la taille de ma fenetre locale | ||
47 | set-window-option -g aggressive-resize on | ||
48 | |||
49 | # Pour etre alerté sur une alerte dans une autre fenêtre | ||
50 | set-option -g visual-activity off | ||
51 | set-option -g visual-bell off | ||
52 | |||
53 | # numéroter a partir de 1, pratique pour l'accès direct | ||
54 | set-option -g base-index 1 | ||
55 | |||
56 | # repercuter le contenu de la fenetre dans la barre de titre | ||
57 | # reference des string : man tmux (status-left) | ||
58 | set-option -g set-titles on | ||
59 | set-option -g set-titles-string '#H #W #T' # host window command | ||
60 | |||
61 | set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY XDG_VTNR" | ||
62 | |||
63 | set-window-option -g window-status-bell-style fg=yellow,bold,underscore | ||
64 | |||
65 | set -g default-terminal screen-256color | ||
66 | |||
67 | set -g mouse on | ||
68 | |||
69 | {% if role.get(profile) == "fretlink" %} | ||
70 | new-session -A -c "$HOME/workdir/admin-root" -s admin-root | ||
71 | send-keys "../start" C-m | ||
72 | rename-window "running" | ||
73 | new-window | ||
74 | new-session -A -c "$HOME/workdir/carrier-directory" -s carrier-directory | ||
75 | send-keys "../start" C-m | ||
76 | rename-window "running" | ||
77 | new-window | ||
78 | new-session -A -c "$HOME/workdir/notifier" -s notifier | ||
79 | send-keys "../start" C-m | ||
80 | rename-window "running" | ||
81 | new-window | ||
82 | new-session -A -c "$HOME/workdir/geodata" -s geodata | ||
83 | new-session -A -c "$HOME/workdir/app" -s app | ||
84 | send-keys "../start" C-m | ||
85 | rename-window "running" | ||
86 | new-window | ||
87 | select-window -t 1 | ||
88 | {% endif %} | ||
diff --git a/roles/tools/templates/youtube-viewer.conf.j2 b/roles/tools/templates/youtube-viewer.conf.j2 new file mode 100644 index 0000000..3107584 --- /dev/null +++ b/roles/tools/templates/youtube-viewer.conf.j2 | |||
@@ -0,0 +1,89 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | # Youtube Viewer 3.3.4 - configuration file | ||
4 | |||
5 | our $CONFIG = { | ||
6 | auto_captions => 0, | ||
7 | autohide_watched => 0, | ||
8 | cache_dir => "{{ lookup('env', 'XDG_CACHE_HOME') }}/youtube-viewer", | ||
9 | captions_dir => "/tmp", | ||
10 | clobber => 0, | ||
11 | colors => 1, | ||
12 | combine_multiple_videos => 0, | ||
13 | confirm => 0, | ||
14 | convert_cmd => "ffmpeg -i *IN* *OUT*", | ||
15 | convert_to => undef, | ||
16 | copy_caption => 0, | ||
17 | dash_mp4_audio => 1, | ||
18 | dash_support => 1, | ||
19 | debug => 0, | ||
20 | download_and_play => 0, | ||
21 | download_in_parallel => 0, | ||
22 | download_with_wget => 0, | ||
23 | downloads_dir => ".", | ||
24 | env_proxy => 1, | ||
25 | fat32safe => 0, | ||
26 | fullscreen => 0, | ||
27 | get_captions => 1, | ||
28 | get_term_width => 1, | ||
29 | highlight_color => "bold", | ||
30 | highlight_watched => 0, | ||
31 | history => 0, | ||
32 | history_file => "{{ lookup('env', 'XDG_STATE_HOME') }}/youtube-viewer/history.txt", | ||
33 | history_limit => 10000, | ||
34 | hl => "en_US", | ||
35 | http_proxy => undef, | ||
36 | interactive => 1, | ||
37 | keep_original_video => 0, | ||
38 | maxResults => 20, | ||
39 | order => undef, | ||
40 | page => 1, | ||
41 | publishedAfter => undef, | ||
42 | publishedBefore => undef, | ||
43 | regionCode => undef, | ||
44 | remove_played_file => 0, | ||
45 | resolution => "original", | ||
46 | results_fixed_width => 0, | ||
47 | results_with_colors => 0, | ||
48 | results_with_details => 0, | ||
49 | safeSearch => undef, | ||
50 | skip_if_exists => 0, | ||
51 | srt_languages => ["en", "fr"], | ||
52 | subscriptions_order => "relevance", | ||
53 | thousand_separator => ",", | ||
54 | video_filename_format => "*FTITLE*.*FORMAT*", | ||
55 | video_player_selected => "mplayer", | ||
56 | video_players => { | ||
57 | mplayer => { | ||
58 | arg => "-prefer-ipv4 -really-quiet -title *TITLE*", | ||
59 | audio => "-audiofile *AUDIO*", | ||
60 | cmd => "/usr/bin/mplayer", | ||
61 | fs => "-fs", | ||
62 | novideo => "-novideo", | ||
63 | srt => "-sub *SUB*", | ||
64 | }, | ||
65 | mpv => { | ||
66 | arg => "--really-quiet --title *TITLE* --no-ytdl", | ||
67 | audio => "--audio-file *AUDIO*", | ||
68 | cmd => "mpv", | ||
69 | fs => "--fullscreen", | ||
70 | novideo => "--no-video", | ||
71 | srt => "--sub-file *SUB*", | ||
72 | }, | ||
73 | vlc => { | ||
74 | arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*", | ||
75 | audio => "--input-slave *AUDIO*", | ||
76 | cmd => "vlc", | ||
77 | fs => "--fullscreen", | ||
78 | novideo => "--intf dummy --novideo", | ||
79 | srt => "--sub-file *SUB*", | ||
80 | }, | ||
81 | }, | ||
82 | videoCaption => undef, | ||
83 | videoDefinition => undef, | ||
84 | videoDimension => undef, | ||
85 | videoDuration => undef, | ||
86 | videoLicense => undef, | ||
87 | videoSyndicated => undef, | ||
88 | youtube_video_url => "https://www.youtube.com/watch?v=%s", | ||
89 | } | ||