sway: position certain apps (mpv, Celeste) on external displays by default
This commit is contained in:
parent
07373b5e6b
commit
f4b5d3a70a
|
@ -47,6 +47,7 @@ focus_wrapping no
|
|||
focus_follows_mouse yes
|
||||
workspace_layout $default_workspace_layout
|
||||
|
||||
|
||||
### key bindings
|
||||
floating_modifier $mod
|
||||
#### media keys
|
||||
|
@ -137,6 +138,7 @@ mode "resize" {
|
|||
bindsym l resize grow width 30 px
|
||||
}
|
||||
|
||||
|
||||
### application-specific settings
|
||||
#### to obtain app-id's run `swaymsg -t get_tree`
|
||||
for_window [title="megapixels"] inhibit_idle open
|
||||
|
@ -163,6 +165,19 @@ for_window [app_id="deadd-notification-center"] {
|
|||
move left 360
|
||||
}
|
||||
|
||||
for_window [app_id="mpv"] {
|
||||
move to output "LG Electronics LG TV 0x01010101"
|
||||
}
|
||||
for_window [app_id="Celeste64"] {
|
||||
# this only works if Celeste doesn't itself request fullscreen (else, random chance of which display it gets).
|
||||
# so enter in-game options and disable "Fullscreen", then we manage it here ourselves
|
||||
move to output "LG Electronics LG TV 0x01010101"
|
||||
fullscreen enable
|
||||
# move to output "HDMI-A-2"
|
||||
# move output right
|
||||
}
|
||||
|
||||
|
||||
### displays
|
||||
## DESKTOP
|
||||
output "LG Electronics LG ULTRAWIDE 0x00004E94" {
|
||||
|
@ -204,6 +219,7 @@ output "DSI-1" {
|
|||
# scale 1.6
|
||||
}
|
||||
|
||||
|
||||
# manually export PATH here, since all my user services need that, and sane-sandboxed implementation depends on it.
|
||||
# also, manually export XDG_DATA_DIRS. glib fails in weird ways (e.g. thinks everything is application/x-octet-stream mime type) without it.
|
||||
# for more, see: <repo:nixos/nixpkgs:nixos/modules/programs/wayland/sway.nix>
|
||||
|
|
Loading…
Reference in New Issue
Block a user