diff --git a/CONFIG/sway/config b/CONFIG/sway/config index ea76f20..a056ef8 100644 --- a/CONFIG/sway/config +++ b/CONFIG/sway/config @@ -209,6 +209,7 @@ set { $ws8 number 8 $ws9 number 9 $ws10 number 10 + $wsX number 11 } include $HOME/.config/sway/local_config diff --git a/CONFIG/xdg-desktop-portal-wlr/config b/CONFIG/xdg-desktop-portal-wlr/config new file mode 100644 index 0000000..9f76b4e --- /dev/null +++ b/CONFIG/xdg-desktop-portal-wlr/config @@ -0,0 +1,5 @@ +[screencast] +chooser_type = dmenu +chooser_cmd = fuzzel --dmenu +output_name=DP-1 +max_fps=30 diff --git a/custom-mothership/CONFIG/sway/local_config b/custom-mothership/CONFIG/sway/local_config index 8c1611d..4ecaa43 100644 --- a/custom-mothership/CONFIG/sway/local_config +++ b/custom-mothership/CONFIG/sway/local_config @@ -2,7 +2,11 @@ input type:tablet_tool map_to_region 2560 0 2560 1440 # 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 bindsym { @@ -17,6 +21,7 @@ bindsym { $mod+8 workspace $ws8 $mod+9 workspace $ws9 $mod+0 workspace $ws10 + $mod+equal workspace $wsX # Move focused container to workspace $mod+Shift+1 move container to workspace $ws1 @@ -29,4 +34,5 @@ bindsym { $mod+Shift+8 move container to workspace $ws8 $mod+Shift+9 move container to workspace $ws9 $mod+Shift+0 move container to workspace $ws10 + $mod+plus move container to workspace $wsX } diff --git a/endos.py b/endos.py index 8734a30..0fa9eb8 100755 --- a/endos.py +++ b/endos.py @@ -378,9 +378,17 @@ def install_sway(overwrite: bool, reinstall: bool) -> None: run("sudo systemctl enable --now bluetooth".split()) # div app configs 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() - 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) # custom sway configs helper_clone_foldercontents(CUSTOM_SRC / "CONFIG", CFG_TGT, "sway", overwrite)