104 lines
4.2 KiB
Plaintext
104 lines
4.2 KiB
Plaintext
# Dispatchers https://wiki.hyprland.org/Configuring/Dispatchers/
|
|
|
|
# Applications
|
|
bind = $mainMod, RETURN, exec, $terminal
|
|
bind = $mainMod, code:51, exec, $browser
|
|
bind = $mainMod, code:48, exec, $fileManager
|
|
bind = $mainMod, V, exec, copyq show
|
|
bindr= $mainMod, SUPER_L, exec, if pgrep -x $menu; then kill $(pgrep -x $menu); else $menu -show drun; fi
|
|
bind = ,code:107, exec, grim -g "$(slurp)" - | swappy -f -
|
|
bind = $mainMod, code:107, exec, grim -o $(hyprctl activeworkspace -j | jq ".monitor" | tr -d "\"") - | swappy -f -
|
|
bind = $subMod, code:107, exec, $kill-on-unfocus normcap
|
|
bind = $focusMod, code:107, exec, dunstify -a System -r 1000 -t 5000 -i "$HOME/.config/assets/arch-maron.png" "Hyprpicker" "Color: $(hyprpicker -a -r)"
|
|
bind = $mainMod, O, exec, $HOME/.local/share/until-scripts/open_uri.sh
|
|
|
|
# Media Buttons
|
|
bind = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 1%-
|
|
bind = ,XF86AudioLowerVolume, exec, dunstify -a System -r 1000 -t 2000 -i $HOME/.config/assets/volume-down.png -h int:value:$(echo "100 * $(wpctl get-volume @DEFAULT_SINK@ | tr -d "Volume: ")" | bc) Volume
|
|
|
|
bind = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 1%+
|
|
bind = ,XF86AudioRaiseVolume, exec, dunstify -a System -r 1000 -t 2000 -i $HOME/.config/assets/volume-up.png -h int:value:$(echo "100 * $(wpctl get-volume @DEFAULT_SINK@ | tr -d "Volume: ")" | bc) Volume
|
|
|
|
bindl=, XF86AudioPlay, exec, playerctl play-pause
|
|
bindl=, XF86AudioPlay, exec, sleep 0.1; if [ "$(playerctl status)" = "Playing" ]; then dunstify -a System -r 1000 -t 2000 -i "$HOME/.config/assets/play.png" "Player" "resumed playback"; else dunstify -a System -r 1000 -t 2000 -i "$HOME/.config/assets/pause.png" "Player" "paused playback"; fi
|
|
|
|
bindl=, XF86AudioNext, exec, playerctl next
|
|
bindl=, XF86AudioPrev, exec, playerctl previous
|
|
|
|
# System ctl
|
|
bind =, XF86PowerOff, exec, bash ~/.local/share/until-scripts/sleep.sh hibernate
|
|
|
|
# Window management
|
|
bind = $mainMod, Q, killactive,
|
|
bind = $mainMod, W, fullscreen, 1
|
|
bind = $mainMod, T, fullscreen, 0
|
|
bind = $mainMod, M, forcerendererreload,
|
|
bind = $mainMod, F, togglefloating,
|
|
|
|
bind = $mainMod, R, togglespecialworkspace, scratchpad
|
|
bind = $mainMod, X, togglespecialworkspace, scratchpad2
|
|
bind = $mainMod, code:21, togglespecialworkspace, dump
|
|
|
|
bind = $resizeMod, e, layoutmsg, orientationnext
|
|
bind = $resizeMod, q, layoutmsg, orientationprev
|
|
|
|
# Change Focus
|
|
bind = $focusMod, a, movefocus, l
|
|
bind = $focusMod, d, movefocus, r
|
|
bind = $focusMod, w, movefocus, u
|
|
bind = $focusMod, s, movefocus, d
|
|
|
|
# Resize Window
|
|
binde = $resizeMod, a, resizeactive,-30 0
|
|
binde = $resizeMod, d, resizeactive, 30 0
|
|
binde = $resizeMod, s, resizeactive, 0 30
|
|
binde = $resizeMod, w, resizeactive, 0 -30
|
|
|
|
# Move Window
|
|
bind = $moveMod, a, movewindow, l
|
|
bind = $moveMod, d, movewindow, r
|
|
bind = $moveMod, s, movewindow, d
|
|
bind = $moveMod, w, movewindow, u
|
|
|
|
bind = $mainMod, code:112, movewindow, mon:DP-2
|
|
bind = $mainMod, code:117, movewindow, mon:DP-3
|
|
|
|
bind = $mainMod, E, exec, $special-workspace-movment scratchpad
|
|
bind = $mainMod, Y, exec, $special-workspace-movment scratchpad2
|
|
bind = $mainMod, code:20, exec, $special-workspace-movment dump
|
|
|
|
# Switch workspaces with mainMod
|
|
bind = $mainMod, code:113, exec, $workspace-switcher 1
|
|
bind = $mainMod, code:114, exec, $workspace-switcher 2
|
|
bind = $mainMod, code:111, exec, $workspace-switcher 3
|
|
bind = $mainMod, code:116, exec, $workspace-switcher 4
|
|
|
|
# Workspaces, carry window
|
|
bind = $mainMod SHIFT, code:113, exec, $workspace-switcher 1 carry
|
|
bind = $mainMod SHIFT, code:114, exec, $workspace-switcher 2 carry
|
|
bind = $mainMod SHIFT, code:111, exec, $workspace-switcher 3 carry
|
|
bind = $mainMod SHIFT, code:116, exec, $workspace-switcher 4 carry
|
|
|
|
# Workspace management
|
|
bind = $mainMod, c, swapactiveworkspaces, DP-2 DP-3
|
|
|
|
# Mousebinds
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
# Submaps
|
|
bind = $mainMod, g, submap, gaming
|
|
|
|
bind = $subMod, code:112, movecursor, 1720 720
|
|
bind = $subMod, code:117, movecursor, -2560 720
|
|
#bind = $mainMod, code:65, hyprexpo:expo, toggle
|
|
|
|
submap=gaming
|
|
bind = $mainMod, T, fullscreen, 0
|
|
bind = $mainMod, R, togglespecialworkspace, scratchpad
|
|
bind = $mainMod, g, submap,reset
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
bind = $mainMod, code:51, exec, $browser
|
|
submap=reset
|