forked from Shinonome/dots-hyprland
200 lines
9.5 KiB
Plaintext
200 lines
9.5 KiB
Plaintext
#################### It just works™ keybinds ###################
|
|
# Volume
|
|
bindl = ,XF86AudioMute, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%
|
|
bindl = Super+Shift,M, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%
|
|
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
|
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
|
|
# Brightness
|
|
#bindle=, XF86MonBrightnessUp, exec, brightnessctl set '12.75+'
|
|
#bindle=, XF86MonBrightnessDown, exec, brightnessctl set '12.75-'
|
|
bindle=, XF86MonBrightnessUp, exec, ags run-js 'brightness.screen_value += 0.05;'
|
|
bindle=, XF86MonBrightnessDown, exec, ags run-js 'brightness.screen_value -= 0.05;'
|
|
|
|
#################################### Applications ###################################
|
|
# Apps: just normal apps
|
|
bind = Super, C, exec, code --password-store=gnome --enable-features=UseOzonePlatform --ozone-platform=wayland
|
|
bind = Super, T, exec, foot --override shell=fish
|
|
#bind = Super, Return, exec, foot --override shell=fish
|
|
bind = Super, E, exec, nautilus --new-window
|
|
bind = SuperAlt, E, exec, thunar
|
|
bind = Super, W, exec, firefox
|
|
bind = Control+Super, W, exec, thorium-browser --ignore-gpu-blocklist --ozone-platform-hint=wayland --gtk-version=4 --ignore-gpu-blocklist --enable-features=TouchpadOverscrollHistoryNavigation
|
|
bind = Control+Super+Alt, E, exec, /usr/bin/microsoft-edge-stable --password-store=gnome --ozone-platform-hint=wayland --gtk-version=4 --ignore-gpu-blocklist --enable-features=TouchpadOverscrollHistoryNavigation
|
|
bind = Super, X, exec, gnome-text-editor --new-window
|
|
bind = Super+Shift, W, exec, wps
|
|
|
|
# Apps: Settings and config
|
|
bind = Super, I, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center
|
|
bind = Control+Super, V, exec, pavucontrol
|
|
bind = Control+Shift, Escape, exec, gnome-system-monitor
|
|
|
|
# Actions
|
|
bind = Super, Period, exec, pkill fuzzel || ~/.local/bin/fuzzel-emoji
|
|
bind = Super, Q, killactive,
|
|
bind = Super+Alt, Space, togglefloating,
|
|
bind = Shift+Super+Alt, Q, exec, hyprctl kill
|
|
bind = Control+Shift+Alt, Delete, exec, pkill wlogout || wlogout -p layer-shell
|
|
bind = Control+Shift+Alt+Super, Delete, exec, systemctl poweroff
|
|
|
|
# Screenshot, Record, OCR, Color picker, Clipboard history
|
|
bind = Super+Shift+Alt, S, exec, grim -g $SLURP_COMMAND - | swappy -f -
|
|
bindl=,Print,exec,grim - | wl-copy
|
|
bind = Super+Shift, S, exec, grim -g $SLURP_COMMAND - | wl-copy
|
|
bind = Super+Alt, R, exec, ~/.config/ags/scripts/record-script.sh
|
|
bind = Control+Alt, R, exec, ~/.config/ags/scripts/record-script.sh --fullscreen
|
|
bind = Super+Shift+Alt, R, exec, ~/.config/ags/scripts/record-script.sh --fullscreen-sound
|
|
bind = Super+Shift, C, exec, hyprpicker -a
|
|
bind = Super, V, exec, pkill fuzzel || cliphist list | fuzzel --no-fuzzy --dmenu | cliphist decode | wl-copy
|
|
|
|
# Text-to-image
|
|
# Normal
|
|
bind = Control+Super+Shift,S,exec,grim -g $SLURP_COMMAND "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png"
|
|
# English
|
|
bind = Super+Shift,T,exec,grim -g $SLURP_COMMAND "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png"
|
|
# Japanese
|
|
bind = Super+Shift,J,exec,grim -g $SLURP_COMMAND "tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm "tmp.png"
|
|
|
|
# Media
|
|
bindl= Super+Shift, N, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"`
|
|
bindl= ,XF86AudioNext, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"`
|
|
bindl= Super+Shift, B, exec, playerctl previous
|
|
bindl= Super+Shift, P, exec, playerctl play-pause
|
|
bindl= ,XF86AudioPlay, exec, playerctl play-pause
|
|
|
|
#Lock screen | blur: --effect-blur=20x202
|
|
bind = Super, L, exec, swaylock
|
|
bind = Super+Shift, L, exec, swaylock
|
|
bindl = Super+Shift, L, exec, sleep 0.1 && systemctl suspend
|
|
|
|
# App launcher
|
|
bind = Control+Super, Slash, exec, pkill anyrun || anyrun
|
|
|
|
###################################### AGS keybinds #####################################
|
|
bindr = Control+Super, R, exec, killall ags ydotool; ags &
|
|
bindr = Control+Super+Alt, R, exec, hyprctl reload; killall ags ydotool; ags &
|
|
bind = Control+Super, T, exec, ~/.config/ags/scripts/color_generation/switchwall.sh
|
|
bindir = Super, Super_L, exec, ags -t 'overview'
|
|
bind = Super, Tab, exec, ags -t 'overview'
|
|
bind = Super, Slash, exec, ags -t 'cheatsheet'
|
|
bind = Super, B, exec, ags -t 'sideleft'
|
|
bind = Super, A, exec, ags -t 'sideleft'
|
|
bind = Super, O, exec, ags -t 'sideleft'
|
|
bind = Super, N, exec, ags -t 'sideright'
|
|
bind = Super, M, exec, ags run-js 'openMusicControls.value = (!Mpris.getPlayer() ? false : !openMusicControls.value);'
|
|
bind = Super, Comma, exec, ags run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
|
|
bind = Super, K, exec, ags -t 'osk'
|
|
bind = Control+Alt, Delete, exec, ags -t 'session'
|
|
bindle = , XF86AudioRaiseVolume, exec, ags run-js 'indicator.popup(1);'
|
|
bindle = , XF86AudioLowerVolume, exec, ags run-js 'indicator.popup(1);'
|
|
bindl = , XF86AudioMute, exec, ags run-js 'indicator.popup(1);'
|
|
bindl = Super+Shift,M, exec, ags run-js 'indicator.popup(1);'
|
|
bindle = , XF86MonBrightnessUp, exec, ags run-js 'indicator.popup(1);'
|
|
bindle = , XF86MonBrightnessDown, exec, ags run-js 'indicator.popup(1);'
|
|
|
|
###################################### Plugins #########################################
|
|
bind = Control+Super, P, exec, hyprctl plugin load "~/.config/hypr/plugins/droidbars.so"
|
|
bind = Control+Super, O, exec, hyprctl plugin unload "~/.config/hypr/plugins/droidbars.so"
|
|
|
|
## Testing
|
|
# bind = SuperAlt, f12, exec, notify-send "Hyprland version: $(hyprctl version | head -2 | tail -1 | cut -f2 -d ' ')" "owo" -a 'Hyprland keybind'
|
|
# bind = Super+Alt, f12, exec, notify-send "Millis since epoch" "$(date +%s%N | cut -b1-13)" -a 'Hyprland keybind'
|
|
bind = Super+Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'Shell' -A "Test1=I got it!" -A "Test2=Another action"
|
|
bind = Super+Alt, Equal, exec, notify-send "Urgent notification" "Ah hell no" -u critical -a 'Hyprland keybind'
|
|
|
|
############################ Keybinds for Hyprland ############################
|
|
# Swap windows
|
|
bind = Super+Shift, left, movewindow, l
|
|
bind = Super+Shift, right, movewindow, r
|
|
bind = Super+Shift, up, movewindow, u
|
|
bind = Super+Shift, down, movewindow, d
|
|
# Move focus
|
|
bind = Super, left, movefocus, l
|
|
bind = Super, right, movefocus, r
|
|
bind = Super, up, movefocus, u
|
|
bind = Super, down, movefocus, d
|
|
bind = Super, BracketLeft, movefocus, l
|
|
bind = Super, BracketRight, movefocus, r
|
|
|
|
# Workspace, window, tab switch with keyboard
|
|
bind = Control+Super, right, workspace, +1
|
|
bind = Control+Super, left, workspace, -1
|
|
bind = Control+Super, BracketLeft, workspace, -1
|
|
bind = Control+Super, BracketRight, workspace, +1
|
|
bind = Control+Super, up, workspace, -5
|
|
bind = Control+Super, down, workspace, +5
|
|
bind = Super, Page_Down, workspace, +1
|
|
bind = Super, Page_Up, workspace, -1
|
|
bind = Control+Super, Page_Down, workspace, +1
|
|
bind = Control+Super, Page_Up, workspace, -1
|
|
bind = Super+Alt, Page_Down, movetoworkspace, +1
|
|
bind = Super+Alt, Page_Up, movetoworkspace, -1
|
|
bind = Super+Shift, Page_Down, movetoworkspace, +1
|
|
bind = Super+Shift, Page_Up, movetoworkspace, -1
|
|
bind = Control+Super+Shift, Right, movetoworkspace, +1
|
|
bind = Control+Super+Shift, Left, movetoworkspace, -1
|
|
bind = Super+Shift, mouse_down, movetoworkspace, -1
|
|
bind = Super+Shift, mouse_up, movetoworkspace, +1
|
|
bind = Super+Alt, mouse_down, movetoworkspace, -1
|
|
bind = Super+Alt, mouse_up, movetoworkspace, +1
|
|
|
|
# Window split ratio
|
|
binde = Super, Minus, splitratio, -0.1
|
|
binde = Super, Equal, splitratio, 0.1
|
|
binde = Super, Semicolon, splitratio, -0.1
|
|
binde = Super, Apostrophe, splitratio, 0.1
|
|
|
|
# Fullscreen
|
|
bind = Super, F, fullscreen, 0
|
|
bind = Super, D, fullscreen, 1
|
|
bind = Super_Alt, F, fakefullscreen, 0
|
|
|
|
# Switching
|
|
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
|
|
bind = Super, 0, workspace, 10
|
|
bind = Super, S, togglespecialworkspace,
|
|
bind = Control+Super, S, togglespecialworkspace,
|
|
bind = Alt, Tab, cyclenext
|
|
bind = Alt, Tab, bringactivetotop, # bring it to the top
|
|
|
|
# Move window to workspace Super + Alt + [0-9]
|
|
bind = Super+Alt, 1, movetoworkspacesilent, 1
|
|
bind = Super+Alt, 2, movetoworkspacesilent, 2
|
|
bind = Super+Alt, 3, movetoworkspacesilent, 3
|
|
bind = Super+Alt, 4, movetoworkspacesilent, 4
|
|
bind = Super+Alt, 5, movetoworkspacesilent, 5
|
|
bind = Super+Alt, 6, movetoworkspacesilent, 6
|
|
bind = Super+Alt, 7, movetoworkspacesilent, 7
|
|
bind = Super+Alt, 8, movetoworkspacesilent, 8
|
|
bind = Super+Alt, 9, movetoworkspacesilent, 9
|
|
bind = Super+Alt, 0, movetoworkspacesilent, 10
|
|
bind = Control+Shift+Super, Up, movetoworkspacesilent, special
|
|
bind = Super+Alt, S, movetoworkspacesilent, special
|
|
|
|
# Scroll through existing workspaces with (Control) + Super + scroll
|
|
bind = Super, mouse_up, workspace, +1
|
|
bind = Super, mouse_down, workspace, -1
|
|
bind = Control+Super, mouse_up, workspace, +1
|
|
bind = Control+Super, mouse_down, workspace, -1
|
|
|
|
# Move/resize windows with Super + LMB/RMB and dragging
|
|
bindm = Super, mouse:272, movewindow
|
|
bindm = Super, mouse:273, resizewindow
|
|
# bindm = Super, mouse:274, movewindow
|
|
bindm = Super, Z, movewindow
|
|
bind = Control+Super, Backslash, resizeactive, exact 640 480
|
|
|
|
bindle = Alt, I, exec, ydotool key 103:1 103:0
|
|
bindle = Alt, K, exec, ydotool key 108:1 108:0
|
|
bindle = Alt, J, exec, ydotool key 105:1 105:0
|
|
bindle = Alt, L, exec, ydotool key 106:1 106:0
|
|
|