-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeybinds.hyprland.conf
100 lines (89 loc) · 3.5 KB
/
keybinds.hyprland.conf
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
###################
### MY PROGRAMS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use
$terminal = wezterm
$fileManager = thunar
$menu = rofi -show drun
$browser = firefox
$editor = neovide
$logout = hypr-logout
$lock = hyprlock
####################
### KEYBINDINGSS ###
####################
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
$comboMod = SUPER SHIFT # Sets "Windows" + "Shift" as combo modifier
$altComboMod = ALT SUPER # Sets "Alt" + "Windows" as combo modifier
$ctrlMod = SUPER CTRL # Sets "Windows" + "Ctrl" as combo modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, X, exec, $terminal
bind = $mainMod, M, exit,
bind = $mainMod, C, exec, $browser
bind = $mainMod, S, exec, signal-desktop --use-tray-icon
bind = $mainMod, F, fullscreen,
bind = $mainMod, B, exec, blueman-manager
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, W, exec,killall -SIGUSR1 waybar
bind = $comboMod, W, exec, pkill waybar && hyprctl dispatch exec waybar
bind = $comboMod, Q, killactive,
bind = $comboMod, F, exec, $fileManager
bind = $comboMod, X, exec, $editor
bind = $comboMod, P, exec, 1Password --show
bind = $comboMod, G, exec, glava
bind = $comboMod, Z, exec, $logout
bind = $comboMod, L, exec, $lock
bind = $altComboMod, X, exec, wezterm-gui
# screencapping with grim/slurp
bind = Ctrl Shift, P, exec, grim ~/Pictures/Screenshots/$(date +'%Y-%m-%d_%H-%M-%S').png
bind = $comboMod, S, exec, grim -g "$(slurp)" - | wl-copy
bind = $altComboMod, P, exec, grim -g "$(slurp)" ~/Pictures/Screenshots/-$(date +'%Y-%m-%d-%H%M%S').png
bind = $ctrlMod, P, exec, grim - | wl-copy
bind = $mainMod, PRINT, exec, hyprshot -m output
bind = $comboMod, PRINT, exec, hyprshot -m window
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, dy
# Swap tiles
bind = $comboMod, left, movewindow, l
bind = $comboMod, right, movewindow, r
bind = $comboMod, up, movewindow, u
bind = $comboMod, down, movewindow, d
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $comboMod, 1, movetoworkspace, 1
bind = $comboMod, 2, movetoworkspace, 2
bind = $comboMod, 3, movetoworkspace, 3
bind = $comboMod, 4, movetoworkspace, 4
bind = $comboMod, 5, movetoworkspace, 5
bind = $comboMod, 6, movetoworkspace, 6
bind = $comboMod, 7, movetoworkspace, 7
bind = $comboMod, 8, movetoworkspace, 8
bind = $comboMod, 9, movetoworkspace, 9
bind = $comboMod, 0, movetoworkspace, 10
# Example special workspace (scratchpad)
#bind = $mainMod, S, togglespecialworkspace, magic
#bind = $comboMod, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow