-
Notifications
You must be signed in to change notification settings - Fork 0
/
keybinds.conf
executable file
·150 lines (123 loc) · 4.81 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
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
# --------------------------------
# General
# --------------------------------
# Quit hyprland
bind=SUPERSHIFT,Q,exit
bind=SUPER,Q,killactive,
bind=SUPER,Tab,cyclenext
bind=SUPER,R,exec,hyprctl reload && notify-send -t 1000 "Reloaded Hyprland config"
bind=SUPER,SPACE,exec,rofi -show drun -modes drun -theme ~/.config/rofi/dracula2.rasi
bind=SUPERSHIFT,SPACE,exec,alacritty -e /home/josh/bin/tmux-sessionizer.sh
bind=SUPER,Return,exec,alacritty
bind=SUPER,t,exec,thunar
bind=SUPER,p,exec,bash ~/.config/rofi/powermenu.sh
# Bind lock key to powermenu.
#bind=SUPER,n,exec,bash ~/.config/wofi/network/network.sh
#ind=SUPER,b,exec,swaybg -i ~/.config/hypr/background
#bind=SUPER,d,exec,bash ~/.config/eww/scripts/launch_dashboard
bind=SUPERSHIFT,backslash,exec,1password --quick-access
# Rename workspace
#bind=SUPER,comma,workspace-rename
# --------------------------------
# Navigate Workspaces
# --------------------------------
# Switch to a new empty workspace
bind=SUPER,n,workspace,empty
bind=SUPER,comma,exec,~/.config/hypr/scripts/rename-workspace.sh
# change workspace
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,s,workspace,name:music
bind=SUPER,0,workspace,name:term
# Mail workspace
# Pressing SUPER+m will open mutt in a terminal window on the mail workspace
#bind=SUPER,m,workspace,name:mail
bind=SUPER,m,exec,mutt.sh
# Move workspace to a different monitor
bind=SUPERSHIFT,comma,movecurrentworkspacetomonitor,l
bind=SUPERSHIFT,period,movecurrentworkspacetomonitor,r
bind=SUPERSHIFT,up,movecurrentworkspacetomonitor,u
bind=SUPERSHIFT,down,movecurrentworkspacetomonitor,d
#
# --------------------------------
# Windows and Layouts
# --------------------------------
# toggle float on active window
bind=SUPER,f,togglefloating
# toggle fullscreen
bind=SUPER,code:51,fullscreen,0 # Super + \
# move window to given workspace
bind=ALT,1,movetoworkspace,1
bind=ALT,2,movetoworkspace,2
bind=ALT,3,movetoworkspace,3
bind=ALT,4,movetoworkspace,4
bind=ALT,5,movetoworkspace,5
bind=ALT,6,movetoworkspace,6
bind=ALT,7,movetoworkspace,7
bind=ALT,8,movetoworkspace,8
bind=ALT,s,movetoworkspace,name:music
bind=ALT,m,movetoworkspace,name:mail
bind=ALT,0,movetoworkspace,name:term
# resizing
binde=SUPERSHIFT,h,resizeactive,-20 0
binde=SUPERSHIFT,j,resizeactive,0 20
binde=SUPERSHIFT,k,resizeactive,0 -20
binde=SUPERSHIFT,l,resizeactive,20 0
# Focus to the left.
bind=SUPER,h,movefocus,l
bind=SUPER,l,movefocus,r
bind=SUPER,j,movefocus,d
bind=SUPER,k,movefocus,u
# swap windows
bind=SUPER_ALT,h,movewindow,l
bind=SUPER_ALT,l,movewindow,r
bind=SUPER_ALT,j,movewindow,d
bind=SUPER_ALT,k,movewindow,u
# ## resize submap ####
# will switch to a submap called resize
bind=ALT,R,submap,resize
# will start a submap called "resize"
submap=resize
# sets repeatable binds for resizing the active window
binde=,l,resizeactive,10 0
binde=,h,resizeactive,-10 0
binde=,k,resizeactive,0 -10
binde=,j,resizeactive,0 10
# use reset to go back to the global submap
bind=,escape,submap,reset
# will reset the submap, meaning end the current one and return to the global one
submap=reset
# ### end resize submap ####
# move and resize with SUPER and mouse
bindm=SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow
# screenshot
# bind=SUPERSHIFT,4,exec, grim -g "$(slurp)" "$(xdg-user-dir PICTURES)/$(date).png"
bind=SUPERSHIFT ctrl,4,exec,grim -g "$(slurp)" - | wl-copy && notify-send -t 1500 "Screenshot copied to clipboard"
bind=SUPERSHIFT,4,exec,grim -g "$(slurp)" "$(xdg-user-dir PICTURES)/$(date).png" && notify-send -t 1500 "Screenshot saved to $(xdg-user-dir PICTURES)/$(date).png"
bind=SUPERSHIFT,3,exec, grim "$(xdg-user-dir PICTURES)/$(date).png"
# --------------------------------
# Media Keys
# --------------------------------
# Volume
binde=,XF86AudioLowerVolume,exec,$HOME/.local/bin/set-volume.sh --down
binde=,XF86AudioRaiseVolume,exec,$HOME/.local/bin/set-volume.sh --up
bind=,XF86AudioMute,exec,$HOME/.local/bin/set-volume.sh --mute
bind=,XF86AudioMicMute,exec,pactl set-source-mute @DEFAULT_SOURCE@ toggle && notify-send -t 1000 "Mic: $(pactl list sources | grep '^[[:space:]]Volume:' | head -n $(( $SOURCE + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')%"
# Playerctl
bind=,XF86AudioPlay,exec,playerctl play-pause && notify-send -t 1000 "Playing: $(playerctl metadata title)"
bind=,XF86AudioNext,exec,playerctl next && notify-send -t 1000 "Playing: $(playerctl metadata title)"
bind=,XF86AudioPrev,exec,playerctl previous && notify-send -t 1000 "Playing: $(playerctl metadata title)"
# SUPER+pgup
bind=SUPER,117,exec,playerctl next
# SUPER+pgdn
bind=SUPER,112,exec,playerctl previous
# Brightness
binde=,XF86MonBrightnessDown,exec,brightnessctl set 10%-
binde=,XF86MonBrightnessUp,exec,brightnessctl set 10%+