literate-dotfiles/dotfiles/config.org

5.3 KiB

Configuration Files

SSH

  AddKeysToAgent  yes

  Host grenoble
      hostname ***REMOVED***
      Port 10022
      user tdehaeze
      IdentityFile ~/.ssh/id_rsa

  Host wingaudio
      hostname 207.154.251.241
      Port 22
      user tdehaeze
      IdentityFile ~/.ssh/id_rsa

  Host octoprint
      hostname 192.168.1.56
      Port 22
      user pi
      IdentityFile ~/.ssh/id_rsa

  Host hassio
      hostname 192.168.1.101
      Port 10022
      user root
      IdentityFile ~/.ssh/id_rsa

  Host nas
      hostname 192.168.1.50
      Port 10022
      user tdehaeze
      IdentityFile ~/.ssh/id_rsa

Font

  <?xml version='1.0'?>
  <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  <fontconfig>

  <alias>
      <family>serif</family>
      <prefer><family>Linux Libertine</family></prefer>
    </alias>
    <alias>
      <family>sans-serif</family>
      <prefer><family>Linux Biolinum</family></prefer>
    </alias>
    <alias>
      <family>sans</family>
      <prefer><family>Linux Biolinum</family></prefer>
    </alias>
    <alias>
      <family>monospace</family>
      <prefer><family>SauceCodePro Nerd Font Mono</family></prefer>
    </alias>

  </fontconfig>

Input

Completion:

  # Single tab for autocompletion
  set show-all-if-ambiguous on

  # Ignore case for completion
  set completion-ignore-case on

vi mode:

  # VI mode (works in bash and zsh)
  set editing-mode vi

  # Show which mode (normal or insert)
  set show-mode-in-prompt on

  # Show the mode by changing the cursor
  set vi-ins-mode-string \1\e[6 q\2
  set vi-cmd-mode-string \1\e[2 q\2

Key-bindings for vi-mode:

  set keymap vi-command
  # these are for vi-command mode
  Control-l: clear-screen
  Control-a: beginning-of-line
  Control-e: end-of-line
  Control-w: "\C-aisudo \C-e"

  set keymap vi-insert
  # these are for vi-insert mode
  Control-l: clear-screen
  Control-a: beginning-of-line
  Control-e: end-of-line
  Control-w: "\C-asudo \C-e"

Colorized completion

  # Color files by types
  set colored-stats On
  # Append char to indicate type
  set visible-stats On
  # Mark symlinked directories
  set mark-symlinked-directories On
  # Color the common prefix
  set colored-completion-prefix On
  # Color the common prefix in menu-complete
  set menu-complete-display-prefix On

Don't echo ^C after Ctrl+C is pressed.

  set echo-control-characters off

GnuPG

  default-cache-ttl 60480000
  max-cache-ttl 60480000

Redshift

  [redshift]
  temp-day=5700
  temp-night=3500

  transition=1

  ;brightness-day=0.7
  ;brightness-night=0.4

  location-provider=manual

  adjustment-method=randr

  [manual]
  lat=45.1
  lon=5.7

dmenu

  # define the font for dmenu to be used
  DMENU_FN="Hack Nerd Font 12"

  # background colour for unselected menu-items
  DMENU_NB="#222D31"

  # textcolour for unselected menu-items
  DMENU_NF="#F9FAF9"

  # background colour for selected menu-items
  DMENU_SB="#16A085"

  # textcolour for selected menu-items
  DMENU_SF="#F9FAF9"

  # command for the terminal application to be used:
  TERMINAL_CMD="terminal -e"

  # export our variables
  DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"

Locale

  LANG=en_US.UTF-8
  LC_CTYPE="en_US.UTF-8"
  LC_NUMERIC=fr_FR.UTF-8
  LC_TIME=fr_FR.UTF-8
  LC_COLLATE="en_US.UTF-8"
  LC_MONETARY=fr_FR.UTF-8
  LC_MESSAGES="en_US.UTF-8"
  LC_PAPER=fr_FR.UTF-8
  LC_NAME=fr_FR.UTF-8
  LC_ADDRESS=fr_FR.UTF-8
  LC_TELEPHONE=fr_FR.UTF-8
  LC_MEASUREMENT=fr_FR.UTF-8
  LC_IDENTIFICATION=fr_FR.UTF-8
  LC_ALL=

Pass Git Helper

  [github.com*]
  target=github.com/tdehaeze