-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys
183 lines (135 loc) · 5.37 KB
/
keys
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
# Fluxbox Keybinds #
# by jatardine #
# (c) 2024 #
# #
# see manpage for fluxbox-keys for more #
!-------------------------!
! Mod1: Alt key !
! Mod4: Super/Windows key !
!-------------------------!
################################################################################
!________!
! Window !
!________!
# basics (close window, kill window, min & max window, fullscreen)
Mod4 Q :Close
Mod4 Escape :Kill
Mod4 F9 :Minimize
Mod4 F10 :Maximize
Mod4 F11 :Fullscreen
# open window menu
Mod4 space :WindowMenu
# change to previous/next workspace
Control Mod4 Left :PrevWorkspace
Control Mod4 Right :NextWorkspace
# send current window to previous/next workspace (no thanks, this is messing with my file manager navigation)
# Mod1 Left :SendToPrevWorkspace
# Mod1 Right :SendToNextWorkspace
# send current window and switch to sent workspace
Control Mod1 Left :TakeToPrevWorkspace
Control Mod1 Right :TakeToNextWorkspace
################################################################################
!_________!
! Tabbing !
!_________!
# cycle through tabs in current window
Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab
################################################################################
!____________!
! Workspaces !
!____________!
# switch to a specific workspace
Control 1 :Workspace 1
Control 2 :Workspace 2
Control 3 :Workspace 3
Control 4 :Workspace 4
# send the current window to a specific workspace
Mod4 1 :SendToWorkspace 1
Mod4 2 :SendToWorkspace 2
Mod4 3 :SendToWorkspace 3
Mod4 4 :SendToWorkspace 4
# send the current window and switch to sent workspace
Control Mod4 1 :TakeToWorkspace 1
Control Mod4 2 :TakeToWorkspace 2
Control Mod4 3 :TakeToWorkspace 3
Control Mod4 4 :TakeToWorkspace 4
################################################################################
!__________!
! Programs !
!__________!
! Some shortcuts to specific programs. Naturally, they won't work if !
! you don't have those installed. !
# open Terminal Emulator (Alacritty)
Mod4 t :Exec alacritty
# open fbrun
Mod4 r :Exec fbrun
# open File Manager (PCManFM)
Mod4 f :Exec pcmanfm
################################################################################
!____________!
! Screenshot !
!____________!
! This config assumes that you've got scrot and viewnior installed. !
# take a screenshot of the entire screen
Print a :Exec scrot 'Screenshot_%Y-%m-%d-%I-%M-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
# take a screenshot of a selected area
Print s :Exec scrot -s 'Screenshot_%Y-%m-%d-%I-%M-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
# take a screenshot of active window
Print w :Exec scrot -u 'Screenshot_%Y-%m-%d-%I-%M-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
################################################################################
!_______!
! Audio !
!_______!
! Those keys are dependent on your XF86 key configurations. This !
! keybind config assumes you DON'T have xkeybinds installed or !
! configured globally but still want Fluxbox to handle it the XFree86 !
! way. !
! Alternatively, you can use keycodes but they may be tied to your !
! specific keyboard and thus make portability harder. !
# volume settings
XF86AudioRaiseVolume :Exec pactl set-sink-volume @DEFAULT_SINK@ +5%
XF86AudioLowerVolume :Exec pactl set-sink-volume @DEFAULT_SINK@ -5%
XF86AudioMute :Exec pactl set-sink-mute 0 toggle
#################################################################################
!_______!
! Mouse !
!_______!
!--------------------!
! Mouse1: Left !
! Mouse2: Middle !
! Mouse3: Right !
! Mouse4: Wheel Up !
! Mouse5: Wheel Down !
!--------------------!
! Due to Fluxbox by default assuming a classic Desktop environment !
! with mouse usage, Mouse4 and Mouse5 are NOT used for this config !
! and due to this laptop's lack of a middle button, Mouse2 remains !
! unused, as well. !
# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
# OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu
# scroll on the desktop to change workspaces
# OnDesktop Mouse4 :PrewWorkspace
# OnDesktop Mouse5 :NextWorkspace
# scroll on the toolbar to change current window
# OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no)
# OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no)
# move window (from default; prevents resizing of window and in PCManFM
# access to files so idk why this is a non-issue in the original config
# OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
# OnWindow Move1 :StartMoving
# resize window
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
OnLeftGrip Move1 :StartResizing bottomleft
OnRightGrip Move1 :StartResizing bottomright
# tab windows
OnTitlebar Control Mouse1 :StartTabbing
# move window by grabbing its titlebar
# OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
OnTitlebar Move1 :StartMoving
# access window menu
OnTitlebar Mouse3 :WindowMenu
#################################################################################
# EOF #