blob: 5199cd2748dd4de2113ebc342c6ce2831d9e76e8 (
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
|
# _______ _______ _______ ___ ___
# | _ | Y | _ | Y |
# | 1___|. | |. 1 | |
# |____ |. / \ |. _ |\ 1 /
# |: 1 |: |: | | |: |
# |::.. . |::.|:. |::.|:. | |::.|
# `------ `--- ---`--- ---` `---'
######### ######### by: fivepixels
# for screen-sharing
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
# keybinds/vim everywhere
set $mod Mod4
set $alt Mod1
set $left h
set $down j
set $up k
set $right l
set $screenshot grim -g "$(slurp -d)" - | wl-copy
floating_modifier $mod normal
# display config
output * bg ~/wallpapers/colorado1.jpg fill
output * mode 2560x1440@143.999Hz
output * subpixel none
output DP-1 pos 0 0
output DP-1 scale 1.0
output HDMI-A-1 pos 2560 0
# autolock
exec swayidle -w \
timeout 300 'swaylock -f -c 292929' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 292929'
# keyboard
input type:keyboard {
xkb_layout us
xkb_numlock enable
repeat_delay 200
repeat_rate 50
}
# G303 config
input "1133:49280:Logitech_Gaming_Mouse_G303" {
accel_profile flat
pointer_accel -0.84
}
# keyboard mapping
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +1000
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -1000
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym $mod+Return exec kitty
bindsym $mod+d exec rofi -show drun -modi drun
bindsym $mod+Shift+s exec $screenshot
bindsym $mod+s exec $screenshot
bindsym $mod+Shift+q kill
bindsym $mod+Shift+x exec /usr/bin/lock
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec 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
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
bindsym $alt+Left exec ~/.config/scripts/change_workspace.sh prev
bindsym $alt+Right exec ~/.config/scripts/change_workspace.sh next
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
bindsym $mod+Shift+f focus parent; fullscreen toggle
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
bindsym $mod+control+$left move container to workspace next, workspace next
bindsym $mod+control+$right move container to workspace prev, workspace next
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 Escape mode "default"
}
bindsym $mod+r mode "resize"
client.focused #c0c0c0 #c0c0c0 #c0c0c0 #c0c0c0 #c0c0c0
client.focused_inactive #303030 #303030 #303030 #303030 #303030
client.unfocused #303030 #303030 #303030 #303030 #303030
# gaps outer 30
# gaps inner 30
default_border none
default_floating_border none
# start swaybar
bar {
swaybar_command waybar
}
set $gnome-schema org.gnome.desktop.interface
exec_always {
# gsettings set $gnome-schema cursor-theme 'macOSBigSur'
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
wlsunset -l 36.97079921573341 -L -93.7182216186478
}
# desktop notifications
exec dunst
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|