-
Notifications
You must be signed in to change notification settings - Fork 0
/
keybinds.conf
executable file
·124 lines (106 loc) · 4.3 KB
/
keybinds.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Please note not all available settings / options are set here.
# For a full list, see the wiki
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Setting variables
$mainMod = SUPER
$scriptsDir = $HOME/.config/hypr/scripts
$hyprDir = $HOME/.config/hypr
$screenshot = $scriptsDir/screenshot.sh
$screenshotAll = $scriptsDir/screenshot_all.sh
$browser = firefox
$terminal = kitty
$menu = $scriptsDir/menu
$lock = $scriptsDir/hyprlock.sh
$hint = $scriptsDir/keyhint
$eww = $scriptsDir/eww_reset
$suspend = $scriptsDir/hyprlock.sh suspend
$floatAll = hyprctl dispatch workspaceopt allfloat
$keyboardLayout = $scriptsDir/dvorak-qwerty.sh
$statusBar = $scriptsDir/eww.sh
# Window manipulation
bind = $mainMod, F, fullscreen
bind = $mainMod, Q, killactive
bind = $mainMod, Space, togglefloating
bind = $mainMod CTRL, Space, exec, $floatAll
# Open Apps
bind = $mainMod, D, exec, $menu
bind = $mainMod, Return, exec, $terminal
bind = $mainMod CTRL, Return, exec, [float] $terminal
bind = $mainMod, O, exec, $terminal $hyprDir/onedrive/onedrive
bind = $mainMod, P, exec, [workspace 5] $terminal btop
# eww bar
bind = $mainMod, B, exec, $statusBar
# wallpapers
bind = $mainMod, W, exec, $hyprDir/hyprpaper/random.sh # change wallpaper for current workspace
bind = $mainMod SHIFT, W, exec, $hyprDir/hyprpaper/reload.sh # reload wallpapers
# Lock/Suspend
bind = $mainMod, Escape, exec, $lock
bind = $mainMod SHIFT, Escape, exec, $suspend
# e = enable repeating the same key
# Resize Window
binde = $mainMod SHIFT, h, resizeactive,-50 0
binde = $mainMod SHIFT, n, resizeactive,50 0
binde = $mainMod SHIFT, c, resizeactive,0 -50
binde = $mainMod SHIFT, t, resizeactive,0 50
# Move Window
bind = $mainMod CTRL, h, movewindow, l
bind = $mainMod CTRL, n, movewindow, r
bind = $mainMod CTRL, c, movewindow, u
bind = $mainMod CTRL, t, movewindow, d
# Move focus to other window
bind = $mainMod, h, movefocus, l
bind = $mainMod, n, movefocus, r
bind = $mainMod, c, movefocus, u
bind = $mainMod, t, movefocus, d
# Special workspace
bind = SUPER CTRL,S,movetoworkspace,special # move selected window to special workspace
bind = SUPER,S,togglespecialworkspace, # toggle special workspace
# 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
bind = $mainMod, TAB, workspace, previous
# Move active window and follow to workspace
bind = $mainMod CTRL, 1, movetoworkspace, 1
bind = $mainMod CTRL, 2, movetoworkspace, 2
bind = $mainMod CTRL, 3, movetoworkspace, 3
bind = $mainMod CTRL, 4, movetoworkspace, 4
bind = $mainMod CTRL, 5, movetoworkspace, 5
bind = $mainMod CTRL, 6, movetoworkspace, 6
bind = $mainMod CTRL, 7, movetoworkspace, 7
bind = $mainMod CTRL, 8, movetoworkspace, 8
bind = $mainMod CTRL, 9, movetoworkspace, 9
bind = $mainMod CTRL, 0, movetoworkspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# bind = $mainMod, period, workspace, e+1
# bind = $mainMod, comma, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Screenshot keybindings
bind = $mainMod SHIFT, S, exec, $screenshot --now # Screenshot current workspace
bind = $mainMod SHIFT, Z, exec, $screenshot --area # Screenshot area
# Screenshot all active workspaces into one image
bind = $mainMod CTRL SHIFT, S, exec, $screenshotAll
# Toggle keyboard layout
bind = $mainMod SHIFT, TAB, exec, $keyboardLayout