This repository was archived by the owner on Dec 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig
More file actions
149 lines (127 loc) · 4.21 KB
/
config
File metadata and controls
149 lines (127 loc) · 4.21 KB
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
# Modifier and Directional Keys
set $mod Mod4
set $left h
set $down k
set $up j
set $right l
# Defaults
set $term alacritty
set $menu rofi -show drun -show-icons
set $filemanager thunar
set $lock swaylock
# Window borders and gaps
default_border pixel 2
gaps inner 6
# Input
input type:pointer {
accel_profile flat # Disables mouse acceleration
}
# Keyboard layout
input type:keyboard {
xkb_layout "us"
xkb_options "grp:alt_shift_toggle"
}
# Idle & Lock Behavior
exec swayidle -w timeout 1800 "$lock" # Locks the screen after 30min
# Bar & Notifications
bar {
swaybar_command waybar
}
# Startup programs
exec_always swaync
# Floating Rules
for_window [app_id="Alacritty" title="^pulsemixer$"] floating enable
for_window [app_id="Alacritty" title="^nmtui$"] floating enable
# Application Launchers
bindsym $mod+t exec $term
bindsym $mod+f exec $filemanager
bindsym $mod+r exec $menu
bindsym $mod+c exec rofimoji
bindsym $mod+Shift+n exec swaync-client -t -sw
bindsym $mod+n exec clipton
# Change theme
bindsym $mod+g exec ~/.config/sway/scripts/rofi/theme-picker.sh
# Hide waybar
bindsym $mod+ctrl+h exec pkill -SIGUSR1 waybar
# Multimedia keys
bindsym xf86audioraisevolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindsym xf86audiolowervolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindsym xf86audiomute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym xf86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioStop exec playerctl stop
bindsym xf86Sleep exec systemctl suspend
# Screenshot
bindsym $mod+Print exec grim
bindsym $mod+Shift+Print exec grim -g "$(slurp)"
bindsym $mod+Shift+p exec grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | grep -o '#[0-9A-Fa-f]\{6\}' | wl-copy
# Window management
floating_modifier $mod
# Kill, reload, lock, exit
bindsym $mod+q kill
bindsym $mod+alt+l exec $lock
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'
# Focus movement
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move windows
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+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Workspaces
## Switch
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+Tab workspace next
# Move
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
# Layouts
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+Shift+f fullscreen
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
# Resize Mode
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 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+Shift+r mode "resize"
# Additional configs
## Theme
include ~/.config/sway/themes/gruvbox-material-dark/sway/config-gruvbox-material-dark
include /etc/sway/config.d/*