aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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