sway: set sane defaults, configured output

This commit is contained in:
Tobias Schmidl 2020-05-06 05:18:47 +02:00 committed by Tobias Schmidl
parent 6d2aa175e0
commit 88812e032d

View file

@ -1,20 +1,25 @@
# Default config for sway
### General config
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
# Set default layout as tabbed
workspace_layout tabbed
smart_borders on
hide_edge_borders --i3 smart
font pango:Hack 9
#border_default none
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term x-terminal-emulator
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
@ -22,13 +27,13 @@ set $menu dmenu_path | dmenu | xargs swaymsg exec --
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
# wallpaper
output * bg $HOME/Bilder/current.jpg fit #000000
#
# Screen
output eDP-1 resolution 1920x1080 position 0,0
output DP-4 resolution 1920x1080 position 1920,0
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
@ -164,6 +169,8 @@ input type:keyboard {
# Move focus to the parent container
bindsym $mod+a focus parent
bindsym $mod+t border toggle
#
# Scratchpad:
#
@ -218,5 +225,5 @@ bar {
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
exec xrdb $HOME/.Xresources
include /etc/sway/config.d/*