Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ output * bg $HOME/.config/backgrounds/arch-blue-noise.jpg fill

# You can get the names of your outputs by running: swaymsg -t get_outputs
# Example configuration: output HDMI-A-1 resolution 1920x1080 position 1920,0
# <displays>
output HDMI-A-3 resolution 1920x1080 position 0,0
output HDMI-A-1 resolution 1280x1024 position 1920,56

# start applications
exec nm-applet --indicator
Expand All @@ -48,9 +49,7 @@ exec nm-applet --indicator
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
exec swayidle -w \
timeout 60 'swaylock' \
timeout 120 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
timeout 600 'swaylock' \
before-sleep 'swaylock'

### Input configuration
Expand Down Expand Up @@ -262,4 +261,11 @@ bar {
swaybar_command waybar
}

# use HDMI-A-3 as primary display
exec swaymsg workspace $ws1
exec swaymsg move workspace to output HDMI-A-3
exec swaymsg workspace $ws2
exec swaymsg move workspace to output HDMI-A-1
exec swaymsg focus output HDMI-A-3

include /etc/sway/config.d/*
2 changes: 1 addition & 1 deletion .config/waybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"all-outputs": false,
"format": "{name}",
"persistent_workspaces": {
"1": []
"1": ["HDMI-A-2"]
}
},
"sway/mode": {
Expand Down