hyprmoncfg

(★ 391)

Arrange Hyprland monitors without doing coordinate math

File Explorer

  • .gitignore
  • .goreleaser.yml
  • go.mod
  • go.sum
  • LICENSE
  • PACKAGING.md
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

write

View Details ▼

Write data to memory.

write memory

Write current configuration to memory:

write {{username}} {{terminal_id}}

Send a message to a given user on a given terminal ID:

write {{username}} {{terminal_id}}

Send a message to a given user on a given terminal ID:

🔍

chezmoi

View Details ▼

Manage dotfiles across multiple diverse machines.
See also: `stow`, `tuckr`, `vcsh`, `homeshick`.

chezmoi init

Set up `chezmoi`, creating a Git repository in `~/.local/share/chezmoi`:

chezmoi init {{repository_url}}

Set up `chezmoi` from existing dotfiles of a Git repository:

chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}

Start tracking one or more dotfiles:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

go build

View Details ▼

Compile Go sources.

go build {{path/to/main.go}}

Compile a 'package main' file (output will be the filename without extension):

go build -o {{path/to/binary}} {{path/to/source.go}}

Compile, specifying the output filename:

go build -o {{path/to/binary}} {{path/to/package}}

Compile a package:

🔍

go mod

View Details ▼

Module maintenance.

go mod init {{module_name}}

Initialize new module in current directory:

go mod download

Download modules to local cache:

go mod tidy

Add missing and remove unused modules:

🔍

go test

View Details ▼

Test Go packages (files have to end with `_test.go`).
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.

go test

Test the package found in the current directory:

go test -v

[v]erbosely test the package in the current directory:

go test -v ./...

Test the packages in the current directory and all subdirectories:

🔍

go vet

View Details ▼

Check Go source code and report suspicious constructs (e.g. lint your Go source files).
Go vet returns a non-zero exit code if problems are found; returns a zero exit code if no problems are found.

go vet

Check the Go package in the current directory:

go vet {{path/to/file_or_directory}}

Check the Go package in the specified path:

go tool vet help

List available checks that can be run with go vet:

🔍

nix profile

View Details ▼

Install, update, and remove packages from Nix profiles.

nix profile add {{nixpkgs#pkg1 nixpkgs#pkg2 ...}}

Install packages from nixpkgs into the default profile:

nix profile add {{github:owner/repo/pkg}} --profile {{path/to/directory}}

Install a package from a flake on GitHub into a custom profile:

nix profile list

List packages currently installed in the default profile:

🔍

nix run

View Details ▼

Run an application from a Nix flake.
See also: `nix flake`.

nix run

Run the default application in the flake in the current directory:

nix run nixpkgs#{{pkg}}

Run a command whose name matches the package name from nixpkgs (if you want a different command from that package, see `tldr nix shell`):

nix run nixpkgs#{{vim}} -- {{path/to/file}}

Run a command with provided arguments:

🔍

dnf install

View Details ▼

Install packages on Red Hat-based distributions.

sudo dnf {{[in|install]}} {{package1 package2 ...}}

Install packages by name:

sudo dnf {{[in|install]}} {{path/to/file}}

Install a package from a local file:

sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}

Install a package from the internet:

🔍

dnf

View Details ▼

Package manager for Fedora 41+ and RHEL 10.
For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.

sudo dnf {{[up|upgrade]}}

Upgrade installed packages to the newest available versions:

dnf {{[se|search]}} {{keyword1 keyword2 ...}}

Search packages via keywords:

dnf {{[if|info]}} {{package}}

Display details about a package:

🔍

emaint

View Details ▼

Perform Portage maintenance tasks.

sudo emaint sync {{[-a|--auto]}}

Synchronize repositories that are set to auto-sync (default for most repositories):

sudo emaint sync {{[-r|--repo]}} {{repository}}

Synchronize a specific repository:

sudo emaint sync {{[-A|--allrepos]}}

Synchronize all repositories:

🔍

emerge

View Details ▼

Gentoo Linux package manager utility.
For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.

sudo emerge --sync

Synchronize all packages:

sudo emerge {{[-avuDN|--ask --verbose --update --deep --newuse]}} @world

Update all packages, including dependencies:

sudo emerge --resume --skipfirst

Resume a failed update, skipping the failing package:

🔍

eselect repository

View Details ▼

An `eselect` module for configuring ebuild repositories for Portage.
After enabling a repository, you have to run `emerge --sync repo_name` to download ebuilds.

eselect repository list

List all ebuild repositories registered on <https://repos.gentoo.org>:

eselect repository list -i

List enabled repositories:

eselect repository enable {{name|index}}

Enable a repository from the list by its name or index from the `list` command:

🔍

systemctl

View Details ▼

Control the systemd system and service manager.
Some subcommands such as `disable`, `status`, `reboot` etc. have their own usage documentation.

systemctl status

Show all running services:

systemctl --failed

List failed units:

systemctl {{start|stop|restart|reload|status}} {{unit}}

Start/Stop/Restart/Reload/Show the status of a service:

🔍

xbps-install

View Details ▼

XBPS utility to (re)install and update packages.
See also: `xbps`.

xbps-install {{package}}

Install a new package:

xbps-install {{[-Su|--sync --update]}}

Synchronize and update all packages:

🔍

yay

View Details ▼

Yet Another Yogurt: build and install packages from the Arch User Repository.
See also: `pacman`.

yay {{package_name|search_term}}

Interactively search and install packages from the repos and AUR:

yay

Synchronize and update all packages from the repos and AUR:

yay -S {{package}} --noconfirm

Install a new package from the repos and AUR and do not ask to confirm transactions:

// repository documentation