Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-03 00:20:54 +00:00
parent 922b1aa234
commit 848b78740c
27 changed files with 237 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Test a specific website in debug mode:
`{{path/to/}}goldeneye.py {{url}} {{-d|--debug}}`
`{{path/to/}}goldeneye.py {{url}} {{[-d|--debug]}}`
- Display help:

34
tldr/linux/hyprpaper Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# hyprpaper
> Wallpaper utility for Hyprland with the ability to dynamically change wallpapers.
> Controlled by the config file `~/.config/hypr/hyprpaper.conf`.
> More information: <https://github.com/hyprwm/hyprpaper>.
- Start the hyprpaper service:
`hyprpaper`
- Preload a wallpaper:
`hyprctl hyprpaper preload "{{path/to/image.png}}"`
- Switch wallpaper to a different preloaded image:
`hyprctl hyprpaper wallpaper "{{monitor}},{{path/to/image.png}}"`
- Preload a wallpaper, set that wallpaper, then unload all unused wallpapers:
`hyprctl hyprpaper reload "{{monitor}},{{path/to/image.png}}"`
- List the wallpapers that are currently preloaded (useful for dynamically preloading and unloading):
`hyprctl hyprpaper listloaded`
- List the active wallpapers hyprpaper is displaying, along with their associated monitor:
`hyprctl hyprpaper listactive`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display help:
`koji buildinfo {{-h|--help}}`
`koji buildinfo {{[-h|--help]}}`

View File

@@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git
`sudo lxc-stop {{container_name}}`
- Write debug logs to a file:
`sudo lxc-start {{container_name}} {{[-l|--logpriority]}} DEBUG {{[-o|--logfile]}} {{path/to/logfile}}`
- Display help:
`lxc-start {{[-?|--help]}}`

View File

@@ -32,9 +32,9 @@ source: https://github.com/tldr-pages/tldr.git
`mount {{[-a|--all]}}`
- Mount a specific filesystem described in `/etc/fstab` (e.g. `/dev/sda1 /my_drive ext2 defaults 0 2`):
- Mount a specific filesystem described in `/etc/fstab` (e.g. `/dev/sda1 /path/to/mount_point ext2 defaults 0 2`):
`mount {{/my_drive}}`
`mount {{path/to/mount_point}}`
- Mount a directory to another directory:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pacman --files
> Arch Linux package manager utility.
> Query the local files database.
> See also: `pacman`, `pkgfile`.
> More information: <https://manned.org/pacman.8>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pacman --query
> Arch Linux package manager utility.
> Query the local package database.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pacman --remove
> Arch Linux package manager utility.
> Remove packages from the system.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pacman --sync
> Arch Linux package manager utility.
> Synchronize packages from remote repositories.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pacman --upgrade
> Arch Linux package manager utility.
> Install packages manually from archive files.
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Change user password:
`pveum {{[pa|passwd]}} {{[username}}@pve`
`pveum {{[pa|passwd]}} {{username}}@pve`
- Delete a user:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Handle RPMNEW, RPMSAVE and RPMORIG files left over by package upgrades.
> See also: `rpm`.
> More information: <https://manned.org/man/rpmconf.8>.
> More information: <https://manned.org/rpmconf.8>.
- List leftover files and interactively choose what to do with each of them:

View File

@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
- Specify the type of change to log:
`sudo rtmon {{[f|file}} {{link|address|route}}`
`sudo rtmon {{[f|file]}} {{link|address|route}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# scrot
> Screen capture utility.
> More information: <https://github.com/resurrecting-open-source-projects/scrot>.
> More information: <https://manned.org/scrot>.
- Capture a screenshot and save it to the current directory with the current date as the filename:
@@ -14,24 +14,24 @@ source: https://github.com/tldr-pages/tldr.git
- Capture a screenshot and save it as `capture.png`:
`scrot {{capture.png}}`
`scrot capture.png`
- Capture a screenshot interactively:
`scrot --select`
`scrot {{[-s|--select]}}`
- Capture a screenshot interactively without exiting on keyboard input, press `<Esc>` to exit:
`scrot --select --ignorekeyboard`
`scrot {{[-is|--ignorekeyboard --select]}}`
- Capture a screenshot interactively delimiting the region with a colored line:
`scrot --select --line color={{x11_color|rgb_color}}`
`scrot {{[-s|--select]}} {{[-l|--line]}} color={{x11_color|rgb_color}}`
- Capture a screenshot from the currently focused window:
`scrot --focused`
`scrot {{[-u|--focused]}}`
- Display a countdown of 10 seconds before taking a screenshot:
`scrot --count --delay {{10}}`
`scrot {{[-c|--count]}} {{[-d|--delay]}} 10`

View File

@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
- Retrieve the X-Windows window ID of the running Firefox window(s):
`xdotool search --onlyvisible --name {{firefox}}`
`xdotool search --onlyvisible --name firefox`
- Perform a mouse `<RightClick>`:
`xdotool click {{3}}`
`xdotool click 3`
- Get the ID of the currently active window:
`xdotool getactivewindow`
- Focus on the window with ID of 12345:
- Focus on the window with a specific ID:
`xdotool windowfocus --sync {{12345}}`
- Type a message, with a 500ms delay for each letter:
`xdotool type --delay {{500}} "Hello world"`
`xdotool type --delay 500 "{{Hello world}}"`
- Press the `<Enter>` key:
`xdotool key {{KP_Enter}}`
`xdotool key KP_Enter`