Skip to content

camj2/void

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Void

desktop

Many of these notes are just for reference.

Hardware

Desktop

Firmware

Layout

  • 2 x NVMe -> ZFS mirror (root/home)
  • 1 x NVMe -> FAT32 (boot) / XFS (backup)
  • 3 x SATA -> ZFS zraid (storage) OR:
  • 1 x SATA -> XFS (storage)

Keys

  • F12: Boot menu
  • Delete: BIOS

Update

Download

Settings

  • Tweaker -> Advanced CPU Settings -> SVM Mode: Enabled
  • Settings -> Miscellaneous -> LEDs in System Power On State: Off
  • Boot -> Full Screen LOGO Show: Disabled
  • Boot -> Fast Boot: Disabled
  • Boot -> CSM Support: Disabled
  • Boot -> Secure Boot -> Secure Boot: Disabled
  • Boot -> Preferred Operating Mode: Advanced Mode
  • Smart Fan 6 (F6): 30:20C, 32:30C, 34:40C, 36:50C, 38:60C, 40:70C, 80:85C
  • Favorites (F11): Press 'Insert' key until favorite list has been cleared

Make sure to use step instead of gradual when adjusting the fan curve. That way the fan only kicks in at 85C.

Note: The only way to make persistent changes to the fan curve is by dragging with the mouse. Manually entering numbers into the text boxes below does not work.

Laptop

  • HP Dev One
  • Intel AX200 Wi-Fi 6
  • Samsung 990 Evo
Firmware

Keys

  • F9: Boot menu
  • F10: BIOS
  • Escape: Both

Update

xbps-install -yu fwupd
fwupdtool refresh
fwupdtool get-updates
fwupdtool update

Settings

TPM State: Disabled
Virtualization Technology: Enabled
Adaptive Battery Optimizer: Enabled
Keyboard Backlight Timeout: Never
Network Boot: Disabled
Secure Boot: Disabled

Peripherals

ZFS Topology

system/root
system/home

EFI

BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* ZFSBootMenu
Boot0001* ZFSBootMenu (Backup)

Memory

dmidecode -t memory | grep "Total Width"

72 bits means ECC is working.

Test

https://www.mersenne.org/download/

Install

Desktop:

install.txt

Laptop:

install-laptop.txt

Post

Laptop

Note: Many applications can be zoomed in using CTRL +

~/.config/alacritty/alacritty.toml : 16
~/.config/waybar/config            : 40 # height
~/.config/waybar/style.css         : 18
~/.config/waybar/style.css         : margin: 0 5px; # spacing
~/.config/wofi/style.css           : 18
~/.config/mako/config              : 14

about:config                       : layout.css.devPixelsPerPx = 1.25 # firefox

Consider bumping up scale instead:

output eDP-1 scale 1.25

Uncomment laptop related keybindings:

~/.config/sway/config

Packages

Install the following packages not included in the default repository:

xbps-restricted spotify
xbps-restricted discord
xbps-restricted msttcorefonts # laptop

https://github.com/DAINRA/ungoogled-chromium-void

Firefox

firefox-overlay

git clone https://gitlab.com/camj/firefox-overlay
cd firefox-overlay
make
make install

Config

about:config:

browser.sessionstore.resume_from_crash = false
browser.tabs.tabmanager.enabled = false

gfx.webrender.all = true
media.ffmpeg.vaapi.enabled = true

mousewheel.default.delta_multiplier_y = 80

privacy.firstparty.isolate = true

toolkit.legacyUserProfileCustomizations.stylesheets = true
toolkit.tabbox.switchByScrolling = true

network.dnsCacheEntries = 0
network.dnsCacheExpiration = 0
network.dnsCacheExpirationGracePeriod = 0

userChrome.css:

* {
  border-radius: 0 !important;
}

.tabbrowser-tab .tab-close-button {
  visibility: collapse !important;
}

.titlebar-buttonbox-container {
  display: none !important;
}

.titlebar-spacer[type="pre-tabs"] {
  display: none !important;
}

.titlebar-spacer[type="post-tabs"] {
  display: none !important;
}

#alltabs-button {
  display: none !important;
}

