workspace/arch-user/config/sway/config.tmpl
2024-12-21 10:21:58 +00:00

103 lines
3.3 KiB
Cheetah

# vim: filetype=swayconfig
set $mod Mod4
set $left n
set $up e
set $down i
set $right o
################ inputs ####################
input "type:keyboard" {
xkb_layout us(yz),ru(yz)
}
bindsym --to-code ISO_Level3_Shift+Shift 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+a workspace a
bindsym --to-code $mod+r workspace r
bindsym --to-code $mod+s workspace s
bindsym --to-code $mod+t workspace t
bindsym --to-code $mod+g workspace g
bindsym --to-code $mod+m workspace m
bindsym --to-code $mod+Shift+a move container to workspace a
bindsym --to-code $mod+Shift+r move container to workspace r
bindsym --to-code $mod+Shift+s move container to workspace s
bindsym --to-code $mod+Shift+t move container to workspace t
bindsym --to-code $mod+Shift+g move container to workspace g
bindsym --to-code $mod+Shift+m move container to workspace m
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+Shift+$left move left
bindsym --to-code $mod+Shift+$down move down
bindsym --to-code $mod+Shift+$up move up
bindsym --to-code $mod+Shift+$right move right
bindsym --to-code $mod+7 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+6 splitv
bindsym --to-code $mod+5 layout stacking
bindsym --to-code $mod+w layout tabbed
bindsym --to-code $mod+9 layout toggle split
bindsym --to-code $mod+8 focus parent
bindsym --to-code $mod+Shift+d move scratchpad
bindsym --to-code $mod+d scratchpad show
############################################
################## keys ####################
bindsym --to-code $mod+x exec wtype -P XF86Cut
bindsym --to-code $mod+c exec wtype -P XF86Copy
bindsym --to-code $mod+v exec wtype -P XF86Paste
############################################
################ 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+Return exec footclient
bindsym --to-code $mod+Space exec run.sh
###########################################
exec foot -s
exec mako