♻️ refactor: move hyprland config files to hypr
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
################
|
||||
### BINDINGS ###
|
||||
################
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Keywords and https://wiki.hyprland.org/Configuring/Binds for information on how to configure input
|
||||
|
||||
$terminal = kitty
|
||||
$fileManager = nautilus
|
||||
$menu = anyrun
|
||||
$dmenu = anyrun --plugins libstdin.so
|
||||
$mainMod = SUPER
|
||||
$lockscreen = hyprlock
|
||||
$screenshotDir = $HOME/Screenshots
|
||||
$screenshotFull = hyprshot -m output -o $screenshotDir
|
||||
$screenshotSelect = hyprshot -m region -o $screenshotDir
|
||||
|
||||
|
||||
input {
|
||||
kb_layout = br
|
||||
kb_variant = abnt2
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = true
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
gestures {
|
||||
workspace_swipe = true
|
||||
}
|
||||
|
||||
# Main binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, K, exec, $terminal
|
||||
bind = $mainMod, Q, killactive
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
bind = $mainMod, F, togglefloating
|
||||
bind = $mainMod, SPACE, exec, $menu
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, J, togglesplit
|
||||
bind = $mainMod, F11, fullscreen
|
||||
bind = $mainMod, N, exec, swaync-client -t
|
||||
bind = $mainMod, L, exec, $lockscreen
|
||||
bind = $mainMod, C, centerwindow
|
||||
|
||||
# Media keys
|
||||
bind = , code:121, exec, pamixer --mute # Mute
|
||||
bind = , code:122, exec, pamixer -d 5 # Decrease volume
|
||||
bind = , code:123, exec, pamixer -i 5 # Increase volume
|
||||
bind = , code:173, exec, playerctl previous # Previous media
|
||||
bind = , code:172, exec, playerctl play-pause # Toggle Play/Pause media
|
||||
bind = , code:171, exec, playerctl next # Next media
|
||||
bind = , code:232, exec, brightnessctl s 5%- # Lower monitor brightness
|
||||
bind = , code:233, exec, brightnessctl s +5% # Increase monitor brightness
|
||||
|
||||
# Screenshot
|
||||
bind = , Print, exec, $screenshotSelect
|
||||
bind = $mainMod, Print, exec, $screenshotFull
|
||||
|
||||
# Open wofi clipboard
|
||||
bind = $mainMod, V, exec, cliphist list | $dmenu | cliphist decode | wl-copy
|
||||
|
||||
# Open wallpaper menu
|
||||
bind = $mainMod, W, exec, /usr/bin/env bash $HOME/.config/hypr/scripts/change-wallpaper.sh
|
||||
|
||||
# Reloading Components
|
||||
# Waybar
|
||||
bind = $mainMod, F7, exec, pkill waybar && waybar
|
||||
# Hyprpaper (Wallpaper)
|
||||
bind = $mainMod, F8, exec, pkill hyprpaper && hyprpaper
|
||||
|
||||
# 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, d
|
||||
|
||||
# Move windows with arrowkeys
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
|
||||
# Resize windows with arrowkeys
|
||||
bind = $mainMod ALT, left, resizeactive, -60 0
|
||||
bind = $mainMod ALT, right, resizeactive, 60 0
|
||||
bind = $mainMod ALT, up, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, down, resizeactive, 0 60
|
||||
|
||||
# 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 = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, 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
|
||||
Reference in New Issue
Block a user