aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-02-05 00:38:45 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-02-05 00:38:45 +0100
commit5cac3f1a424ebbd65034f5eef0430e8de2c56a0a (patch)
tree13093a0786e381415831adde1b471b5a43a1c658
parent0365586f1d8f771a9680f2fe297615a23c2ab156 (diff)
downloaddotfiles-5cac3f1a424ebbd65034f5eef0430e8de2c56a0a.tar.gz
sway multiple systems setup
-rw-r--r--bash/10-env.profile3
-rw-r--r--config.default3
-rw-r--r--doc/sway.md3
-rw-r--r--sway/config2
-rw-r--r--sway/systems/desktop.conf8
5 files changed, 18 insertions, 1 deletions
diff --git a/bash/10-env.profile b/bash/10-env.profile
index a3decae..2e90739 100644
--- a/bash/10-env.profile
+++ b/bash/10-env.profile
@@ -39,3 +39,6 @@ export HISTTIMEFORMAT="%y-%m-%d %T "
export HISTSIZE=1000
export QT_QPA_PLATFORMTHEME=qt6ct
+
+# Make the system name usable by other stuff too
+export SYSTEM_NAME
diff --git a/config.default b/config.default
index 57ed71b..617285b 100644
--- a/config.default
+++ b/config.default
@@ -25,3 +25,6 @@ FORCE_VANILLA_VIM="no"
WM_AUTO_START="no"
WM_TTY="/dev/tty1"
WM_WM="sway"
+
+# Set a name for the host. Can be hostname, can be something else.
+SYSTEM_NAME=$(hostname)
diff --git a/doc/sway.md b/doc/sway.md
index 5026af6..4659694 100644
--- a/doc/sway.md
+++ b/doc/sway.md
@@ -1,7 +1,8 @@
# Sway
Packages:
-`ttf-font-awesome ttf-dejavu sway waybar alacritty wofi swaybg xorg-xwayland j4-dmenu-desktop bemenu`
+`ttf-font-awesome ttf-dejavu sway waybar alacritty wofi swaybg xorg-xwayland j4-dmenu-desktop bemenu bemenu-wayland`
+
## Screenshot
diff --git a/sway/config b/sway/config
index dee9b43..f575b25 100644
--- a/sway/config
+++ b/sway/config
@@ -4,4 +4,6 @@ set $mod Mod1
set $term alacritty
floating_modifier $mod
+include "systems/$SYSTEM_NAME.conf"
+
include config.d/*.conf
diff --git a/sway/systems/desktop.conf b/sway/systems/desktop.conf
new file mode 100644
index 0000000..a8d6546
--- /dev/null
+++ b/sway/systems/desktop.conf
@@ -0,0 +1,8 @@
+# vi: ft=i3config
+
+output DP-1 pos 1200 720 res 2560x1440@144Hz
+output DP-2 pos 0 550 res 1920x1200 transform 270
+output HDMI-A-1 pos 3760 0 res 1920x1080
+output DVI-D-1 pos 3760 1080 res 1920x1080
+
+focus output DP-1