workspace/arch-user/config/sway/config.tmpl
2024-12-15 23:37:24 +00:00

99 lines
3.2 KiB
Cheetah

# vim: filetype=swayconfig
set $mod Mod4
set $left n
set $down e
set $up i
set $right o
################ inputs ####################
input "type:keyboard" {
xkb_layout us(colemak_yz),us(basic),ru
}
bindsym $mod+0 input "type:keyboard" xkb_switch_layout next
input "type:touchpad" {
dwt enabled
tap enabled
natural_scroll enabled
middle_emulation enabled
}
############################################
############### workspaces #################
bindsym --to-code $mod+x workspace x
bindsym --to-code $mod+c workspace c
bindsym --to-code $mod+d workspace d
bindsym --to-code $mod+v workspace v
bindsym --to-code $mod+z workspace z
bindsym --to-code $mod+k workspace k
bindsym --to-code $mod+h workspace h
bindsym --to-code $mod+Control+x move container to workspace x
bindsym --to-code $mod+Control+c move container to workspace c
bindsym --to-code $mod+Control+d move container to workspace d
bindsym --to-code $mod+Control+v move container to workspace v
bindsym --to-code $mod+Control+z move container to workspace z
bindsym --to-code $mod+Control+k move container to workspace k
bindsym --to-code $mod+Control+h move container to workspace h
bindgesture swipe:right workspace prev
bindgesture swipe:left workspace next
############################################
############### containers #################
bindsym --to-code $mod+$left focus left
bindsym --to-code $mod+$down focus down
bindsym --to-code $mod+$up focus up
bindsym --to-code $mod+$right focus right
bindsym --to-code $mod+Control+$left move left
bindsym --to-code $mod+Control+$down move down
bindsym --to-code $mod+Control+$up move up
bindsym --to-code $mod+Control+$right move right
bindsym --to-code $mod+r mode "resize"
mode "resize" {
bindsym $left resize shrink width 5ppt
bindsym $down resize grow height 5ppt
bindsym $up resize shrink height 5ppt
bindsym $right resize grow width 5ppt
bindsym Escape mode "default"
}
bindsym --to-code $mod+f fullscreen
floating_modifier $mod normal
bindsym --to-code $mod+b splith
bindsym --to-code $mod+m splitv
bindsym --to-code $mod+s layout stacking
bindsym --to-code $mod+w layout tabbed
bindsym --to-code $mod+9 layout toggle split
bindsym --to-code $mod+a focus parent
bindsym --to-code $mod+Shift+minus move scratchpad
bindsym --to-code $mod+minus scratchpad show
############################################
################ styles ####################
default_border pixel 1
output * bg #$THEME_COLOR_BG solid_color
client.focused #$THEME_COLOR_BG_ACCENT_LIGHT #$THEME_COLOR_BG_ACCENT_LIGHT #$THEME_COLOR_BG_ACCENT_LIGHT
############################################
################## bar #####################
bar {
position top
font "Roboto Mono 12"
status_command i3blocks
colors {
statusline #$THEME_COLOR_FG
background #$THEME_COLOR_BG
focused_workspace #$THEME_COLOR_BG_ACCENT_LIGHT #$THEME_COLOR_BG_ACCENT_LIGHT #$THEME_COLOR_FG
inactive_workspace #$THEME_COLOR_BG_ACCENT_DARK #$THEME_COLOR_BG_ACCENT_DARK #$THEME_COLOR_FG
}
}
###########################################
################ scripts ##################
bindsym --to-code $mod+Escape kill
bindsym --to-code $mod+Control+r reload
bindsym --to-code $mod+Return exec foot
bindsym --to-code $mod+Space exec run.sh
###########################################
exec foot -s