dotfiles/dotconfig/hypr/hyprland.d/bind.conf
2024-03-15 14:33:04 +00:00

76 lines
3.3 KiB
Text

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
#bind = $mainMod, C, killactive,
bind = $mainMod SHIFT, M, exit,
#bind = $mainMod, D, exec, thunar
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod SHIFT, V, togglesplit, # dwindle
bind = ,help, exec, eww open keyb
# My new bind
bind = $secondMod, W, exec, firefox
bind = $mainMod, RETURN, exec, alacritty
bind = $secondMod, RETURN, exec, alacritty --class floating_basic
bind = $mainMod SHIFT, A, killactive,
bind = $mainMod SHIFT, R, exec, loginctl reboot
bind = $mainMod SHIFT, E, exec, loginctl poweroff
bind = ,XF86MonBrightnessUp , exec, backlight_control +5
bind = ,XF86MonBrightnessDown , exec, backlight_control -5
bind = $mainMod, F, fullscreen, 0
bind = $mainMod SHIFT, F, fullscreen, 1
#screenlock
bind = $secondMod, l, exec, loginctl lock-session
bind = $mainMod SHIFT, t, exec, loginctl lock-session
#screen capture
bind = $secondMod, g, exec, grim -g "$(slurp)"
# Change volume sink
bind = ,XF86AudioLowerVolume, exec, pactl set-sink-volume $(pactl get-default-sink) -5% #alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink -5%
bind = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume $(pactl get-default-sink) +5% #alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink +5%
# Put sink or mic toggle
bind = ,XF86AudioMute, exec, pactl set-sink-mute $(pactl get-default-sink) toggle #alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink toggle
bind = ,XF86AudioMicMute, exec, pactl set-source-mute $(pactl get-default-source) toggle
# Change volume mic
bind = $mainMod, XF86AudioLowerVolume, exec, pactl set-source-volume $(pactl get-default-source) -5%
bind = $mainMod, XF86AudioRaiseVolume, exec, pactl set-source-volume $(pactl get-default-source) +5%
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, ampersand, workspace, 1
bind = $mainMod, eacute, workspace, 2
bind = $mainMod, quotedbl, workspace, 3
bind = $mainMod, apostrophe, workspace, 4
bind = $mainMod, parenleft, workspace, 5
bind = $mainMod, minus, workspace, 6
bind = $mainMod, egrave, workspace, 7
bind = $mainMod, underscore, workspace, 8
bind = $mainMod, ccedilla, workspace, 9
bind = $mainMod, agrave, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, ampersand, movetoworkspace, 1
bind = $mainMod SHIFT, eacute, movetoworkspace, 2
bind = $mainMod SHIFT, quotedbl, movetoworkspace, 3
bind = $mainMod SHIFT, apostrophe, movetoworkspace, 4
bind = $mainMod SHIFT, parenleft, movetoworkspace, 5
bind = $mainMod SHIFT, minus, movetoworkspace, 6
bind = $mainMod SHIFT, egrave, movetoworkspace, 7
bind = $mainMod SHIFT, underscore, movetoworkspace, 8
bind = $mainMod SHIFT, ccedilla, movetoworkspace, 9
bind = $mainMod SHIFT, agrave, movetoworkspace, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Active script to rotate screen when lid fully open.
#bindl = ,switch:Lenovo Yoga Tablet Mode Control switch,exec, rotate_screen
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bind = , XF86Calculator, exec, galculator