2022-10-22 08:27:00 +00:00
|
|
|
# Ubuntu User Configuration
|
|
|
|
|
|
|
|
This document includes configuration that is per user and remembered in the home
|
|
|
|
directory.
|
|
|
|
|
2023-04-09 04:03:08 +00:00
|
|
|
## Terminal
|
|
|
|
|
Misc: SSH, Vim, Helix, Ubuntu, setup, shells, ...
- SSH config: disable password and send COLORTERM
- Vim: use <space>u instead of <space>w
- Helix:
- Update for bug fixes after 23.10
- Install bash completions, desktop file, and icon
- Fix bufferline and inlay hints color
- Reenable auto pairs since smart tabs is a thing now
- Ubuntu:
- Update to 23.10
- Change naming convention
- Add podman and qemu-user-static
- Setup:
- Update install and swap config
- Add fish, Pods, Steam
- Fix CJK font config path
- Remove Firefox Wayland override now that it's the default
- Shells: configure fish
- Manual:
- Configure starship
- Use cargo locked install
- Remove sparse protocol config now that it's the default
- Fix failure when fish config directory is not found
- tmux: fix truecolor support for Alacritty
2023-09-27 23:48:38 +00:00
|
|
|
- Set font size in Terminal to 16 and initial column count to 85
|
|
|
|
- Set Alacritty as the terminal command in GNOME Settings -> Shortcuts
|
|
|
|
```
|
|
|
|
chsh -s /usr/bin/fish
|
|
|
|
git clone https://git.duckduckwhale.com/DuckDuckWhale/dotfiles && cd dotfiles/auto && ./auto
|
|
|
|
cd ../manual/rust && ./rust
|
|
|
|
cd ../helix && ./helix
|
|
|
|
mkdir -p ~/.local/share/nautilus/scripts ~/.config/nautilus
|
|
|
|
cat > ~/.local/share/nautilus/scripts/terminal << 'EOF'
|
|
|
|
#!/bin/sh
|
|
|
|
alacritty
|
|
|
|
EOF
|
|
|
|
chmod +x ~/.local/share/nautilus/scripts/terminal
|
|
|
|
echo 'F4 terminal' >> ~/.config/nautilus/scripts-accels
|
|
|
|
nautilus -q
|
|
|
|
```
|
2022-10-22 08:27:00 +00:00
|
|
|
|
|
|
|
## Settings
|
|
|
|
|
|
|
|
- Go to `Appearance` and choose dark mode
|
|
|
|
- Go to `Date & Time` and use am/pm
|
|
|
|
- Go to `Displays` and enable night light
|
|
|
|
- Go to `Power` and change `Power Button Action` to `Suspend`.
|
|
|
|
- Go to `Privacy -> File History & Trash` and auto delete everything in 30 days
|
|
|
|
- Go to `Multitasking` and choose `Workspaces on all displays` and `Hot Corner`
|
|
|
|
- Application switching?
|
|
|
|
|
2023-03-20 22:56:37 +00:00
|
|
|
## Gnome Tweaks
|
|
|
|
|
|
|
|
- Swap capslock and ESC in `Keyboard & Mouse` -> `Additional Layout Options`
|
|
|
|
-> `Caps Lock behavior`
|
|
|
|
- Change `Mouse Click Emulation` to `Area`
|
|
|
|
- Turn on weekdays and battery percentage in `Top Bar`
|
|
|
|
- Flat mouse acceleration profile
|
|
|
|
- Turn off suspend when closing lid
|
|
|
|
|
|
|
|
## Gnome Extensions
|
|
|
|
|
|
|
|
- Turn on:
|
|
|
|
- `Applications menu`
|
|
|
|
- `Places status indicator`
|
|
|
|
- `Windownavigator`
|
|
|
|
- `Workspace Indicator`
|
|
|
|
- Note: to manually install Gnome extensions, unzip it and copy the `uuid`
|
|
|
|
field in `metadata.json` and rename the directory to this name, then move
|
|
|
|
to `~/.local/share/gnome-shell/extensions` and logout and login.
|
|
|
|
- GSConnect
|
|
|
|
- Uncheck SFTP auto mount
|
|
|
|
- Add commands:
|
|
|
|
- `Lock`: `loginctl lock-session`
|
|
|
|
- `Quack`: `ffplay -v quiet -nodisp -autoexit ~/Music/'.Not
|
|
|
|
Music'/Ringtones/Quack.mp3`
|
|
|
|
|
2022-10-22 08:27:00 +00:00
|
|
|
## Firefox
|
|
|
|
|
|
|
|
- Check open previous windows and tabs
|
|
|
|
- Setup Multi-Account Containers
|
|
|
|
- Change shortcuts to `Ctrl`+<#>
|
2023-03-20 22:56:37 +00:00
|
|
|
- Change default zoom to 120%
|
|
|
|
- Enable HTTPS only
|
|
|
|
- Enable DNS over HTTPS
|
|
|
|
- Proxy DNS when using SOCKS v5
|
|
|
|
- In `about:config` set `browser.sessionstore.max_windows_undo` to 10.
|
|
|
|
|
|
|
|
## Gnome Calendar
|
|
|
|
|
|
|
|
- Add Google accounts in online accounts
|
|
|
|
- On older versions of Ubuntu < 22.04, not tested for 22.04:
|
|
|
|
- Wait for a bit, it's kinda buggy but it will work at the end (wait for ~2
|
|
|
|
days)
|
2022-10-22 08:27:00 +00:00
|
|
|
|
|
|
|
## VS Codium
|
|
|
|
|
|
|
|
- `flatpak override --user --env=FLATPAK_ISOLATE_PACKAGES=0
|
|
|
|
com.vscodium.codium`
|
|
|
|
- Reason:
|
|
|
|
`https://github.com/flathub/ide-flatpak-wrapper/blob/master/vscode.sh`
|
|
|
|
|
2023-06-11 21:36:38 +00:00
|
|
|
## OBS Basic Settings
|
|
|
|
|
|
|
|
- Video: 1440p HVENC HEVC
|
|
|
|
- Audio: 320k Opus
|
|
|
|
- Container: Matroska
|
|
|
|
|
2022-10-22 08:27:00 +00:00
|
|
|
## OBS record audio per app (may need adjustment > 22.04)
|
|
|
|
|
|
|
|
```
|
|
|
|
# configure pulse audio with obs-sink and loop it back to speakers
|
|
|
|
cat >> ~/.config/pulse/default.pa << 'EOF'
|
|
|
|
# include system default
|
|
|
|
.include /etc/pulse/default.pa
|
|
|
|
# sink that discard all input
|
|
|
|
load-module module-null-sink sink_name=obs-sink
|
|
|
|
# update human readable description in property list
|
|
|
|
update-sink-proplist obs-sink device.description="OBS Sink"
|
|
|
|
# replace <name> with name in first output of `pacmd list-sinks` inside angle
|
|
|
|
# brackets
|
|
|
|
# sink must be set, otherwise would be default and cause echoing
|
|
|
|
# latency_msec must be set, the lowest possible is 1 and default is 200
|
|
|
|
load-module module-loopback sink=<name> latency_msec=1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# restart pulse audio
|
|
|
|
pulseaudio -k
|
|
|
|
|
|
|
|
# to configure output per app to different devices
|
|
|
|
sudo apt install pavucontrol
|
|
|
|
```
|
|
|
|
|
|
|
|
Source: <https://miyacogbf.github.io/mlgb/only-game-sound/>
|
|
|
|
|
|
|
|
## [Golden Dict](https://einverne.github.io/post/2018/08/goldendict.html)
|
2023-03-20 22:56:37 +00:00
|
|
|
|
|
|
|
- Import dictionaries in `~/.software/goldendict/stardict-cc-cedict`
|
|
|
|
- Don't search in dictionaries contains more then 10000 articles
|
|
|
|
- <https://einverne.github.io/post/2018/08/goldendict.html>
|
|
|
|
|
|
|
|
## Flatseal
|
|
|
|
|
|
|
|
Check all apps, especially proprietary ones' file permissions
|