-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys.lua
1516 lines (1395 loc) · 30.9 KB
/
keys.lua
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
local awful = require("awful")
local naughty = require("naughty")
local gears = require("gears")
local beautiful = require("beautiful")
local apps = require("apps")
local decorations = require("decorations")
local helpers = require("helpers")
local bling = require("bling")
local keys = {}
-- Mod keys
superkey = "Mod4"
altkey = "Mod1"
ctrlkey = "Control"
shiftkey = "Shift"
-- {{{ Mouse bindings on desktop
keys.desktopbuttons = gears.table.join(
awful.button({}, 1, function()
-- Single tap
awesome.emit_signal("elemental::dismiss")
naughty.destroy_all_notifications()
if mymainmenu then
mymainmenu:hide()
end
if sidebar_hide then
sidebar_hide()
end
-- Double tap
local function double_tap()
uc = awful.client.urgent.get()
-- If there is no urgent client, go back to last tag
if uc == nil then
awful.tag.history.restore()
else
awful.client.urgent.jumpto()
end
end
helpers.single_double_tap(
function()
end,
double_tap
)
end),
-- Right click - Show app drawer
-- awful.button({ }, 3, function () mymainmenu:toggle() end),
-- awful.button({ }, 3, function ()
-- if app_drawer_show then
-- app_drawer_show()
-- end
-- end),
-- Middle button - Toggle dashboard
awful.button({}, 2, function()
if dashboard_show then
dashboard_show()
end
end)
-- Scrolling - Switch tags
-- awful.button({ }, 4, awful.tag.viewprev),
-- awful.button({ }, 5, awful.tag.viewnext),
-- Side buttons - Control volume
-- awful.button({ }, 9, function () helpers.volume_control(5) end),
-- awful.button({ }, 8, function () helpers.volume_control(-5) end)
-- Side buttons - Minimize and restore minimized client
-- awful.button({ }, 8, function()
-- if client.focus ~= nil then
-- client.focus.minimized = true
-- end
-- end),
-- awful.button({ }, 9, function()
-- local c = awful.client.restore()
-- -- Focus restored client
-- if c then
-- client.focus = c
-- end
-- end)
)
-- }}}
-- {{{ Key bindings
keys.globalkeys = gears.table.join(
-- Focus client by direction (hjkl keys)
awful.key(
{superkey},
"j",
function()
awful.client.focus.bydirection("down")
end,
{description = "focus down", group = "client"}
),
awful.key(
{superkey},
"k",
function()
awful.client.focus.bydirection("up")
end,
{description = "focus up", group = "client"}
),
awful.key(
{superkey},
"h",
function()
awful.client.focus.bydirection("left")
end,
{description = "focus left", group = "client"}
),
awful.key(
{superkey},
"l",
function()
awful.client.focus.bydirection("right")
end,
{description = "focus right", group = "client"}
),
-- Focus client by direction (arrow keys)
awful.key(
{superkey},
"Down",
function()
awful.client.focus.bydirection("down")
end,
{description = "focus down", group = "client"}
),
awful.key(
{superkey},
"Up",
function()
awful.client.focus.bydirection("up")
end,
{description = "focus up", group = "client"}
),
awful.key(
{superkey},
"Left",
function()
awful.client.focus.bydirection("left")
end,
{description = "focus left", group = "client"}
),
awful.key(
{superkey},
"Right",
function()
awful.client.focus.bydirection("right")
end,
{description = "focus right", group = "client"}
),
-- Bling keybindings
awful.key(
{altkey},
"t",
function()
bling.module.tabbed.pick()
end,
{
description = "pick a client by clicking to add to tabbing group",
group = "Tabs"
}
),
awful.key(
{altkey},
"Tab",
function()
bling.module.tabbed.iter()
end,
{description = "Iterate through tabbing groups", group = "Tabs"}
),
awful.key(
{altkey},
"w",
function()
bling.module.tabbed.pop()
end,
{
description = "Remove Focused Client from tabbing group",
group = "Tabs"
}
),
-- Window switcher
awful.key(
{superkey},
"Tab",
function()
window_switcher_show(awful.screen.focused())
end,
{description = "activate window switcher", group = "client"}
),
-- Focus client by index (cycle through clients)
awful.key(
{superkey},
"z",
function()
awful.client.focus.byidx(1)
end,
{description = "focus next by index", group = "client"}
),
awful.key(
{superkey, shiftkey},
"z",
function()
awful.client.focus.byidx(-1)
end,
{description = "focus next by index", group = "client"}
),
-- Gaps
awful.key(
{superkey, shiftkey},
"minus",
function()
awful.tag.incgap(5, nil)
end,
{
description = "increment gaps size for the current tag",
group = "gaps"
}
),
awful.key(
{superkey},
"minus",
function()
awful.tag.incgap(-5, nil)
end,
{description = "decrement gap size for the current tag", group = "gaps"}
),
-- Kill all visible clients for the current tag
awful.key(
{superkey, altkey},
"q",
function()
local clients = awful.screen.focused().clients
for _, c in pairs(clients) do
c:kill()
end
end,
{
description = "kill all visible clients for the current tag",
group = "gaps"
}
),
-- Resize focused client or layout factor
awful.key({superkey, ctrlkey}, "Down", function(c)
helpers.resize_dwim(client.focus, "down")
end),
awful.key({superkey, ctrlkey}, "Up", function(c)
helpers.resize_dwim(client.focus, "up")
end),
awful.key({superkey, ctrlkey}, "Left", function(c)
helpers.resize_dwim(client.focus, "left")
end),
awful.key({superkey, ctrlkey}, "Right", function(c)
helpers.resize_dwim(client.focus, "right")
end),
awful.key({superkey, ctrlkey}, "j", function(c)
helpers.resize_dwim(client.focus, "down")
end),
awful.key({superkey, ctrlkey}, "k", function(c)
helpers.resize_dwim(client.focus, "up")
end),
awful.key({superkey, ctrlkey}, "h", function(c)
helpers.resize_dwim(client.focus, "left")
end),
awful.key({superkey, ctrlkey}, "l", function(c)
helpers.resize_dwim(client.focus, "right")
end),
-- No need for these (single screen setup)
--awful.key({ superkey, ctrlkey }, "j", function () awful.screen.focus_relative( 1) end,
--{description = "focus the next screen", group = "screen"}),
--awful.key({ superkey, ctrlkey }, "k", function () awful.screen.focus_relative(-1) end,
--{description = "focus the previous screen", group = "screen"}),
-- Urgent or Undo:
-- Jump to urgent client or (if there is no such client) go back
-- to the last tag
awful.key(
{
superkey,
},
"u",
function()
uc = awful.client.urgent.get()
-- If there is no urgent client, go back to last tag
if uc == nil then
awful.tag.history.restore()
else
awful.client.urgent.jumpto()
end
end,
{description = "jump to urgent client", group = "client"}
),
awful.key(
{
superkey,
},
"x",
function()
awful.tag.history.restore()
end,
{description = "go back", group = "tag"}
),
-- Spawn terminal
awful.key(
{superkey},
"Return",
function()
awful.spawn(user.terminal)
end,
{description = "open a terminal", group = "launcher"}
),
-- Spawn floating terminal
awful.key(
{superkey, shiftkey},
"Return",
function()
awful.spawn(user.floating_terminal, {floating = true})
end,
{description = "spawn floating terminal", group = "launcher"}
),
-- Reload Awesome
awful.key({superkey, shiftkey}, "r", awesome.restart, {
description = "reload awesome",
group = "awesome"
}),
-- Quit Awesome
-- Logout, Shutdown, Restart, Suspend, Lock
awful.key(
{superkey, shiftkey},
"x",
function()
exit_screen_show()
end,
{description = "quit awesome", group = "awesome"}
),
awful.key(
{superkey},
"Escape",
function()
exit_screen_show()
end,
{description = "quit awesome", group = "awesome"}
),
awful.key(
{},
"XF86PowerOff",
function()
exit_screen_show()
end,
{description = "quit awesome", group = "awesome"}
),
-- Number of master clients
awful.key(
{superkey, altkey},
"h",
function()
awful.tag.incnmaster(1, nil, true)
end,
{
description = "increase the number of master clients",
group = "layout"
}
),
awful.key(
{superkey, altkey},
"l",
function()
awful.tag.incnmaster(-1, nil, true)
end,
{
description = "decrease the number of master clients",
group = "layout"
}
),
awful.key(
{superkey, altkey},
"Left",
function()
awful.tag.incnmaster(1, nil, true)
end,
{
description = "increase the number of master clients",
group = "layout"
}
),
awful.key(
{superkey, altkey},
"Right",
function()
awful.tag.incnmaster(-1, nil, true)
end,
{
description = "decrease the number of master clients",
group = "layout"
}
),
-- Number of columns
awful.key(
{superkey, altkey},
"k",
function()
awful.tag.incncol(1, nil, true)
end,
{description = "increase the number of columns", group = "layout"}
),
awful.key(
{superkey, altkey},
"j",
function()
awful.tag.incncol(-1, nil, true)
end,
{description = "decrease the number of columns", group = "layout"}
),
awful.key(
{superkey, altkey},
"Up",
function()
awful.tag.incncol(1, nil, true)
end,
{description = "increase the number of columns", group = "layout"}
),
awful.key(
{superkey, altkey},
"Down",
function()
awful.tag.incncol(-1, nil, true)
end,
{description = "decrease the number of columns", group = "layout"}
),
--awful.key({ superkey, }, "space", function () awful.layout.inc( 1) end,
--{description = "select next", group = "layout"}),
--awful.key({ superkey, shiftkey }, "space", function () awful.layout.inc(-1) end,
--{description = "select previous", group = "layout"}),
awful.key(
{superkey, shiftkey},
"n",
function()
local c = awful.client.restore()
-- Focus restored client
if c then
client.focus = c
end
end,
{description = "restore minimized", group = "client"}
),
-- Prompt
--awful.key({ superkey }, "d", function () awful.screen.focused().mypromptbox:run() end,
--{description = "run prompt", group = "launcher"}),
-- Run program (d for dmenu ;)
awful.key(
{superkey},
"d",
function()
awful.spawn.with_shell("rofi -show drun")
-- awful.spawn.with_shell("rofi_run")
end,
{description = "rofi launcher", group = "launcher"}
),
-- Run
awful.key(
{superkey},
"r",
function()
-- Not all sidebars have a prompt
if sidebar_activate_prompt then
sidebar_activate_prompt("run")
end
end,
{description = "activate sidebar run prompt", group = "awesome"}
),
-- Web search
awful.key(
{superkey},
"g",
function()
-- Not all sidebars have a prompt
if sidebar_activate_prompt then
sidebar_activate_prompt("web_search")
end
end,
{description = "activate sidebar web search prompt", group = "awesome"}
),
-- Dismiss notifications and elements that connect to the dismiss signal
awful.key(
{ctrlkey},
"space",
function()
awesome.emit_signal("elemental::dismiss")
naughty.destroy_all_notifications()
end,
{description = "dismiss notification", group = "notifications"}
),
-- Menubar
--awful.key({ superkey, ctrlkey }, "b", function() menubar.show() end,
--{description = "show the menubar", group = "launcher"}),
-- Brightness
awful.key(
{},
"XF86MonBrightnessDown",
function()
awful.spawn.with_shell("light -U 2")
end,
{description = "decrease brightness", group = "brightness"}
),
awful.key(
{},
"XF86MonBrightnessUp",
function()
awful.spawn.with_shell("light -A 2")
end,
{description = "increase brightness", group = "brightness"}
),
-- Volume Control with volume keys
awful.key(
{},
"XF86AudioMute",
function()
helpers.volume_control(0)
end,
{description = "(un)mute volume", group = "volume"}
),
awful.key(
{},
"XF86AudioLowerVolume",
function()
helpers.volume_control(-2)
end,
{description = "lower volume", group = "volume"}
),
awful.key(
{},
"XF86AudioRaiseVolume",
function()
helpers.volume_control(2)
end,
{description = "raise volume", group = "volume"}
),
-- Volume Control with alt+F1/F2/F3
awful.key(
{altkey},
"F1",
function()
helpers.volume_control(0)
end,
{description = "(un)mute volume", group = "volume"}
),
awful.key(
{altkey},
"F2",
function()
helpers.volume_control(-5)
end,
{description = "lower volume", group = "volume"}
),
awful.key(
{altkey},
"F3",
function()
helpers.volume_control(5)
end,
{description = "raise volume", group = "volume"}
),
-- Screenkey toggle
awful.key({superkey}, "F12", apps.screenkey, {
description = "raise volume",
group = "volume"
}),
-- Microphone (V for voice)
awful.key(
{superkey},
"v",
function()
awful.spawn.with_shell("pactl set-source-mute @DEFAULT_SOURCE@ toggle")
end,
{description = "(un)mute microphone", group = "volume"}
),
-- Microphone overlay
awful.key(
{superkey, shiftkey},
"v",
function()
microphone_overlay_toggle()
end,
{description = "toggle microphone overlay", group = "volume"}
),
-- Screenshots
awful.key(
{},
"Print",
function()
apps.screenshot("full")
end,
{description = "take full screenshot", group = "screenshots"}
),
awful.key(
{superkey, shiftkey},
"c",
function()
apps.screenshot("selection")
end,
{description = "select area to capture", group = "screenshots"}
),
awful.key(
{superkey, ctrlkey},
"c",
function()
apps.screenshot("clipboard")
end,
{
description = "select area to copy to clipboard",
group = "screenshots"
}
),
awful.key(
{superkey},
"Print",
function()
apps.screenshot("browse")
end,
{description = "browse screenshots", group = "screenshots"}
),
awful.key(
{superkey, shiftkey},
"Print",
function()
apps.screenshot("gimp")
end,
{
description = "edit most recent screenshot with gimp",
group = "screenshots"
}
),
-- Toggle tray visibility
awful.key(
{superkey},
"=",
function()
tray_toggle()
end,
{description = "toggle tray visibility", group = "awesome"}
),
-- Media keys
awful.key(
{superkey},
"period",
function()
awful.spawn.with_shell("mpc -q next")
end,
{description = "next song", group = "media"}
),
awful.key(
{superkey},
"comma",
function()
awful.spawn.with_shell("mpc -q prev")
end,
{description = "previous song", group = "media"}
),
awful.key(
{superkey},
"space",
function()
awful.spawn.with_shell("mpc -q toggle")
end,
{description = "toggle pause/play", group = "media"}
),
awful.key(
{superkey, shiftkey},
"period",
function()
awful.spawn.with_shell("mpvc next")
end,
{description = "mpv next song", group = "media"}
),
awful.key(
{superkey, shiftkey},
"comma",
function()
awful.spawn.with_shell("mpvc prev")
end,
{description = "mpv previous song", group = "media"}
),
awful.key(
{superkey, shiftkey},
"space",
function()
awful.spawn.with_shell("mpvc toggle")
end,
{description = "mpv toggle pause/play", group = "media"}
),
awful.key(
{superkey},
"F8",
function()
awful.spawn.with_shell("mpvc quit")
end,
{description = "mpv quit", group = "media"}
),
awful.key(
{superkey},
"F7",
function()
awful.spawn.with_shell("freeze firefox")
end,
{
description = "send STOP signal to all firefox processes",
group = "other"
}
),
awful.key(
{superkey, shiftkey},
"F7",
function()
awful.spawn.with_shell("freeze -u firefox")
end,
{
description = "send CONT signal to all firefox processes",
group = "other"
}
),
awful.key(
{superkey},
"q",
function()
apps.scratchpad()
end,
{description = "scratchpad", group = "launcher"}
),
-- Max layout
-- Single tap: Set max layout
-- Double tap: Also disable floating for ALL visible clients in the tag
awful.key(
{superkey},
"w",
function()
awful.layout.set(awful.layout.suit.max)
helpers.single_double_tap(nil, function()
local clients = awful.screen.focused().clients
for _, c in pairs(clients) do
c.floating = false
end
end)
end,
{description = "set max layout", group = "tag"}
),
-- Tiling
-- Single tap: Set tiled layout
-- Double tap: Also disable floating for ALL visible clients in the tag
awful.key(
{superkey},
"s",
function()
awful.layout.set(awful.layout.suit.tile)
helpers.single_double_tap(nil, function()
local clients = awful.screen.focused().clients
for _, c in pairs(clients) do
c.floating = false
end
end)
end,
{description = "set tiled layout", group = "tag"}
),
-- Set floating layout
awful.key(
{superkey, shiftkey},
"s",
function()
awful.layout.set(awful.layout.suit.floating)
end,
{description = "set floating layout", group = "tag"}
),
-- Dashboard
awful.key(
{superkey},
"F1",
function()
if dashboard_show then
dashboard_show()
end
-- rofi_show()
end,
{description = "dashboard", group = "custom"}
),
-- App drawer
awful.key(
{superkey},
"a",
function()
app_drawer_show()
end,
{description = "App drawer", group = "custom"}
),
-- Pomodoro timer
awful.key(
{superkey},
"slash",
function()
awful.spawn.with_shell("pomodoro")
end,
{description = "pomodoro", group = "launcher"}
),
-- Spawn file manager
awful.key({superkey}, "F2", apps.file_manager, {
description = "file manager",
group = "launcher"
}),
-- Spawn music client
awful.key({superkey}, "F3", apps.music, {
description = "music client",
group = "launcher"
}),
-- Spawn cava in a terminal
awful.key(
{superkey},
"F4",
function()
awful.spawn("visualizer")
end,
{description = "cava", group = "launcher"}
),
-- Spawn ncmpcpp in a terminal, with a special visualizer config
awful.key(
{superkey, shiftkey},
"F4",
function()
awful.spawn(user.terminal .. " -e 'ncmpcpp -c ~/.config/ncmpcpp/config_visualizer -s visualizer'")
end,
{description = "ncmpcpp", group = "launcher"}
),
-- Network dialog: nmapplet rofi frontend
awful.key(
{superkey},
"F11",
function()
awful.spawn("networks-rofi")
end,
{description = "spawn network dialog", group = "launcher"}
),
-- Toggle sidebar
awful.key(
{superkey},
"grave",
function()
sidebar_toggle()
end,
{description = "show or hide sidebar", group = "awesome"}
),
-- Toggle wibar(s)
awful.key(
{superkey},
"b",
function()
wibars_toggle()
end,
{description = "show or hide wibar(s)", group = "awesome"}
),
-- Emacs (O for org mode)
awful.key(
{superkey},
"o",
apps.org,
{description = "emacs", group = "launcher"}
),
-- Markdown input scratchpad (I for input)
-- For quickly typing markdown comments and pasting them in
-- the browser
awful.key({superkey}, "i", apps.markdown_input, {
description = "markdown scratchpad",
group = "launcher"
}),
-- Editor
awful.key(
{superkey},
"e",
apps.editor,
{description = "editor", group = "launcher"}
),
-- Quick edit file
awful.key(
{superkey, shiftkey},
"e",
function()
awful.spawn.with_shell("rofi_edit")
end,
{description = "quick edit file", group = "launcher"}
),
-- Rofi youtube search and playlist selector
awful.key({superkey}, "y", apps.youtube, {
description = "youtube search and play",
group = "launcher"
}),
-- Spawn file manager
awful.key({superkey, shiftkey}, "f", apps.file_manager, {
description = "file manager",
group = "launcher"
}),
-- Process monitor
awful.key({superkey}, "p", apps.process_monitor, {
description = "process monitor",
group = "launcher"
})
)
keys.clientkeys = gears.table.join(
-- Move to edge or swap by direction
awful.key({superkey, shiftkey}, "Down", function(c)
helpers.move_client_dwim(c, "down")
end),
awful.key({superkey, shiftkey}, "Up", function(c)
helpers.move_client_dwim(c, "up")
end),
awful.key({superkey, shiftkey}, "Left", function(c)
helpers.move_client_dwim(c, "left")
end),
awful.key({superkey, shiftkey}, "Right", function(c)
helpers.move_client_dwim(c, "right")
end),
awful.key({superkey, shiftkey}, "j", function(c)
helpers.move_client_dwim(c, "down")
end),
awful.key({superkey, shiftkey}, "k", function(c)
helpers.move_client_dwim(c, "up")
end),
awful.key({superkey, shiftkey}, "h", function(c)
helpers.move_client_dwim(c, "left")
end),
awful.key({superkey, shiftkey}, "l", function(c)
helpers.move_client_dwim(c, "right")
end),
-- Single tap: Center client
-- Double tap: Center client + Floating + Resize
awful.key({superkey, altkey}, "c", function(c)
awful.placement.centered(