-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
176 lines (145 loc) · 5.59 KB
/
config
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
##################
# MY SWAY CONFIG #
##################
###### DEPENDENCIES ######################################
### GENERAL SCRIPTING: ### #
# sh #
# sleep #
### GETTING SYSTEM STATUS: ### #
# cat #
# free #
# date #
### TEXT MANIPULATION: ### #
# echo #
# test #
# grep #
# awk #
### OTHER: ### #
# pactl for volume (called 'pulseaudio-utils') on fedora #
# brightnessctl for brightness #
# wtype to input keypresses into apps #
##########################################################
# =====================
# ===== VARIABLES =====
# =====================
# === MODKEY ===
set $mod Super
# === WORKSPACES ===
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
# === COLORS ===
set $text-color #ffffff
set $faded-text-color #abb2bf
set $bg-color #282c34
set $alt-bg-color #1e222b
set $urgent-color #e06c75
# ====================
# ===== SETTINGS =====
# ====================
# === GENERAL ===
workspace_layout tabbed
title_align center
output "*" bg ./wallpaper.jpg fit $bg-color
default_border none
hide_edge_borders --i3 smart # hide titlebars if their is only one window in a container
# === INPUTS ===
input "type:keyboard" xkb_options "caps:super"
input "type:touchpad" {
dwt enabled
tap enabled
natural_scroll enabled
middle_emulation enabled
}
# ===================
# ===== TOP BAR =====
# ===================
# === COLORS === | border | background | text | indicator
client.focused $bg-color $bg-color $text-color #eeeeee
client.unfocused $alt-bg-color $alt-bg-color $faded-text-color #eeeeee
client.focused_inactive $alt-bg-color $alt-bg-color $faded-text-color #eeeeee
client.urgent $urgent-color $urgent-color $text-color #eeeeee
# === SETTINGS ===
bar {
position top
# When the status_command prints to stdout, swaybar updates.
status_command while echo $(~/.config/sway/status.sh); do sleep 30; done
colors {
statusline $text-color
background $alt-bg-color
# border background text
inactive_workspace $alt-bg-color $alt-bg-color $faded-text-color
urgent_workspace $urgent-color $urgent-color $text-color
focused_workspace $alt-bg-color $alt-bg-color $text-color
}
}
# =======================
# ===== KEYBINDINGS =====
# =======================
# === Rebind keys to be closer ===
bindsym --no-repeat --release Super_L exec wtype -P backspace -p backspace # Press super (caps lock) -> backspace
bindsym --no-repeat --release Shift_L exec wtype -P return -p return # Press shift -> enter
bindsym --no-repeat --release Alt_L exec wtype -P escape -p escape # Press alt -> escape
# === SLEEP/SUSPEND ===
bindsym $mod+x exec systemctl suspend
# === ADJUST VOLUME ===
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
# === ADJUST BRIGHTNESS ===
bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
bindsym XF86MonBrightnessUp exec brightnessctl s 5%+
# === OPEN APPS ===
# TERMINALS
bindsym $mod+g exec ghostty
bindsym $mod+Shift+g exec gnome-terminal
bindsym $mod+a exec alacrity
bindsym $mod+f exec foot
# BROWSERS
bindsym $mod+z exec zen-browser
bindsym $mod+Shift+f exec firefox
bindsym $mod+e exec epiphany
bindsym $mod+q exec qutebrowser
bindsym $mod+c exec chromium-browser
# FILE MANAGERS
bindsym $mod+n exec nautilus
# === KILL FOCUSED ===
bindsym $mod+d kill # d stands for delete
# === CHANGE FOCUSED ===
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# === MOVE FOCUSED ===
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# === RESIZE FOCUSED ===
bindsym $mod+Ctrl+h resize shrink width 20 px
bindsym $mod+Ctrl+k resize shrink height 20 px
bindsym $mod+Ctrl+l resize grow width 20 px
bindsym $mod+Ctrl+j resize grow height 20 px
# === MAXIMIZE FOCUSED ===
bindsym $mod+m fullscreen
# === FLOAT FOCUSED ===
bindsym $mod+space floating toggle
# === CHANGE CONTAINER LAYOUT ===
bindsym $mod+t layout tabbed
bindsym $mod+s layout toggle split
# === SWITCH WORKSPACE ===
bindsym $mod+y workspace number $ws1
bindsym $mod+u workspace number $ws2
bindsym $mod+i workspace number $ws3
bindsym $mod+o workspace number $ws4
# === MOVE FOCUSED CONTAINER TO WORKSPACE ===
bindsym $mod+Shift+y move container to workspace number $ws1
bindsym $mod+Shift+u move container to workspace number $ws2
bindsym $mod+Shift+i move container to workspace number $ws3
bindsym $mod+Shift+o move container to workspace number $ws4
# === RELOAD SWAY ===
bindsym $mod+r reload
# === EXIT SWAY ===
bindsym $mod+Escape exec "swaymsg exit"