### Automatically Change Display Setup Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Automatically detects the current hardware setup and applies the corresponding display configuration. This is the primary command for seamless switching. ```bash $ autorandr --change ``` -------------------------------- ### Save New Display Configuration Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Saves the current display setup to a profile named 'docked' after connecting an additional display. This captures a different hardware setup. ```bash autorandr --save docked ``` -------------------------------- ### Manually Load Display Profile Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Loads a specific display configuration profile by name. Use this to manually switch to a saved setup. ```bash $ autorandr --load ``` -------------------------------- ### Save Current Display Configuration Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Saves the current display setup to a profile named 'mobile'. Use this to capture your primary working configuration. ```bash autorandr --save mobile ``` -------------------------------- ### Delay xrandr Execution with sleep Source: https://github.com/phillipberndt/autorandr/blob/master/README.md A predetect script example to delay xrandr execution by one second, useful for ensuring monitor detection stability after connecting a new display. ```bash sleep 1 ``` -------------------------------- ### Force Reload Display Profile Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Forces the (re)application of a display configuration profile, even if the current setup appears identical. Use this to ensure a configuration is applied. ```bash $ autorandr --load --force ``` -------------------------------- ### Execute Pre-Detect Hook Script Source: https://github.com/phillipberndt/autorandr/blob/master/README.md A hook script executed before autorandr attempts to run xrandr. Can be used to delay xrandr execution, for example, by adding 'sleep 1'. ```bash predetect ``` -------------------------------- ### Load Display Profile (Shorthand) Source: https://github.com/phillipberndt/autorandr/blob/master/README.md A shorthand for manually loading a display configuration profile. It directly applies the specified profile. ```bash $ autorandr ``` -------------------------------- ### Execute Pre-Switch Hook Script Source: https://github.com/phillipberndt/autorandr/blob/master/README.md A hook script executed before a display mode switch takes place. Can be used for pre-switch preparations. ```bash preswitch ``` -------------------------------- ### Configure Default Fallback Profile Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Specifies a fallback profile to load if no suitable profile can be identified. This ensures a known configuration is applied when detection fails. ```bash `--default ` ``` -------------------------------- ### Configure Default Skip Options Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Sets default options to skip during configuration changes, such as skipping gamma adjustments when using redshift. This is configured in `~/.config/autorandr/settings.ini`. ```ini [config] skip-options=gamma ``` -------------------------------- ### Execute Post-Switch Hook Script Source: https://github.com/phillipberndt/autorandr/blob/master/README.md A hook script executed after a display mode switch. Useful for notifying window managers or other applications about the change. ```bash postswitch ``` -------------------------------- ### Ordered Hook Scripts in Subdirectory Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Scripts placed in a `.d` subdirectory (e.g., `postswitch.d`) are executed in order based on their filename. Prefixes like '10-' can enforce specific ordering. ```bash 10-wallpaper 20-restart-wm ``` -------------------------------- ### Run Autorandr in Wayland Environment Source: https://github.com/phillipberndt/autorandr/blob/master/README.md If you need to run autorandr in a Wayland session, unset the `WAYLAND_DISPLAY` environment variable before execution to avoid potential conflicts with xrandr. ```sh WAYLAND_DISPLAY= autorandr ``` -------------------------------- ### Configure NVIDIA DRM Modesetting Source: https://github.com/phillipberndt/autorandr/blob/master/README.md To enable udev detection of DRM events from the native NVIDIA driver, set the kernel parameter `nvidia-drm.modeset` to 1. This is typically done by creating a modprobe configuration file. ```sh options nvidia_drm modeset=1 ``` -------------------------------- ### Detect Active Display Profile Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Detects and lists the currently active display profile. It indicates which profile is currently in use or has been detected. ```bash $ autorandr mobile docked (detected) ``` -------------------------------- ### Execute Post-Save Hook Script Source: https://github.com/phillipberndt/autorandr/blob/master/README.md A hook script executed after a display profile is saved or altered. Useful for post-save actions or notifications. ```bash postsave ``` -------------------------------- ### Display Current Display Profile in Hook Script Source: https://github.com/phillipberndt/autorandr/blob/master/README.md Use this snippet in a `postswitch` script to notify the user about the activated display profile. It relies on the `AUTORANDR_CURRENT_PROFILE` environment variable. ```sh notify-send -i display "Display profile" "$AUTORANDR_CURRENT_PROFILE" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.