~ntgg/dotfiles

ref: faaec58521e75cd1f9e0423b2caefac4c434132c dotfiles/.config/sway/config -rw-r--r-- 4.5 KiB View raw
faaec585Noah Graff adedd wallpapers 4 months ago
                                                                                
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
set $mod Mod4

set $left h
set $right l
set $up k
set $down j

set $workspace1 1
set $workspace2 2
set $workspace3 3
set $workspace4 4
set $workspace5 5
set $workspace6 6
set $workspace7 7
set $workspace8 8
set $workspace9 9
set $workspace10 10

set $term alacritty

set $menu 'wofi -Sdrun'

# set $bgimg {{{ wallpaper-path }}}

set $lockimg $bgimg
set $lockcmd 'swaylock -f -i $lockimg'

set $color_focused #ffafbc
set $color_indicator #ffe27e
set $color_unfocused #9ae6d9
set $color_text_unfocused #888888
set $color_text_focused #ffffff
set $color_urgent #ff7376

exec_always --no-startup-id flashfocus
exec mako

exec swayidle -w \
    timeout 180 $lockcmd \
    timeout 120 'swaymsg "output * dpms off"' \
    resume 'swaymsg "output * dpms on"' \
    before-sleep $lockcmd

#
# Input/Output
#

# laptop display
output eDP-1 {
    scale 2
}

# dvorak with caps as ctrl
input * {
    xkb_layout us
    xkb_variant dvorak
    xkb_options ctrl:nocaps
}

# laptop trackpad
input 1739:52552:SYNA1D31:00_06CB:CD48_Touchpad {
    tap enabled
    accel_profile adaptive
    click_method clickfinger
    middle_emulation enabled
}

input 1133:45082:MX_Anywhere_2S_Mouse {
    accel_profile flat
}

focus_follows_mouse no
focus_wrapping no

#
# Key Bindings
#

floating_modifier $mod normal

bindsym $mod+Return exec $term
bindsym $mod+Shift+q kill
bindsym $mod+d exec $menu

bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit sway?' -b 'Yes' 'swaymsg exit'

bindsym $mod+$left focus left
bindsym $mod+$right focus right
bindsym $mod+$up focus up
bindsym $mod+$down focus down

bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$down move down

bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace10

bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10

bindsym $mod+b splith
bindsym $mod+v splitv

bindsym $mod+t layout tabbed
bindsym $mod+s layout toggle split
bindsym $mod+f fullscreen

bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle

bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show

bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym XF86MonBrightnessUp exec brightnessctl set +5%

bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5%

bindsym $mod+n exec --no-startup-id flash_window

mode "resize" {
    bindsym $left resize shrink width 10px
    bindsym $right resize grow width 10px
    bindsym $up resize shrink height 10px
    bindsym $down resize grow height 10px

    bindsym Shift+$left resize shrink width 2px
    bindsym Shift+$right resize grow width 2px
    bindsym Shift+$up resize shrink height 2px
    bindsym Shift+$down resize grow height 2px

    bindsym Control+$left resize shrink width 50px
    bindsym Control+$right resize grow width 50px
    bindsym Control+$up resize shrink height 50px
    bindsym Control+$down resize grow height 50px

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

bindsym $mod+r mode "resize"

#
# Appearance
#

bar {
    position top
    swaybar_command waybar
}

default_border none
default_floating_border none
font pango:Open Sans 9
client.focused $color_focused $color_focused $color_text_focused $color_indicator $color_focused
client.unfocused $color_unfocused $color_unfocused $color_text_unfocused $color_indicator $color_unfocused
client.urgent $color_urgent $color_urgent $color_text_focused $color_indicator $color_urgent

gaps inner 4
smart_gaps on

# output * background $bgimg fill