58 lines
1.5 KiB
Text
58 lines
1.5 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 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'
|
|
|
|
# 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 --
|
|
|
|
# Default wallpaper
|
|
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|
|
|
# Set keyboard layout
|
|
input * xkb_layout fr,ru
|
|
input * xkb_variant ,phonetic
|
|
input * xkb_options grp:shift_caps_toggle
|
|
input * xkb_numlock enable
|
|
|
|
# Configure touchpad
|
|
input * tap enabled
|
|
|
|
############
|
|
# 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/*
|