From a50800dc8c1c011dc5ff1aa963b9ee2368bee3eb Mon Sep 17 00:00:00 2001 From: cybrneko Date: Thu, 6 Aug 2026 23:47:10 -0500 Subject: [PATCH] basic nested sway dev environment --- dev/run-nomad | 8 ++++++++ dev/sway.conf | 16 ++++++++++++++++ flake.nix | 3 +++ 3 files changed, 27 insertions(+) create mode 100755 dev/run-nomad create mode 100644 dev/sway.conf diff --git a/dev/run-nomad b/dev/run-nomad new file mode 100755 index 0000000..762cf2c --- /dev/null +++ b/dev/run-nomad @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +export WLR_BACKENDS=wayland +export WLR_WL_OUTPUTS=2 +export WLR_LIBINPUT_NO_DEVICES=1 + +exec sway --config "$(dirname "$0")/sway.conf" \ No newline at end of file diff --git a/dev/sway.conf b/dev/sway.conf new file mode 100644 index 0000000..bc193c2 --- /dev/null +++ b/dev/sway.conf @@ -0,0 +1,16 @@ +set $mod Mod1 + +output * bg #202020 solid_color + +# virtual thor displays for dev +output WL-1 mode 960x540 +output WL-2 mode 620x540 +output WL-1 pos 0 0 +output WL-2 pos 340 1080 + +input * { + xkb_layout us +} + +bindsym $mod+Shift+e exec swaymsg exit +bindsym $mod+Return exec foot \ No newline at end of file diff --git a/flake.nix b/flake.nix index 0059819..439615d 100644 --- a/flake.nix +++ b/flake.nix @@ -37,10 +37,13 @@ # etc jq socat + foot ]; shellHook = '' + echo echo "nomad development environment" + echo ''; }; };