wayland: display arrangement scripts
This commit is contained in:
parent
af1f18952c
commit
4c1cbb23f9
|
@ -1,7 +1,7 @@
|
||||||
# assign [app_id="firefox"] workspace 2
|
# assign [app_id="firefox"] workspace 2
|
||||||
assign [class="sc.gui.final.FinalApp"] workspace 5
|
assign [class="sc.gui.final.FinalApp"] workspace 5
|
||||||
assign [title="JViewer.*"] workspace 5
|
assign [title="JViewer.*"] workspace 5
|
||||||
assign [class="sc.*"] workspace 6
|
assign [class="^sc.*"] workspace 6
|
||||||
assign [class="discord"] workspace 9
|
assign [class="discord"] workspace 9
|
||||||
|
|
||||||
exec swaymsg "workspace 2; exec firefox;"
|
exec swaymsg "workspace 2; exec firefox;"
|
||||||
|
|
|
@ -0,0 +1,74 @@
|
||||||
|
# Default cfg.yaml for way-displays.
|
||||||
|
# Copy this to ~/.config/way-displays/cfg.yaml and edit it to your liking.
|
||||||
|
#
|
||||||
|
# See https://github.com/alex-courtis/way-displays/blob/master/doc/CONFIGURATION.md
|
||||||
|
|
||||||
|
|
||||||
|
# Arrange displays in a ROW (default, left to right) or a COLUMN (top to bottom)
|
||||||
|
ARRANGE: COLUMN
|
||||||
|
|
||||||
|
# Align ROWs at the TOP (default), MIDDLE or BOTTOM
|
||||||
|
# Align COLUMNs at the LEFT (default), MIDDLE or RIGHT
|
||||||
|
ALIGN: MIDDLE
|
||||||
|
|
||||||
|
|
||||||
|
# The default ORDER is simply the order in which the displays are discovered.
|
||||||
|
# Define your own.
|
||||||
|
ORDER:
|
||||||
|
- 'LOEWE'
|
||||||
|
- 'DP-4'
|
||||||
|
- 'VFV'
|
||||||
|
- 'DP-3'
|
||||||
|
- 'DP-1'
|
||||||
|
- 'BOE'
|
||||||
|
|
||||||
|
# The default is to scale each display by DPI.
|
||||||
|
# This may be disabled and scale 1 will be used, unless a SCALE has been specified.
|
||||||
|
AUTO_SCALE: FALSE
|
||||||
|
|
||||||
|
|
||||||
|
# Auto scale may be overridden for each display.
|
||||||
|
SCALE:
|
||||||
|
- NAME_DESC: 'U28E570'
|
||||||
|
SCALE: 2
|
||||||
|
- NAME_DESC: 'VFV' # Portable Monitor
|
||||||
|
SCALE: 1
|
||||||
|
- NAME_DESC: 'GW2785TC' # CODE Focus
|
||||||
|
SCALE: 1
|
||||||
|
- NAME_DESC: 'LOEWE' # CODE Big
|
||||||
|
SCALE: 2
|
||||||
|
#- NAME_DESC: 'BOE' # Framework internal
|
||||||
|
# SCALE: 2
|
||||||
|
|
||||||
|
# Override the preferred mode.
|
||||||
|
# WARNING: this may result in an unusable display. See https://github.com/alex-courtis/way-displays#known-issues-with-workarounds
|
||||||
|
# for a possible workaround.
|
||||||
|
MODE:
|
||||||
|
# Resolution and refresh
|
||||||
|
#- NAME_DESC: HDMI-A-1
|
||||||
|
# WIDTH: 1920
|
||||||
|
# HEIGHT: 1080
|
||||||
|
# HZ: 60
|
||||||
|
|
||||||
|
# Resolution with highest refresh
|
||||||
|
#- NAME_DESC: 'monitor description'
|
||||||
|
# WIDTH: 2560
|
||||||
|
# HEIGHT: 1440
|
||||||
|
|
||||||
|
# Highest available
|
||||||
|
#- NAME_DESC: DP-2
|
||||||
|
# MAX: TRUE
|
||||||
|
|
||||||
|
# Laptop displays usually start with eDP e.g. eDP-1. This may be overridden if
|
||||||
|
# your laptop is different.
|
||||||
|
#LAPTOP_DISPLAY_PREFIX: 'eDP'
|
||||||
|
|
||||||
|
|
||||||
|
# One of: ERROR, WARNING, INFO (default), DEBUG
|
||||||
|
LOG_THRESHOLD: INFO
|
||||||
|
|
||||||
|
|
||||||
|
# Disable the specified displays.
|
||||||
|
DISABLED:
|
||||||
|
#- "eDP-1"
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
way-displays -s ARRANGE_ALIGN COLUMN middle
|
||||||
|
test $# -gt 0 && way-displays -s ORDER "$@"
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
way-displays -s ARRANGE_ALIGN ROW bottom
|
way-displays -s ARRANGE_ALIGN ROW bottom
|
||||||
way-displays -s ORDER "$@"
|
test $# -gt 0 && way-displays -s ORDER "$@"
|
||||||
|
|
Loading…
Reference in New Issue