Skip to content

Latest commit

 

History

2,626 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Win and MacOS box auto config

Windows install

winget install --silent Microsoft.PowerShell # asks elevation IN BACKGROUND

Relaunch terminal, continue with Elevated PowerShell:

$repo_url = "https://raw.githubusercontent.com/grigoryvp/dotfiles"
$url = "$repo_url/master/configure_win.ps1"
# 'Invoke-Expression' instead of 'iex' since 'iex' is removed by profile.ps1
Invoke-WebRequest $url -OutFile ./configure.ps1
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
./configure.ps1

Follow instructions for post-configuration.

sudo apt update
# pyenv build dependencies
sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
printf '. /mnt/c/Users/user/dotfiles/shell-cfg.sh\n' >> ~/.bashrc
printf '#!/bin/sh\n. /mnt/c/Users/user/dotfiles/shell-cfg\n' > ~/.zshrc
printf '[include]\npath = /mnt/c/Users/user/dotfiles/git-cfg.toml\n' > ~/.gitconfig
mkdir -p ~/.config/lsd/
cp /mnt/c/Users/user/dotfiles/.gitattributes ~/.gitattributes
cp /mnt/c/Users/user/dotfiles/lsd.config.yaml ~/.config/lsd/config.yaml
git clone https://github.com/michaeldfallen/git-radar ~/.git-radar
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
# Reload shell
pyenv install 3.12.2
pyenv global 3.12.2
pip install --upgrade pip

OSX

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/grigoryvp/dotfiles/HEAD/configure_macos.sh)"
# touch ~/dotfiles/.secure
# Install https://desktop.telegram.org/
# Install https://flameshot.org/
# * Enable autostart
# * Disable menubar icon
# * Set save dir to ~/Screenshots
# * Enable copy path to clipboard on save
# Install Trello from App Store
# Enable KeePass Chrome integration and connect Chrome to the correct DB
# Command-drag-out menu icons except clock (until the "x" mark appears)
# Dock: iTerm, VSCode, Chrome, Double, Pass, Telegram, Mail, NotionC, Trello
# Dock left: Tailscale, Docker, Linear, Notion, ChatGPT, Slack, WhatsApp,
#   HEY, Parallels, Discord, Steam
# Menu: hammerspoon, lunar, tailscale, command center, time
# In "Settings/General"
# * Add noTunes.app, hammerspoon, wox to "Login Items"
# In "Settings/Accessibility"
# * Disable "Siri/Settings/Intelligence"
# In "Settings/Battery":
# * Disable "dim screen" in "Options".
# In "Settings/Dock":
# * Minimize windows into application icon
# In "Settings/Displays":
# * Turn off "automatically adjust brightness"
# In "Settings/Wallpaper":
# * Set black wallpaper
# In "Settings/Sound":
# * Disable startup sound
# * Mute interface sound effects
# In "Settings/Privacy & Security"
# * Add iTerm2 to "App Management" (for brew to update apps)
# * Disable "Apple Intelligence Report"
# In "Settings/Lock Screen":
# * Require password immediately after screen is locked
# In "Settings/Keyboard":
# * Disable backlit
# * Add "Russian-PC" and "Japanese-Romaji" for "Input Sources"
# In "Settings/Keyboard/Shortcuts":
# * Add "⇧⌘\" for "Mission Control/Notification Center"
# * Disable input source shortcuts in "Input sources"
# * Disable Spotlight hotkeys
# * Remove "⇧⌘/" app shortcut from "App Shortcuts"
# * Add "⌘W" to "Close Tab" for "Safari" app shortcut
# * Add "⌥⇧⌘V" to "Paste and Match Style" for "Telegram" app shortcut
# * Enable F-keys in "Function Keys"
# * Disable caps in "Modifier Keys"
# In "Settings/Trackpad/More gestures":
# * Disable gestures
# For iTerm2 settings
# * Enable /General/Magic/Enable Python API
# * Disable /General/Closing/Confirm
# * Disable /General/Selection/Clicking
# * Enable "Enable Python API" in /General/Magic
# * Set Appearance/General/Theme to "Dark"
# * Set Appearance/Windows/Hide scrollbars
# * Set Appearance/Tab bar to Left
# * Enable "Show tab bar" in Appearance/Tabs
# * Disable "Show tab numbers" in Appearance/Tabs
# * Disable "Tabs have close button" in Appearance/Tabs
# * Disable "Show activity indicator" (circle progress) in Appearance/Tabs
# * Disable "Show new-output indicator" (blue dot) in Appearance/Tabs
# * Enable Appearance/Dimming "inactive windows" and "affects text", 60%
# * Set Profiles/General/Initial directory to "Reuse"
# * Set Profiles/Colors/Color presets to "Solarized Dark", background to black
# * Set Profiles/Text/Font to "JetBrainsMono Nerd Font" size 16
# * Enable Profiles/Terminal "Silence bell"
# * Set Filter Alerts in Profiles/Terminal to "Bell"
# For DoubleCommander settings
# * Disable all confirmations in "/File operations/confirmation"
# * In /Files views/extra
#   * Enable "move down"
#   * Disable "square brackets"
# * In /Files views/Columns/Custom columns
#   * Change GETFILENAMENOEXT to GETFILENAME
#   * Delete the "ext" and "attr" columns
# For Zoom settings:
# * Enable "Always show controls" in "/General"
# * Disable "Add to menu bar" in "/General"
# * Enable "copy link" in "/General"
# * Enable HD, set 49 participants, disable mirror in "/Video"
# * Start meeting, share screen, allow screen sharing, enable green
#   menubar reactions and disable them (requires reboot)
# For OBS settings
# * Turn off /Advanced/General/Show warning on exit
# * Set output as "fragmented mp4" in /Output/Recording
# For Mimestream settings
# * Set delete key to "trash" in /General
# * Disable "play sounds" in /General
# For Discord settings
# * Disable all notification sounds in /Notifications
# Remove all widgets and add "Note" as widget
# Switch Lunar to "manual mode" so it will not mess with brightness
# Add 'block in on en0' for '/etc/pf.conf'
# Login all chrome profiles and name them 01, 02, 03 etc
# Disable local network checks in chrome://flags/
# Configure ChatGPT for autostart and "dock only" icon.
# Add KeyLights, blue temp, 90% back, 40% front
# Import OBS Scenes
# Store: Xcode, Amphetamine, Windows App, PowerPoint, Pixelmator
# Install Parallels Desktop
# Install https://onekey.so/download/
# Install https://tonkeeper.com/pro
# phpenv install 8.0.9 # https://github.com/phpenv/phpenv/issues/90
# phpenv global 8.0.9 # https://github.com/phpenv/phpenv/issues/90
# For old macOS versions:
# * Disable welcome screen guest user in "Preferences/Users & Groups"
# * Add 'karabiner_grabber', 'karabiner_observer',
#   'karabiner_console_user_server' into "Accessibility"
# * Install https://d11yldzmag5yn.cloudfront.net/prod/4.4.53909.0617/Zoom.pkg
# * iTunes/Preferences/Devices/Prevent from syncing automatically

Todo

  • Ignore subsequent "down" events on buttons that emulate mouse buttons.
  • Implement "go-to-background" Ctrl-D via PS keyboard hook.
  • Move text insert into copyq.

License

The following licensing applies to My windows box automatic configuration: Attribution-NonCommercial-NoDerivatives 4.0 International (CC-BY-NC-ND-4.0). For more information go to https://creativecommons.org/licenses/by-nc-nd/4.0/

About

Automatic configuration of my windows and OSX laptops and desktops, work in progress

Resources

Stars

26 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages