sway: Add output and input config

This commit is contained in:
histalek 2021-10-30 12:03:56 +02:00
parent 9d55582b57
commit 7d84ab3517
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03

View file

@ -16,16 +16,16 @@ set $term alacritty
for_window [app_id='^launcher$'] floating enable, sticky enable, resize set 30 ppt 60ppt, border pixel 10
set $menu exec $term --class=launcher -e sway-launcher-desktop
## Ouput configuration
## 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
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
# Wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output DP-3 bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_2048x1536_Portrait.png fill
output HDMI-A-1 bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output DP-2 bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# Position, Resolution etc.
output DP-3 resolution 1920x1080 position 0,0 transform 270
output HDMI-A-1 resolution 1920x1080 position 1080,550
output DP-2 resolution 1920x1080@119.982Hz position 3000,550
### Idle configuration
#
@ -41,14 +41,18 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
input "type:keyboard" {
xkb_layout de
xkb_variant ,nodeadkeys
xkb_options caps:escape
}
xkb_numlock enable
}
input "type:mouse" {
accel_profile flat
dwt disabled
scroll_factor 1
}
### Key bindings
#
@ -194,9 +198,6 @@ bar {
### Start personal settings
#
# Polkit client
#
# I'm using 'polkit-gnome' as a polkit client as it has no dependencies
exec_always /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1