diff --git a/.config/sway/config.d/autostart.conf##default b/.config/sway/config.d/autostart.conf##default index 51087b3..39d6480 100644 --- a/.config/sway/config.d/autostart.conf##default +++ b/.config/sway/config.d/autostart.conf##default @@ -1,7 +1,7 @@ # assign [app_id="firefox"] workspace 2 assign [class="sc.gui.final.FinalApp"] workspace 5 assign [title="JViewer.*"] workspace 5 -assign [class="sc.*"] workspace 6 +assign [class="^sc.*"] workspace 6 assign [class="discord"] workspace 9 exec swaymsg "workspace 2; exec firefox;" diff --git a/.config/way-displays/cfg.yaml##default b/.config/way-displays/cfg.yaml##default new file mode 100644 index 0000000..5c114b9 --- /dev/null +++ b/.config/way-displays/cfg.yaml##default @@ -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" + diff --git a/.local/bin/scripts/way-column b/.local/bin/scripts/way-column new file mode 100755 index 0000000..7f0d269 --- /dev/null +++ b/.local/bin/scripts/way-column @@ -0,0 +1,3 @@ +#!/bin/sh +way-displays -s ARRANGE_ALIGN COLUMN middle +test $# -gt 0 && way-displays -s ORDER "$@" diff --git a/.local/bin/scripts/way-row b/.local/bin/scripts/way-row index 2db3952..5afc9fa 100755 --- a/.local/bin/scripts/way-row +++ b/.local/bin/scripts/way-row @@ -1,3 +1,3 @@ #!/bin/sh way-displays -s ARRANGE_ALIGN ROW bottom -way-displays -s ORDER "$@" +test $# -gt 0 && way-displays -s ORDER "$@"