aboutsummaryrefslogtreecommitdiff
path: root/.config/hypr/user/binds.conf
blob: a337a0e36a508530cf49c4fcb960c8488a0d2958 (plain)
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
# Window Manager keybindings

# Scratchpad
bind = SUPER, semicolon, exec, ~/.scripts/scratchpad && bash ~/.config/hypr/scripts/move-scratchpad.sh
bind = SUPER, X, exec, ~/.scripts/scratchpad && bash ~/.config/hypr/scripts/move-scratchpad.sh
#bind = SUPER, semicolon, exec, ~/.scripts/scratchpad
#bind = SUPER, X, exec, ~/.scripts/scratchpad

# HUD
bind = SUPER, E, exec, ~/.scripts/heads-up-display

# Package manager Terminal
bind = SUPER, Q, exec, ~/.scripts/pac

# Mouse binds
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow
bind = SUPER, mouse_down, workspace, e-1
bind = SUPER, mouse_up, workspace, e+1

# Screenshot binds
bind = , Print, exec,~/.scripts/screenshot_full
bind = ALT, Print, exec,~/.scripts/screenshot

# Application binds
$term=wezterm
bind = SUPER, T, exec, $term -e tmux new-session -A -s term
bind = SUPER, Enter, exec, $term -e tmux new-session -A -s term
bind = SUPER, W, exec, $browser
#bind = SUPER, G, exec, $notepad

# ags
bind = SUPER_SHIFT, R, exec, ags -q; ags; notify-send "ags reloaded"
bind=SUPER, Space,   exec, ags -t launcher
bind=,XF86PowerOff,  exec, ags -t powermenu
bind=SUPER, escape,  exec, ags -t powermenu
bind=SUPER, Tab,     exec, ags -t overview
#bind = SUPER, Space, exec, ags -r "toggleLauncher()"

# Clipboard
bind = SUPER, V, exec, pkill wofi || cliphist list | wofi --dmenu -p clippick -l top_right -x -15 -y 10 -n | cliphist decode | wl-copy


# Hyprland keys
bind=SUPER_SHIFT,Escape,exec,hyprctl reload; notify-send "Config Reloaded"
bind = SUPER, D, killactive,
#bind = SUPER_SHIFT, S, movetoworkspace,special
#bind = SUPER, S, togglespecialworkspace,


# Other dispatchers
bind = ALT, Tab, cyclenext
bind = SUPER, C, cyclenext
bind = SUPER, F, fullscreen
#bind = SUPER, T, exec, hyprctl dispatch centerwindow none
bind = SUPER, M, fullscreen, 1
bind = SUPER_SHIFT, M, fakefullscreen


bind = SUPER, P, pseudo,
bind = SUPER, S, togglefloating,
bind = SUPER_SHIFT, G, togglegroup,
bind = SUPER, tab, changegroupactive,
bind = SUPER_SHIFT, I, togglesplit, # dwindle


# Move window with SUPER + Shift + arrow keys
#      [↑]
# [←] [↓] [→]
bind = SUPER_SHIFT, left, movewindow, l
bind = SUPER_SHIFT, right, movewindow, r
bind = SUPER_SHIFT, up, movewindow, u
bind = SUPER_SHIFT, down, movewindow, d
bind = SUPER_SHIFT, H, movewindow, l
bind = SUPER_SHIFT, L, movewindow, r
bind = SUPER_SHIFT, K, movewindow, u
bind = SUPER_SHIFT, J, movewindow, d

# Move window focus with SUPER + arrow keys
#      [↑]
# [←] [↓] [→]
bind = SUPER, left, movefocus, l
bind = SUPER, right, movefocus, r
bind = SUPER, up, movefocus, u
bind = SUPER, down, movefocus, d
bind = SUPER, H, movefocus, l
bind = SUPER, L, movefocus, r
bind = SUPER, K, movefocus, u
bind = SUPER, J, movefocus, d

# Move To a workspaces
bind = SUPER, 1, workspace, 1
bind = SUPER, 2, workspace, 2
bind = SUPER, 3, workspace, 3
bind = SUPER, 4, workspace, 4
bind = SUPER, 5, workspace, 5
bind = SUPER, 6, workspace, 6
bind = SUPER, 7, workspace, 7
bind = SUPER, 8, workspace, 8
bind = SUPER, 9, workspace, 9

# Move windows between workspaces
bind = SUPER_SHIFT, 1, movetoworkspace, 1
bind = SUPER_SHIFT, 2, movetoworkspace, 2
bind = SUPER_SHIFT, 3, movetoworkspace, 3
bind = SUPER_SHIFT, 4, movetoworkspace, 4
bind = SUPER_SHIFT, 5, movetoworkspace, 5
bind = SUPER_SHIFT, 6, movetoworkspace, 6
bind = SUPER_SHIFT, 7, movetoworkspace, 7
bind = SUPER_SHIFT, 8, movetoworkspace, 8
bind = SUPER_SHIFT, 9, movetoworkspace, 9


# Use this to get thw XF86 bind (FN + Fx combination) for your keyboard
# xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

# Volume Control
#binde = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1%
#binde = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -1%
bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
bind = ALT, down, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
bind = ALT, up, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%

# Media Control
bind = , XF86AudioMedia, exec, playerctl play-pause
bind = , XF86AudioPlay, exec, playerctl play-pause
bind = , XF86AudioStop, exec, playerctl stop
bind = , XF86AudioPrev, exec, playerctl previous
bind = , XF86AudioNext, exec, playerctl next

# Use arrow keys as multimedia keys
bind = ALT_SHIFT, left, exec, playerctl previous
bind = ALT_SHIFT, up, exec, playerctl play-pause
bind = ALT_SHIFT, right, exec, playerctl next

# Brightness Control
binde = , XF86MonBrightnessUp, exec, light -A 1
binde = , XF86MonBrightnessDown, exec, light -U 1

bind = ALT, left, exec, brightnessctl set 10%- # Screen brightness down FN+F7
bind = ALT, right, exec, brightnessctl set 10%+ # Screen brightness up FN+F8

# Screensaver key
bind = , XF86ScreenSaver, exec,~/.scripts/lock

bind = SUPER_SHIFT, Y, exec, spotify
bind = SUPER_SHIFT, D, exec, discord
bind = SUPER , W, exec, firefox
bind = SUPER_SHIFT, B, exec, rofi-rbw

# Others
#bind = , XF86Mail, exec,$gmail
#bind = , XF86HomePage, exec, $explorer ~/
#bind = , XF86Calculator, exec, qalculate-gtk
#bind = , XF86Search, exec, wofi

$mainMod = SUPER
bind = $mainMod, tilde, exec, ~/.scripts/translate.sh
bind = $mainMod CONTROL, k, exec, ~/.scripts/killmenu



# trigger when the switch is turning on
# bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor ", 1920x1080@60, auto, 1"
# trigger when the switch is turning off
bindl = , switch:off:Lid Switch, exec, playerctl --all-players stop; ~/.scripts/lock; systemctl suspend