mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 09:47:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -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
34
tldr/linux/hyprpaper
Normal 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`
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji buildinfo {{-h|--help}}`
|
||||
`koji buildinfo {{[-h|--help]}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user