sway/config

162 lines
3.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Common keys and reusable things
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term foot
set $lock swaylock -f -c 000000
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
# TODO
set $menu bemenu | xargs swaymsg exec --
floating_modifier $mod normal
# Keybinds
bindsym {
#
# General window management
#
$mod+Shift+c exec $term
$mod+c kill
$mod+Space exec $menu
$mod+Ctrl+Shift+l exec $lock
$mod+Shift+q reload
#$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'
#
# Window focus and movement:
#
$mod+$left focus left
$mod+$down focus down
$mod+$up focus up
$mod+$right focus right
$mod+Shift+$left move left
$mod+Shift+$down move down
$mod+Shift+$up move up
$mod+Shift+$right move right
#
# Workspaces:
#
$mod+1 workspace 1:α
$mod+2 workspace 2:β
$mod+3 workspace 3:γ
$mod+4 workspace 4:δ
$mod+5 workspace 5:ε
$mod+6 workspace 6:ζ
$mod+Shift+1 move container to workspace 1:α
$mod+Shift+2 move container to workspace 2:β
$mod+Shift+3 move container to workspace 3:γ
$mod+Shift+4 move container to workspace 4:δ
$mod+Shift+5 move container to workspace 5:ε
$mod+Shift+6 move container to workspace 6:ζ
#
# Layout stuff:
#
#$mod+b splith
#$mod+v splitv
# Switch the current container between different layout styles
$mod+s layout stacking
$mod+w layout tabbed
$mod+e layout toggle split
# Make the current focus fullscreen
$mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
#$mod+Shift+space focus mode_toggle
# Move focus to the parent container
$mod+a focus parent
#
# Scratchpad:
#
$mod+Shift+minus move scratchpad
$mod+minus scratchpad show
#
# Modes
#
$mod+r mode "resize"
}
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym {
$left resize shrink width 10px
$down resize grow height 10px
$up resize shrink height 10px
$right resize grow width 10px
# Return to default mode
Return mode "default"
Escape mode "default"
}
}
#
# Output configuration
#
output {
* {
bg #000000 solid_color
}
Virtual-1 {
resolution 1920x1200
}
}
#
# Idle
#
exec swayidle -w \
timeout 300 $lock \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep $lock
#
# Status Bar:
#
bar {
position top
strip_workspace_numbers yes
status_command while date +'%a %d/%m %T'; do sleep 1; done
colors {
statusline #CC838C
background #000000
focused_workspace #000000 #171717 #CC838C
inactive_workspace #000000 #000000 #404040
}
}
# Colors
client.focused #CC838C #101010 #CC838C #CC838C #CC838C
client.focused_inactive #404040 #000000 #404040 #404040 #404040
client.unfocused #404040 #000000 #404040 #404040 #404040
# Border
default_border pixel 2