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