From f80b029ae355fd549631eb61effcfb9b542405af Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 5 Nov 2025 16:55:25 -0800 Subject: [PATCH] Remove cruft --- .gemini/settings.json | 6 ++- dconf/org/cinnamon/desktop/keybindings | 24 ----------- install.sh | 60 -------------------------- 3 files changed, 5 insertions(+), 85 deletions(-) delete mode 100644 dconf/org/cinnamon/desktop/keybindings diff --git a/.gemini/settings.json b/.gemini/settings.json index 68337d3..38396c7 100644 --- a/.gemini/settings.json +++ b/.gemini/settings.json @@ -1 +1,5 @@ -{ "contextFileName": "AGENTS.md" } +{ + "context": { + "fileName": "AGENTS.md" + } +} \ No newline at end of file diff --git a/dconf/org/cinnamon/desktop/keybindings b/dconf/org/cinnamon/desktop/keybindings deleted file mode 100644 index e8ae607..0000000 --- a/dconf/org/cinnamon/desktop/keybindings +++ /dev/null @@ -1,24 +0,0 @@ -[media-keys] -screensaver=['l', 'XF86ScreenSaver'] - -[wm] -move-to-workspace-1=['exclam'] -move-to-workspace-2=['at'] -move-to-workspace-3=['numbersign'] -move-to-workspace-4=['dollar'] -move-to-workspace-5=['percent'] -move-to-workspace-6=['asciicircum'] -move-to-workspace-7=['ampersand'] -move-to-workspace-8=['asterisk'] -move-to-workspace-9=['parenleft'] -switch-to-workspace-4=['4'] -switch-to-workspace-1=['1'] -switch-to-workspace-10=['0'] -switch-to-workspace-3=['3'] -switch-to-workspace-8=['8'] -switch-to-workspace-5=['5'] -move-to-workspace-10=['parenright'] -switch-to-workspace-2=['2'] -switch-to-workspace-9=['9'] -switch-to-workspace-6=['6'] -switch-to-workspace-7=['7'] diff --git a/install.sh b/install.sh index 8165233..4150844 100755 --- a/install.sh +++ b/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