added compatibility with sway

This commit is contained in:
Jürg Hallenbarter
2026-02-09 11:42:36 +00:00
parent 91b07e4589
commit 1a8b6dc83b
12 changed files with 341 additions and 132 deletions

12
scripts/startup.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [ -n "$SWAYSOCK" ]; then
# Sway startup commands
# Set cursor (optional, Sway handles this differently)
# For Sway, output configuration should be in the config file, not here
echo "Running Sway startup"
else
# i3 startup commands
xsetroot -cursor_name left_ptr
xrandr --output HDMI-1 --auto --left-of DP-2 --output DP-2 --auto
fi