From: Ismaël Bouya Date: Sat, 20 Oct 2018 15:04:44 +0000 (+0200) Subject: Validation initiale X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=1950387f0b222d9ca51b573a4b287f139e5248c5;p=perso%2FImmae%2FConfig%2Fdotdrop.git Validation initiale --- 1950387f0b222d9ca51b573a4b287f139e5248c5 diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..3a100bf --- /dev/null +++ b/config.yaml @@ -0,0 +1,163 @@ +_comments: + _need_help: Go see https://github.com/deadc0de6/dotdrop#config + _todo4: password store +actions: + post: + make_exec: chmod a+x {0} + pam_updated: "echo -e \"\\033[00;32m\u26A0\uFE0F \u26A0\uFE0F You need to log\ + \ out and back in to update your environment \u26A0\uFE0F \u26A0\uFE0F\\033[00m\"" + systemd_daemon_reload: systemctl --user daemon-reload + systemd_enable: systemctl --user is-enabled {0} || systemctl --user enable {0} + systemd_restart: systemctl --user restart {0} + systemd_start: systemctl --user is-active {0} || systemctl --user start {0} + vim_pluginstall: vim -c PlugInstall -c qa + pre: + make_bash_dirs: mkdir -p "$XDG_STATE_HOME/bash" "$XDG_STATE_HOME/less" + make_git_dirs: mkdir -p "$XDG_STATE_HOME/tig" + make_pm2_dirs: mkdir -p "$XDG_CONFIG_HOME/pm2" + make_psql_dirs: mkdir -p "$XDG_STATE_HOME/psql" + make_xdg_dirs: mkdir -p "$XDG_CONFIG_HOME" "$XDG_STATE_HOME" "$XDG_DATA_HOME" + "$XDG_CACHE_HOME" +config: + backup: false + banner: false + create: true + dotpath: dotfiles + keepdot: false + link_by_default: false + longkey: true + showdiff: true + workdir: ~/.config/dotdrop/templated_symlinks +dotfiles: + fretlink_config_files: + actions: + - make_pm2_dirs + dst: ~/.config + src: fretlink/config_files + fretlink_workdir_files: + actions: + - make_exec ~/workdir/start + dst: ~/workdir + src: fretlink/workdir + git_config_files: + actions: + - make_git_dirs + dst: ~/.config + src: git/config_files + graphical_config_files: + dst: ~/.config + src: graphical/config_files + graphical_mimeapps_list: + dst: ~/.local/share/applications/mimeapps.list + src: graphical/mimeapps.list + lxde_config_files: + dst: ~/.config + src: lxde/config_files + pam_environment: + actions: + - make_xdg_dirs + - pam_updated + dst: ~/.config/pam_environment + src: pam_environment + prog_haskell_ghci: + dst: ~/.ghc/ghci.conf + src: programming/haskell/ghci.conf + prog_nodejs_npm: + dst: ~/.config/npm/npmrc + src: programming/nodejs/npmrc + remind_0_service: + actions: + - systemd_daemon_reload + dst: ~/.config/systemd/user/remind@.service + src: remind/remind@.service + remind_work: + actions: + - systemd_enable "remind@work" + - systemd_restart "remind@work" + dst: ~/.config/remind/work + src: remind/work + shell_bash_bashrc: + actions: + - make_bash_dirs + dst: ~/.bashrc + src: shell_bash/bashrc + shell_bash_profile: + dst: ~/.bash_profile + src: shell_bash/bash_profile + tools_mplayer: + dst: ~/.config/mplayer/config + src: tools/mplayer + tools_psql: + actions: + - make_psql_dirs + dst: ~/.config/psql/psqlrc + src: tools/psqlrc + tools_tmux: + dst: ~/.config/tmux/tmux.conf + src: tools/tmux.conf + tools_vim: + actions: + - vim_pluginstall + dst: ~/.config/vim/vimrc + src: tools/vimrc + tools_youtube_viewer: + dst: ~/.config/youtube-viewer/youtube-viewer.conf + src: tools/youtube-viewer.conf +profiles: + _fretlink: + dotfiles: + - remind_0_service + - remind_work + - fretlink_config_files + - fretlink_workdir_files + include: + - _prog_haskell + - _prog_nodejs + _git: + dotfiles: + - git_config_files + _graphical: + dotfiles: + - graphical_config_files + - graphical_mimeapps_list + _lxde: + dotfiles: + - lxde_config_files + include: + - _graphical + _prog_haskell: + dotfiles: + - prog_haskell_ghci + _prog_nodejs: + dotfiles: + - prog_nodejs_npm + _shell_bash: + dotfiles: + - shell_bash_profile + - shell_bash_bashrc + _tools: + dotfiles: + - tools_mplayer + - tools_psql + - tools_tmux + - tools_youtube_viewer + - tools_vim + flony: + dotfiles: + - pam_environment + include: + - _git + - _fretlink + - _lxde + - _shell_bash + - _tools + init: + dotfiles: + - pam_environment +variables: + features: + flony: + - graphical_vt + - nodejs + role: + flony: fretlink diff --git a/dotfiles/fretlink/config_files/autostart/zeal.desktop b/dotfiles/fretlink/config_files/autostart/zeal.desktop new file mode 100644 index 0000000..27f53b7 --- /dev/null +++ b/dotfiles/fretlink/config_files/autostart/zeal.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=Zeal +GenericName=Documentation Browser +Comment=Simple API documentation browser +Exec=/usr/bin/zeal +Icon=zeal +Terminal=false +Type=Application +Categories=Development; diff --git a/dotfiles/fretlink/workdir/start b/dotfiles/fretlink/workdir/start new file mode 100755 index 0000000..911c28d --- /dev/null +++ b/dotfiles/fretlink/workdir/start @@ -0,0 +1,53 @@ +#!/bin/bash + +APP="$1" + +if [ -z "$APP" ]; then + if [ $(dirname $(pwd)) = "$HOME/workdir" ]; then + APP=$(basename $(pwd)) + else + echo "need an app to start" + exit 1 + fi +fi + +if [ "$APP" != "psql" ]; then + cd $HOME/workdir/$APP + source ../environment +else + source ../environment + APP=psql +fi + +function start_stack() { + stack exec $1; +} + +function start_app() { + trap 'make stop' EXIT + + if ! docker top mongo_container 2>/dev/null; then + docker run -d --name mongo_container -p 27017:27017 --rm -v $(pwd)/appdata:/data/db mongo:3.6 + echo "Waiting until mongo is started" + sleep 10 + fi + + make start + make --directory=frontend/ start +} + +function start_psql() { + export PGPASSWORD=$POSTGRESQL_ADDON_PASSWORD + psql -h $POSTGRESQL_ADDON_HOST -p $POSTGRESQL_ADDON_PORT -U $POSTGRESQL_ADDON_USER -d $POSTGRESQL_ADDON_DB +} + +case "$APP" in + "psql") start_psql;; + "app") start_app;; + "admin-root") start_stack server;; + "carrier-directory") start_stack server;; + "freight") start_stack freight-server;; + "notifier") start_stack notifier-exe;; + "pricer") start_stack pricer;; + "toolbox") start_stack toolbox-api;; +esac diff --git a/dotfiles/git/config_files/git/config b/dotfiles/git/config_files/git/config new file mode 100644 index 0000000..5565c38 --- /dev/null +++ b/dotfiles/git/config_files/git/config @@ -0,0 +1,23 @@ +[user] + signingkey = DC384748709D2619FF2867216D0CAFFDDB1CFE90 +{%@@ if profile in role and role[profile] == "fretlink" @@%} + email = ismael.bouya@fretlink.com +{%@@ else @@%} + email = ismael.bouya@normalesup.org +{%@@ endif @@%} + name = Ismaël Bouya +[commit] + gpgsign = true + verbose = true +[push] + gpgSign = if-asked +{%@@ if profile in role and role[profile] == "fretlink" @@%} +[fretlink] + remote-name = upstream +{%@@ endif @@%} +[log] + showSignature = true +{%@@ if profile in role @@%} +[init] + templateDir = ~/.config/git/templates_{{@@ role[profile] @@}} +{%@@ endif @@%} diff --git a/dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push b/dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push new file mode 100755 index 0000000..19088c9 --- /dev/null +++ b/dotfiles/git/config_files/git/templates_fretlink/hooks/pre-push @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +echo "[+] Running the linter" +make lint + +exit 0 diff --git a/dotfiles/git/config_files/tig/config b/dotfiles/git/config_files/tig/config new file mode 100644 index 0000000..e9cdf17 --- /dev/null +++ b/dotfiles/git/config_files/tig/config @@ -0,0 +1,19 @@ +set editor-line-number = yes +set mouse = yes +set mouse-scroll = 5 +set refresh-mode = auto +set line-graphics = utf-8 + +set pager-view-line-number = yes,interval=10 +set blame-view-line-number = yes,interval=10 +set grep-view-line-number = yes,interval=10 +set diff-view-line-number = yes,interval=10 +set log-view-line-number = yes,interval=10 +set blob-view-line-number = yes,interval=10 +set stage-view-line-number = yes,interval=10 + +set main-view-commit-title = graph=v1,refs=yes +set refs-view-commit-title = graph=v1,refs=yes +set stash-view-commit-title = graph=v1,refs=yes + +set refs-view-ref = display=yes diff --git a/dotfiles/graphical/config_files/autostart/redshift-gtk.desktop b/dotfiles/graphical/config_files/autostart/redshift-gtk.desktop new file mode 100644 index 0000000..3fc7814 --- /dev/null +++ b/dotfiles/graphical/config_files/autostart/redshift-gtk.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Redshift +GenericName=Redshift +Exec=/usr/bin/redshift-gtk +Icon=redshift +Terminal=false +Type=Application diff --git a/dotfiles/graphical/config_files/dunst/dunstrc b/dotfiles/graphical/config_files/dunst/dunstrc new file mode 100644 index 0000000..c8e55b5 --- /dev/null +++ b/dotfiles/graphical/config_files/dunst/dunstrc @@ -0,0 +1,368 @@ +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = mouse + + # The geometry of the window: + # [{width}]x{height}[+/-{x}+/-{y}] + # The geometry of the message window. + # The height is measured in number of notifications everything else + # in pixels. If the width is omitted but the height is given + # ("-geometry x2"), the message window expands over the whole screen + # (dmenu-like). If width is 0, the window expands to the longest + # message displayed. A positive x is measured from the left, a + # negative from the right side of the screen. Y is measured from + # the top and down respectively. + # The width can be negative. In this case the actual width is the + # screen width minus the width defined in within the geometry option. + geometry = "300x5-30+20" + + # Show how many messages are currently hidden (because of geometry). + indicate_hidden = yes + + # Shrink window if it's smaller than the width. Will be ignored if + # width is 0. + shrink = no + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). + transparency = 0 + + # The height of the entire notification. If the height is smaller + # than the font height and padding combined, it will be raised + # to the font height and padding. + notification_height = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 2 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 3 + + # Defines color of the frame around the notification window. + frame_color = "#aaaaaa" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # Transient notifications ignore this setting. + idle_threshold = 120 + + ### Text ### + + font = Monospace 8 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%a\n%s\n%b\n%p" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Split notifications into multiple lines if they don't fit into + # geometry. + word_wrap = yes + + # When word_wrap is set to no, specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = middle + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Merge multiple notifications with the same content + stack_duplicates = true + + # Hide the count of merged notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Align icons left/right/off + icon_position = left + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 32 + + # Paths to default icons. + icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/firefox -new-tab + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = Dunst + + # Define the class of the windows spawned by dunst + class = Dunst + + # Print a notification on startup. + # This is mainly for error detection, since dbus (re-)starts dunst + # automatically after a crash. + startup_notification = true + + # Manage dunst's desire for talking + # Can be one of the following values: + # crit: Critical features. Dunst aborts + # warn: Only non-fatal warnings + # mesg: Important Messages + # info: all unimportant stuff + # debug: all less than unimportant stuff + verbosity = mesg + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + +[shortcuts] + + # Shortcuts are specified as [modifier+][modifier+]...key + # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", + # "mod3" and "mod4" (windows-key). + # Xev might be helpful to find names for keys. + + # Close notification. + close = ctrl+space + + # Close all notifications. + close_all = ctrl+mod1+space + + # Redisplay last message(s). + # On the US keyboard layout "grave" is normally above TAB and left + # of "1". Make sure this key actually exists on your keyboard layout, + # e.g. check output of 'xmodmap -pke' + history = ctrl+shift+space + + # Context menu. + context = shift+space + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# Messages can be matched by "appname", "summary", "body", "icon", "category", +# "msg_urgency" and you can override the "timeout", "urgency", "foreground", +# "background", "frame_color", "new_icon" and "format", "fullscreen". +# Shell-like globbing will get expanded. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: if you don't want a notification to be displayed, set the format +# to "". +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification + +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +[volume] + summary = "Volume" + appname = "Openbox-volume" + format = "Volume %p" + fullscreen = show + +[volume-mute] + appname = "Openbox-mute" + format = "%s" + fullscreen = show + background = "#00ff00" + foreground = "#000000" + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# format = "" + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +# vim: ft=cfg diff --git a/dotfiles/graphical/config_files/redshift.conf b/dotfiles/graphical/config_files/redshift.conf new file mode 100644 index 0000000..da26fa2 --- /dev/null +++ b/dotfiles/graphical/config_files/redshift.conf @@ -0,0 +1,8 @@ +[redshift] +temp-day=4500 +temp-night=4500 +location-provider=manual + +[manual] +lat=48.8566 +lon=2.3522 diff --git a/dotfiles/graphical/mimeapps.list b/dotfiles/graphical/mimeapps.list new file mode 100644 index 0000000..5c827ab --- /dev/null +++ b/dotfiles/graphical/mimeapps.list @@ -0,0 +1,147 @@ +[Added Associations] +text/html=firefox.desktop +text/xml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/vnd.mozilla.xul+xml=firefox.desktop +text/mml=firefox.desktop +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +inode/directory=pcmanfm.desktop +image/bmp=gpicview.desktop +image/gif=gpicview.desktop +image/jpeg=gpicview.desktop +image/jpg=gpicview.desktop +image/png=gpicview.desktop +image/tiff=org.gnome.Evince.desktop +image/x-bmp=gpicview.desktop +image/x-pcx=gpicview.desktop +image/x-tga=gpicview.desktop +image/x-portable-pixmap=gpicview.desktop +image/x-portable-bitmap=gpicview.desktop +image/x-targa=gpicview.desktop +image/x-portable-greymap=gpicview.desktop +application/pcx=gpicview.desktop +image/svg+xml=gpicview.desktop +image/svg-xml=gpicview.desktop +text/english=nvim.desktop +text/plain=nvim.desktop +text/x-makefile=nvim.desktop +text/x-c++hdr=nvim.desktop +text/x-c++src=nvim.desktop +text/x-chdr=nvim.desktop +text/x-csrc=nvim.desktop +text/x-java=nvim.desktop +text/x-moc=nvim.desktop +text/x-pascal=nvim.desktop +text/x-tcl=nvim.desktop +text/x-tex=nvim.desktop +application/x-shellscript=nvim.desktop +text/x-c=nvim.desktop +text/x-c++=nvim.desktop +application/pdf=org.gnome.Evince.desktop +application/x-bzpdf=org.gnome.Evince.desktop +application/x-gzpdf=org.gnome.Evince.desktop +application/x-xzpdf=org.gnome.Evince.desktop +application/x-ext-pdf=org.gnome.Evince.desktop +application/postscript=org.gnome.Evince.desktop +application/x-bzpostscript=org.gnome.Evince.desktop +application/x-gzpostscript=org.gnome.Evince.desktop +image/x-eps=org.gnome.Evince.desktop +image/x-bzeps=org.gnome.Evince.desktop +image/x-gzeps=org.gnome.Evince.desktop +application/x-ext-ps=org.gnome.Evince.desktop +application/x-ext-eps=org.gnome.Evince.desktop +application/illustrator=org.gnome.Evince.desktop +application/x-dvi=org.gnome.Evince.desktop +application/x-bzdvi=org.gnome.Evince.desktop +application/x-gzdvi=org.gnome.Evince.desktop +application/x-ext-dvi=org.gnome.Evince.desktop +image/vnd.djvu+multipage=org.gnome.Evince.desktop +application/x-ext-djv=org.gnome.Evince.desktop +application/x-ext-djvu=org.gnome.Evince.desktop +application/x-cbr=org.gnome.Evince.desktop +application/x-cbz=org.gnome.Evince.desktop +application/x-cb7=org.gnome.Evince.desktop +application/x-cbt=org.gnome.Evince.desktop +application/x-ext-cbr=org.gnome.Evince.desktop +application/x-ext-cbz=org.gnome.Evince.desktop +application/x-ext-cb7=org.gnome.Evince.desktop +application/x-ext-cbt=org.gnome.Evince.desktop +application/vnd.comicbook+zip=org.gnome.Evince.desktop +application/vnd.comicbook-rar=org.gnome.Evince.desktop +application/oxps=org.gnome.Evince.desktop +application/vnd.ms-xpsdocument=org.gnome.Evince.desktop + +[Default Applications] +text/html=firefox.desktop +text/xml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/vnd.mozilla.xul+xml=firefox.desktop +text/mml=firefox.desktop +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +inode/directory=pcmanfm.desktop +image/bmp=gpicview.desktop +image/gif=gpicview.desktop +image/jpeg=gpicview.desktop +image/jpg=gpicview.desktop +image/png=gpicview.desktop +image/tiff=org.gnome.Evince.desktop +image/x-bmp=gpicview.desktop +image/x-pcx=gpicview.desktop +image/x-tga=gpicview.desktop +image/x-portable-pixmap=gpicview.desktop +image/x-portable-bitmap=gpicview.desktop +image/x-targa=gpicview.desktop +image/x-portable-greymap=gpicview.desktop +application/pcx=gpicview.desktop +image/svg+xml=gpicview.desktop +image/svg-xml=gpicview.desktop +text/english=nvim.desktop +text/plain=nvim.desktop +text/x-makefile=nvim.desktop +text/x-c++hdr=nvim.desktop +text/x-c++src=nvim.desktop +text/x-chdr=nvim.desktop +text/x-csrc=nvim.desktop +text/x-java=nvim.desktop +text/x-moc=nvim.desktop +text/x-pascal=nvim.desktop +text/x-tcl=nvim.desktop +text/x-tex=nvim.desktop +application/x-shellscript=nvim.desktop +text/x-c=nvim.desktop +text/x-c++=nvim.desktop +application/pdf=org.gnome.Evince.desktop +application/x-bzpdf=org.gnome.Evince.desktop +application/x-gzpdf=org.gnome.Evince.desktop +application/x-xzpdf=org.gnome.Evince.desktop +application/x-ext-pdf=org.gnome.Evince.desktop +application/postscript=org.gnome.Evince.desktop +application/x-bzpostscript=org.gnome.Evince.desktop +application/x-gzpostscript=org.gnome.Evince.desktop +image/x-eps=org.gnome.Evince.desktop +image/x-bzeps=org.gnome.Evince.desktop +image/x-gzeps=org.gnome.Evince.desktop +application/x-ext-ps=org.gnome.Evince.desktop +application/x-ext-eps=org.gnome.Evince.desktop +application/illustrator=org.gnome.Evince.desktop +application/x-dvi=org.gnome.Evince.desktop +application/x-bzdvi=org.gnome.Evince.desktop +application/x-gzdvi=org.gnome.Evince.desktop +application/x-ext-dvi=org.gnome.Evince.desktop +image/vnd.djvu+multipage=org.gnome.Evince.desktop +application/x-ext-djv=org.gnome.Evince.desktop +application/x-ext-djvu=org.gnome.Evince.desktop +application/x-cbr=org.gnome.Evince.desktop +application/x-cbz=org.gnome.Evince.desktop +application/x-cb7=org.gnome.Evince.desktop +application/x-cbt=org.gnome.Evince.desktop +application/x-ext-cbr=org.gnome.Evince.desktop +application/x-ext-cbz=org.gnome.Evince.desktop +application/x-ext-cb7=org.gnome.Evince.desktop +application/x-ext-cbt=org.gnome.Evince.desktop +application/vnd.comicbook+zip=org.gnome.Evince.desktop +application/vnd.comicbook-rar=org.gnome.Evince.desktop +application/oxps=org.gnome.Evince.desktop +application/vnd.ms-xpsdocument=org.gnome.Evince.desktop diff --git a/dotfiles/lxde/config_files/libfm/libfm.conf b/dotfiles/lxde/config_files/libfm/libfm.conf new file mode 100644 index 0000000..03ba473 --- /dev/null +++ b/dotfiles/lxde/config_files/libfm/libfm.conf @@ -0,0 +1,44 @@ +# Configuration file for the libfm version 1.3.0.2. +# Autogenerated file, don't edit, your changes will be overwritten. + +[config] +single_click=0 +use_trash=1 +confirm_del=1 +confirm_trash=1 +advanced_mode=0 +si_unit=0 +force_startup_notify=1 +backup_as_hidden=1 +no_usb_trash=1 +no_child_non_expandable=0 +show_full_names=0 +only_user_templates=0 +template_run_app=0 +template_type_once=0 +auto_selection_delay=600 +drop_default_action=auto +defer_content_test=0 +quick_exec=0 +terminal=lxterminal +thumbnail_local=1 +thumbnail_max=2048 +smart_desktop_autodrop=1 + +[ui] +big_icon_size=48 +small_icon_size=24 +pane_icon_size=24 +thumbnail_size=128 +show_thumbnail=1 +shadow_hidden=0 + +[places] +places_home=1 +places_desktop=1 +places_root=0 +places_computer=0 +places_trash=1 +places_applications=1 +places_network=0 +places_unmounted=1 diff --git a/dotfiles/lxde/config_files/lxpanel/LXDE/config b/dotfiles/lxde/config_files/lxpanel/LXDE/config new file mode 100644 index 0000000..76228e2 --- /dev/null +++ b/dotfiles/lxde/config_files/lxpanel/LXDE/config @@ -0,0 +1,2 @@ +[Command] +Logout=lxde-logout diff --git a/dotfiles/lxde/config_files/lxpanel/LXDE/panels/panel b/dotfiles/lxde/config_files/lxpanel/LXDE/panels/panel new file mode 100644 index 0000000..34c978d --- /dev/null +++ b/dotfiles/lxde/config_files/lxpanel/LXDE/panels/panel @@ -0,0 +1,165 @@ +# lxpanel config file. Manually editing is not recommended. +# Use preference dialog in lxpanel to adjust config when you can. + +Global { + edge=bottom + align=left + margin=0 + widthtype=percent + width=100 + height=26 + transparent=0 + tintcolor=#000000 + alpha=0 + setdocktype=1 + setpartialstrut=1 + autohide=0 + heightwhenhidden=0 + usefontcolor=1 + fontcolor=#ffffff + background=1 + backgroundfile=/usr/share/lxpanel/images/background.png +} +Plugin { + type=space + Config { + Size=2 + } +} +Plugin { + type=menu + Config { + image=/usr/share/lxde/images/lxde-icon.png + system { + } + separator { + } + item { + command=run + } + separator { + } + item { + image=gnome-logout + command=logout + } + } +} +Plugin { + type=launchbar + Config { + Button { + id=pcmanfm.desktop + } + Button { + id=firefox.desktop + } + } +} +Plugin { + type=space + Config { + Size=4 + } +} +Plugin { + type=wincmd + Config { + Button1=iconify + Button2=shade + } +} +Plugin { + type=space + Config { + Size=4 + } +} +Plugin { + type=pager + Config { + } +} +Plugin { + type=space + Config { + Size=4 + } +} +Plugin { + type=taskbar + expand=1 + Config { + tooltips=1 + IconsOnly=0 + AcceptSkipPager=1 + ShowIconified=1 + ShowMapped=1 + ShowAllDesks=0 + UseMouseWheel=1 + UseUrgencyHint=1 + FlatButton=0 + MaxTaskWidth=150 + spacing=1 + } +} +Plugin { + type=monitors + Config { + DisplayCPU=1 + DisplayRAM=1 + CPUColor=#0000FF + RAMColor=#FF0000 + } +} +Plugin { + type=volume + Config { + } +} +Plugin { + type=tray + Config { + } +} +Plugin { + type=dclock + Config { + ClockFmt=%F %R + TooltipFmt=%A %x + BoldFont=0 + IconOnly=0 + CenterText=0 + } +} +Plugin { + type=netstatus + Config { + iface=enp0s31f6 + configtool=nm-connection-editor + } +} +Plugin { + type=netstatus + Config { + iface=wlp2s0 + configtool=nm-connection-editor + } +} +Plugin { + type=batt + Config { + BackgroundColor=black + ChargingColor1=#28f200 + ChargingColor2=#22cc00 + DischargingColor1=#ffee00 + DischargingColor2=#d9ca00 + HideIfNoBattery=0 + AlarmCommand=notify-send "Batterie faible" --icon=battery-caution + AlarmTime=5 + BorderWidth=0 + Size=1 + ShowExtendedInformation=0 + BatteryNumber=0 + } +} diff --git a/dotfiles/lxde/config_files/lxpanel/launchtaskbar.cfg b/dotfiles/lxde/config_files/lxpanel/launchtaskbar.cfg new file mode 100644 index 0000000..a3d0e52 --- /dev/null +++ b/dotfiles/lxde/config_files/lxpanel/launchtaskbar.cfg @@ -0,0 +1,4 @@ +[special_cases] +synaptic=synaptic-pkexec +soffice.bin=libreoffice +x-terminal-emulator=lxterminal diff --git a/dotfiles/lxde/config_files/lxsession-default-apps/settings.conf b/dotfiles/lxde/config_files/lxsession-default-apps/settings.conf new file mode 100644 index 0000000..444f215 --- /dev/null +++ b/dotfiles/lxde/config_files/lxsession-default-apps/settings.conf @@ -0,0 +1,45 @@ +[Mime] +webbrowser/available= +email/available= +file_manager/available= +screensaver/available= +composite_manager/available= +desktop_manager/available= +power_manager/available= +polkit/available= +im/available= +widget/available= +terminal_manager/available= +audio_player/available= +video_player/available= +pdf_reader/available= +image_display/available= +text_editor/available= +archive/available= +spreadsheet/available= +bittorent/available= +document/available= +burn/available= +tasks/available= +webbrowser/installed=Firefox,/usr/lib/firefox/firefox,firefox,/usr/share/applications/firefox.desktop,; +email/installed= +file_manager/installed=Gestionnaire de fichiers PCManFM,pcmanfm,system-file-manager,/usr/share/applications/pcmanfm.desktop,; +screensaver/installed= +composite_manager/installed= +desktop_manager/installed=Personnaliser l'apparence,lxappearance,preferences-desktop-theme,/usr/share/applications/lxappearance.desktop,;Applications par défaut pour LXSession,lxsession-default-apps,preferences-desktop,/usr/share/applications/lxsession-default-apps.desktop,;Paramètres de la session de bureau,lxsession-edit,preferences-desktop,/usr/share/applications/lxsession-edit.desktop,;Applications préférées,libfm-pref-apps,preferences-desktop,/usr/share/applications/libfm-pref-apps.desktop,;Setup Hot Keys,lxhotkey,preferences-desktop-keyboard,/usr/share/applications/lxhotkey-gtk.desktop,;Préférences du bureau,pcmanfm,user-desktop,/usr/share/applications/pcmanfm-desktop-pref.desktop,; +power_manager/installed= +polkit/installed= +im/installed= +widget/installed= +terminal_manager/installed=LXTerminal,lxterminal,lxterminal,/usr/share/applications/lxterminal.desktop,; +audio_player/installed=LXMusic simple music player,lxmusic,lxmusic,/usr/share/applications/lxmusic.desktop,;Qt V4L2 test Utility,qv4l2,qv4l2,/usr/share/applications/qv4l2.desktop,;Lecteur multimédia VLC,/usr/bin/vlc,vlc,/usr/share/applications/vlc.desktop,;MPlayer Media Player,mplayer,mplayer,/usr/share/applications/mplayer.desktop,;Contrôle du volume PulseAudio,pavucontrol,multimedia-volume-control,/usr/share/applications/pavucontrol.desktop,;GTK Youtube Viewer,gtk-youtube-viewer,gtk-youtube-viewer,/usr/share/applications/gtk-youtube-viewer.desktop,; +video_player/installed=LXMusic simple music player,lxmusic,lxmusic,/usr/share/applications/lxmusic.desktop,;Qt V4L2 test Utility,qv4l2,qv4l2,/usr/share/applications/qv4l2.desktop,;Lecteur multimédia VLC,/usr/bin/vlc,vlc,/usr/share/applications/vlc.desktop,;MPlayer Media Player,mplayer,mplayer,/usr/share/applications/mplayer.desktop,;Contrôle du volume PulseAudio,pavucontrol,multimedia-volume-control,/usr/share/applications/pavucontrol.desktop,;GTK Youtube Viewer,gtk-youtube-viewer,gtk-youtube-viewer,/usr/share/applications/gtk-youtube-viewer.desktop,; +pdf_reader/installed=Visionneur d'images,gpicview,gpicview,/usr/share/applications/gpicview.desktop,;Aperçu avant impression,evince-previewer,document-print-preview,/usr/share/applications/org.gnome.Evince-previewer.desktop,;Visionneur de documents,evince,org.gnome.Evince,/usr/share/applications/org.gnome.Evince.desktop,; +image_display/installed=Visionneur d'images,gpicview,gpicview,/usr/share/applications/gpicview.desktop,;Aperçu avant impression,evince-previewer,document-print-preview,/usr/share/applications/org.gnome.Evince-previewer.desktop,;Visionneur de documents,evince,org.gnome.Evince,/usr/share/applications/org.gnome.Evince.desktop,; +text_editor/installed=Vim,vim,gvim,/usr/share/applications/vim.desktop,;Neovim,nvim,nvim,/usr/share/applications/nvim.desktop,; +archive/installed= +spreadsheet/installed= +bittorent/installed= +document/installed= +burn/installed= +tasks/installed=Gestionnaire des tâches,lxtask,utilities-system-monitor,/usr/share/applications/lxtask.desktop,; diff --git a/dotfiles/lxde/config_files/lxsession/LXDE/autostart b/dotfiles/lxde/config_files/lxsession/LXDE/autostart new file mode 100755 index 0000000..d8f2e23 --- /dev/null +++ b/dotfiles/lxde/config_files/lxsession/LXDE/autostart @@ -0,0 +1,3 @@ +@lxpanel --profile LXDE +@pcmanfm --desktop --profile LXDE +@xscreensaver -no-splash diff --git a/dotfiles/lxde/config_files/lxsession/LXDE/desktop.conf b/dotfiles/lxde/config_files/lxsession/LXDE/desktop.conf new file mode 100644 index 0000000..08a2d67 --- /dev/null +++ b/dotfiles/lxde/config_files/lxsession/LXDE/desktop.conf @@ -0,0 +1,54 @@ +[Session] +window_manager=openbox-lxde +disable_autostart=no +polkit/command=lxpolkit +clipboard/command=lxclipboard +xsettings_manager/command=build-in +proxy_manager/command=build-in +keyring/command=ssh-agent +quit_manager/command=lxsession-logout +lock_manager/command=lxlock +terminal_manager/command=lxterminal +quit_manager/image=/usr/share/lxde/images/logout-banner.png +quit_manager/layout=top +webbrowser/command=/usr/lib/firefox/firefox +tasks/command=lxtask +pdf_reader/command=evince +text_editor/command=nvim + +[GTK] +sNet/ThemeName=Adwaita +sNet/IconThemeName=nuoveXT2 +sGtk/FontName=Sans 10 +iGtk/ToolbarStyle=3 +iGtk/ButtonImages=1 +iGtk/MenuImages=1 +iGtk/CursorThemeSize=18 +iXft/Antialias=1 +iXft/Hinting=1 +sXft/HintStyle=hintslight +sXft/RGBA=rgb +iNet/EnableEventSounds=1 +iNet/EnableInputFeedbackSounds=1 +sGtk/ColorScheme= +iGtk/ToolbarIconSize=3 +sGtk/CursorThemeName=DMZ-White + +[Mouse] +AccFactor=20 +AccThreshold=10 +LeftHanded=0 + +[Keyboard] +Delay=500 +Interval=30 +Beep=1 + +[State] +guess_default=true + +[Dbus] +lxde=true + +[Environment] +menu_prefix=lxde- diff --git a/dotfiles/lxde/config_files/lxterminal/lxterminal.conf b/dotfiles/lxde/config_files/lxterminal/lxterminal.conf new file mode 100644 index 0000000..e572e20 --- /dev/null +++ b/dotfiles/lxde/config_files/lxterminal/lxterminal.conf @@ -0,0 +1,53 @@ +[general] +fontname=Monospace 10 +selchars=-A-Za-z0-9,./?%&#:_ +scrollback=1000 +bgcolor=rgb(0,0,0) +fgcolor=rgb(170,170,170) +palette_color_0=rgb(0,0,0) +palette_color_1=rgb(170,0,0) +palette_color_2=rgb(0,170,0) +palette_color_3=rgb(170,85,0) +palette_color_4=rgb(0,0,170) +palette_color_5=rgb(170,0,170) +palette_color_6=rgb(0,170,170) +palette_color_7=rgb(170,170,170) +palette_color_8=rgb(85,85,85) +palette_color_9=rgb(255,85,85) +palette_color_10=rgb(85,255,85) +palette_color_11=rgb(255,255,85) +palette_color_12=rgb(85,85,255) +palette_color_13=rgb(255,85,255) +palette_color_14=rgb(85,255,255) +palette_color_15=rgb(255,255,255) +color_preset=VGA +disallowbold=false +cursorblinks=false +cursorunderline=false +audiblebell=false +tabpos=top +geometry_columns=80 +geometry_rows=24 +hidescrollbar=true +hidemenubar=false +hideclosebutton=false +hidepointer=false +disablef10=true +disablealt=true +disableconfirm=false + +[shortcut] +new_window_accel=n +new_tab_accel=t +close_tab_accel=w +close_window_accel=q +copy_accel=c +paste_accel=v +name_tab_accel=i +previous_tab_accel=Page_Up +next_tab_accel=Page_Down +move_tab_left_accel=Page_Up +move_tab_right_accel=Page_Down +zoom_in_accel=plus +zoom_out_accel=underscore +zoom_reset_accel=parenright diff --git a/dotfiles/lxde/config_files/openbox/lxde-rc.xml b/dotfiles/lxde/config_files/openbox/lxde-rc.xml new file mode 100644 index 0000000..5003f15 --- /dev/null +++ b/dotfiles/lxde/config_files/openbox/lxde-rc.xml @@ -0,0 +1,696 @@ + + + + + 10 + 20 + + + yes + + no + + yes + + no + + 200 + + no + + + + Smart + +
yes
+ + Any +
+ + + Onyx + NLIMC + + yes + yes + + sans + 10 + + bold + + normal + + + + sans + 10 + + bold + + normal + + + + sans + 10 + + normal + + normal + + + + sans + 10 + + normal + + normal + + + + sans + 10 + + bold + + normal + + + + + + 2 + 1 + + + 875 + + + + yes + Nonpixel + + Center + + + + 10 + + 10 + + + + + 0 + 0 + 0 + 0 + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + C-g + + + + no + no + + + + + no + no + + + + + no + no + + + + + no + no + + + + + no + no + + + + + no + no + + + + + no + no + + + + + no + no + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + + + + + + yes + yes + + + + + + + true + PCManFM + + pcmanfm + + + + + + pcmanfm --find-files + + + + + + lxpanelctl run + + + + + + + + + lxtask + + + + + + lxrandr + + + + + xbacklight -inc 10 + + + + + xbacklight -dec 10 + + + + + slock + + + + + xset dpms force off + + + + + bash -c "pamixer --allow-boost -u -i 1; v=$HOME/.cache/dunstify_volume; vol=`pamixer --get-volume`; color=`[ $vol -le 100 ] && echo normal || echo critical`; dunstify -r $(($(cat $v))) -p Volume --hints=int:value:$vol -i ' ' -a Openbox-volume -t 1000 -u $color > $v" + + + + + bash -c "pamixer --allow-boost -u -d 1; v=$HOME/.cache/dunstify_volume; vol=`pamixer --get-volume`; color=`[ $vol -le 100 ] && echo normal || echo critical`; dunstify -r $(($(cat $v))) -p Volume --hints=int:value:$vol -i ' ' -a Openbox-volume -t 1000 -u $color > $v" + + + + + bash -c "v=$HOME/.cache/dunstify_volume; vol=$([ `pamixer -t ; pamixer --get-mute` = \"false\" ] && echo on || echo off); dunstify -r $(($(cat $v))) -p 'Volume '$vol -i ' ' -a Openbox-mute -t 1000 > $v" + + + + + scrot "%Y-%m-%d_%H_%M_%S.png" -e 'mv $f ~' + + + + + scrot -s "%Y-%m-%d_%H_%M_%S.png" -e 'mv $f ~' + + + + + 8 + + 200 + + 400 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + + + + + + top + + + + + + + + + + + left + + + + + + + + + + + right + + + + + + + + + + + bottom + + + + + + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-list-combined-menu + + + + + root-menu + + + + + + + + + + + + + + + + + + + + + /usr/share/lxde/openbox/menu.xml + 200 + + no + + 100 + + yes + + yes + + + +
\ No newline at end of file diff --git a/dotfiles/lxde/config_files/pcmanfm/LXDE/desktop-items-0.conf b/dotfiles/lxde/config_files/pcmanfm/LXDE/desktop-items-0.conf new file mode 100644 index 0000000..088cce4 --- /dev/null +++ b/dotfiles/lxde/config_files/pcmanfm/LXDE/desktop-items-0.conf @@ -0,0 +1,15 @@ +[*] +wallpaper_mode=crop +wallpaper_common=1 +wallpaper=/usr/share/lxde/wallpapers/lxde_blue.jpg +desktop_bg=#000000 +desktop_fg=#ffffff +desktop_shadow=#000000 +desktop_font=Sans 12 +folder= +show_wm_menu=0 +sort=mtime;ascending; +show_documents=0 +show_trash=1 +show_mounts=0 + diff --git a/dotfiles/lxde/config_files/pcmanfm/LXDE/pcmanfm.conf b/dotfiles/lxde/config_files/pcmanfm/LXDE/pcmanfm.conf new file mode 100644 index 0000000..3722eef --- /dev/null +++ b/dotfiles/lxde/config_files/pcmanfm/LXDE/pcmanfm.conf @@ -0,0 +1,27 @@ +[config] +bm_open_method=0 + +[volume] +mount_on_startup=1 +mount_removable=1 +autorun=1 + +[ui] +always_show_tabs=0 +max_tab_chars=32 +win_width=640 +win_height=480 +maximized=1 +splitter_pos=150 +media_in_new_tab=0 +desktop_folder_new_win=0 +change_tab_on_drop=1 +close_on_unmount=1 +focus_previous=0 +side_pane_mode=places +view_mode=icon +show_hidden=0 +sort=name;ascending; +toolbar=newtab;navigation;home; +show_statusbar=1 +pathbar_mode_buttons=0 diff --git a/dotfiles/lxde/config_files/xinitrc b/dotfiles/lxde/config_files/xinitrc new file mode 100644 index 0000000..e3bd830 --- /dev/null +++ b/dotfiles/lxde/config_files/xinitrc @@ -0,0 +1,15 @@ +### replace /etc/X11/xinit/xinitrc and /etc/X11/xinit/xinitrc.d/* +dbus-update-activation-environment DISPLAY XAUTHORITY +### + +setxkbmap -layout fr -variant oss -model pc104 -option compose:menu -option nbsp:level3 -option shift:breaks_caps -option terminate:ctrl_alt_bksp + +#### The rest replaces a `exec startlxde` (To avoid the dbus-update-activation-environment) +# Enable GTK+2 integration for OpenOffice.org, if available. +export SAL_USE_VCLPLUGIN=gtk + +export XDG_MENU_PREFIX="lxde-" +export XDG_CURRENT_DESKTOP="LXDE" + +# Start the LXDE session +exec /usr/bin/lxsession -s LXDE -e LXDE diff --git a/dotfiles/pam_environment b/dotfiles/pam_environment new file mode 100644 index 0000000..09172e1 --- /dev/null +++ b/dotfiles/pam_environment @@ -0,0 +1,70 @@ +# This wil be set correctly in systemd service since the service manager +# itself goes through /etc/pam.d/system-login (as systemd-user) and +# takes its environment from pam_env +# HOME doesn’t even exist when arriving here, but the user’s home is +# available via @{HOME}. But pam_systemd still sets XDG_RUNTIME_DIR (and +# only that one in the case of systemd-user) + +# Those are already defined in /etc/security/pam_env.conf +XDG_CONFIG_HOME DEFAULT="@{HOME}/.config" +XDG_CACHE_HOME DEFAULT="@{HOME}/.cache" +XDG_DATA_HOME DEFAULT="@{HOME}/.local/share" +XDG_STATE_HOME DEFAULT="@{HOME}/.local/state" + +EDITOR DEFAULT="vim" +VISUAL DEFAULT="vim" +PAGER DEFAULT="less" +BROWSER DEFAULT="firefox" + +# VIM +VIMINIT DEFAULT=":source ${XDG_CONFIG_HOME}/vim/vimrc" + +# Mplayer +MPLAYER_HOME DEFAULT="${XDG_CONFIG_HOME}/mplayer" + +# X11 +XAUTHORITY DEFAULT="${XDG_RUNTIME_DIR}/Xauthority" + +# GPG +GNUPGHOME DEFAULT="${XDG_CONFIG_HOME}/gnupg" + +# Less +LESSHISTFILE DEFAULT="${XDG_STATE_HOME}/less/history" + +# Pass +PASSWORD_STORE_DIR DEFAULT="${XDG_DATA_HOME}/pass" + +# Postgresql +PSQLRC DEFAULT="${XDG_CONFIG_HOME}/psql/psqlrc" +PSQL_HISTORY DEFAULT="${XDG_STATE_HOME}/psql/psql_history" +PGPASSFILE DEFAULT="${XDG_CONFIG_HOME}/psql/pgpass" +PGSERVICEFILE DEFAULT="${XDG_CONFIG_HOME}/psql/pg_service.conf" + +# Sqlite +SQLITE_HISTORY DEFAULT="${XDG_STATE_HOME}/sqlite_history" + +# Stack +STACK_ROOT DEFAULT="${XDG_DATA_HOME}/stack" + +# Nodejs +NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm" +NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc" + +# TMUX +TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}" + +# node_modules/pm2/paths.js +PM2_HOME DEFAULT="${XDG_DATA_HOME}/pm2" +PM2_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/conf.js" +PM2_MODULE_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/module_conf.js" +PM2_LOG_FILE_PATH DEFAULT="${XDG_STATE_HOME}/pm2/pm2.log" +PM2_PID_FILE_PATH DEFAULT="${XDG_RUNTIME_DIR}/pm2/pm2.pid" +PM2_RELOAD_LOCKFILE DEFAULT="${XDG_RUNTIME_DIR}/pm2/reload.lock" +PM2_DEFAULT_PID_PATH DEFAULT="${XDG_RUNTIME_DIR}/pm2/pids" +PM2_DEFAULT_LOG_PATH DEFAULT="${XDG_STATE_HOME}/pm2/logs" +PM2_DAEMON_RPC_PORT DEFAULT="${XDG_RUNTIME_DIR}/pm2/rpc.sock" +PM2_DAEMON_PUB_PORT DEFAULT="${XDG_RUNTIME_DIR}/pm2/pub.sock" +PM2_INTERACTOR_RPC_PORT DEFAULT="${XDG_RUNTIME_DIR}/pm2/interactor.sock" +PM2_INTERACTOR_LOG_FILE_PATH DEFAULT="${XDG_STATE_HOME}/pm2/agent.log" +PM2_INTERACTOR_PID_PATH DEFAULT="${XDG_RUNTIME_DIR}/pm2/agent.pid" +PM2_INTERACTION_CONF DEFAULT="${XDG_CONFIG_HOME}/pm2/agent.json5" diff --git a/dotfiles/programming/haskell/ghci.conf b/dotfiles/programming/haskell/ghci.conf new file mode 100644 index 0000000..1de7ca1 --- /dev/null +++ b/dotfiles/programming/haskell/ghci.conf @@ -0,0 +1,2 @@ +:set prompt "λ " +:set -XOverloadedStrings diff --git a/dotfiles/programming/nodejs/npmrc b/dotfiles/programming/nodejs/npmrc new file mode 100644 index 0000000..5dc76c3 --- /dev/null +++ b/dotfiles/programming/nodejs/npmrc @@ -0,0 +1,3 @@ +cache=${XDG_CACHE_HOME}/npm +tmp=${XDG_RUNTIME_DIR}/npm +init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js diff --git a/dotfiles/remind/remind@.service b/dotfiles/remind/remind@.service new file mode 100644 index 0000000..3fc221d --- /dev/null +++ b/dotfiles/remind/remind@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Remind daemon +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/remind -z60 -k'/usr/bin/dunstify -t 0 -a Tracking %%s' %h/.config/remind/%i + +[Install] +WantedBy=default.target diff --git a/dotfiles/remind/work b/dotfiles/remind/work new file mode 100644 index 0000000..edc937d --- /dev/null +++ b/dotfiles/remind/work @@ -0,0 +1 @@ +REM Mon Tue Wed Thu Fri AT 09:00 MSG Ne pas oublier de démarrer le time tracking ! diff --git a/dotfiles/shell_bash/bash_profile b/dotfiles/shell_bash/bash_profile new file mode 100644 index 0000000..4de837b --- /dev/null +++ b/dotfiles/shell_bash/bash_profile @@ -0,0 +1,9 @@ +# Some variables are loaded via pam (see .config/pam_environment) + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +{%@@ if "graphical_vt" in features.get(profile, []) @@%} +if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx $XDG_CONFIG_HOME/xinitrc +fi +{%@@ endif @@%} diff --git a/dotfiles/shell_bash/bashrc b/dotfiles/shell_bash/bashrc new file mode 100644 index 0000000..8f43283 --- /dev/null +++ b/dotfiles/shell_bash/bashrc @@ -0,0 +1,94 @@ +# +# ~/.bashrc +# + +if [ -n "$HOME/.local/bin" ]; then + PATH="$HOME/.local/bin:$PATH" +fi + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +export HISTFILE="$XDG_STATE_HOME/bash/history" + +alias vi=vim +alias ls='ls --color=auto -F -T 0' +alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf' + +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' + +alias sudo="sudo " +alias mv="mv -i" +alias cp="cp -i" +alias rm="rm -i" +alias psp="pstree -aUp $USER" +alias dotdrop="dotdrop --cfg $XDG_CONFIG_HOME/dotdrop/config.yaml" + +{%@@ if role.get(profile) == "fretlink" @@%} +##### Some Fretlink aliases +alias getDump='s3cmd -c <(pass show Travail/Fretlink/S3) get ' + +function vpn() { + TMPFILE=$(mktemp /tmp/openvpn.XXXXXX) + pass show Travail/Fretlink/OpenVPN >> $TMPFILE + sudo openvpn $TMPFILE + rm -f $TMPFILE +} + +function dev_prompt() { + if [ -n "$FRETLINK_ENV" ]; then + echo "{$FRETLINK_ENV} " + fi +} +##### /Fretlink +{%@@ endif @@%} + +# Non-printable chars need to be wrapped by \[ ... \] otherwise bash +# will wrongly count the size of the prompt and glitch when going +# through history +function git_prompt_color() { + git diff --quiet 2>/dev/null && git diff --cached --quiet 2>/dev/null + gitstatus=$? + if [ "$gitstatus" -gt 0 ]; then + av=$'\033[01;31m' + else + av=$'\033[01;34m' + fi + echo "$av" +} + +function git_prompt() { + gitinfo=$(git branch 2>/dev/null | grep "^*" | cut -c3-); + git diff --quiet 2>/dev/null && git diff --cached --quiet 2>/dev/null + gitstatus=$? + gitlsfiles=$(git ls-files . 2>/dev/null | wc -l); + if [ "$gitinfo" -a "$gitlsfiles" -gt 0 ]; then + echo -e "($gitinfo) " + fi +} + +function error_code() { + ret=$? + if [[ $ret != 0 ]]; then + echo "$ret " + fi +} + +function running_jobs() { + ret=$(jobs | wc -l) + if [[ $ret != 0 ]]; then + echo "[$ret] " + fi +} + +{%@@ if role.get(profile) == "fretlink" @@%} +PS1='\[\033[01;31m\]$(error_code)\[\033[00;00m\]$(running_jobs)\[\033[01;32m\]$(dev_prompt)\[$(git_prompt_color)\]$(git_prompt)\[\033[00;32m\]\u@\h\[\033[94m\] \w \$\[\033[00m\] ' +{%@@ else @@%} +PS1='\[\033[01;31m\]$(error_code)\[\033[00;00m\]$(running_jobs)\[$(git_prompt_color)\]$(git_prompt)\[\033[00;32m\]\u@\h\[\033[94m\] \w \$\[\033[00m\] ' +{%@@ endif @@%} + +{%@@ if "nodejs" in features.get(profile, []) @@%} +source /usr/share/nvm/init-nvm.sh +{%@@ endif @@%} diff --git a/dotfiles/tools/mplayer b/dotfiles/tools/mplayer new file mode 100644 index 0000000..21cf775 --- /dev/null +++ b/dotfiles/tools/mplayer @@ -0,0 +1,3 @@ +# Write your default config options here! + + diff --git a/dotfiles/tools/psqlrc b/dotfiles/tools/psqlrc new file mode 100644 index 0000000..c51f46e --- /dev/null +++ b/dotfiles/tools/psqlrc @@ -0,0 +1,5 @@ +\pset null ¤ +\set COMP_KEYWORD_CASE upper +\x auto +\set HISTSIZ -1 +\set ECHO_HIDDEN on diff --git a/dotfiles/tools/tmux.conf b/dotfiles/tools/tmux.conf new file mode 100644 index 0000000..a2ec113 --- /dev/null +++ b/dotfiles/tools/tmux.conf @@ -0,0 +1,88 @@ +# Pour les nostalgiques de screen +# comme les raccourcis ne sont pas les mêmes, j'évite +set-option -g prefix C-a +unbind-key C-b +bind-key a send-prefix + +bind-key C-d detach +unbind-key C-z +bind-key C-z resize-pane -Z +bind-key h switch-client -t remote + +unbind-key ) +unbind-key ( +bind-key -r ( switch-client -p +bind-key -r ) switch-client -n + +bind-key -n M-Left previous-window +bind-key -n M-Right next-window +bind-key -n M-PageDown switch-client -n +bind-key -n M-PageUp switch-client -p + +bind-key M set-window-option monitor-activity +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"' + +bind-key C-c run-shell -b "tmux save-buffer - | xclip -i -sel clipboard" +bind-key C-v run-shell "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" + +bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" +bind-key -T root MouseUp2Pane run-shell "tmux set-buffer \"$(xclip -o -selection primary)\"; tmux paste-buffer" + +# même hack que sur screen lorsqu'on veut profiter du scroll du terminal +# (xterm ...) +set-option -g terminal-overrides 'xterm*:smcup@:rmcup@:Tc' + +# Renumeroter les fenetres quand on en ferme une +set-option -g renumber-windows on + +#Pour les ctrl+arrow +set-option -g xterm-keys on + +# c'est un minimum (defaut 2000) +set-option -g history-limit 10000 + +# lorsque j'ai encore un tmux ailleurs seule +# sa fenetre active réduit la taille de ma fenetre locale +set-window-option -g aggressive-resize on + +# Pour etre alerté sur une alerte dans une autre fenêtre +set-option -g visual-activity off +set-option -g visual-bell off + +# numéroter a partir de 1, pratique pour l'accès direct +set-option -g base-index 1 + +# repercuter le contenu de la fenetre dans la barre de titre +# reference des string : man tmux (status-left) +set-option -g set-titles on +set-option -g set-titles-string '#H #W #T' # host window command + +set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY XDG_VTNR" + +set-window-option -g window-status-bell-style fg=yellow,bold,underscore + +set -g default-terminal screen-256color + +set -g mouse on + +{%@@ if role.get(profile) == "fretlink" @@%} +new-session -A -c "$HOME/workdir/admin-root" -s admin-root +send-keys "../start" C-m +rename-window "running" +new-window +new-session -A -c "$HOME/workdir/carrier-directory" -s carrier-directory +send-keys "../start" C-m +rename-window "running" +new-window +new-session -A -c "$HOME/workdir/notifier" -s notifier +send-keys "../start" C-m +rename-window "running" +new-window +new-session -A -c "$HOME/workdir/geodata" -s geodata +new-session -A -c "$HOME/workdir/app" -s app +send-keys "../start" C-m +rename-window "running" +new-window +select-window -t 1 +{%@@ endif @@%} diff --git a/dotfiles/tools/vimrc b/dotfiles/tools/vimrc new file mode 100644 index 0000000..68a52f7 --- /dev/null +++ b/dotfiles/tools/vimrc @@ -0,0 +1,305 @@ +" ---------- Init, config, backup --------------- +" Respect XDG directories (more below for cache) +set viminfo+='1000,n$XDG_STATE_HOME/vim/viminfo +set runtimepath=$XDG_DATA_HOME/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$XDG_DATA_HOME/vim/after + +" Run :PlugInstall after adding plugins there +call plug#begin(expand($XDG_DATA_HOME) . '/vim/plugged') + +Plug 'vim-scripts/cecutil' +Plug 'vim-scripts/LargeFile' +Plug 'vim-scripts/Align' +Plug 'vim-scripts/AutoAlign' +Plug 'jamessan/vim-gnupg' +Plug 'vim-scripts/taglist.vim' +Plug 'chrisbra/csv.vim' +Plug 'mustache/vim-mustache-handlebars' +Plug 'cakebaker/scss-syntax.vim' +Plug 'tpope/vim-bundler' +Plug 'tpope/vim-rails' +Plug 'ledger/vim-ledger' +Plug 'beyondwords/vim-twig' +Plug 'scrooloose/nerdtree' +Plug 'kien/ctrlp.vim' +Plug 'rodjek/vim-puppet' +Plug 'szw/vim-tags' +Plug 'neomutt/neomutt.vim' +Plug 'kchmck/vim-coffee-script' +Plug 'digitaltoad/vim-pug' +Plug 'vim-scripts/slapd.vim' +Plug 'vimwiki/vimwiki', { 'branch': 'dev' } +Plug 'vim-vdebug/vdebug' +Plug 'tpope/vim-fugitive' +Plug 'tomlion/vim-solidity' +Plug 'chrisbra/SudoEdit.vim' + +call plug#end() + +" Charge automatiquement les ftplugins/*.vim selon le type de fichier +filetype plugin on +" Charge automatiquement les indent/*.vim selon le type de fichier +filetype indent on + +" Pour que vim garde une copie de sauvegarde des fichiers modifiés. +set backup +""" Copied from /usr/share/vim/vimfiles/archlinux.vim +" Move temporary files to a secure location to protect against CVE-2017-1000382 +if exists('$XDG_CACHE_HOME') + let &g:directory=$XDG_CACHE_HOME +else + let &g:directory=$HOME . '/.cache' +endif +let g:ctrlp_cache_dir=&g:directory . '/vim/ctrlp//' +let &g:undodir=&g:directory . '/vim/undo//' +let &g:backupdir=&g:directory . '/vim/backup//' +let g:vim_tags_cache_dir = &g:directory . '/vim/ctags//' +let &g:directory.='/vim/swap//' +" Create directories if they doesn't exist +if ! isdirectory($XDG_STATE_HOME . '/vim') + silent! call mkdir($XDG_STATE_HOME . '/vim') +endif +if ! isdirectory(expand(&g:directory)) + silent! call mkdir(expand(&g:directory), 'p', 0700) +endif +if ! isdirectory(expand(&g:backupdir)) + silent! call mkdir(expand(&g:backupdir), 'p', 0700) +endif +if ! isdirectory(expand(&g:undodir)) + silent! call mkdir(expand(&g:undodir), 'p', 0700) +endif +if ! isdirectory(expand(g:vim_tags_cache_dir)) + silent! call mkdir(expand(g:vim_tags_cache_dir), 'p', 0700) +endif +""" /Copied from /usr/share/vim/vimfiles/archlinux.vim + + +" Ne pas sauver un backup spécial pour les fichiers réseau +let g:netrw_dirhistmax = 0 + +" ---------- Mappings --------------------------- +" map : Normal, Visual, Select, Operator-pending +" map! : Insert and Command-line + +" Le BackSpace fonctionne aussi en mode normal. +map X + +" Les Control-flèches +map [1;5A +map! [1;5A +map [1;5B +map! [1;5B +map [1;5C +map! [1;5C +map [1;5D +map! [1;5D + +map { +map! { +map } +map! } + + +" ---------- Comportement à la frappe ----------- +" passe à travers l'indentation, les fins de ligne et le début du "insert" +set backspace=indent,eol,start + +" 'e écrit un é (sinon : ctrl+K ' e) +" set digraph + +" La taille d'une ligne, pour la frappe au kilomètre. +" Permet 4 niveaux de 'citation' pour les mails/forum +set textwidth=72 +" set textwidth=80 + +" Les touches qui font passer à la ligne suivante/précédente. backspace (b), +" espace (s), flèches (<,>,[,]). +set whichwrap=b,s,<,>,[,] + +" Ne pas mettre deux espaces après la ponctuation quand on "join" deux lignes +set nojoinspaces + +" Quand on tape un ), vim montre furtivement le ( correspondant. +set showmatch + +" Les options de formatage. +set formatoptions=tcq2 + + +" ---------- Recherche -------------------------- +" Pour voir tous les matchs d'une recherche +set hlsearch + +" Pour que les matchs soient affichés pendant que vous tapez le mot recherché +set incsearch + +" On ignore la casse des caractères dans les recherches de chaînes en +" minuscules; par contre, dès qu'une lettre est en majuscule, on tient compte +" de la casse de toute la chaîne. +" Pendant la recherche : \c pour ignorer quand même, \C pour case-sensitive +set ignorecase +set smartcase + + +" ---------- Fichiers --------------------------- +" Pour une complétion automatique des noms de fichiers +set wildmenu + +" La façon dont la complétion présente les choix. +set wildmode=longest,list:longest,full + +" La complétion automatique ignore les fichiers suivants. +set suffixes=.bak.o.aux.dvi.log.toc.tof + + +" ---------- Buffers ---------------------------- +" On veut pouvoir rendre invisible un buffer +set hidden + +" Pour éviter de trop ralentir en faisant défiler le texte pendant l'exécution +" des macros. +set lazyredraw + + +" ----------- Interactions ---------------------- +" On affiche en permanence les numéros de ligne et de colonne. +set ruler + +" Pour ne pas se faire bipper tout le temps. +set noerrorbells +set visualbell t_vb= + +" Pour avoir des messages de vim qui tiennent sur une seule ligne, ce +" qui évite d'avoir à presser «Enter» pour voir les messages suivants. +set shortmess=filnrxoOt + +" Quand on tape une commande complexe en mode normal, vim affiche ce que l'on +" a déjà tapé +set showcmd + + +" ------------ Indentations --------------------- +" Conserve l'indentation +set autoindent + +" Remplace les par des espaces +set expandtab + +" Nombre d'espaces +set shiftwidth=2 +set softtabstop=2 + +" Pour que l'indentation ajuste sur un multiple de 'shiftwidth'. +set shiftround + +" ------------ Folding -------------------------- +set foldmethod=indent +set foldnestmax=10 +set nofoldenable +set foldlevel=0 +set foldlevelstart=0 + + +" ------------ Auto-commandes ------------------- +" On commence par enlever toutes les autocommandes avant de les définir +" (pour le cas où ce fichier serait lu plusieurs fois.) +autocmd! + +autocmd BufRead,BufNewFile mutt*[0-9] set nobackup nowritebackup +autocmd BufRead,BufNewFile .article.* set filetype=mail nobackup + +" ledger +" Don't load ftplugin for ledger +" autocmd BufReadPre,BufNewFile *ledger* let b:did_ftplugin = 1 +autocmd FileType ledger set textwidth=0 +let g:ledger_main = '~/.ledger/perso' + +autocmd FileType puppet set textwidth=0 + +" ----------- Coloration syntaxique ------------- +syntax enable + +highlight Comment term=none ctermfg=darkCyan cterm=none +highlight Constant term=underline ctermfg=Blue cterm=none +highlight Error term=reverse ctermfg=White ctermbg=Red cterm=none +highlight Identifier term=none ctermfg=Green cterm=none +highlight IncSearch term=reverse ctermfg=Blue ctermbg=White +highlight Operator term=none ctermfg=darkGray cterm=bold +highlight PreProc term=underline ctermfg=Magenta cterm=none +highlight Search term=reverse cterm=reverse +highlight Special term=bold ctermfg=Blue cterm=bold +highlight Statement term=bold ctermfg=Red cterm=none +highlight Todo term=standout ctermfg=White ctermbg=Green cterm=bold +highlight Type term=bold ctermfg=Brown cterm=none + +highlight link Delimiter Operator +highlight link SpecialChar Special + +" lignes "foldées" +highlight Folded term=standout ctermfg=White ctermbg=Blue cterm=bold + +" Pour les diffs (commande vimdiff). +highlight DiffAdd term=bold ctermfg=Green ctermbg=none cterm=bold +highlight DiffChange term=bold ctermfg=Cyan ctermbg=none +highlight DiffDelete term=bold ctermfg=Red ctermbg=none cterm=bold +highlight DiffText term=standout ctermfg=White ctermbg=Cyan cterm=bold + +" ------------- Fonctions, commandes, macros ---- +" Identer les fichiers (json, xml) +function PRangeFunc(command_line, syntax) range + if a:firstline==1 && a:lastline==line('$') + execute 'set filetype=' . a:syntax + execute 'syntax on' + endif + execute a:firstline . "," . a:lastline . '!' . a:command_line +endfunction + +command -range=% Pjson normal `>amb`ma:'a,'b-1 call PRangeFunc('python -m json.tool', 'json') +command -range=% Pxml normal `>amb`ma:'a,'b-1 call PRangeFunc('xmllint --format --encode UTF8 -', 'xml') +command -range=% Pdeflate normal `>amb`ma:'a,'b-1 call PRangeFunc('python -c "import zlib; import sys; sys.stdout.buffer.write(zlib.decompress(sys.stdin.buffer.read()))"', '') +command -range=% Pinflate normal `>amb`ma:'a,'b-1 call PRangeFunc('python -c "import zlib; import sys; sys.stdout.buffer.write(zlib.compress(sys.stdin.buffer.read()))"', '') +command! -range=% Pastebin execute . "," . . "w !curl -F 'c=@-' https://ptpb.pw" + +vmap :Pxml +vmap :Pjson + +" gpg-encryptes files +let g:GPGPreferArmor=1 +let g:GPGDefaultRecipients=["ismael.bouya@normalesup.org"] +let g:GPGUsesPipes=1 + +command Decrypt 1,$!gpg -d -q +command Encrypt 1,$!gpg -e -q --armor -r ismael.bouya@normalesup.org +command -range=% Runhash s/:\([_a-zA-Z0-9]\+\)\( \+\)=> \( *\)/\1:\2\3/ + +function! s:DiffWithSaved() + let filetype=&ft + diffthis + vnew | r # | normal! 1Gdd + diffthis + exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype +endfunction +command! DiffSaved call s:DiffWithSaved() + +" Load NERDTree on startup if no file were specified +" autocmd StdinReadPre * let s:std_in=1 +" autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +" Load NERDTree on startup +"autocmd VimEnter * NERDTree | wincmd p +let g:vim_tags_auto_generate = 1 +let g:vim_tags_project_tags_command = "ctags -R {OPTIONS} {DIRECTORY} 2>/dev/null" +map :tab split:exec("tag ".expand("")) +map :vsp :exec("tag ".expand("")) + +let g:ctrlp_extensions = ['tag', 'buffertag', 'dir', 'undo', 'line'] +set modeline + +set grepprg=grep\ -rn\ $*\ /dev/null +let c_comment_strings=1 +if !exists(":DiffOrig") + command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis + \ | wincmd p | diffthis +endif + +set list +set listchars=tab:>-,trail:- + diff --git a/dotfiles/tools/youtube-viewer.conf b/dotfiles/tools/youtube-viewer.conf new file mode 100644 index 0000000..de55144 --- /dev/null +++ b/dotfiles/tools/youtube-viewer.conf @@ -0,0 +1,89 @@ +#!/usr/bin/perl + +# Youtube Viewer 3.3.4 - configuration file + +our $CONFIG = { + auto_captions => 0, + autohide_watched => 0, + cache_dir => "{{@@ env["XDG_CACHE_HOME"] @@}}/youtube-viewer", + captions_dir => "/tmp", + clobber => 0, + colors => 1, + combine_multiple_videos => 0, + confirm => 0, + convert_cmd => "ffmpeg -i *IN* *OUT*", + convert_to => undef, + copy_caption => 0, + dash_mp4_audio => 1, + dash_support => 1, + debug => 0, + download_and_play => 0, + download_in_parallel => 0, + download_with_wget => 0, + downloads_dir => ".", + env_proxy => 1, + fat32safe => 0, + fullscreen => 0, + get_captions => 1, + get_term_width => 1, + highlight_color => "bold", + highlight_watched => 0, + history => 0, + history_file => "{{@@ env["XDG_STATE_HOME"] @@}}/youtube-viewer/history.txt", + history_limit => 10000, + hl => "en_US", + http_proxy => undef, + interactive => 1, + keep_original_video => 0, + maxResults => 20, + order => undef, + page => 1, + publishedAfter => undef, + publishedBefore => undef, + regionCode => undef, + remove_played_file => 0, + resolution => "original", + results_fixed_width => 0, + results_with_colors => 0, + results_with_details => 0, + safeSearch => undef, + skip_if_exists => 0, + srt_languages => ["en", "fr"], + subscriptions_order => "relevance", + thousand_separator => ",", + video_filename_format => "*FTITLE*.*FORMAT*", + video_player_selected => "mplayer", + video_players => { + mplayer => { + arg => "-prefer-ipv4 -really-quiet -title *TITLE*", + audio => "-audiofile *AUDIO*", + cmd => "/usr/bin/mplayer", + fs => "-fs", + novideo => "-novideo", + srt => "-sub *SUB*", + }, + mpv => { + arg => "--really-quiet --title *TITLE* --no-ytdl", + audio => "--audio-file *AUDIO*", + cmd => "mpv", + fs => "--fullscreen", + novideo => "--no-video", + srt => "--sub-file *SUB*", + }, + vlc => { + arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*", + audio => "--input-slave *AUDIO*", + cmd => "vlc", + fs => "--fullscreen", + novideo => "--intf dummy --novideo", + srt => "--sub-file *SUB*", + }, + }, + videoCaption => undef, + videoDefinition => undef, + videoDimension => undef, + videoDuration => undef, + videoLicense => undef, + videoSyndicated => undef, + youtube_video_url => "https://www.youtube.com/watch?v=%s", +}