Files
illogical-impulse/novelknock/.config/hypr/keybinds.conf
T
2024-02-22 15:35:06 +07:00

179 lines
8.3 KiB
Plaintext
Executable File

########################## Language ############################
bind = SUPERSHIFT, V, exec, ~/.config/eww/scripts/language --switch '{"name":"Vietnamese","name_abbr":"VIE","name_ibus":"Bamboo::Us","name_method":"Vietnamese Telex (Bamboo Engine)"}' &
bind = SUPERSHIFT, E, exec, ~/.config/eww/scripts/language --switch '{"name":"English (United States)","name_abbr":"ENG","name_ibus":"xkb:us::eng","name_method":"US"}' &
bind = SUPER, Space, exec, ~/.config/eww/scripts/language --cycle &
#################### It just works™ keybinds ###################
# Volume
bindl = ,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindle = , XF86AudioRaiseVolume, exec, ~/.config/eww/scripts/volume osd &
bindle = , XF86AudioLowerVolume, exec, ~/.config/eww/scripts/volume osd &
bindl = , XF86AudioMute, exec, ~/.config/eww/scripts/volume osd &
# Brightness
bindle=, XF86MonBrightnessUp, exec, light -A 3 && ~/.config/eww/scripts/brightness osd &
bindle=, XF86MonBrightnessDown, exec, light -U 3 && ~/.config/eww/scripts/brightness osd &
######################################## Keybinds ########################################
# Apps: just normal apps
bind = SUPER, C, exec, code --password-store=gnome --enable-features=UseOzonePlatform --ozone-platform=wayland
bind = CONTROLSHIFTALT, Y, exec, yuzu
bind = SUPER, T, exec, foot --override shell=fish
bind = SUPERSHIFTALT, T, exec, foot sleep 0.01 && nmtui
bind = SUPERALT, T, exec, wezterm
bind = SUPER, Return, exec, wezterm
bind = SUPER, E, exec, nautilus --new-window
bind = SUPER, W, exec, firefox
bind = CONTROLSUPERALT, E, exec, /usr/bin/microsoft-edge-stable --password-store=gnome --enable-features=UseOzonePlatform --ozone-platform=wayland --gtk-version=4
bind = SUPER, X, exec, gnome-text-editor --new-window
bind = SUPERSHIFT, W, exec, wps
# Apps: Settings and config
bind = SUPER, I, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center
bind = CONTROLSUPER, V, exec, pavucontrol
bind = CONTROLSHIFT, Escape, exec, gnome-system-monitor
bind = CONTROLALTSHIFT, Escape, exec, foot -T 'btop' btop
bind = SUPERSHIFT, I, exec, ~/.local/bin/guifetch
# Actions
bind = SUPERSHIFT, Period, exec, pkill wofi || wofi-emoji
bind = SUPER, Period, exec, pkill fuzzel || ~/.local/bin/fuzzel-emoji
bind = SUPER, Q, killactive,
bind = SUPERALT, Space, togglefloating,
bind = SHIFTSUPERALT, Q, exec, hyprctl kill
bind = CONTROLALT, Delete, exec, pkill wlogout || wlogout -p layer-shell
bind = CONTROLSHIFTALTSUPER, Delete, exec, systemctl poweroff
# Screenshot, Record, OCR (Optical Character Recognition), Color picker, Clipboard history
bind = SUPERSHIFT, D, exec,~/.local/bin/rubyshot | wl-copy
bind = SUPERSHIFTALT, S, exec, grim -g "$(slurp)" - | swappy -f -
bindl =,Print,exec,grim - | wl-copy
bind = SUPERSHIFT, S, exec, grim -g "$(slurp)" - | wl-copy
bind = SUPERALT, R, exec, ~/.local/bin/record-script.sh
bind = CONTROLALT, R, exec, ~/.local/bin/record-script.sh --sound
bind = SUPERSHIFTALT, R, exec, ~/.local/bin/record-script-fullscreen.sh
bind = CONTROLSUPERSHIFT,S,exec,grim -g "$(slurp)" "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png"
bind = SUPERSHIFT,T,exec,grim -g "$(slurp)" "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png"
bind = SUPERSHIFT, C, exec, hyprpicker -a
bind = SUPER, B, exec, copyq menu
bind = SUPER, V, exec, pkill fuzzel || cliphist list | fuzzel --no-fuzzy --icon-theme=candy-icons --background-color=1A1513dd --text-color=F8D4D2ff --match-color=FFB3B1ff --border-width=2 --border-radius=15 --border-color=EB8A89ff --selection-color=585b70ff --selection-text-color=F8D4D2ff --selection-match-color=FFB3B1ff --font="Lexend" --prompt=">> " --dmenu | cliphist decode | wl-copy
# Media
bind = SUPERSHIFT, N, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"`
bind = SUPERSHIFT, B, exec, playerctl previous
bind = SUPERSHIFT, P, exec, playerctl play-pause
#Lock screen | blur: --effect-blur=20x20
bind = SUPER, L, exec, ~/.local/bin/lock.sh
bind = SUPERSHIFT, L, exec, ~/.local/bin/lock.sh
bindl = SUPERSHIFT, L, exec, sleep 0.1 && systemctl suspend
# App launcher
bind = SUPER, Slash, exec, pkill anyrun || anyrun
################################# eww keybinds ################################
bindr = SUPER, SUPER_L, exec, ~/.config/eww/scripts/toggle-powerview.sh --keypress &
bindr = CONTROLSUPER, R, exec, pkill eww && eww daemon && eww open bar && eww open bottomline
bind = CONTROLSUPER, T, exec, cd ~/.config/eww && scripts/switchwall
bind = SUPER, Tab, exec, ~/.config/eww/scripts/toggle-powerview.sh &
bind = SUPER, M, exec, ~/.config/eww/scripts/toggle-bottomsheet.sh &
bind = SUPER, B, exec, ~/.config/eww/scripts/toggle-sideleft.sh &
bind = SUPER, O, exec, ~/.config/eww/scripts/toggle-sideleft.sh &
bind = SUPER, N, exec, ~/.config/eww/scripts/toggle-sideright.sh &
bind = SUPER, A, exec, ~/.config/eww/scripts/toggle-dashboard.sh &
bind = CONTROLSUPER, mouse:273, exec, ~/.config/eww/scripts/toggle-supercontext.sh &
bind = SUPER, Menu, exec, ~/.config/eww/scripts/toggle-supercontext.sh &
## Testing
bind = SUPERALT, f12, exec, notify-send "Test notification" "$(hyprctl version | head -1)"
############################ Keybinds for Hyprland ############################
# Swap windows
bind = SUPERSHIFT, left, movewindow, l
bind = SUPERSHIFT, right, movewindow, r
bind = SUPERSHIFT, up, movewindow, u
bind = SUPERSHIFT, 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 = CONTROLSUPER, right, workspace, +1
bind = CONTROLSUPER, left, workspace, -1
bind = CONTROLSUPER, BracketLeft, workspace, -1
bind = CONTROLSUPER, BracketRight, workspace, +1
bind = CONTROLSUPER, up, workspace, -5
bind = CONTROLSUPER, down, workspace, +5
bind = SUPER, Page_Down, workspace, +1
bind = SUPER, Page_Up, workspace, -1
bind = CONTROLSUPER, Page_Down, workspace, +1
bind = CONTROLSUPER, Page_Up, workspace, -1
bind = SUPERSHIFT, Page_Down, movetoworkspace, +1
bind = SUPERSHIFT, Page_Up, movetoworkspace, -1
bind = CONTROLSUPERSHIFT, Right, movetoworkspace, +1
bind = CONTROLSUPERSHIFT, Left, movetoworkspace, -1
bind = SUPERSHIFT, mouse_down, movetoworkspace, -1
bind = SUPERSHIFT, 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 = SUPERALT, F, fakefullscreen,
# 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 = CONTROLSUPER, 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 = CONTROLSHIFTSUPER, Up, movetoworkspacesilent, special
bind = SUPERALT, S, movetoworkspacesilent, special
# Scroll through existing workspaces with (Control) + Super + scroll
bind = SUPER, mouse_up, workspace, +1
bind = SUPER, mouse_down, workspace, -1
bind = CONTROLSUPER, mouse_up, workspace, +1
bind = CONTROLSUPER, 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 = CONTROLSUPER, Backslash, resizeactive, exact 640 480