Add wayland config for sputnik

This commit is contained in:
2022-10-14 12:39:14 +02:00
parent 841328257d
commit 1850aa1e8c
2 changed files with 54 additions and 3 deletions

View File

@ -9,10 +9,17 @@
# Logo key. Use Mod1 for Alt.
set $mod Alt
# Home row direction keys, like vim
{% if hostname == "sputnik" %}
set $left h
set $down t
set $up n
set $right s
{% else %}
set $left h
set $down j
set $up k
set $right l
{% end %}
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
@ -36,6 +43,8 @@ output DP-1 scale 1.5
{% elif hostname == "buran" %}
output eDP-1 scale 2.0
output DP-1 scale 1.5
{% elif hostname == "sputnik" %}
output DP-3 mode 3440x1440@144Hz
{% end %}
output * bg ~/.config/wallpapers/2560x1440/rocket.jpg fill
@ -79,8 +88,11 @@ exec swayidle -w \
# Read `man 5 sway-input` for more information about this section.
input * {
xkb_layout "se"
#xkb_variant "svdvorak"
xkb_options "caps:escape"
{% if hostname == "sputnik" %}
xkb_variant "svdvorak"
{% end %}
}
### Key bindings
@ -90,11 +102,19 @@ input * {
# Start a terminal
bindsym $mod+Return exec $term
{% if hostname == "sputnik" %}
# Kill focused window
bindsym $mod+Shift+aring kill
# Start your launcher
bindsym $mod+e exec $menu
{% else %}
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
{% end %}
# Lock the screen
bindsym $mod+Shift+Plus exec "screenlock -fFe"
@ -106,11 +126,19 @@ input * {
# mouse button for dragging.
floating_modifier $mod normal
{% if hostname == "sputnik" %}
# Reload the configuration file
bindsym $mod+Shift+j reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+period exec 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'
{% else %}
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec 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'
{% end %}
#
# Volume & Brightness
#
@ -179,6 +207,21 @@ input * {
#
# Layout stuff:
#
{% if hostname == "sputnik" %}
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+x splith
bindsym $mod+k splitv
# Switch the current container between different layout styles
bindsym $mod+o layout stacking
bindsym $mod+comma layout tabbed
bindsym $mod+period layout toggle split
# Make the current focus fullscreen
bindsym $mod+u fullscreen
{% else %}
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
@ -192,7 +235,7 @@ input * {
# Make the current focus fullscreen
bindsym $mod+f fullscreen
{% end %}
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle