~joshleeb/dotfiles

09fb35850c1b097cd1699b18f96652e19f157e42 — Josh Leeb-du Toit 9 days ago 9c40cae master
alacritty: Update sycamore config to link in common
3 files changed, 10 insertions(+), 24 deletions(-)

R alacritty/{config.sycamore.yaml => config.yaml}
M bin/common.sh
M bin/sycamore.sh
R alacritty/config.sycamore.yaml => alacritty/config.yaml +0 -14
@@ 87,20 87,6 @@ mouse:
  hide_when_typing: true

  url:
    # URL launcher
    #
    # This program is executed when clicking on a text which is recognized as a URL.
    # The URL is always added to the command as the last parameter.
    #
    # When set to `launcher: None`, URL launching will be disabled completely.
    #
    # Default:
    #   - (macOS) open
    #   - (Linux/BSD) xdg-open
    #   - (Windows) explorer
    launcher:
      program: vivaldi-stable

    # URL modifiers
    #
    # These are the modifiers that need to be held down for opening URLs when clicking

M bin/common.sh => bin/common.sh +10 -0
@@ 2,6 2,15 @@

REPO_DIR=$(git rev-parse --show-toplevel)

function _link_common_alacritty {
    local dstdir="${HOME}/.config/alacritty"
    if [ ! -d "${dstdir}" ]; then
        mkdir "${dstdir}"
    fi

    symlink "${REPO_DIR}/alacritty/config.yaml" "${dstdir}/alacritty.yml"
}

function _link_common_cargo {
    local dstdir="${HOME}/.cargo"
    if [ ! -d "${dstdir}" ]; then


@@ 44,6 53,7 @@ function _link_common_zsh {
}

function link_common {
    _link_common_alacritty
    _link_common_cargo
    _link_common_git
    _link_common_nvim

M bin/sycamore.sh => bin/sycamore.sh +0 -10
@@ 8,15 8,6 @@ source "${REPO_DIR}/bin/utils/gnu.sh"
# shellcheck source=bin/common.sh
source "${REPO_DIR}/bin/common.sh"

function _link_sycamore_alacritty {
    local dstdir="${HOME}/.config/alacritty"
    if [ ! -d "${dstdir}" ]; then
        mkdir "${dstdir}"
    fi

    symlink "${REPO_DIR}/alacritty/config.sycamore.yaml" "${dstdir}/alacritty.yml"
}

function _link_sycamore_smerge {
    local dstdir="${HOME}/.config/sublime-merge/Packages/User"
    if [ ! -d "${dstdir}" ]; then


@@ 44,7 35,6 @@ function _link_sycamore_zsh {
function link_sycamore {
    link_common

    _link_sycamore_alacritty
    _link_sycamore_smerge
    _link_sycamore_x11
    _link_sycamore_zsh