Small command-line tool to switch monitor inputs from command line

Related tags

Command-line swmon
Overview

swmon

Small command-line tool to switch monitor inputs from command line

Installation

  1. git clone https://github.com/cr1901/swmon
  2. cargo install --path .

I do not provide a crates.io release at this time.

Intended Usage

  1. Run swmon list to get a table of monitors attached to your system that can speak via Display Data Channel (DDC). Here's an example from my current system:

    $ swmon list
    No.   Backend   Display ID                Manufacturer ID   Model Name
    0     winapi    Generic PnP Monitor       ?                 acer
    2     nvapi     GF108GL/2147881094:Lvds   ACR               VG220Q

    Monitors that don't speak DDC orotocols are excluded from the table; in my example, monitor 1 is missing. swmon list may take several seconds trying to talk to monitors that cannot speak via DDC.

  2. After you've figured out which monitor you want to switch, run swmon switch -m [No. from list] [input]. To get a list of possible valid values for input, run swmon switch -h. The input names should be self-explanatory (and are based on the VESA MCCS spec for Feature Code 0x60.

  3. Enjoy the 15-30 seconds you saved by not having to push buttons on your monitor to switch inputs :).

Future Work

  • Report which input is currently active.
  • Report monitors which don't speak DDC protocols in swmon list.
  • Make -m optional and switch using the first (valid) input.
You might also like...
A lightweight command line utility with some small functions for CTFs.

Ice Ice is a lightweight command line utility to help with simple problems encountered while playing CTFs. Extracted from graveyard NOTE: Most of the

A small CLI tool to query ArcGIS REST API services, implemented in Rust. The server response is returned as pretty JSON.

A small CLI tool to query ArcGIS REST API services, implemented in Rust. The server response is returned as pretty JSON.

rip is a command-line deletion tool focused on safety, ergonomics, and performance

rip (Rm ImProved) rip is a command-line deletion tool focused on safety, ergonomics, and performance. It favors a simple interface, and does not imple

A command-line benchmarking tool
A command-line benchmarking tool

hyperfine 中文 A command-line benchmarking tool. Demo: Benchmarking fd and find: Features Statistical analysis across multiple runs. Support for arbitra

An interactive cheatsheet tool for the command-line
An interactive cheatsheet tool for the command-line

navi An interactive cheatsheet tool for the command-line. navi allows you to browse through cheatsheets (that you may write yourself or download from

Coinlive is an interactive command line tool that displays live cryptocurrency prices.
Coinlive is an interactive command line tool that displays live cryptocurrency prices.

Coinlive is an interactive command line tool that displays live cryptocurrency prices. It can also display simple historical price charts.

verilot (verifiable lottery) is a command line tool for running and verifying one-time lotteries.

verilot verilot (verifiable lottery) is a command line tool for running and verifying one-time lotteries. Install Install Rust and Cargo with Rustup.

A tool crate to quickly build rust command line application.

Falsework A tool crate to quickly build rust command line application.

Standard Graphics is a command-line tool for printing 2D graphics from any language to any screen.
Standard Graphics is a command-line tool for printing 2D graphics from any language to any screen.

2D graphics in any programming language with just print statements!

Owner
William D. Jones
William D. Jones
Switch windows of same app with alt + ` on windows pc.

Windows Switcher Switch windows of same app with alt + ` on windows pc. 250k single file executable downloaded from Github Release. No installation re

null 172 Nov 3, 2022
Attempt to make a git profile switcher to switch profiles.

Git Profile Switcher █▀▀ █ ▀█▀   █▀ █░█░█ █ ▀█▀ █▀▀ █░█ █▀▀ █▀█ █▄█ █ ░█░   ▄█ ▀▄▀▄▀ █ ░█░ █▄▄ █▀█

Srikanth K 2 Sep 23, 2022
A cross-platform graphical process/system monitor with a customizable interface and a multitude of features

A cross-platform graphical process/system monitor with a customizable interface and a multitude of features. Supports Linux, macOS, and Windows. Inspired by both gtop and gotop.

Clement Tsang 5.5k Nov 24, 2022
Another TUI based system monitor, this time in Rust!

Another TUI based system monitor, this time in Rust!

Caleb Bassi 2.1k Dec 1, 2022
A discord bot to view & monitor OpenSea collections, written in Rust

Titan What is this This is a discord bot to monitor OpenSea collections and get info about them, including: Floor Price Activity Sales per Hour And mo

theldb 3 Oct 11, 2022
Memory usage monitor for process trees

gotta-watch-em-all Executes a process with given arguments and monitors, logs when memory usage grows to a new peak. Example: cargo run -- cargo -- bu

Aaron Friel 7 Feb 2, 2022
call-me-maybe is a small CLI tool to notify you of the completion of a command

call-me-maybe call-me-maybe is a small CLI tool to notify you of the completion of a command By default, the tools consumes stdin for a message's cont

Samuel Yvon 4 Sep 16, 2022
A small command-line application to view images from the terminal written in Rust.

A small command-line application to view images from the terminal written in Rust. It is basically the front-end of viuer

Atanas Yankov 1.8k Dec 2, 2022
A small command-line utility for encoding and decoding bech32 strings

A small command-line utility for encoding and decoding bech32 strings.

Charlie Moog 4 Oct 9, 2022