diff --git a/init/.gitignore b/init/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/init/fedora.sh b/init/fedora.sh deleted file mode 100755 index 5e233aa..0000000 --- a/init/fedora.sh +++ /dev/null @@ -1,151 +0,0 @@ -#!/bin/sh - -# Hostname that should be set -HOST="martha" - -# dnf packages that should be installed -FEDORA_PKG="zsh rsync tmux mosh htop hugo gnome-tweaks firefox thunderbird elementary-planner codium newsflash calibre adobe-source-code-pro-fonts fira-code-fonts zeal sequeler gitg deja-dup deja-dup-nautilus vim-enhanced marker ImageMagick nodejs npm util-linux-user nextcloud-client nextcloud-client-nautilus gnome-extensions-app papirus-icon-theme libreoffice-icon-theme-papirus vlc libappindicator libappindicator-gtk3 broadcom-wl portfolio-performance" - -FEDORA_FLAT="com.spotify.client girens noson" - -FEDORA_PIP="gnome-extensions-cli" - -FEDORA_COPR="lray/PortfolioPerformance" - -GNOME_SHELL_EXTENSIONS="appindicatorsupport@rgcjonas.gmail.com auto-move-windows@gnome-shell-extensions.gcampax.github.com blyr@yozoon.dev.gmail.com caffeine@patapon.info dash-to-dock@micxgx.gmail.com Hide_Activities@shay.shayel.org Move_Clock@rmy.pobox.com native-window-placement@gnome-shell-extensions.gcampax.github.com netspeed@hedayaty.gmail.com nightthemeswitcher@romainvigier.fr panel-osd@berend.de.schouwer.gmail.com remove-dropdown-arrows@mpdeimos.com status-area-horizontal-spacing@mathematical.coffee.gmail.com steal-my-focus@kagesenshi.org user-theme@gnome-shell-extensions.gcampax.github.com" - -# NPM packes that should be installed -NPM_PKG="nativefier typescript" - -# Which App to use at default etxt editor (instead of gEdit) -DEFAULT_EDITOR="codium.desktop" -DEFAULT_EDITOR_FILETYPES="public.plain-text public.unix-executable public.data .zsh)" - -## Get username -USER=`whoami` - -## Ask for the administrator password upfront -sudo -v - -## Set hostname -echo ">>> Setting hostname" -sudo hostnamectl set-hostname ${HOST} - -echo ">>> Adding repos" -## Add RPM Fusion repos -sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm - -## Add VSCodium repo -sudo rpm --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg -printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=gitlab.com_paulcarroty_vscodium_repo\nbaseurl=https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg" |sudo tee -a /etc/yum.repos.d/vscodium.repo - -## Add copr repos -echo ">>> Adding copr repos" -if [ ! -z "${FEDORA_COPR}" ]; then - for copr in ${FEDORA_COPR}; do - sudo dnf copr enable ${copr} -y - done -fi - -## Add flatpak repos -echo ">>> Adding flatpak repos" -sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - -## Update repos -echo ">>> Updating repos" -sudo dnf upgrade -y - -## Update installed flatpaks -echo ">>> Updating flatpaks" -flatpak update - -## Install packages -if [ ! -z "${FEDORA_PKG}" ]; then - echo ">>> Installing packages" - sudo dnf install ${FEDORA_PKG} -y -fi - -## Install flatpaks -if [ ! -z "${FEDORA_FLAT}" ]; then - echo ">>> Installing flatpaks" - flatpak install ${FEDORA_FLAT} -y -fi - -## Install npm packages -if [ ! -z "${NPM_PKG}" ]; then - - echo ">>> Setting up npm" - mkdir "${HOME}/.npm-packages" - npm config set prefix "${HOME}/.npm-packages" - - echo ">>> Installing NPM packages" - npm install -g ${NPM_PKG} - PATH="${PATH}:${HOME}/.npm-packages/bin" -fi - -## Install pip packages -if [ ! -z "${FEDORA_PIP}" ]; then - echo ">>> Installing PIP packages" - pip install --user ${FEDORA_PIP} -fi - -## Apply GNOME settings -if [ -f "gsettings.lst" ]; then - echo ">>> Applying GNOME settings" - cat gsettings.lst | while read line; do - schema=$(echo $line | cut -f1 -d' ') - key=$(echo $line | cut -f2 -d' ') - value=$(echo $line | cut -f3- -d' ') - echo $schema "$key => $value" - # commented out for dry-run: - gsettings set ${schema} ${key} "${value}" - done -fi - -## Install Nord theme for gnome-terminal -echo ">>> Installing Nord theme for gnome-terminal" -git clone https://github.com/arcticicestudio/nord-gnome-terminal.git /tmp/gnome-terminal -cd /tmp/gnome-terminal/src -./nord.sh - -## Install pop_shell -echo ">>> Installing pop_shell" -git clone https://github.com/pop-os/shell.git /tmp/pop_shell -cd /tmp/pop_shell -touch .confirm_shortcut_change - -## No need to restart gnome-shell at this point -sed -e '/^make restart-shell/s/^/#/' -i ./rebuild.sh -sed -e '/^make listen/s/^/#/' -i ./rebuild.sh -./rebuild.sh - -## Install workspace-switcher -echo ">>> Installing workspace-switcher" -git clone https://github.com/tomha/gnome-shell-extension-workspace-switcher ${HOME}/.local/share/gnome-shell/extensions/workspace-switcher@tomha.github.com -gnome-extensions enable workspace-switcher@tomha.github.com - -# Install gnome-shell extensions -echo ">>> Installing gnome-shell extensions" -${HOME}/.local/bin/gnome-extensions-cli install ${GNOME_SHELL_EXTENSIONS} - -## Install VSCodium extensions -echo ">>> Install VSCodium extensions" -cat ${HOME}/.config/VSCodium/User/extensions.list | xargs -L 1 codium --install-extension - -echo ">>> Setting VSCodium as default text editor" -xdg-mime default ${DEFAULT_EDITOR} text/plain - -for EXT in ${EDITOR_FILETYPES}; do - xdg-mime default ${DEFAULT_EDITOR} ${EXT} -done - -## Set zsh as shell -echo ">>> Setting zsh as shell for ${USER}" -sudo chsh -s $(which zsh) ${USER} - -## Rebuild kernel extensions -echo ">>> Rebuilding kernel extensions" -sudo akmods - -echo ">>> Everything is done. You should reboot now." diff --git a/init/gsettings.lst b/init/gsettings.lst deleted file mode 100644 index d33894f..0000000 --- a/init/gsettings.lst +++ /dev/null @@ -1,412 +0,0 @@ -com.github.alainm23.planner appearance 'Light' -com.github.alainm23.planner badge-count 'None' -com.github.alainm23.planner button-layout 'Windows' -com.github.alainm23.planner calendar-enabled true -com.github.alainm23.planner quick-add-project-selected int64 0 -com.github.alainm23.planner quick-add-save-last-project false -com.github.alainm23.planner quick-add-shortcut 'Tab' -com.github.alainm23.planner run-in-background true -com.github.alainm23.planner run-on-startup true -com.github.alainm23.planner todoist-account true -com.github.fabiocolacio.marker.preferences.editor auto-indent true -com.github.fabiocolacio.marker.preferences.editor enable-syntax-theme true -com.github.fabiocolacio.marker.preferences.editor highlight-current-line true -com.github.fabiocolacio.marker.preferences.editor replace-tabs true -com.github.fabiocolacio.marker.preferences.editor show-line-numbers true -com.github.fabiocolacio.marker.preferences.editor show-right-margin-position uint32 80 -com.github.fabiocolacio.marker.preferences.editor show-right-margin true -com.github.fabiocolacio.marker.preferences.editor show-spaces true -com.github.fabiocolacio.marker.preferences.editor spell-check-lang 'de_DE' -com.github.fabiocolacio.marker.preferences.editor spell-check true -com.github.fabiocolacio.marker.preferences.editor syntax-theme 'tango' -com.github.fabiocolacio.marker.preferences.editor tab-width uint32 2 -com.github.fabiocolacio.marker.preferences.editor wrap-text true -com.github.fabiocolacio.marker.preferences.preview charter-toggle false -com.github.fabiocolacio.marker.preferences.preview css-theme 'swiss.css' -com.github.fabiocolacio.marker.preferences.preview css-toggle true -com.github.fabiocolacio.marker.preferences.preview highlight-theme 'default' -com.github.fabiocolacio.marker.preferences.preview highlight-toggle true -com.github.fabiocolacio.marker.preferences.window enable-dark-mode false -com.github.fabiocolacio.marker.preferences.window view-mode 'dual-pane' -org.gnome.calendar active-view 'week' -org.gnome.calendar follow-night-light true -org.gnome.clocks geolocation true -org.gnome.clocks world-clocks [{'location': <(uint32 2, <('Coordinated Universal Time (UTC)', '@UTC', false, @a(dd) [], @a(dd) [])>)>}] -org.gnome.Contacts did-initial-setup true -org.gnome.Contacts sort-on-surname false -org.gnome.DejaDup allow-metered false -org.gnome.DejaDup delete-after 0 -org.gnome.DejaDup periodic-period 1 -org.gnome.DejaDup periodic true -org.gnome.desktop.calendar show-weekdate true -org.gnome.desktop.datetime automatic-timezone true -org.gnome.desktop.default-applications.office.calendar exec 'gnome-calendar' -org.gnome.desktop.default-applications.office.calendar needs-term false -org.gnome.desktop.default-applications.office.tasks exec 'com.github.alainm23.planner' -org.gnome.desktop.default-applications.office.tasks needs-term false -org.gnome.desktop.default-applications.terminal exec-arg '-x' -org.gnome.desktop.default-applications.terminal exec 'gnome-terminal' -org.gnome.desktop.input-sources sources [('xkb', 'de+nodeadkeys')] -org.gnome.desktop.interface clock-format '24h' -org.gnome.desktop.interface clock-show-date true -org.gnome.desktop.interface clock-show-seconds false -org.gnome.desktop.interface clock-show-weekday true -org.gnome.desktop.interface cursor-size 24 -org.gnome.desktop.interface cursor-theme 'Adwaita' -org.gnome.desktop.interface document-font-name 'Cantarell 10' -org.gnome.desktop.interface enable-animations true -org.gnome.desktop.interface enable-hot-corners true -org.gnome.desktop.interface font-name 'Cantarell 10' -org.gnome.desktop.interface gtk-color-palette 'black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90' -org.gnome.desktop.interface gtk-enable-primary-paste true -org.gnome.desktop.interface gtk-key-theme 'Default' -org.gnome.desktop.interface gtk-theme 'Adwaita-dark' -org.gnome.desktop.interface icon-theme 'Papirus-Dark' -org.gnome.desktop.interface menubar-detachable false -org.gnome.desktop.interface menus-have-tearoff false -org.gnome.desktop.interface monospace-font-name 'Source Code Pro 9' -org.gnome.desktop.interface overlay-scrolling true -org.gnome.desktop.interface scaling-factor uint32 0 -org.gnome.desktop.interface show-battery-percentage true -org.gnome.desktop.interface text-scaling-factor 1.0 -org.gnome.desktop.interface toolbar-detachable false -org.gnome.desktop.interface toolbar-icons-size 'small' -org.gnome.desktop.interface toolbar-style 'both-horiz' -org.gnome.desktop.interface toolkit-accessibility false -org.gnome.desktop.notifications application-children ['org-gnome-software', 'gnome-printers-panel', 'org-gnome-terminal', 'mozilla-thunderbird', 'org-gnome-extensions-desktop', 'com-github-alainm23-planner', 'org-gnome-dejadup', 'com-github-fabiocolacio-marker', 'com-gitlab-newsflash', 'firefox', 'libreoffice-startcenter', 'org-gnome-evolution-alarm-notify', 'org-gnome-nautilus', 'org-freedesktop-problems-applet'] -org.gnome.desktop.notifications show-banners true -org.gnome.desktop.notifications show-in-lock-screen false -org.gnome.desktop.peripherals.keyboard numlock-state true -org.gnome.desktop.peripherals.keyboard remember-numlock-state true -org.gnome.desktop.peripherals.mouse natural-scroll false -org.gnome.desktop.peripherals.touchpad click-method 'fingers' -org.gnome.desktop.peripherals.touchpad disable-while-typing true -org.gnome.desktop.peripherals.touchpad edge-scrolling-enabled false -org.gnome.desktop.peripherals.touchpad left-handed 'mouse' -org.gnome.desktop.peripherals.touchpad middle-click-emulation false -org.gnome.desktop.peripherals.touchpad natural-scroll true -org.gnome.desktop.peripherals.touchpad send-events 'enabled' -org.gnome.desktop.peripherals.touchpad speed 0.0 -org.gnome.desktop.peripherals.touchpad tap-and-drag true -org.gnome.desktop.peripherals.touchpad tap-to-click false -org.gnome.desktop.peripherals.touchpad two-finger-scrolling-enabled true -org.gnome.desktop.peripherals.touchscreen output ['', '', ''] -org.gnome.desktop.peripherals.trackball accel-profile 'default' -org.gnome.desktop.peripherals.trackball middle-click-emulation false -org.gnome.desktop.peripherals.trackball scroll-wheel-emulation-button 0 -org.gnome.desktop.privacy disable-camera false -org.gnome.desktop.privacy disable-microphone false -org.gnome.desktop.privacy disable-sound-output false -org.gnome.desktop.privacy hide-identity false -org.gnome.desktop.privacy report-technical-problems false -org.gnome.desktop.privacy send-software-usage-stats false -org.gnome.desktop.privacy show-full-name-in-top-bar true -org.gnome.desktop.wm.keybindings activate-window-menu ['space'] -org.gnome.desktop.wm.keybindings always-on-top @as [] -org.gnome.desktop.wm.keybindings begin-move ['F7'] -org.gnome.desktop.wm.keybindings begin-resize ['F8'] -org.gnome.desktop.wm.keybindings close ['q'] -org.gnome.desktop.wm.keybindings cycle-group ['F6'] -org.gnome.desktop.wm.keybindings cycle-group-backward ['F6'] -org.gnome.desktop.wm.keybindings cycle-panels-backward ['Escape'] -org.gnome.desktop.wm.keybindings cycle-panels ['Escape'] -org.gnome.desktop.wm.keybindings cycle-windows ['Escape'] -org.gnome.desktop.wm.keybindings cycle-windows-backward ['Escape'] -org.gnome.desktop.wm.keybindings lower @as [] -org.gnome.desktop.wm.keybindings maximize-horizontally @as [] -org.gnome.desktop.wm.keybindings maximize ['Up'] -org.gnome.desktop.wm.keybindings maximize-vertically @as [] -org.gnome.desktop.wm.keybindings minimize ['comma'] -org.gnome.desktop.wm.keybindings move-to-center @as [] -org.gnome.desktop.wm.keybindings move-to-corner-ne @as [] -org.gnome.desktop.wm.keybindings move-to-corner-nw @as [] -org.gnome.desktop.wm.keybindings move-to-corner-se @as [] -org.gnome.desktop.wm.keybindings move-to-corner-sw @as [] -org.gnome.desktop.wm.keybindings move-to-monitor-down @as [] -org.gnome.desktop.wm.keybindings move-to-monitor-left ['Left', 'h'] -org.gnome.desktop.wm.keybindings move-to-monitor-right ['Right', 'l'] -org.gnome.desktop.wm.keybindings move-to-monitor-up @as [] -org.gnome.desktop.wm.keybindings move-to-side-e @as [] -org.gnome.desktop.wm.keybindings move-to-side-n @as [] -org.gnome.desktop.wm.keybindings move-to-side-s @as [] -org.gnome.desktop.wm.keybindings move-to-side-w @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-10 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-11 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-12 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-1 ['Home'] -org.gnome.desktop.wm.keybindings move-to-workspace-2 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-3 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-4 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-5 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-6 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-7 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-8 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-9 @as [] -org.gnome.desktop.wm.keybindings move-to-workspace-down ['Down', 'j'] -org.gnome.desktop.wm.keybindings move-to-workspace-last ['End'] -org.gnome.desktop.wm.keybindings move-to-workspace-left ['Left'] -org.gnome.desktop.wm.keybindings move-to-workspace-right ['Right'] -org.gnome.desktop.wm.keybindings move-to-workspace-up ['Up', 'k'] -org.gnome.desktop.wm.keybindings panel-main-menu ['F1'] -org.gnome.desktop.wm.keybindings panel-run-dialog ['F2'] -org.gnome.desktop.wm.keybindings raise @as [] -org.gnome.desktop.wm.keybindings raise-or-lower @as [] -org.gnome.desktop.wm.keybindings set-spew-mark @as [] -org.gnome.desktop.wm.keybindings show-desktop @as [] -org.gnome.desktop.wm.keybindings switch-applications-backward ['Tab', 'Tab'] -org.gnome.desktop.wm.keybindings switch-applications ['Tab', 'Tab'] -org.gnome.desktop.wm.keybindings switch-group-backward ['Above_Tab', 'Above_Tab'] -org.gnome.desktop.wm.keybindings switch-group ['Above_Tab', 'Above_Tab'] -org.gnome.desktop.wm.keybindings switch-input-source-backward ['space', 'XF86Keyboard'] -org.gnome.desktop.wm.keybindings switch-input-source ['space', 'XF86Keyboard'] -org.gnome.desktop.wm.keybindings switch-panels-backward ['Tab'] -org.gnome.desktop.wm.keybindings switch-panels ['Tab'] -org.gnome.desktop.wm.keybindings switch-to-workspace-10 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-11 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-12 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-1 ['Home'] -org.gnome.desktop.wm.keybindings switch-to-workspace-2 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-3 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-4 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-5 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-6 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-7 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-8 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-9 @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-down ['Down', 'j'] -org.gnome.desktop.wm.keybindings switch-to-workspace-last ['End'] -org.gnome.desktop.wm.keybindings switch-to-workspace-left @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-right @as [] -org.gnome.desktop.wm.keybindings switch-to-workspace-up ['Up', 'k'] -org.gnome.desktop.wm.keybindings switch-windows @as [] -org.gnome.desktop.wm.keybindings switch-windows-backward @as [] -org.gnome.desktop.wm.keybindings toggle-above @as [] -org.gnome.desktop.wm.keybindings toggle-fullscreen @as [] -org.gnome.desktop.wm.keybindings toggle-maximized ['m'] -org.gnome.desktop.wm.keybindings toggle-on-all-workspaces @as [] -org.gnome.desktop.wm.keybindings toggle-shaded @as [] -org.gnome.desktop.wm.keybindings unmaximize ['Down', 'F5'] -org.gnome.desktop.wm.preferences action-double-click-titlebar 'toggle-maximize' -org.gnome.desktop.wm.preferences action-middle-click-titlebar 'none' -org.gnome.desktop.wm.preferences action-right-click-titlebar 'menu' -org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close' -org.gnome.desktop.wm.preferences disable-workarounds false -org.gnome.desktop.wm.preferences focus-mode 'click' -org.gnome.desktop.wm.preferences focus-new-windows 'smart' -org.gnome.desktop.wm.preferences mouse-button-modifier '' -org.gnome.desktop.wm.preferences num-workspaces 5 -org.gnome.desktop.wm.preferences raise-on-click true -org.gnome.desktop.wm.preferences resize-with-right-button false -org.gnome.desktop.wm.preferences theme 'Adwaita' -org.gnome.desktop.wm.preferences titlebar-font 'Cantarell Bold 10' -org.gnome.desktop.wm.preferences titlebar-uses-system-font true -org.gnome.desktop.wm.preferences visual-bell false -org.gnome.desktop.wm.preferences visual-bell-type 'fullscreen-flash' -org.gnome.desktop.wm.preferences workspace-names @as [] -org.gnome.gitg.preferences.commit.diff context-lines 3 -org.gnome.gitg.preferences.commit.diff tab-width 2 -org.gnome.gitg.preferences.commit.message enable-spell-checking true -org.gnome.gitg.preferences.commit.message show-markup true -org.gnome.gitg.preferences.commit.message show-right-margin true -org.gnome.gitg.preferences.commit.message show-subject-margin true -org.gnome.gitg.preferences.commit.message spell-checking-language '' -org.gnome.gitg.preferences.diff changes-inline false -org.gnome.gitg.preferences.diff context-lines 3 -org.gnome.gitg.preferences.diff ignore-whitespace false -org.gnome.gitg.preferences.diff patience false -org.gnome.gitg.preferences.diff tab-width 2 -org.gnome.gitg.preferences.diff wrap true -org.gnome.gitg.preferences.history collapse-inactive-lanes 2 -org.gnome.gitg.preferences.history collapse-inactive-lanes-enabled true -org.gnome.gitg.preferences.history default-selection 'all-commits' -org.gnome.gitg.preferences.history mainline-head true -org.gnome.gitg.preferences.history reference-sort-order 'last-activity' -org.gnome.gitg.preferences.history show-staged true -org.gnome.gitg.preferences.history show-stash true -org.gnome.gitg.preferences.history show-unstaged true -org.gnome.gitg.preferences.history show-upstream-with-branch true -org.gnome.gitg.preferences.history topological-order true -org.gnome.gitg.preferences.interface default-activity 'history' -org.gnome.gitg.preferences.interface enable-diff-highlighting true -org.gnome.gitg.preferences.interface enable-monitoring true -org.gnome.gitg.preferences.interface orientation 'horizontal' -org.gnome.gitg.preferences.interface style-scheme 'classic' -org.gnome.gitg.preferences.interface use-gravatar true -org.gnome.gitg.preferences.main clone-directory '' -org.gnome.gitg.state.commit paned-sidebar-position 200 -org.gnome.gitg.state.commit sign-off false -org.gnome.mutter attach-modal-dialogs true -org.gnome.mutter auto-maximize true -org.gnome.mutter center-new-windows true -org.gnome.mutter dynamic-workspaces false -org.gnome.mutter edge-tiling true -org.gnome.mutter workspaces-only-on-primary true -org.gnome.nautilus.compression default-compression-format 'zip' -org.gnome.nautilus.icon-view captions ['none', 'size', 'date_modified'] -org.gnome.nautilus.icon-view default-zoom-level 'small' -org.gnome.nautilus.icon-view text-ellipsis-limit ['3'] -org.gnome.nautilus.list-view default-column-order ['name', 'size', 'type', 'owner', 'group', 'permissions', 'where', 'date_modified', 'date_modified_with_time', 'date_accessed', 'recency', 'starred', 'detailed_type'] -org.gnome.nautilus.list-view default-visible-columns ['name', 'size', 'date_modified', 'starred'] -org.gnome.nautilus.list-view default-zoom-level 'small' -org.gnome.nautilus.list-view use-tree-view true -org.gnome.nautilus.preferences always-use-location-entry false -org.gnome.nautilus.preferences click-policy 'double' -org.gnome.nautilus.preferences confirm-trash true -org.gnome.nautilus.preferences default-folder-viewer 'list-view' -org.gnome.nautilus.preferences default-sort-in-reverse-order false -org.gnome.nautilus.preferences default-sort-order 'name' -org.gnome.nautilus.preferences executable-text-activation 'display' -org.gnome.nautilus.preferences fts-enabled true -org.gnome.nautilus.preferences install-mime-activation true -org.gnome.nautilus.preferences mouse-back-button 8 -org.gnome.nautilus.preferences mouse-forward-button 9 -org.gnome.nautilus.preferences mouse-use-extra-buttons true -org.gnome.nautilus.preferences open-folder-on-dnd-hover true -org.gnome.nautilus.preferences recursive-search 'local-only' -org.gnome.nautilus.preferences search-filter-time-type 'last_modified' -org.gnome.nautilus.preferences search-view 'list-view' -org.gnome.nautilus.preferences show-create-link false -org.gnome.nautilus.preferences show-delete-permanently false -org.gnome.nautilus.preferences show-directory-item-counts 'local-only' -org.gnome.nautilus.preferences show-hidden-files false -org.gnome.nautilus.preferences show-image-thumbnails 'local-only' -org.gnome.nautilus.preferences tabs-open-position 'after-current-tab' -org.gnome.nautilus.preferences thumbnail-limit uint64 10 -org.gnome.nautilus.preferences use-experimental-views false -org.gnome.nautilus.window-state maximized false -org.gnome.nautilus.window-state start-with-location-bar true -org.gnome.nautilus.window-state start-with-sidebar true -org.gnome.nm-applet disable-connected-notifications false -org.gnome.nm-applet disable-disconnected-notifications false -org.gnome.nm-applet disable-vpn-notifications false -org.gnome.nm-applet disable-wifi-create false -org.gnome.nm-applet show-applet true -org.gnome.nm-applet stamp 0 -org.gnome.nm-applet suppress-wireless-networks-available true -org.gnome.settings-daemon.plugins.color night-light-enabled true -org.gnome.settings-daemon.plugins.color night-light-schedule-automatic true -org.gnome.shell always-show-log-out true -org.gnome.shell.app-switcher current-workspace-only false -org.gnome.shell development-tools true -org.gnome.shell enabled-extensions ['dash-to-dock@micxgx.gmail.com', 'auto-move-windows@gnome-shell-extensions.gcampax.github.com', 'blyr@yozoon.dev.gmail.com', 'Move_Clock@rmy.pobox.com', 'Hide_Activities@shay.shayel.org', 'panel-osd@berend.de.schouwer.gmail.com', 'remove-dropdown-arrows@mpdeimos.com', 'status-area-horizontal-spacing@mathematical.coffee.gmail.com', 'native-window-placement', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'native-window-placement@gnome-shell-extensions.gcampax.github.com', 'nightthemeswitcher@romainvigier.fr', 'ding@rastersoft.com', 'tray-icons@zhangkaizhao.com', 'trayIconsReloaded@selfmade.pl', 'pop-shell@system76.com', 'workspace-switcher@tomha.github.com', 'netspeed@hedayaty.gmail.com', 'caffeine@patapon.info', 'appindicatorsupport@rgcjonas.gmail.com', 'steal-my-focus@kagesenshi.org'] -org.gnome.shell favorite-apps ['org.gnome.Software.desktop', 'org.gnome.Nautilus.desktop', 'firefox.desktop', 'mozilla-thunderbird.desktop', 'com.github.fabiocolacio.marker.desktop', 'com.gitlab.newsflash.desktop', 'org.gnome.Calendar.desktop', 'org.gnome.Contacts.desktop', 'com.github.alainm23.planner.desktop', 'appeditor-local-application-4.desktop', 'appeditor-local-application-5.desktop', 'appeditor-local-application-3.desktop', 'org.gnome.Terminal.desktop', 'codium.desktop', 'org.gnome.gitg.desktop', 'org.zealdocs.Zeal.desktop'] -org.gnome.shell.keybindings focus-active-notification ['n'] -org.gnome.shell remember-mount-password true -org.gnome.shell.weather automatic-location false -org.gnome.shell.weather locations [<(uint32 2, <('Langenlonsheim', '', false, [(0.87082178170920299, 0.1378889992795384)], [(0.87411906122272931, 0.14398966328953219)])>)>] -org.gnome.shell.window-switcher app-icon-mode 'both' -org.gnome.shell.window-switcher current-workspace-only true -org.gnome.shell.world-clocks locations [<(uint32 2, <('Coordinated Universal Time (UTC)', '@UTC', false, @a(dd) [], @a(dd) [])>)>] -org.gnome.software allow-updates true -org.gnome.software download-updates-notify true -org.gnome.software download-updates true -org.gnome.software enable-repos-dialog true -org.gnome.software enable-shell-extensions-repo true -org.gnome.software external-appstream-system-wide false -org.gnome.software external-appstream-urls @as [] -org.gnome.software filter-default-branch true -org.gnome.software install-bundles-system-wide true -org.gnome.software install-timestamp int64 0 -org.gnome.software show-nonfree-prompt false -org.gnome.software show-nonfree-ui true -org.gnome.software show-ratings false -org.gnome.software show-upgrade-prerelease false -org.gnome.system.smb workgroup 'debilux' -org.gnome.Terminal.Legacy.Keybindings close-tab 'w' -org.gnome.Terminal.Legacy.Keybindings close-window 'q' -org.gnome.Terminal.Legacy.Keybindings copy 'c' -org.gnome.Terminal.Legacy.Keybindings copy-html 'disabled' -org.gnome.Terminal.Legacy.Keybindings detach-tab 'disabled' -org.gnome.Terminal.Legacy.Keybindings export 'disabled' -org.gnome.Terminal.Legacy.Keybindings find-clear 'J' -org.gnome.Terminal.Legacy.Keybindings find 'F' -org.gnome.Terminal.Legacy.Keybindings find-next 'G' -org.gnome.Terminal.Legacy.Keybindings find-previous 'H' -org.gnome.Terminal.Legacy.Keybindings full-screen 'F11' -org.gnome.Terminal.Legacy.Keybindings header-menu 'disabled' -org.gnome.Terminal.Legacy.Keybindings help 'disabled' -org.gnome.Terminal.Legacy.Keybindings move-tab-left 'Page_Up' -org.gnome.Terminal.Legacy.Keybindings move-tab-right 'Page_Down' -org.gnome.Terminal.Legacy.Keybindings new-tab 't' -org.gnome.Terminal.Legacy.Keybindings new-window 'n' -org.gnome.Terminal.Legacy.Keybindings next-tab 'Page_Down' -org.gnome.Terminal.Legacy.Keybindings paste 'v' -org.gnome.Terminal.Legacy.Keybindings preferences 'disabled' -org.gnome.Terminal.Legacy.Keybindings prev-tab 'Page_Up' -org.gnome.Terminal.Legacy.Keybindings print 'disabled' -org.gnome.Terminal.Legacy.Keybindings read-only 'disabled' -org.gnome.Terminal.Legacy.Keybindings reset-and-clear 'disabled' -org.gnome.Terminal.Legacy.Keybindings reset 'disabled' -org.gnome.Terminal.Legacy.Keybindings save-contents 'disabled' -org.gnome.Terminal.Legacy.Keybindings select-all 'disabled' -org.gnome.Terminal.Legacy.Keybindings set-terminal-title 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-10 '0' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-11 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-12 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-13 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-14 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-15 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-16 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-17 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-18 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-19 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-1 '1' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-20 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-21 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-22 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-23 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-24 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-25 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-26 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-27 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-28 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-29 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-2 '2' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-30 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-31 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-32 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-33 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-34 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-35 'disabled' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-3 '3' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-4 '4' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-5 '5' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-6 '6' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-7 '7' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-8 '8' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-9 '9' -org.gnome.Terminal.Legacy.Keybindings switch-to-tab-last 'disabled' -org.gnome.Terminal.Legacy.Keybindings toggle-menubar 'disabled' -org.gnome.Terminal.Legacy.Keybindings zoom-in 'plus' -org.gnome.Terminal.Legacy.Keybindings zoom-normal '0' -org.gnome.Terminal.Legacy.Keybindings zoom-out 'minus' -org.gnome.Terminal.Legacy.Settings confirm-close true -org.gnome.Terminal.Legacy.Settings default-show-menubar true -org.gnome.Terminal.Legacy.Settings headerbar @mb nothing -org.gnome.Terminal.Legacy.Settings menu-accelerator-enabled true -org.gnome.Terminal.Legacy.Settings mnemonics-enabled false -org.gnome.Terminal.Legacy.Settings new-tab-position 'last' -org.gnome.Terminal.Legacy.Settings new-terminal-mode 'window' -org.gnome.Terminal.Legacy.Settings schema-version uint32 3 -org.gnome.Terminal.Legacy.Settings shell-integration-enabled true -org.gnome.Terminal.Legacy.Settings shortcuts-enabled true -org.gnome.Terminal.Legacy.Settings tab-policy 'automatic' -org.gnome.Terminal.Legacy.Settings tab-position 'top' -org.gnome.Terminal.Legacy.Settings theme-variant 'dark' -org.gnome.Terminal.Legacy.Settings unified-menu false -org.gnome.Terminal.ProfilesList default '80ac96c0-9204-43c9-b17b-cb7230049729' -org.gnome.Terminal.ProfilesList list ['80ac96c0-9204-43c9-b17b-cb7230049729'] -org.gnome.Weather automatic-location false -org.gnome.Weather locations [<(uint32 2, <('Langenlonsheim', '', false, [(0.87082178170920299, 0.1378889992795384)], [(0.87411906122272931, 0.14398966328953219)])>)>] -org.gtk.Settings.FileChooser clock-format '24h' -org.gtk.Settings.FileChooser date-format 'regular' -org.gtk.Settings.FileChooser expand-folders true -org.gtk.Settings.FileChooser location-mode 'path-bar' -org.gtk.Settings.FileChooser show-hidden false -org.gtk.Settings.FileChooser show-size-column true -org.gtk.Settings.FileChooser show-type-column true -org.gtk.Settings.FileChooser sort-column 'name' -org.gtk.Settings.FileChooser sort-directories-first true -org.gtk.Settings.FileChooser sort-order 'ascending' -org.gtk.Settings.FileChooser startup-mode 'recent' -org.gtk.Settings.FileChooser type-format 'category' \ No newline at end of file diff --git a/init/mac.sh b/init/mac.sh deleted file mode 100755 index 4d56ffd..0000000 --- a/init/mac.sh +++ /dev/null @@ -1,282 +0,0 @@ -#!/usr/bin/env sh -# Inspired by https://github.com/mathiasbynens/dotfiles/blob/master/.macos from Mathias Bynens - -MAC_HOSTNAME="leia" - -# URLs that should be created as singlesite browsers -MAC_NATIVEFIERSITES="https://web.threema.ch/ https://app.youneedabudget.com/" - -# Options for nativefier -MAC_NATIVEFIEROPTS="--darwin-dark-mode-support" - -# URLs of additional apps that should be downloaded as zip, dmg, pkg or app -MAC_INSTALLDOWNLOADS="https://dl.exactcode.de/tmp/3bb50ff8eeb7ad116724b56a820139fa/ExactScanPro-19.10.10.dmg https://downloads.skylum.com/luminar4/installer/mac/Luminar4Installer.zip https://downloads.binaryage.com/TotalFinder-1.13.0.dmg https://github.com/cbreak-black/ZetaWatch/releases/download/r46/ZetaWatch-r46-0-g573606.zip" - -## Which App to use at default etxt editor (instead of TextEdit) -DEFAULT_EDITOR="VSCodium.app" -DEFAULT_EDITOR_FILETYPES="public.plain-text public.unix-executable public.data all)" - -## Which commands can be run with sudo without password prompt -SUDO_NOPASS="/usr/local/bin/htop /usr/local/bin/yabai" - -# tmp dirs -MAC_DOWNLOAD="/tmp/macinstall" -MAC_NATIVEFIERTMP="/tmp/nativefier" - -# Close any open System Preferences panes, to prevent them from overriding -# settings we’re about to change -osascript -e 'tell application "System Preferences" to quit' - -# Ask for the administrator password upfront -sudo -v - -echo ">>> Updating macOS..." -sudo softwareupdate -i -a - -echo ">>> Applying settings..." - -# Keep-alive: update existing `sudo` time stamp until `.macos` has finished -while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & - -# Set hostname -sudo scutil --set ComputerName "$MAC_HOSTNAME" -sudo scutil --set HostName "$MAC_HOSTNAME" -sudo scutil --set LocalHostName "$MAC_HOSTNAME" -sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$MAC_HOSTNAME" - -# disable automatic update downloads -sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool FALSE - -# enable network time -sudo systemsetup -setusingnetworktime on - -# Enable DSDontWrite - By default, the Finder collects labels, tags, and other -# metadata related to files on mounted SMB volumes before determining how -# to display the files. macOS High Sierra 10.13 introduces the option for the -# Finder to fetch only the basic information about files on a mounted SMB -# volume, and to display them immediately in alphabetical order. This can -# increase performance in certain environments. - -defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE - -# Always show scrollbars -defaults write NSGlobalDomain AppleShowScrollBars -string "Always" - -# Expand save panel by default -defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true -defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true - -# Expand print panel by default -defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true -defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true - -# Save to disk (not to iCloud) by default -defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false - -# Automatically quit printer app once the print jobs complete -defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true - -# Disable the “Are you sure you want to open this application?” dialog -defaults write com.apple.LaunchServices LSQuarantine -bool false - -# Remove duplicates in the “Open With” menu (also see `lscleanup` alias) -/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user - -# Disable automatic capitalization as it’s annoying when typing code -defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false - -# Set a custom wallpaper image. `DefaultDesktop.jpg` is already a symlink, and -# all wallpapers are in `/Library/Desktop Pictures/`. The default is `Wave.jpg`. -#rm -rf ~/Library/Application Support/Dock/desktoppicture.db -#sudo rm -rf /System/Library/CoreServices/DefaultDesktop.jpg -#sudo ln -s /path/to/your/image /System/Library/CoreServices/DefaultDesktop.jpg - -# Save screenshots to the desktop -defaults write com.apple.screencapture location -string "${HOME}/Desktop" - -# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF) -defaults write com.apple.screencapture type -string "png" - -# Disable shadow in screenshots -defaults write com.apple.screencapture disable-shadow -bool true - -# Enable subpixel font rendering on non-Apple LCDs -# Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501 -defaults write NSGlobalDomain AppleFontSmoothing -int 1 - -# Enable HiDPI display modes (requires restart) -sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true - -# Set $HOME as the default location for new Finder windows -# For other paths, use `PfLo` and `file:///full/path/here/` -defaults write com.apple.finder NewWindowTarget -string "PfLO" -defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}" - -# Show icons for hard drives, servers, and removable media on the desktop -defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true -defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true -defaults write com.apple.finder ShowMountedServersOnDesktop -bool false -defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true - -# Finder: show all filename extensions -defaults write NSGlobalDomain AppleShowAllExtensions -bool true - -# Finder: show status bar -defaults write com.apple.finder ShowStatusBar -bool true - -# Finder: show path bar -defaults write com.apple.finder ShowPathbar -bool true - -# Display full POSIX path as Finder window title -defaults write com.apple.finder _FXShowPosixPathInTitle -bool true - -# Keep folders on top when sorting by name -defaults write com.apple.finder _FXSortFoldersFirst -bool true - -# When performing a search, search the current folder by default -defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" - -# Disable the warning when changing a file extension -defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false - -# Avoid creating .DS_Store files on network or USB volumes -defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true -defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true - -# Use list view in all Finder windows by default -# Four-letter codes for the other view modes: `icnv`, `clmv`, `glyv` -defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" - -# Enable AirDrop over Ethernet and on unsupported Macs running Lion -defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true - -# Show the /Volumes folder -sudo chflags nohidden /Volumes - -# Expand the following File Info panes: -# “General”, “Open with”, and “Sharing & Permissions” -defaults write com.apple.finder FXInfoPanesExpanded -dict \ - General -bool true \ - OpenWith -bool true \ - Privileges -bool true - -# Don’t group windows by application in Mission Control -# (i.e. use the old Exposé behavior instead) -defaults write com.apple.dock expose-group-by-app -bool false - -# Don’t automatically rearrange Spaces based on most recent use -defaults write com.apple.dock mru-spaces -bool false - -# Hot corners -# Bottom left screen corner → Desktop -defaults write com.apple.dock wvous-bl-corner -int 4 -defaults write com.apple.dock wvous-bl-modifier -int 0 - -# Check for software updates daily, not just once per week -defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 - -echo ">>> Killing apps..." -# Kill affected apps -for app in "Activity Monitor" \ - "cfprefsd" \ - "Finder" \ - "SystemUIServer"; do - killall "${app}" &> /dev/null -done - -echo ">>> Installing Homebrew..." -# Install homebrew -/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" - -echo ">>> Processing Brewfile..." -# Install apps from Brewfile -brew bundle cleanup -f -brew bundle install - -echo ">>> Installing apps that are not avaliable in brew or AppStore..." -MAC_INSTALLMOUNT="$MAC_DOWNLOAD/mount" -mkdir -p ${MAC_INSTALLMOUNT} - -cd $MAC_DOWNLOAD - -# Download all packages -for d in ${MAC_INSTALLDOWNLOADS}; do - echo ">>> Downloading ${d}" - curl -O ${d} -done - -# Extracting *.zip -find $MAC_DOWNLOAD -name "*.zip" -print0 | while IFS= read -r -d '' f; do - echo ">>> Extracting ${f}" - unzip -q ${f} - rm ${f} -done - -# Install *.pkg -find $MAC_DOWNLOAD -name "*.pkg" -print0 | while IFS= read -r -d '' f; do - echo ">>> Processing ${f}" - sudo installer -pkg "$f" -target / -done - -# Install *.dmg -find $MAC_DOWNLOAD -name "*.dmg" -print0 | while IFS= read -r -d '' f; do - echo ">>> Processing ${f}" - hdiutil attach $f -quiet -mountpoint ${MAC_INSTALLMOUNT} - find ${MAC_INSTALLMOUNT} -name "*.pkg" -print0 | while IFS= read -r -d '' f; do - echo ">>> Processing ${f}" - sudo installer -pkg "$f" -target / - done - cp -rf ${MAC_INSTALLMOUNT}/*.app /Applications - hdiutil detach ${MAC_INSTALLMOUNT} -quiet -done - -# Install *.app -find $MAC_DOWNLOAD -name "*.app" -print0 | while IFS= read -r -d '' f; do - echo ">>> Processing ${f}" - sudo mv "${f}" /Applications/ -done - -#rm -rf $MAC_DOWNLOAD - -echo ">>> Creating single site browsers" - -mkdir -p $MAC_NATIVEFIERTMP - -for s in ${MAC_NATIVEFIERSITES}; do - nativefier ${MAC_NATIVEFIEROPTS} ${s} ${MAC_NATIVEFIERTMP} -done - -find $MAC_NATIVEFIERTMP -depth 2 -name "*.app" -exec cp -rf {} /Applications \; - -rm -rf $MAC_NATIVEFIERTMP - -## Set default text editor -echo ">>> Setting ${DEFAULT_EDITOR} as default text editor." -EDITOR_ID=`osascript -e 'id of app "'${DEFAULT_EDITOR}'"'` - -for EXT in ${EDITOR_FILETYPES}; do - duti -s ${EDITOR_ID} ${EXT} -done - -echo ">>> Setting up VSCodium" -mkdir -p "${HOME}/Library/Application Support/VSCodium/User" - -# Link config files from ~/.config to ~/Library -ln -sf "${HOME}/.config/VSCodium/User/settings.json" "${HOME}/Library/Application Support/VSCodium/User/settings.json" -ln -sf "${HOME}/.config/VSCodium/User/keybindings.json" "${HOME}/Library/Application Support/VSCodium/User/keybindings.json" - -# Install extensions -cat ${HOME}/.config/VSCodium/User/extensions.list | xargs -L 1 code --install-extension - -## Set up BitBar -defaults write com.matryer.BitBar pluginsDirectory "${HOME}/.config/BitBar/" - -## Configure sudo -echo ">>> Configure sudo" -for command in ${SUDO_NOPASS}; do - echo echo "${USER} ALL = NOPASSWD: ${command}" | sudo tee -a /etc/sudoers.d/${USER} -fi - -## Set zsh from brew as default shell -echo ">>> Setting /usr/local/bin/zsh as default shell for ${USER}" -sudo chsh -s /usr/local/bin/zsh ${USER}