mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
80 lines
1.2 KiB
Markdown
80 lines
1.2 KiB
Markdown
# laptop
|
|
|
|
Laptop configuration for Arch Linux
|
|
|
|
## Requirements
|
|
|
|
- [Archlinux](https://archlinux.org/)
|
|
- [GNU/Bash](https://www.gnu.org/software/bash/)
|
|
|
|
## Setup
|
|
|
|
### Create the user as administrator
|
|
|
|
```bash
|
|
# Install the necessary dependencies
|
|
pacman -S sudo fish git
|
|
|
|
# Allow members of the group "sudo" to issue sudo commands
|
|
sed -i 's/# %sudo/%sudo/g' /etc/sudoers
|
|
|
|
# Add the "sudo" group
|
|
groupadd sudo
|
|
|
|
# Add the unprivileged user
|
|
useradd --create-home --shell --groups sudo --uid 1000 /bin/fish user
|
|
|
|
# Setup the password for the unprivileged user
|
|
passwd user
|
|
```
|
|
|
|
### Laptop installation as user
|
|
|
|
```bash
|
|
# Clone the repository
|
|
git clone https://github.com/aminnairi/laptop.git
|
|
|
|
# Change the current working directory
|
|
cd laptop
|
|
|
|
# Apply the configuration
|
|
bash main.sh
|
|
```
|
|
|
|
### Configuration of the used programs
|
|
|
|
#### Configuration of Bitwarden
|
|
|
|
```bash
|
|
rbw config set email <email>
|
|
```
|
|
|
|
Where `<email>` is the email to use for Bitwarden.
|
|
|
|
#### Configuration of i3
|
|
|
|
```bash
|
|
touch i3/i3status/settings.json
|
|
```
|
|
|
|
```json
|
|
{
|
|
"weather": {
|
|
"appid": "your-openweathermap-api-key-here"
|
|
}
|
|
}
|
|
```
|
|
|
|
#### Startup of i3
|
|
|
|
```bash
|
|
startx
|
|
```
|
|
|
|
## Shortcuts
|
|
|
|
Shortcut | Description
|
|
---|---
|
|
`Super + x` | Lock the screen
|
|
`Super + p` | Start a new screenshot
|