rc/config/sway/config
2021-02-15 00:02:01 +01:00

69 lines
1.6 KiB
Text

####################
# sway config file #
# `man 5 sway` #
####################
# i3/sway common config
include ../i3/common
# exit sway (logs you out of your Wayland session)
set $exit swaymsg exit
# Screen locker
set $lock swaylock -f -c 000000
# Application launcher
# Note: it's recommended that you pass the final command to sway
set $menu dmenu_path | bemenu | xargs swaymsg exec --
# App specific settings
for_window [app_id="mpv"] floating enable
# Default wallpaper
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# Apps autostart (run on each config reload)
exec_always {
import-gsettings
}
# Set keyboard layout
input * xkb_layout fr,ru,fr
input * xkb_variant oss,phonetic,bepo
input * xkb_options grp:shift_caps_toggle
input * xkb_numlock enable
# Configure touchpad (man 5 sway-input)
input type:touchpad {
tap enabled
tap_button_map lmr
}
############
# Examples #
############
# Output config
# output HDMI-A-1 resolution 1920x1080 position 1920,0
# Get outputs names
# swaymsg -t get_outputs
# Idle config
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
# Input configuration (man 5 sway-input)
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# Get inputs names
# swaymsg -t get_inputs
include /etc/sway/config.d/*