# -*- mode: bash-ts -*-
set $wall $HOME/cc/IMG_20240422_094649_362.jpg
# tall:
output 'Dell Inc. DELL P2422H BHFBMQ3' transform 90 pos 0 0
set $tall VGA-1
# Virtual2

output * bg $wall fit

set $wide LVDS-1
# Virtual1
# eDP-1

input "type:keyboard" {
    xkb_layout us
    xkb_variant dvorak
    xkb_options ctrl:nocaps
}

floating_modifier Mod4

exec --no-startup-id mako --font=sans

exec --no-startup-id sway-alttab
bindsym Mod1+Tab exec pkill -USR1 sway-alttab
# too flippy workspace_auto_back_and_forth yes

bindsym Mod4+l exec --no-startup-id swaylock -i $wall

bindsym Mod4+Shift+s exec --no-startup-id grimshot copy area
bindsym Mod4+Shift+v exec --no-startup-id makoctl dismiss --group

bindsym Mod1+grave exec --no-startup-id $HOME/run/unikey.bash
exec --no-startup-id ibus-daemon -drx --desktop=sway --panel=disable

exec --no-startup-id $TERMINAL
exec --no-startup-id org.keepassxc.KeePassXC
exec --no-startup-id keepassxc

bindsym Mod4+Return exec $TERMINAL

default_border pixel 1
hide_edge_borders smart

workspace 1:C output $wide
workspace 2:R output $tall $wide
workspace 5 output $tall $wide
workspace 10 output $wide

workspace 3:E output $tall $wide
exec --no-startup-id emacs
assign [class="Emacs"] 3:E

workspace 9:B output $wide
exec --no-startup-id $BROWSER
assign [app_id="firefox"] 9:B

workspace 6 output $tall $wide

workspace 7:T output $wide
exec --no-startup-id flatpak run org.telegram.desktop
assign [app_id="org.telegram.desktop"] 7:T

workspace 8:S output $wide
exec --no-startup-id flatpak run com.skype.Client
assign [class="(?i)skype"] 8:S
for_window [class="(?i)skype"] floating disable

workspace 4:K output $wide
assign [app_id="org.keepassxc.KeePassXC"] 4:K

workspace 11:G output $wide
bindsym Mod4+bracketleft workspace 11:G
bindsym Mod4+braceleft move container to workspace 11:G
assign [app_id="rhythmbox"] 11:G
assign [app_id="zenity"] 11:G
assign [class="steam"] 11:G

# change focus
bindsym Mod4+h focus left
bindsym Mod4+t focus down
bindsym Mod4+c focus up
bindsym Mod4+n focus right

# switch to workspace
bindsym Mod4+1 workspace number 1:C
bindsym Mod4+2 workspace number 2:R
bindsym Mod4+3 workspace number 3:E
bindsym Mod4+4 workspace number 4:K
bindsym Mod4+5 workspace number 5
bindsym Mod4+6 workspace number 6
bindsym Mod4+7 workspace number 7:T
bindsym Mod4+8 workspace number 8:S
bindsym Mod4+9 workspace number 9:B
bindsym Mod4+0 workspace number 10

# move focused container to workspace
bindsym Mod4+Shift+1 move container to workspace number 1:C
bindsym Mod4+Shift+2 move container to workspace number 2:R
bindsym Mod4+Shift+3 move container to workspace number 3:E
bindsym Mod4+Shift+4 move container to workspace number 4:K
bindsym Mod4+Shift+5 move container to workspace number 5
bindsym Mod4+Shift+6 move container to workspace number 6
bindsym Mod4+Shift+7 move container to workspace number 7:T
bindsym Mod4+Shift+8 move container to workspace number 8:S
bindsym Mod4+Shift+9 move container to workspace number 9:B
bindsym Mod4+Shift+0 move container to workspace number 10