Skip to content

Commit

Permalink
Import Manjaro Sway user configuration
Browse files Browse the repository at this point in the history
Take a copy so that this state can be got back to if needed.
  • Loading branch information
msp301 committed Jun 9, 2024
1 parent 3b909d3 commit d4cef3f
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 0 deletions.
34 changes: 34 additions & 0 deletions sway/sway/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.

# styles - set the folder for your theme definition file
set $theme /usr/share/sway/themes/matcha-green

# theme variables
include $theme/theme.conf

# user theme variable can override the global theme
include $HOME/.config/sway/definitions.d/theme.conf

# global variables
include /etc/sway/definitions

# user variables can override global definitions
include $HOME/.config/sway/definitions.d/*.conf

include /etc/sway/inputs/*

# enable modes
include /etc/sway/modes/*

# only enable this if every app you use is compatible with wayland
# xwayland disable

# include additional configs e.g. to autostart applications
include /etc/sway/config.d/*

# user config
include $HOME/.config/sway/config.d/*.conf
3 changes: 3 additions & 0 deletions sway/sway/config.d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# add your extensions to the sway configuration here

# when updating definitions files, make sure you include /etc/sway/autostart afterwards, so the definitions for those are updated based on your configuration
19 changes: 19 additions & 0 deletions sway/sway/config.d/XX-keyboard.conf.example
Original file line number Diff line number Diff line change
@@ -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 "eu,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 ","
}
10 changes: 10 additions & 0 deletions sway/sway/definitions.d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# definitions overrides for sway

refer to /etc/sway/definitions for global definitions that can be overridden here

e.g.:

* change modifier key from Win/Pine-Key to Alt: `set $mod Mod1`
* change the background image: `set $background /usr/share/wallpapers/manjaro-nudes.png`
* 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`
10 changes: 10 additions & 0 deletions sway/sway/generated_background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions sway/waybar/config.jsonc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"include": [
"/usr/share/sway/templates/waybar/config.jsonc"
]
}
1 change: 1 addition & 0 deletions sway/waybar/style.css.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "/usr/share/sway/templates/waybar/style.css";

0 comments on commit d4cef3f

Please sign in to comment.