-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeybinds.conf
More file actions
executable file
·199 lines (158 loc) · 6.07 KB
/
keybinds.conf
File metadata and controls
executable file
·199 lines (158 loc) · 6.07 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
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
196
197
198
199
# Author: Arszilla
# Github: https://github.com/Arszilla
# Gitlab: https://gitlab.com/Arszilla
# Twitter: https://twitter.com/Arszilla
#
# License: MIT License
# License URL: https://gitlab.com/Arszilla/i3-dotfiles/-/blob/main/LICENSE
#
# i3 config
# i3 Version: 4.22
# This file contains keybinds and functions for i3:
## Set the "mod" key to Windows key:
set $mod Mod4
# Allow floating windows to be moved via "mod" key + LMB
floating_modifier Mod4
tiling_drag Modifier
## Change the focus via 'jkl;';
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
## Change the focus via arrow keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
## Move the focused window via 'jkl;';
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
## Move the focused window via arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## Change the borders:
bindsym $mod+u border none
bindsym $mod+y border pixel 2
bindsym $mod+n border normal
## Modify the orientation for the next container:
bindsym $mod+h split h; exec /usr/bin/dunstify -a i3 'Tiling horizontally'
bindsym $mod+v split v; exec /usr/bin/dunstify -a i3 'Tiling vertically'
bindsym $mod+q split toggle
## Change the container's layout:
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
## Toggle whether the focused container is tiling or floating:
bindsym $mod+Shift+space floating toggle
## Change focus between tiling and floating windows:
bindsym $mod+space focus mode_toggle
## Toggle fullscreen mode for the focused container:
bindsym $mod+f fullscreen toggle
## Toggle sticky container:
## Note: the window has to be floating for it to be "stickied".
bindsym $mod+Shift+s sticky toggle
## Focus at the parent container:
bindsym $mod+a focus parent
## Kill the focused container:
bindsym $mod+Shift+q kill
bindsym Mod1+F4 kill
## Reload the configuration file:
bindsym $mod+Shift+c reload
## Restart i3 in-place:
bindsym $mod+Shift+r restart
## Switch to workspace:
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
## Set the workspace names:
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
## Move the focused window to workspace:
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
## Navigate between workspaces:
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
## Move the focused containers between screens (if you have more than one):
bindsym $mod+o move workspace to output left
bindsym $mod+p move workspace to output right
## Application keybinds
### Firefox
bindsym $mod+F1 exec /usr/bin/firefox
### Thunar
bindsym $mod+F2 exec /usr/bin/thunar
### ranger
bindsym $mod+F3 exec /usr/bin/kitty -e 'ranger'
### Terminal
bindsym $mod+Return exec kitty
### rofi
#bindsym $mod+d exec /usr/bin/rofi -show drun -theme ~/.config/rofi/colors/launcher.rasi
bindsym $mod+d exec /usr/bin/rofi -show drun -theme ~/.config/rofi/launchers/type-1/style-1.rasi
### Screenshotting
bindsym Print --release exec ~/.local/bin/takeFlameshot fullscreen
bindsym $mod+Print --release exec ~/.local/bin/takeFlameshot gui
bindsym Ctrl+Print --release exec ~/.local/bin/takeFlameshot clipboardFullscreen
bindsym $mod+Ctrl+Print --release exec ~/.local/bin/takeFlameshot clipboardGui
## Functions
### Resize container:
bindsym $mod+r mode "resize"
mode "resize" {
# Resize using 'jkl;';
bindsym j resize shrink width 5 px or 5 ppt
bindsym k resize grow height 5 px or 5 ppt
bindsym l resize shrink height 5 px or 5 ppt
bindsym semicolon resize grow width 5 px or 5 ppt
# Resize using arrow keys:
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# Exit resize mode:
bindsym Return mode "default"
bindsym Escape mode "default"
}
### Display the system menu:
bindsym $mod+0 exec ~/.config/rofi/powermenu/type-1/powermenu.sh
#bindsym $mod+0 exec ~/.config/rofi/powermenu/type-2/powermenu.sh
### Toggle gaps on or off:
set $mode_gaps_toggle Toggle gaps: (1) On (2) Off
bindsym $mod+Shift+g mode "$mode_gaps_toggle"
mode "$mode_gaps_toggle" {
# Set the gaps to 10px (from 1px):
bindsym 1 mode "default", exec /usr/bin/sed -i -e 's/\bgaps inner 1\b/gaps inner 10/g' -e 's/\bgaps outer 1\b/gaps outer 10/g' -e 's/\bgaps top 55\b/gaps top 45/g' ~/.config/i3/config.d/gaps.conf; restart
# Set the gaps to 1px (from 10px):
bindsym 2 mode "default", exec /usr/bin/sed -i -e 's/\bgaps inner 10\b/gaps inner 1/g' -e 's/\bgaps outer 10\b/gaps outer 1/g' -e 's/\bgaps top 45\b/gaps top 55/g' ~/.config/i3/config.d/gaps.conf; restart
bindsym Return mode "default"
bindsym Escape mode "default"
}
#teclas para ajustar brilho
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
# Controle de Volume
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q sset Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q sset Master 5%-
bindsym XF86AudioMute exec --no-startup-id amixer -q sset Master toggle