rc/config/sway/config

56 lines
1.4 KiB
Text
Raw Normal View History

####################
# sway config file #
# `man 5 sway` #
####################
2019-08-26 01:42:21 +00:00
# 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
2019-08-26 01:42:21 +00:00
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# Set keyboard layout
2019-11-18 14:33:56 +00:00
input * xkb_layout fr,ru
input * xkb_variant ,phonetic
input * xkb_options grp:shift_caps_toggle
2019-08-27 20:21:21 +00:00
input * xkb_numlock enable
############
# Examples #
############
# Output config
2019-08-26 01:42:21 +00:00
# output HDMI-A-1 resolution 1920x1080 position 1920,0
# Get outputs names
# swaymsg -t get_outputs
2019-08-26 01:42:21 +00:00
# Idle config
# exec swayidle -w \
2019-08-26 01:42:21 +00:00
# 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)
2019-08-26 01:42:21 +00:00
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# Get inputs names
# swaymsg -t get_inputs
2019-08-26 01:42:21 +00:00
include /etc/sway/config.d/*