-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
171 lines (135 loc) · 4.84 KB
/
config
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
set $mod Mod4
font pango:Source Code Pro 11.5
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier Mod1
# my programs
bindsym Control+grave exec alacritty -e tmux
bindsym Mod4+grave exec alacritty -e pulsemixer
bindsym Mod1+grave exec alacritty
bindsym Mod1+Control+b exec firefox
bindsym Mod1+Control+l exec liferea
bindsym Mod1+Control+m exec claws-mail
# xmms2 control
bindsym $mod+Home exec --no-startup-id xmms2 prev
bindsym $mod+End exec --no-startup-id xmms2 next
bindsym $mod+Insert exec --no-startup-id xmms2 play
bindsym $mod+Delete exec --no-startup-id xmms2 pause
bindsym $mod+Prior exec --no-startup-id xmms2 seek +30
bindsym $mod+Next exec --no-startup-id xmms2 seek -30
bindsym Scroll_Lock exec --no-startup-id "sleep 0.5; killall -SIGUSR1 swayidle"
bindsym Print exec --no-startup-id ~/bin/screenshot.sh
# kill focused window
bindsym $mod+Shift+c kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym $mod+Tab focus next
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+t floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1: any"
set $ws2 "2: irc"
set $ws3 "3: jabber"
set $ws4 "4: any"
set $ws5 "5: liferea"
set $ws6 "6: web"
set $ws7 "7: mail"
set $ws8 "8: net"
set $ws9 "9: music"
# switch to workspace
bindsym Control+F1 workspace number $ws1
bindsym Control+F2 workspace number $ws2
bindsym Control+F3 workspace number $ws3
bindsym Control+F4 workspace number $ws4
bindsym Control+F5 workspace number $ws5
bindsym Control+F6 workspace number $ws6
bindsym Control+F7 workspace number $ws7
bindsym Control+F8 workspace number $ws8
bindsym Control+F9 workspace number $ws9
# move focused container to workspace
bindsym $mod+Shift+F1 move container to workspace number $ws1
bindsym $mod+Shift+F2 move container to workspace number $ws2
bindsym $mod+Shift+F3 move container to workspace number $ws3
bindsym $mod+Shift+F4 move container to workspace number $ws4
bindsym $mod+Shift+F5 move container to workspace number $ws5
bindsym $mod+Shift+F6 move container to workspace number $ws6
bindsym $mod+Shift+F7 move container to workspace number $ws7
bindsym $mod+Shift+F8 move container to workspace number $ws8
bindsym $mod+Shift+F9 move container to workspace number $ws9
# reload the configuration file
bindsym $mod+q reload
# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
bindsym $mod+Shift+q restart
# exit sway (logs you out of your session)
bindsym $mod+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your X session.' -B 'Yes, exit sway' 'swaymsg exit'"
bar {
swaybar_command waybar
}
# default layout override
workspace_layout tabbed
# always title: floating or not
default_border normal
default_floating_border normal
# hide borders for a single-window case
hide_edge_borders smart
# allow browser to gain focus on link clocks from other workspaces
focus_on_window_activation focus
# display-specific
output DP-3 scale 2.0
# my old i915 that does not support 4k
output HDMI-A-2 mode 1920x1080@60Hz
# wallpaper
output * background ~/imgs/walls/wp.jpg fill
input type:keyboard {
repeat_delay 200
repeat_rate 50
xkb_layout us,ru
xkb_model 105
xkb_options grp:caps_toggle
}
input type:pointer {
accel_profile flat
pointer_accel -0.2
scroll_factor 0.5
}
set $my_cursor Adwaita
set $my_cursor_size 32
seat seat0 xcursor_theme $my_cursor $my_cursor_size
exec ~/.rc.d/wayland/sway/run.sh
exec swayidle -w timeout 3600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'