
bar {
    position bottom
    status_command ~/stuff/dotfiles/.config/sway/scripts/status.sh


    colors {
        statusline #ffffff
        background #323232
        inactive_workspace #323232FF #323232FF #5c5c5c    
    }

    hidden_state hide
    mode hide
    modifier Mod4
}

input type:keyboard {
    repeat_delay 180
    repeat_rate 50
    xkb_layout us
}

# Swap escape and caps only on integrated keyboard
input "1:1:AT_Translated_Set_2_keyboard" {
    xkb_options caps:swapescape
    repeat_delay 180
    repeat_rate 50
    xkb_layout us
}

# output settings for this device
output "eDP-1" {
    scale 1.5
    # Keep fractional scaling for the laptop panel, but avoid nearest-neighbor
    # filtering because it makes XWayland apps look harsher than necessary.
}

# aggressive swayidle only on laptop
exec swayidle -w \
         timeout 1000 'swaylock -f -c 000000' \
         timeout 1000 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
         before-sleep 'swaylock -f -c 000000'

# exec_always "youtube-music"
# for_window [app_id="com.github.th_ch.youtube_music"] move scratchpad
# bindsym $mod+m [app_id="com.github.th_ch.youtube_music"] scratchpad show, resize set width 1920 height 1080, move position center

# exec_always "signal-desktop"
# for_window [app_id="signal"] move scratchpad
# bindsym $mod+r [app_id="signal"] scratchpad show, resize set width 1920 height 1080, move position center

exec_always foot --app-id=foot-scratch --working-directory=$HOME
for_window [app_id="foot-scratch"] move scratchpad
bindsym $mod+l [app_id="foot-scratch"] scratchpad show, resize set width 1600 height 800, move position center
