### Variables
set $mod Mod4
set $left h
set $down j
set $up k
set $right l

set $term foot
set $browser firefox
set $lock swaylock
set $rofi_cmd rofi -terminal '$term'
set $menu $rofi_cmd -show combi -combi-modes drun#run -modes combi

input * {
    xkb_layout us
    xkb_options "compose:prsc"
}

seat * hide_cursor when-typing enable

### Key bindings
    floating_modifier $mod normal

    bindsym $mod+Return exec $term
    bindsym $mod+i exec $browser
    bindsym $mod+Shift+y exec $lock
    bindsym $mod+d exec $menu

    bindsym $mod+z exec light -U 0.5
    bindsym $mod+x exec light -A 0.5
    bindsym $mod+Shift+z exec light -U 5
    bindsym $mod+Shift+x exec light -A 5

    bindsym $mod+Shift+q kill
    bindsym $mod+Shift+c reload
    bindsym $mod+Shift+e exit

    # Move your focus around
    bindsym $mod+$left focus left
    bindsym $mod+$down focus down
    bindsym $mod+$up focus up
    bindsym $mod+$right focus right

    bindsym $mod+Left focus left
    bindsym $mod+Down focus down
    bindsym $mod+Up focus up
    bindsym $mod+Right focus right

    bindsym $mod+Shift+$left move left
    bindsym $mod+Shift+$down move down
    bindsym $mod+Shift+$up move up
    bindsym $mod+Shift+$right move right

    bindsym $mod+Shift+Left move left
    bindsym $mod+Shift+Down move down
    bindsym $mod+Shift+Up move up
    bindsym $mod+Shift+Right move right

    bindsym $mod+1 workspace number 1
    bindsym $mod+2 workspace number 2
    bindsym $mod+3 workspace number 3
    bindsym $mod+4 workspace number 4
    bindsym $mod+5 workspace number 5
    bindsym $mod+6 workspace number 6
    bindsym $mod+7 workspace number 7
    bindsym $mod+8 workspace number 8
    bindsym $mod+9 workspace number 9
    bindsym $mod+0 workspace number 10

    bindsym $mod+Shift+1 move container to workspace number 1
    bindsym $mod+Shift+2 move container to workspace number 2
    bindsym $mod+Shift+3 move container to workspace number 3
    bindsym $mod+Shift+4 move container to workspace number 4
    bindsym $mod+Shift+5 move container to workspace number 5
    bindsym $mod+Shift+6 move container to workspace number 6
    bindsym $mod+Shift+7 move container to workspace number 7
    bindsym $mod+Shift+8 move container to workspace number 8
    bindsym $mod+Shift+9 move container to workspace number 9
    bindsym $mod+Shift+0 move container to workspace number 10

    bindsym $mod+o splith
    bindsym $mod+u splitv

    bindsym $mod+s layout stacking
    bindsym $mod+t layout tabbed
    bindsym $mod+e layout toggle split

    bindsym $mod+f fullscreen

    bindsym $mod+Shift+space floating toggle
    bindsym $mod+space focus mode_toggle
    bindsym $mod+a focus parent

    bindsym $mod+Shift+minus move scratchpad
    bindsym $mod+minus scratchpad show

    bindsym $mod+Ctrl+$left grow left 10 px or 10 ppt
    bindsym $mod+Ctrl+$down grow down 10 px or 10 ppt
    bindsym $mod+Ctrl+$up grow up 10 px or 10 ppt
    bindsym $mod+Ctrl+$right grow right 10 px or 10 ppt

    bindsym $mod+Ctrl+Left grow left 10 px or 10 ppt
    bindsym $mod+Ctrl+Down grow down 10 px or 10 ppt
    bindsym $mod+Ctrl+Up grow up 10 px or 10 ppt
    bindsym $mod+Ctrl+Right grow right 10 px or 10 ppt

set $accent #e96161

output * bg #e6e6e6 solid_color

gaps inner 12
gaps left 8
gaps right 8
gaps bottom 8
gaps top 0
default_border normal 1
font "APL386 Unicode 8"

for_window [title="."] title_format ""

client.focused          $accent $accent $accent $accent $accent
client.unfocused        #5c5c5c #5c5c5c #5c5c5c #5c5c5c #5c5c5c
client.focused_inactive #5c5c5c #5c5c5c #5c5c5c #5c5c5c #5c5c5c

for_window [title="^oyster$"] floating enable

# Status Bar:
bar {
    position top
    gaps 16 20
    font "APL386 Unicode 8"

    status_command ~/.config/sway/status_command

    colors {
        background #ffffff
        statusline #000000
        focused_workspace  $accent $accent #ffffff
        active_workspace   #ffffff #ffffff #000000
        inactive_workspace #ffffff #ffffff #000000
    }
}

include /etc/sway/config.d/*