linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux [2023/11/05 23:55] – 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 47: | Line 47: | ||
User pic: [[https:// | User pic: [[https:// | ||
- | ===== Learn Shortcuts | + | ===== Google Chrome Passwords and Autofill |
- | Consider vim leader (\), vim window (C-w), tmux leader (C-a)... | + | Via an [[https:// |
- | How to change workspaces? (Ctrl+Alt <- or ->) | + | > Sometimes a couple of login files get corrupt, and stop google-chrome from saving the passwords. To fix it, close google-chrome. Terminal to the following directory and remove the two files, Login Data and Login Data-journal. |
- | ===== Gnome (Desktop Env) Usability Issues ===== | + | cd ~/ |
+ | rm 'Login Data' | ||
+ | rm 'Login Data-journal' | ||
- | Settle on a preferred screen resolution and zoom. | ||
- | **Extend/Continue tap-drag with another tap** | + | ===== Image/Photo Editors ===== |
- | I'll have to find another way to phrase that. [[https:// | + | Seems like I'm going to be preferring pixlr (online) or Krita (local). |
- | **Adjust speed of vertical scrolling** | + | ^ App ^ Online ^ Notes ^ |
+ | | -> **[[https:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
+ | | **-> [[https:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
- | [[https:// | ||
- | **Maximizing into new Workspace** | + | After installing Krita, add a desktop launcher to make it more GNOME/ |
- | I also need to learn more command keys for Workspaces. [[https:// | + | 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 ===== | ||
+ | |||
+ | The [[https:// | ||
+ | |||
+ | ==== Install Alacritty ==== | ||
+ | |||
+ | gnome-terminal won't distinguish between C-i and Tab, so [[https:// | ||
+ | |||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | <file bash .config/ | ||
+ | font pango: | ||
+ | |||
+ | # bindsym all the jkl; to hjkl | ||
+ | |||
+ | exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --color 101030 --nofork | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | '' | ||
+ | '' | ||
+ | |||
+ | <file bash .xsessionrc> | ||
+ | xinput set-prop " | ||
+ | xinput set-prop " | ||
+ | xinput set-prop " | ||
+ | xinput set-prop " | ||
+ | </ | ||
+ | |||
+ | From [[https:// | ||
+ | <file bash .Xresources> | ||
+ | Xft.dpi: 144 | ||
+ | </ | ||
+ | |||
+ | Enable Brightness Keys, Media keys, background image: | ||
+ | |||
+ | sudo apt install brightnessctl playerctl feh | ||
+ | sudo usermod -a -G video ${USER} | ||
+ | # Logout and log back in | ||
+ | |||
+ | Enable screenshots with maim and xclip | ||
+ | |||
+ | sudo apt install maim xclip | ||
+ | |||
+ | I have the [[https:// | ||
+ | |||
+ | The tiny Wi-Fi connection dialog is [[https:// | ||
+ | |||
+ | I thought the media keys (Function keys) weren' | ||
+ | |||
+ | <file bash> | ||
+ | sudo vim / | ||
+ | </ | ||
+ | Test with | ||
+ | |||
+ | pactl set-sink-volume @DEFAULT_SINK@ +10% | ||
+ | pactl get-sink-volume @DEFAULT_SINK@ | ||
+ | speaker-test -t wav -c 6 | ||
+ | |||
+ | ==== Terminal Configuration ==== | ||
+ | |||
+ | Get rid of the Gnome Terminal Window bar: | ||
+ | |||
+ | $ gsettings set org.gnome.Terminal.Legacy.Settings headerbar false | ||
+ | |||
+ | Get rid of the menubar: | ||
+ | |||
+ | "Right Click for context menu" -> Preferences -> General -> Show menubar by default in new terminals | ||
+ | |||
+ | Or, try this to get rid of the menubar | ||
+ | |||
+ | <file bash .config/ | ||
+ | gtk-decoration-layout=: | ||
+ | </ | ||
+ | |||
+ | ==== Wi-Fi and Network Management ==== | ||
+ | |||
+ | GUI: " | ||
+ | |||
+ | nm-connection-editor & | ||
+ | |||
+ | CLI: | ||
+ | |||
+ | nmtui | ||
+ | |||
+ | ==== Suspend and Hibernation ==== | ||
+ | |||
+ | A note on battery life. Frame.work batteries work best at charges between 80% and 30%. I went into BIOS ([[https:// | ||
+ | |||
+ | Suspend worked out of the box. See This PSA from frame.work: [[https:// | ||
+ | < | ||
+ | 🚦 RTC driver `rtc_cmos` configured to use ACPI alarm | ||
+ | Explanations for your system | ||
+ | 🚦 rtc_cmos is not configured to use ACPI alarm | ||
+ | Some problems can occur during wakeup cycles if the HPET RTC emulation is used to | ||
+ | wake systems. This can manifest in unexpected wakeups or high power consumption. | ||
+ | |||
+ | For more information on this failure see: | ||
+ | https:// | ||
+ | </ | ||
+ | So per the third link above, I [[https:// | ||
+ | <file bash / | ||
+ | ... | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | ... | ||
+ | </ | ||
+ | And then I ran '' | ||
+ | |||
+ | 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, in my case, I add this to ''/ | ||
+ | < | ||
+ | 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) ===== | ||
+ | |||
+ | Enable tap and drag lock: | ||
+ | |||
+ | gsettings set org.gnome.desktop.peripherals.touchpad tap-and-drag-lock true | ||
+ | |||
+ | ==== Screen Resolution and Zoom ==== | ||
+ | |||
+ | Resolution: 2256 x 1504 | ||
+ | Zoom: 125% | ||
+ | |||
+ | Terminal Font: 16pt | ||
+ | Chrome Zoom: 110% | ||
+ | |||
+ | ==== Keyboard Shortcuts ==== | ||
+ | |||
+ | ^ Keys ^ Action ^ | ||
+ | | Ctrl+Alt <- or -> | Change workspaces | | ||
+ | |||
+ | ==== Other Questions ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ==== Unsatisfactorily Resolved ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
- | ===== Linux Tiling Window Managers ===== | ||
- | * [[https:// | ||
- | * [[https:// |
linux.1699257325.txt.gz · Last modified: 2023/11/05 23:55 by dblume