@@ -41,10 +41,10 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
41
41
#
42
42
# Example configuration:
43
43
#
44
- # exec swayidle -w \
45
- # timeout 300 'swaylock -f -c 000000' \
46
- # timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
47
- # before-sleep 'swaylock -f -c 000000'
44
+ exec swayidle -w \
45
+ timeout 300 'swaylock -f -c 000000' \
46
+ timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
47
+ before-sleep 'swaylock -f -c 000000'
48
48
#
49
49
# This will lock your screen after 300 seconds of inactivity, then turn off
50
50
# your displays after another 300 seconds, and turn your screens back on when
@@ -132,6 +132,7 @@ input type:keyboard {
132
132
#
133
133
134
134
# Switch to workspace
135
+ bindsym $mod+0 workspace number 0
135
136
bindsym $mod+1 workspace number 1
136
137
bindsym $mod+2 workspace number 2
137
138
bindsym $mod+3 workspace number 3
@@ -141,8 +142,8 @@ input type:keyboard {
141
142
bindsym $mod+7 workspace number 7
142
143
bindsym $mod+8 workspace number 8
143
144
bindsym $mod+9 workspace number 9
144
- bindsym $mod+0 workspace number 10
145
145
# Move focused container to workspace
146
+ bindsym $mod+Shift+0 move container to workspace number 0
146
147
bindsym $mod+Shift+1 move container to workspace number 1
147
148
bindsym $mod+Shift+2 move container to workspace number 2
148
149
bindsym $mod+Shift+3 move container to workspace number 3
@@ -152,16 +153,15 @@ input type:keyboard {
152
153
bindsym $mod+Shift+7 move container to workspace number 7
153
154
bindsym $mod+Shift+8 move container to workspace number 8
154
155
bindsym $mod+Shift+9 move container to workspace number 9
155
- bindsym $mod+Shift+0 move container to workspace number 10
156
156
# Note: workspaces can have any name you want, not just numbers.
157
- # We just use 1-10 as the default.
157
+ # We just use 0-9 as the default.
158
158
159
159
# dynamic workspaces
160
160
# https://pypi.org/project/sway-dynamic-names/
161
161
{% if sway__dynamic_names %}
162
162
exec_always --no-startup-id exec {{ swayusr.home }}/.config/sway/venv/bin/sway-dynamic-names
163
163
{% else %}
164
- exec_always --no-startup-id exec {{ swayusr.home }}/.config/sway/venv/bin/sway-dynamic-names
164
+ # exec_always --no-startup-id exec {{ swayusr.home }}/.config/sway/venv/bin/sway-dynamic-names
165
165
{% endif %}
166
166
#
167
167
# Layout stuff:
@@ -228,20 +228,23 @@ bindsym $mod+r mode "resize"
228
228
#
229
229
# Status Bar:
230
230
#
231
+ {% if sway__waybar | bool %}
232
+ exec waybar
233
+ {% else %}
231
234
# Read `man 5 sway-bar` for more information about this section.
232
235
bar {
233
236
position top
234
237
235
238
# When the status_command prints a new line to stdout, swaybar updates.
236
239
# The default just shows the current date and time.
237
- # status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
238
- status_command waybar
239
-
240
- # colors {
241
- # statusline #ffffff
242
- # background #323232
243
- # inactive_workspace #32323200 #32323200 #5c5c5c
244
- # }
240
+ status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
241
+
242
+ colors {
243
+ statusline #ffffff
244
+ background #323232
245
+ inactive_workspace #32323200 #32323200 #5c5c5c
246
+ }
245
247
}
248
+ {% endif %}
246
249
247
250
include /etc/sway/config.d/*
0 commit comments