Hyprland (Wayland)

The end of DE is WM

12/05/2023-Updated: I have written a script for autoconfiguration. Uploaded to dot files below.

This is a record of some fixes for some bugs that I encounter, dot files, and the packages that I am using.

Dot files could be found in https://github.com/zayn7lie/dot-files

# Install

Easy to install: $ sudo pacman -S hyprland

# Config

# Basic

# IO

  • Disable Mouse Acceleration: add force_no_accel = true to input{} in ~/.config/hypr/hyprland.conf
  • Authorization: polkit-gnome, then add exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to ~/.config/hypr/hyprland.conf
  • Desktop Manager (Could this be called Desktop?): sddm, then $ sudo systemctl enable sddm

# System

# Appearance

  • Theme Control: qt5ct qt6ct xfce4-settings

    • Set /etc/environment: QT_QPA_PLATFORMTHEME=qt5ct
  • Screen Lock: swaylock-effect, then bind hotkey using bind = $mainMod, L, exec, swaylock # lock the screen: swaylock-effect in ~/.config/hypr/hyprland.conf

    • Swaylock-effect configuration: ~/.config/swaylock/config
  • background/Wallpaper: swaybg, then add exec-once = swaybg -m fill -i ?{~/Pictures/Wallpapers/ArchLinux.png} to ~/.config/hypr/hyprland.conf (?{} is the path to your background picture)

  • Topbar: waybar, then add exec-once = waybar to ~/.config/hypr/hyprland.conf

    • waybar configuration file: ~/.config/waybar/config
  • Fonts: ttf-ubuntu-font-family, ttf-fira-code, noto-fonts noto-fonts-cjk noto-fonts-emoji, ttf-nerd-fonts-symbols-mono

  • Icons: papirus-icon-theme

  • Terminal: kitty

    • ~/.config/kitty/kitty.conf
      • font_family Fira Code
      • scrollback_lines 8192
      • foreground green
      • background_opacity 0.7
    • BUG: Not display properly while using SSH: Add [ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh" to ~/.bashrc

# Media

# Image

  • Screenshot: AURgrimblast-git, then bind hotkey: bind = $mainMod SHIFT, S, exec, env XDG_SCREENSHOTS_DIR=$HOME/Pictures/Screenshot grimblast copysave area in ~/.config/hypr/hyprland.conf
    • Copy2Clipboard: wl-clipboard
  • Edit: krita(hand draw friendly) inkscape(vectorize image friendly, especially for researcher who need .svg image) gimp(editor friendly)
  • view: nsxiv
  • Preview: tumbler ffmpegthumbnailer

# Audio

  • Basis: pipewire-pulse pipewire-alsa pipewire-jack pipewire alsa-utils

  • Music Player: audacious

  • Music editing: audacity

  • Noise suppression: noise-suppression-for-voice:

    • ~/.config/pipewire/pipewire.conf.d/99-input-denoising.conf, then $ systemctl restart --user pipewire.service:

      context.modules = [
      {   name = libpipewire-module-filter-chain
          args = {
              node.description =  "Noise Canceling source"
              media.name =  "Noise Canceling source"
              filter.graph = {
                  nodes = [
                      {
                          type = ladspa
                          name = rnnoise
                          plugin = /usr/lib/ladspa/librnnoise_ladspa.so
                          label = noise_suppressor_mono
                          control = {
                              "VAD Threshold (%)" = 50.0
                              "VAD Grace Period (ms)" = 200
                              "Retroactive VAD Grace (ms)" = 0
                          }
                      }
                  ]
              }
              capture.props = {
                  node.name =  "capture.rnnoise_source"
                  node.passive = true
                  audio.rate = 48000
              }
              playback.props = {
                  node.name =  "rnnoise_source"
                  media.class = Audio/Source
                  audio.rate = 48000
              }
          }
      }
      ]
      
  • Bluetooth: bluez bluez-utils blueman, then add blueman-applet to config

# Video

  • Editor: blender

# Work

# Input

  • Method: fcitx5
    • Basis: fcitx5-im fcitx5-chinese-addons

    • GUI: fcitx5-nord

    • /etc/environment:

      GTK_IM_MODULE=fcitx
      QT_IM_MODULE=fcitx
      XMODIFIERS=@im=fcitx
      SDL_IM_MODULE=fcitx
      

# Writing

  • Code: code
    • GitHub Login: install gnome-keyring, /usr/share/applications/code-oss.desktop: Exec=/usr/bin/code-oss --unity-launch --password-store="gnome" %F
  • Paper: zoteroAUR
    • Better BibTeX for ZoteroOth
      • Google Style Cite Key: Citation Key Formula: auth.lower + year + shorttitle(1).lower
      • Fields to omit from export: month, abstract, langid, file
  • Blog: hugo
  • Dictionary: goldendict-ng-gitAUR
  • PDF Notation: mupdf (tesseract-data-eng) xournalpp

# Social

  • Email: thunderbird # evolution evolution-on
  • Chat: telegram-desktop discord
  • Meeting: zoomAUR
  • Discord: webcordAUR

# Game

  • Steam: steam

    • enable multilib: /etc/pacman.conf - [multilib] - uncomment Include = /etc/pacman.d/mirrorlist, then refresh: $ sudo pacman -Syy
  • osu-lazerAUR

  • prismlauncherAUR

Built with Hugo
Theme Stack designed by Jimmy