Add initial Sway user config

This commit is contained in:
Aleksey Samoilov 2023-04-29 15:05:20 +04:00
parent d6ba56e5f4
commit 13389620f1
5 changed files with 58 additions and 1 deletions

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
tileos-settings-sway (0.5~tileos) unstable; urgency=medium
* Add initial Sway user config
-- Aleksey Samoilov <samoilov.lex@gmail.com> Sat, 29 Apr 2023 15:04:38 +0400
tileos-settings-sway (0.4~tileos) unstable; urgency=medium tileos-settings-sway (0.4~tileos) unstable; urgency=medium
* Initial Sway config * Initial Sway config

2
debian/files vendored
View file

@ -1 +1 @@
tileos-settings-sway_0.3~tileos_source.buildinfo x11 optional tileos-settings-sway_0.4~tileos_source.buildinfo x11 optional

View file

@ -0,0 +1,23 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
# Global variables
include /etc/sway/variables
# User variables
include $HOME/.config/sway/variables.d/*.conf
include /etc/sway/outputs/*.conf
include /etc/sway/inputs/*.conf
# include modes
include /etc/sway/modes/*.conf
# Additional configs
include /etc/sway/config.d/*.conf
# User config
include $HOME/.config/sway/config.d/*.conf

View file

@ -0,0 +1,19 @@
# input "*" equals all input methods
# to specify settings for a specific input method, use its identifier instead.
# query the connected input methods: `swaymsg -t get_inputs`
input * {
# toggles through configured layouts via caps-lock
# query the available layout toggles: `localectl list-x11-keymap-options | grep grp:`
# query the available led indicators: `localectl list-x11-keymap-options | grep grp_led`
# enables caps-lock led if not the first layout selected
# regular caps-lock behavior can be reached using shift+caps-lock
xkb_options grp:caps_toggle,grp_led:caps
# query the available layouts: `localectl list-x11-keymap-layouts`
xkb_layout "us,de"
# query the available variants for a given layout: `localectl list-x11-keymap-variants de`
# list in the same order as the layouts - empty equals the default layout
xkb_variant ","
}

View file

@ -0,0 +1,9 @@
# variables overrides for sway
refer to /etc/sway/variables for global variables that can be overridden here
e.g.:
* change modifier key from Win/Pine-Key to Alt: `set $mod Mod1`
* make a foot client instance the default terminal for even faster terminal windows: `set $term footclient`
* follow windows after moving them: `set $focus_after_move true`