blob: cf587fcf439645fde5653e3fb036daf1451a8318 (
plain)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term alacritty
set $emacs emacsclient -c
set $menu fuzzel -r0 -b 282828f2 -C 458588f2 -B 3 -s 458588f2 -S 282828FF --font "Terminus:size=12" -p "run: "
set $laptop-display eDP-1
set $generic-display HDMI-A-1
set $primary-home-display 'Iiyama North America PLE2407HDSD 0x01010101'
set $secondary-home-display 'Dell Inc. DELL E190S M8VPV186CELI'
set $primary-display-layout 'Samsung Electric Company C34H89x HTJM200007' $primary-home-display $generic-display $laptop-display
set $secondary-display-layout $secondary-home-display $laptop-display
# output * bg SPOILER_33.png fill
output * bg #002b36 solid_color
output $laptop-display resolution 1920x1080 position 1920,0
output $generic-display resolution 1920x1080 position 0,0
output $primary-home-display resolution 1920x1080 position 0,0
output $secondary-home-display resolution 1280x1024 position 1920,0
set $opacity 0.9
client.focused #002b36 #586e75 #eee8d5 #268bd2
client.focused_inactive #002b36 #073642 #93a1a1 #268bd2
client.unfocused #002b36 #073642 #93a1a1 #268bd2
client.urgent #002b36 #dc322f #fdf6e3 #002b36
input type:keyboard {
xkb_layout pl,us
}
input type:touchpad {
tap enabled
middle_emulation enabled
}
bindsym $mod+Shift+s output $laptop-display toggle
set $swaylock 'swaylock -f -c 000000 --font "Terminus"'
exec swayidle -w \
timeout 280 $swaylock \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep $swaylock
# inhibit_idle fullscreen
bindsym $mod+Escape exec $swaylock
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl pause
bindsym print exec grimshot --notify copy area
bindsym $mod+print exec grimshot --notify copy output
bindsym $mod+Ctrl+print grimshot save area - | swappy -f -
bindsym $mod+Return exec $term
bindsym $mod+Shift+q kill
floating_modifier $mod normal
bindsym $mod+Shift+c reload
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 Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
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
workspace 1 output $primary-display-layout
workspace 2 output $primary-display-layout
workspace 3 output $secondary-display-layout
workspace 4 output $secondary-display-layout
workspace 9 output $primary-display-layout
workspace 10 output $secondary-display-layout
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
assign [app_id="(firefox-default|Firefox|qutebrowser|Chromium-browser)"] 2
assign [instance="(chromium-browser)"] 2
assign [instance="(spotify)"] 3
assign [app_id=".blueman-manager-real"] 3
assign [app_id="pavucontrol"] 3
assign [app_id="(org.telegram.desktop)"] 4
assign [app_id="vesktop"] 4
assign [app_id="com.ktechpit.whatsie"] 4
assign [instance="(discord)"] 4
# for_window [app_id="vesktop"] opacity $opacity
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+s layout stacking
bindsym $mod+w 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
mode "resize" {
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
bindsym Return mode "default"
bindsym Control+g mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
set $default swaymsg mode default
mode "menu" {
bindsym --no-repeat e exec '$default; $emacs;'
bindsym --no-repeat w exec "$default; whois-at-hsp -n"
bindsym Return mode "default"
bindsym Control+g mode "default"
bindsym Escape mode "default"
}
bindsym $mod+o mode "menu"
workspace_layout tabbed
# default_border normal 3
# gaps outer 0
# gaps inner 6
# corner_radius 4
# blur_xray disable
# blur enable
# layer_effects "waybar" blur enable
font Terminus (TTF) 12
bindsym $mod+p exec $menu
# Taken from dawivil dotfiles.
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
# exec udiskie -t
exec mako --font "Terminus (TTF)" --outer-margin=5 --margin=3 --border-size=3 --default-timeout=7000 --background="#282828e0"
exec nm-applet --indicator
exec blueman-applet
exec waybar
exec udiskie -t
exec wlsunset -l 51.919438 -L 19.145136
|