rice/dots/.config/sway/config

142 lines
3.9 KiB
Text
Raw Normal View History

2023-09-02 19:47:37 +00:00
### Variables
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term footclient
set $browser firefox
2023-09-02 19:47:37 +00:00
set $lock swaylock
2023-09-12 20:31:13 +00:00
set $rofi_cmd rofi -terminal '$term'
set $menu $rofi_cmd -show combi -combi-modes drun#run -modes combi
2023-09-02 19:47:37 +00:00
output * bg #1f1f28 solid_color
input * {
xkb_layout us
xkb_options "compose:prsc"
}
seat * hide_cursor when-typing enable
### Autostart
exec mako
exec fcitx5
exec foot -s
2023-09-02 19:47:37 +00:00
### Key bindings
floating_modifier $mod normal
bindsym $mod+Return exec $term
bindsym $mod+Alt+Return exec foot # fallback terminal
2023-09-02 19:47:37 +00:00
bindsym $mod+i exec $browser
bindsym $mod+Shift+y exec $lock
2023-09-12 20:31:13 +00:00
bindsym $mod+d exec $menu
2023-09-02 19:47:37 +00:00
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
gaps inner 8
gaps outer 0
default_border pixel 1
font "APL386 Unicode 8"
client.focused #54546d #1f1f28 #dcd7ba #54546d #54546d
client.unfocused #363646 #1f1f28 #c8c093 #363646 #363646
client.focused_inactive #363646 #1f1f28 #c8c093 #363646 #363646
# Status Bar:
bar {
position bottom
gaps 8
font "APL386 Unicode 8"
status_command ~/.config/sway/status_command
colors {
background #1f1f28
statusline #dcd7ba
focused_workspace #54546d #1f1f28 #c8c893
active_workspace #1f1f28 #1f1f28 #c8c893
inactive_workspace #1f1f28 #1f1f28 #c8c893
}
}
include /etc/sway/config.d/*