Pular para o conteúdo
GitHubGitHub (wiki)

Install / Update / Uninstall

Este conteúdo não está disponível em sua língua ainda.

Make a choice between the two below, then follow the prompts.

Run the command below:

bash <(curl -s https://ii.clsty.link/get)

It clones the repo to ~/.cache/dots-hyprland by default and run ./setup install for you.

The following links are about community forks for other distros.

Distro support: basically any distro.

t=~/.cache/dots-hyprland   # Let's not trash your home folder
git clone https://github.com/end-4/dots-hyprland.git "$t" --filter=blob:none --recurse-submodules
cd "$t"

For Arch(-based) distros:

  • Install all packages listed as the value of array depends inside those ./sdata/dist-arch/*/PKGBUILD. Just use an AUR helper such as yay.
    • You may also instead install suitable alternatives as you’ve found out.

For non-Arch distros:

  • Figure out the equivalents of the packages listed in deps-info.md and install them.
  • If you’ve successfully finished installation on some non-Arch(-based) Linux distro, you may submit a PR. For details see this page.

Read the content of sdata/subcmd-install/2.setups.sh.

  • If you think it’s just fine, then just run ./setup install-setups which will run this script.
    • Do not run sdata/subcmd-install/2.setups.sh directly because it’s meant to be sourced by ./setup.
  • Or, run the lines in this script manually with your tweaks.
  • Copy dots/* to your $HOME/ (review before doing this or you might have your own config files undesirably overwritten)
  • Or, read sdata/subcmd-install/3.files.sh.
    • If you think it’s just fine, then just run ./setup install-files which will run this script.
    • Do not run sdata/subcmd-install/3.files.sh directly because it’s meant to be sourced by ./setup.
  • Once you’re done, log in again into Hyprland.
    • Ctrl+Super+T to select a wallpaper.
    • Super+/ for a list of keybinds. Have fun!
  • Notification daemons like dunst and mako may come with your distro’s customizations and can interfere with Quickshell’s implementation. It is recommended to uninstall them if you don’t use them anywhere else.

See if you’re interested in anything in the dots-extra/ folder.

If you want media thumbnail from your browser to be shown, get the “Plasma browser integration” extension.

Put this line into your ~/.zshrc to support colorscheme for ZSH:

source ~/.config/zshrc.d/dots-hyprland.zsh
  • To launch Hyprland, you can use a DM (Display Manager) or just tty.
  • Hyprland wiki recommends launching Hyprland with the uswm-managed session, but we don’t. Using this does not break the dotfiles, but you might get autostarted junk from other desktop environments (for example duplicate authentication dialogs)

See Hyprland wiki for details. Below are some extra hints.

How to auto-launch Hyprland after logging in on tty1?

Section titled “How to auto-launch Hyprland after logging in on tty1?”

For ZSH or BASH, add this line to the bottom of your ~/.zshrc or ~/.bashrc:

source ~/.config/zshrc.d/auto-Hypr.sh

For FISH, add this line to the bottom of your ~/.config/fish/config.fish:

source ~/.config/fish/auto-Hypr.fish

P.S. It’s recommended to disable the DM if you want to launch Hyprland through tty.

Here’s a brief introduction to give you a quick access, though not exactly true.

You may see tty as some “basis” of a Linux system. There’re normally 7 ttys: tty1 to tty7. You may press Ctrl+Alt+F<n> to switch to tty<n>, and type your username and password to log in.

After logging in, you’re able to launch a graphical environment through command, e.g. Hyprland. Commonly, the graphical interfaces could be launched only after you login.

But what if we want a graphical interface for the login interface itself?

So, here comes the DM (Display Manager, also called “LM”, i.e. Login Manager).

  • Some commonly used DM:
    • sddm: Often used with KDE Plasma.
    • gdm: Often used with Gnome.
  • It’s enabled on system level, and launches automatically after system booting (not logging in yet).
    • On a systemd-based distro, the DM is usually enabled as a systemd service. Run the following to see which DM is enabled.
      grep 'ExecStart=' /etc/systemd/system/display-manager.service
      If it returns No such file or directory, then no DM is enabled, or this is not a systemd-based distro.
  • It provides you with a graphical interface to login and choose the graphical environment (e.g. Hyprland).
    • How does the DM know which graphical environments are available?
      • Normally, it searches the path /usr/share/xsessions for X11 ones, and /usr/share/wayland-sessions for Wayland ones.
      • The desktop files under these directories contain the information of the graphical environments.

As of now we don’t have an update checker nor an automated update system. Since the install script is designed to be idempotent, in order to update the dotfiles you have to run the install script again whenever you wish to update, after pulling the latest changes from the repository.

  1. cd into the repo directory. By default it should be on ~/.cache/dots-hyprland, unless you cloned the repo somewhere else.
  2. Run git stash to save your local changes. Installation should not modify the local files tracked by Git ideally but this could happen unexpectedly, so you need to stash them before pulling the latest changes.
  3. Run git pull to fetch and pull the latest changes from the repo.
  4. Run ./setup install again.
    • Skip the steps you don’t want the script to update (especially the rsync ... ones because it will override your files under its target path). Typically you may want the rsync step which involves dots/.config/quickshell to go through.

Just run ./setup uninstall, but note that it’s not perfect and not actively maintained so you need to choose carefully when answering the prompts.