linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux [2024/01/21 20:31] – [Future Config Tips] dblume | linux [2024/04/27 00:13] (current) – dblume | ||
---|---|---|---|
Line 11: | Line 11: | ||
sudo apt install exuberant-ctags cscope moreutils | sudo apt install exuberant-ctags cscope moreutils | ||
- | Now that you have vim and git: | + | Now that you have vim and git, get [[https:// |
| | ||
git clone ssh:// | git clone ssh:// | ||
Line 21: | Line 21: | ||
sudo apt install tmux entr | sudo apt install tmux entr | ||
tmux | tmux | ||
- | sudo apt install curl jq tree expect gnuplot httpie visidata | + | sudo apt install curl jq tree expect gnuplot httpie visidata |
sudo apt install python3-pip | sudo apt install python3-pip | ||
python3 -m pip install matplotlib | python3 -m pip install matplotlib | ||
Line 74: | Line 74: | ||
I put the krita appimage in ''/ | I put the krita appimage in ''/ | ||
+ | |||
+ | ===== DejaVu Sans for Powerline Font ===== | ||
+ | |||
+ | First install the Powerline Font: | ||
+ | |||
+ | git clone --filter=blob: | ||
+ | cd fonts | ||
+ | ./ | ||
+ | |||
+ | Then your terminal emulator can use it. | ||
===== i3 ===== | ===== i3 ===== | ||
The [[https:// | The [[https:// | ||
+ | |||
+ | ==== Install Alacritty ==== | ||
+ | |||
+ | gnome-terminal won't distinguish between C-i and Tab, so [[https:// | ||
+ | |||
==== Configuration ==== | ==== Configuration ==== | ||
Line 97: | Line 112: | ||
xinput set-prop " | xinput set-prop " | ||
xinput set-prop " | xinput set-prop " | ||
+ | xinput set-prop " | ||
</ | </ | ||
Line 155: | Line 171: | ||
nmtui | nmtui | ||
- | ==== Future Config Tips ==== | + | ==== Suspend and Hibernation |
- | You can use '' | + | A note on battery life. Frame.work batteries work best at charges between 80% and 30%. I went into BIOS ([[https:// |
- | + | ||
- | assign[class=" | + | |
- | + | Suspend worked out of the box. See This PSA from frame.work: [[https://www.reddit.com/r/framework/comments/19bf3ki/linux_suspend_and_amd_reminder/|Linux Suspend and AMD Reminder]]. Per that PSA and [[https:// | |
- | If you keep accidentally typing Ctrl+Shift+C in Chrome, [[https:// | + | |
- | + | ||
- | Install [[https:// | + | |
- | * Keyboard shortcut: ctrl+shift+c | + | |
- | * Behavior: Run JavaScript | + | |
- | * Javascript code to run: '' | + | |
- | + | ||
- | === Suspend and Hibernation === | + | |
- | + | ||
- | See if you can get your laptop to conserve battery better when closing the lid. Alex_Maras provides some potential tips here: | + | |
- | + | ||
- | * [[https://community.frame.work/t/resolved-amd-framework-arch-linux-suspend-wakes-every-5-minutes/39022|[RESOLVED] AMD Framework - Arch Linux - Suspend wakes every 5 minutes]] | + | |
- | * [[https://community.frame.work/t/ | + | |
- | * [[https:// | + | |
- | + | ||
- | Per the third link above, I ran [[https:// | + | |
< | < | ||
🚦 RTC driver `rtc_cmos` configured to use ACPI alarm | 🚦 RTC driver `rtc_cmos` configured to use ACPI alarm | ||
Line 188: | Line 186: | ||
https:// | https:// | ||
</ | </ | ||
- | So per the third link above, I edited | + | So per the third link above, I [[https:// |
<file bash / | <file bash / | ||
... | ... | ||
Line 196: | Line 194: | ||
And then I ran '' | And then I ran '' | ||
- | Everything | + | Enable suspend-then-hibernate. To hibernate, [[https:// |
+ | |||
+ | I had a 2GiB /swapfile, and this is how I resized it: | ||
+ | <code bash> | ||
+ | ~$ sudo swapoff /swapfile | ||
+ | ~$ sudo dd if=/ | ||
+ | ... | ||
+ | ~$ sudo mkswap /swapfile | ||
+ | ~$ sudo swapon /swapfile | ||
+ | </ | ||
+ | Then it became time to update the kernel boot params again with the UUID of the volume with the swapfile, and the physical offset of the swapfile. | ||
+ | <code bash> | ||
+ | $ blkid | ||
+ | / | ||
+ | |||
+ | $ sudo filefrag -v /swapfile | head | ||
+ | Filesystem type is: ef53 | ||
+ | File size of /swapfile is 34359738368 (8388608 blocks of 4096 bytes) | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | That means, | ||
+ | < | ||
+ | resume=UUID=de9f6aca-85a1-461b-b8b8-15f44441f64d resume_offset=1257472 | ||
+ | </ | ||
+ | Don't forget to '' | ||
+ | |||
+ | Then I enabled this line in | ||
+ | <file bash / | ||
+ | HandleLidSwitch=suspend-then-hibernate | ||
+ | </ | ||
+ | |||
+ | Everything is still commented out in ''/ | ||
+ | |||
+ | ==== Future Config Tips ==== | ||
+ | |||
+ | You can use '' | ||
+ | |||
+ | assign[class=" | ||
+ | |||
+ | |||
+ | If you keep accidentally typing Ctrl+Shift+C in Chrome, [[https:// | ||
+ | |||
+ | Install [[https:// | ||
+ | * Keyboard shortcut: ctrl+shift+c | ||
+ | * Behavior: Run JavaScript | ||
+ | * Javascript code to run: '' | ||
===== Gnome (Desktop Env) ===== | ===== Gnome (Desktop Env) ===== |
linux.1705897898.txt.gz · Last modified: 2024/01/21 20:31 by dblume