blob: 233a79348d6b449d2c6400bed7acccc0846895ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
title fix-alttab
section 1
project fix-alttab
volume General Commands Manual
date July 2023
=====
NAME
fix-alttab - check active monitors and re-run alttab if different from before
SYNOPSIS
fix-alttab
OPTIONS
None
ENVIRONMENT
XDG_CONFIG_HOME is normally ~/.config, and determines where the per-user fix-alttab configuration file lives.
APPLY If 1, then actually re-run `alttab(1)` with the parameters in the config file.
DESCRIPTION
This is the main logic to react to current monitor status. that performs the work of checking available monitors and then running alttab with various configs defined in the config file (normally ~/.config/fix-alttab or /etc/sysconfig/fix-alttab)
The point is to keep alttab within the viewable monitor area if I change inputs on one of my workstation monitors.
Run this with `APPLY` unset, to print which monitors it detects. Then run with `APPLY=1` to re-run alttab.
CONFIGURATION
These options are loaded from /etc/sysconfig/fix-alttab and then ~/.config/fix-alttab, so the last loaded value is used.
ALTTAB_COMMON is the base command and any parameters to run. The first word of this value is the binary name that will be killalled if the alttab daemon needs to be restarted. Default is "alttab -w 1 -theme numix-circle"
The next four options are related to which monitors/X11 displays are available, and what options to pass to alttab when restarting it.
ALTTAB_LEFTYES_RIGHTYES ""
ALTTAB_LEFTNO_RIGHTYES "-vp 1920x1080+1920+0" which is the X11 geometry for this -vp options of alttab, which means that the maximum possible display screen for the alttab program is a 1920x1080-sized box, starting at pixel 1920,0, so my right monitor in a basic side-by-side organization.
AUTHOR
B. Stack <bgstack15@gmail.com>
COPYRIGHT
GPL 3.0
SEE ALSO
`fix-alttab-daemon(1)`
BUGS
Report any anomalies to the author.
|