Skip to content

Commit

Permalink
add instructions for migrating (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 authored Mar 7, 2024
1 parent 6277ee5 commit 758b3b6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 3 deletions.
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,34 @@ make install-all-packages
make
```

### Install tmux plugins
### Optional

- Prefix + I (`ctrl-a I`)
- Install tmux plugins: Prefix + I (`ctrl-a I`)
- `scripts/install-chrome.sh`
- `scripts/install-kitty.sh`
- Download `secretsrc`
- Install Slapdash: https://slapdash.com/download/linux and add the binary to
Startup Applications
- Add Flameshot as a startup application
- Install vim plugin: open Vim and run `:Copilot setup`
- Install Gnome extensions: https://extensions.gnome.org/local/
- Install VSCode: `$ sudo snap install code --classic`
- `sudo apt install gnome-tweaks` (although the tweaks themselves get migrated
already with SaveDesktop)
- add to `/etc/sysctl.conf`:

```
fs.inotify.max_user_instances = 1048576
fs.inotify.max_user_watches = 1048576
```

### Migrating between machines

- Use SaveDestop to migrate Gnome settings between machines (https://github.com/vikdevelop/SaveDesktop)

### How to create a new user

This isn't quite related to dotfiles, but w/e.
This isn't quite related to dotfiles but could be helpful.

```console
NEWUSER=topher
Expand Down
18 changes: 18 additions & 0 deletions scripts/install-kitty.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# https://sw.kovidgoyal.net/kitty/binary/
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin

# make directory if not exists
mkdir --parents ~/.local/bin

# Create symbolic links to add kitty and kitten to PATH (assuming ~/.local/bin is in
# your system-wide PATH)
ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/
# Place the kitty.desktop file somewhere it can be found by the OS
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
# If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file
cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
# Update the paths to the kitty and its icon in the kitty.desktop file(s)
sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop
8 changes: 8 additions & 0 deletions scripts/install-slapdash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

sudo apt update
sudo apt install libfuse2

wget https://slapdash.com/download/linux -O /tmp/slapdash-linux
chmod +x /tmp/slapdash-linux
/tmp/slapdash-linux

0 comments on commit 758b3b6

Please sign in to comment.