:root[tabsintitlebar] .browser-titlebar {
  will-change: unset !important;
  transition: none !important;

  &:-moz-window-inactive {
    opacity: 1 !important;
  }
}

Note: Use CTRL + W or the mouse scroll wheel to close tabs

Extensions

  • ClearURLs
  • Dark Reader
  • I don't care about cookies
  • Privacy Badger
  • Return YouTube Dislike
  • SponsorBlock for YouTube - Skip Sponsorships
  • h264ify
  • uBlock Origin

uBlock Origin

Google:

google.com##.hdzaWe

Agar.io:

agar.io##[id^="agar-io_"]
agar.io##html:style(--bottom-banner-height: 0 !important;)

Thunar

Add the following bookmarks:

/home/cameron/Documents (Documents)
/home/cameron/Downloads (Downloads)
/home/cameron/Music     (Music)
/home/cameron/Pictures  (Pictures)
/home/cameron/Videos    (Videos)
/storage                (Storage)
/tmp                    (Temp)

Theme

https://github.com/sainnhe/gruvbox-material

GTK

https://github.com/TheGreatMcPain/gruvbox-material-gtk

gsettings set org.gnome.desktop.interface gtk-theme Gruvbox-Material-Dark
gsettings set org.gnome.desktop.interface icon-theme Gruvbox-Material-Dark

gsettings set org.gnome.desktop.interface cursor-theme Adwaita

gsettings set org.gnome.desktop.privacy remember-recent-files false

Apps

xdg-settings set default-web-browser firefox.desktop
xdg-mime default firefox.desktop application/pdf

xdg-mime default code-oss.desktop text/plain

xdg-mime default vlc.desktop video/mp4
xdg-mime default vlc.desktop video/x-matroska

xdg-mime default vlc.desktop video/quicktime

xdg-mime default vlc.desktop audio/mpeg
xdg-mime default vlc.desktop audio/x-wav

xdg-mime default feh.desktop image/png
xdg-mime default feh.desktop image/jpeg

xdg-mime default org.gnome.eog.desktop image/gif
xdg-mime default org.gnome.eog.desktop image/webp

WI-FI

/var/lib/iwd/<ssid>.psk:

[Security]
Passphrase=<password>

/var/lib/iwd/<ssid>.psk: (manual)

[Security]
Passphrase=<password>

[Settings]
AutoConnect=false

Wireguard

Add peers to /etc/wireguard.

DNS

/etc/resolv.conf

Bluetooth

https://wiki.archlinux.org/title/Bluetooth

scan on
devices
pair <dev>
trust <dev>
connect <dev>
scan off

Printer

https://wiki.archlinux.org/title/CUPS

https://wiki.archlinux.org/title/SANE

https://www.pwg.org/printers/

Install

Main:

xbps-install -Syu \
  cups \
  cups-filters \
  system-config-printer \
  simple-scan

Drivers:

xbps-install -yu \
  brother-brlaser \
  cnijfilter2 \
  epson-inkjet-printer-escpr \
  foomatic-db \
  foomatic-db-nonfree \
  gutenprint \
  hplip

# install one, or all; not required if printer supports ipp-everywhere

User:

usermod -a -G lpadmin <user>

Config

/etc/cups/cupsd.conf:

LogLevel none
PreserveJobFiles No
PreserveJobHistory No

/etc/hosts:

<ip_address> printer

Enable:

ln -s /etc/sv/cupsd /var/service/

Usage

http://localhost:631

system-config-printer
More

Firewall

Flush the firewall ruleset if printer network discovery is not working:

nft flush ruleset

Brother MFC-7860DW

http://localhost:631 -> Administration -> Add Printer -> LPD/LPR Host or Printer -> lpd://printer/queue -> Brother -> Brother MFC-7365DN

xbps-install -yu brother-brscan4

brsaneconfig4 -a name=Brother model=MFC-7860DW nodename=printer

Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

https://github.com/camj2/written

Trezor

curl -s -o /etc/udev/rules.d/51-trezor.rules https://data.trezor.io/udev/51-trezor.rules

MP3Gain

https://sourceforge.net/projects/mp3gain/

LICENSE

MIT