mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 13:19:07 -07:00
Remove cruft
This commit is contained in:
@@ -1 +1,5 @@
|
||||
{ "contextFileName": "AGENTS.md" }
|
||||
{
|
||||
"context": {
|
||||
"fileName": "AGENTS.md"
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
[media-keys]
|
||||
screensaver=['<Primary><Alt>l', 'XF86ScreenSaver']
|
||||
|
||||
[wm]
|
||||
move-to-workspace-1=['<Shift><Super>exclam']
|
||||
move-to-workspace-2=['<Shift><Super>at']
|
||||
move-to-workspace-3=['<Shift><Super>numbersign']
|
||||
move-to-workspace-4=['<Shift><Super>dollar']
|
||||
move-to-workspace-5=['<Shift><Super>percent']
|
||||
move-to-workspace-6=['<Shift><Super>asciicircum']
|
||||
move-to-workspace-7=['<Shift><Super>ampersand']
|
||||
move-to-workspace-8=['<Shift><Super>asterisk']
|
||||
move-to-workspace-9=['<Shift><Super>parenleft']
|
||||
switch-to-workspace-4=['<Super>4']
|
||||
switch-to-workspace-1=['<Super>1']
|
||||
switch-to-workspace-10=['<Super>0']
|
||||
switch-to-workspace-3=['<Super>3']
|
||||
switch-to-workspace-8=['<Super>8']
|
||||
switch-to-workspace-5=['<Super>5']
|
||||
move-to-workspace-10=['<Shift><Super>parenright']
|
||||
switch-to-workspace-2=['<Super>2']
|
||||
switch-to-workspace-9=['<Super>9']
|
||||
switch-to-workspace-6=['<Super>6']
|
||||
switch-to-workspace-7=['<Super>7']
|
||||
60
install.sh
60
install.sh
@@ -211,50 +211,6 @@ install_keys() {
|
||||
install_known_hosts
|
||||
}
|
||||
|
||||
is_deb_system() {
|
||||
test -f /usr/bin/apt-get
|
||||
}
|
||||
|
||||
run_as_root() {
|
||||
# Attempt to run as root
|
||||
if [ "${USER}" = "root" ] ; then
|
||||
"$@"
|
||||
return $?
|
||||
elif test -x "$(command -v sudo 2>/dev/null)" ; then
|
||||
verbose "Using sudo to run ${1}..."
|
||||
sudo "$@"
|
||||
return $?
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
install_pkg_set() {
|
||||
local pkg_file=${BASEDIR}/packages/${1}
|
||||
local pkg_list=""
|
||||
if [ ! -f "${pkg_file}" ] ; then
|
||||
echo "Package set $(basename "${pkg_file}") does not exist." 1>&2
|
||||
return 1
|
||||
fi
|
||||
while read -r line ; do
|
||||
if is_comment "${line}" ; then
|
||||
continue
|
||||
fi
|
||||
if [ -z "${line}" ] ; then
|
||||
continue
|
||||
fi
|
||||
if [ "$(apt-cache -q show "${line}" 2>/dev/null)" != "" ] ; then
|
||||
pkg_list="${pkg_list} ${line}"
|
||||
else
|
||||
echo "Warning: package ${line} not found." >&2
|
||||
fi
|
||||
done < "${pkg_file}"
|
||||
if [ -n "${pkg_list}" ] ; then
|
||||
verbose "Installing ${pkg_list}"
|
||||
# shellcheck disable=SC2086
|
||||
run_as_root apt-get install -qqy ${pkg_list}
|
||||
fi
|
||||
}
|
||||
|
||||
setup_git_email() {
|
||||
local gc_local="${HOME}/.gitconfig.local"
|
||||
if test -f "${gc_local}" ; then
|
||||
@@ -369,14 +325,6 @@ install_main() {
|
||||
cleanup
|
||||
}
|
||||
|
||||
install_dconf() {
|
||||
have_command dconf || return 1
|
||||
find "${BASEDIR}/dconf" -type f | while read -r fullpath ; do
|
||||
local dcpath="/${fullpath#"${BASE-DIR}/dconf/"}"
|
||||
dconf load "${dcpath}/" < "${fullpath}"
|
||||
done
|
||||
}
|
||||
|
||||
install_vim_extra() {
|
||||
local DEST="${HOME}/.vim/pack/matir-extra"
|
||||
local REPO="https://github.com/Matir/vim-extra.git"
|
||||
@@ -423,18 +371,10 @@ case $OPERATION in
|
||||
dotfiles)
|
||||
install_dotfiles
|
||||
;;
|
||||
package*)
|
||||
PKG_SET=${2:-minimal}
|
||||
install_pkg_set "${PKG_SET}"
|
||||
;;
|
||||
test)
|
||||
# Do nothing, just sourcing
|
||||
set +o errexit
|
||||
;;
|
||||
dconf)
|
||||
# Load dconf
|
||||
install_dconf
|
||||
;;
|
||||
vim-extra)
|
||||
# Install/update extra vim modules
|
||||
install_vim_extra
|
||||
|
||||
Reference in New Issue
Block a user