aboutsummaryrefslogtreecommitdiff
path: root/sway/config
blob: 2a1816575d027dbf30c9d5edaa3e04f6cc9ea6ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
set $mod Mod4

xwayland disable
bar swaybar_command waybar

exec_always ~/.config/sway/init.sh

bindsym {
    $mod+Return exec alacritty
    $mod+space exec wofi --show drun --allow-images --allow-markup --gtk-dark
    $mod+Tab layout toggle

    $mod+Shift+q kill
    $mod+Shift+r restart
    $mod+Shift+e exit
    $mod+Shift+space floating toggle
    $mod+Shift+Return fullscreen toggle

    $mod+h focus left
    $mod+j focus down
    $mod+k focus up
    $mod+l focus right
    $mod+Left focus left
    $mod+Down focus down
    $mod+Up focus up
    $mod+Right focus right

    $mod+Shift+h move left
    $mod+Shift+j move down
    $mod+Shift+k move up
    $mod+Shift+l move right
    $mod+Shift+Left move left
    $mod+Shift+Down move down
    $mod+Shift+Up move up
    $mod+Shift+Right move right

    $mod+1 workspace number "1:1"
    $mod+2 workspace number "2:2"
    $mod+3 workspace number "3:3"
    $mod+4 workspace number "4:4"
    $mod+a workspace number "5:a"
    $mod+s workspace number "6:s"
    $mod+d workspace number "7:d"
    $mod+f workspace number "8:f"

    $mod+Shift+1 move container to workspace number "1:1"
    $mod+Shift+2 move container to workspace number "2:2"
    $mod+Shift+3 move container to workspace number "3:3"
    $mod+Shift+4 move container to workspace number "4:4"
    $mod+Shift+a move container to workspace number "5:a"
    $mod+Shift+s move container to workspace number "6:s"
    $mod+Shift+d move container to workspace number "7:d"
    $mod+Shift+f move container to workspace number "8:f"

    F12 exec ~/.config/sway/terminal.sh
}