aboutsummaryrefslogtreecommitdiff
path: root/sway/config
blob: 16fdd9eeec2a1c448cad942aec7de5810012ba1a (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
set $mod Mod4
set $ws1 "1:1"
set $ws2 "2:2"
set $ws3 "3:3"
set $ws4 "4:4"
set $wsa "5:a"
set $wss "6:s"
set $wsd "7:d"
set $wsf "8:f"

floating_modifier $mod
font pango:Droid Sans 11
default_border normal 3

workspace $ws1 output eDP-1
workspace $ws2 output eDP-1
workspace $ws3 output eDP-1
workspace $ws4 output eDP-1
workspace $wsa output DP-6
workspace $wss output DP-6
workspace $wsd output DP-6
workspace $wsf output DP-6

output eDP-1 {
    position 0 0
    background ~/.dotfiles/pictures/bg1.jpg fill
}

output DP-6 {
    position 1920 0
    background ~/.dotfiles/pictures/bg2.jpg fill
}

bindsym $mod+Return exec alacritty
bindsym $mod+space exec --no-startup-id wofi --show drun --allow-images
bindsym $mod+backslash split h
bindsym $mod+minus split v
#bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
bindsym $mod+Tab layout toggle split
bindsym $mod+p focus parent
#bindsym $mod+d focus child
bindsym $mod+r mode "resize"

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


bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l 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 $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+a workspace $wsa
bindsym $mod+s workspace $wss
bindsym $mod+d workspace $wsd
bindsym $mod+f workspace $wsf

bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+a move container to workspace $wsa
bindsym $mod+Shift+s move container to workspace $wss
bindsym $mod+Shift+d move container to workspace $wsd
bindsym $mod+Shift+f move container to workspace $wsf


mode "resize" {
    bindsym h resize shrink width 10 px or 10 ppt
    bindsym j resize grow height 10 px or 10 ppt
    bindsym k resize shrink height 10 px or 10 ppt
    bindsym l resize grow width 10 px or 10 ppt

    bindsym Left resize shrink width 10 px or 10 ppt
    bindsym Down resize grow height 10 px or 10 ppt
    bindsym Up resize shrink height 10 px or 10 ppt
    bindsym Right resize grow width 10 px or 10 ppt

    bindsym Return mode "default"
    bindsym Escape mode "default"
    bindsym $mod+r mode "default"
}


bar {
    status_command py3status
    tray_output primary
    strip_workspace_numbers yes
    font pango:Font Awesome 5 Free, Font Awesome 5 Brands, Droid Sans Mono 12
}


exec xrdb -load ~/.config/sway/.Xresources


# terminal
for_window [app_id="scratchpad_term"] \
    move scratchpad, \
    border none, \
    exec --no-startup-id ~/.dotfiles/terminal.sh
bindsym F12 exec --no-startup-id ~/.dotfiles/terminal.sh