sway/config: Sync minor syntax fixes from upstream

See: https://github.com/swaywm/sway/blob/master/config.in
This commit is contained in:
Alan Orth 2020-02-10 13:59:16 +02:00
parent 1f382e053c
commit 68e7413c63
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 8 additions and 10 deletions

View File

@ -69,7 +69,6 @@ output HDMI-A-1 {
position 1280,0
}
set $laptop eDP-1
bindswitch --reload lid:on output $laptop disable
bindswitch --reload lid:off output $laptop enable
@ -87,7 +86,7 @@ exec swayidle \
before-sleep 'swaylock -c 000000 -i $lock_bg'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 600 seconds, and turn your screens back on when
# 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.
### Input configuration
@ -103,7 +102,7 @@ exec swayidle \
#
# 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 "1739:0:Synaptics_TM3289-021" {
dwt enabled
tap enabled
@ -127,13 +126,13 @@ input type:keyboard {
#
# Basics:
#
# start a terminal
# Start a terminal
bindsym $mod+Return exec $term
# kill focused window
# Kill focused window
bindsym $mod+Shift+q kill
# start your launcher
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
@ -143,10 +142,10 @@ input type:keyboard {
# mouse button for dragging.
floating_modifier $mod normal
# reload the configuration file
# Reload the configuration file
bindsym $mod+Shift+c reload
# exit sway (logs you out of your Wayland session)
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
@ -277,14 +276,13 @@ bar {
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
#status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
status_command while ~/.config/sway/status.py; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
}
include /etc/sway/config.d/*