enable headless screen for sharing
This commit is contained in:
@@ -209,6 +209,7 @@ set {
|
|||||||
$ws8 number 8
|
$ws8 number 8
|
||||||
$ws9 number 9
|
$ws9 number 9
|
||||||
$ws10 number 10
|
$ws10 number 10
|
||||||
|
$wsX number 11
|
||||||
}
|
}
|
||||||
include $HOME/.config/sway/local_config
|
include $HOME/.config/sway/local_config
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[screencast]
|
||||||
|
chooser_type = dmenu
|
||||||
|
chooser_cmd = fuzzel --dmenu
|
||||||
|
output_name=DP-1
|
||||||
|
max_fps=30
|
||||||
@@ -2,7 +2,11 @@
|
|||||||
input type:tablet_tool map_to_region 2560 0 2560 1440
|
input type:tablet_tool map_to_region 2560 0 2560 1440
|
||||||
|
|
||||||
# output
|
# output
|
||||||
output DP-1 resolution 5120x1440
|
exec create_output HEADLESS-1
|
||||||
|
output DP-1 resolution 5120x1440 position 0 0
|
||||||
|
output HEADLESS-1 resolution 2560x1440 position 5120 0
|
||||||
|
bindsym $mod+x output create HEADLESS-1
|
||||||
|
bindsym $mod+Shift+x output HEADLESS-1 unplug
|
||||||
|
|
||||||
# workspaces
|
# workspaces
|
||||||
bindsym {
|
bindsym {
|
||||||
@@ -17,6 +21,7 @@ bindsym {
|
|||||||
$mod+8 workspace $ws8
|
$mod+8 workspace $ws8
|
||||||
$mod+9 workspace $ws9
|
$mod+9 workspace $ws9
|
||||||
$mod+0 workspace $ws10
|
$mod+0 workspace $ws10
|
||||||
|
$mod+equal workspace $wsX
|
||||||
|
|
||||||
# Move focused container to workspace
|
# Move focused container to workspace
|
||||||
$mod+Shift+1 move container to workspace $ws1
|
$mod+Shift+1 move container to workspace $ws1
|
||||||
@@ -29,4 +34,5 @@ bindsym {
|
|||||||
$mod+Shift+8 move container to workspace $ws8
|
$mod+Shift+8 move container to workspace $ws8
|
||||||
$mod+Shift+9 move container to workspace $ws9
|
$mod+Shift+9 move container to workspace $ws9
|
||||||
$mod+Shift+0 move container to workspace $ws10
|
$mod+Shift+0 move container to workspace $ws10
|
||||||
|
$mod+plus move container to workspace $wsX
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -378,9 +378,17 @@ def install_sway(overwrite: bool, reinstall: bool) -> None:
|
|||||||
run("sudo systemctl enable --now bluetooth".split())
|
run("sudo systemctl enable --now bluetooth".split())
|
||||||
# div app configs
|
# div app configs
|
||||||
run("systemctl --user enable --now flashfocus".split())
|
run("systemctl --user enable --now flashfocus".split())
|
||||||
if (tgt := CFG_TGT / "waybar/config").exists(): # name has precedence over config.jsonc
|
if (tgt := CFG_TGT / "waybar/config").exists(): # precedence over config.jsonc
|
||||||
tgt.unlink()
|
tgt.unlink()
|
||||||
for sub in ["sway", "waybar", "gtk-3.0", "mako", "fuzzel", "nwg-drawer"]:
|
for sub in [
|
||||||
|
"sway",
|
||||||
|
"waybar",
|
||||||
|
"gtk-3.0",
|
||||||
|
"mako",
|
||||||
|
"fuzzel",
|
||||||
|
"nwg-drawer",
|
||||||
|
"xdg-desktop-portal-wlr",
|
||||||
|
]:
|
||||||
helper_clone_foldercontents(CFG_SRC, CFG_TGT, sub, overwrite)
|
helper_clone_foldercontents(CFG_SRC, CFG_TGT, sub, overwrite)
|
||||||
# custom sway configs
|
# custom sway configs
|
||||||
helper_clone_foldercontents(CUSTOM_SRC / "CONFIG", CFG_TGT, "sway", overwrite)
|
helper_clone_foldercontents(CUSTOM_SRC / "CONFIG", CFG_TGT, "sway", overwrite)
|
||||||
|
|||||||
Reference in New Issue
Block a user