feat: Break out binds into a new config file
This commit is contained in:
@@ -20,18 +20,10 @@ monitor=,preferred,auto,1
|
||||
source = ~/.config/hypr/start-exec.conf
|
||||
source = ~/.config/hypr/windowrules.conf
|
||||
source = ~/.config/hypr/before-exit.conf
|
||||
source = ~/.config/hypr/keybinds.conf
|
||||
env = HYPRSHOT_DIR,/home/$USER/Pictures/Screenshots
|
||||
env = XDG_MENU_PREFIX,arch-
|
||||
|
||||
# Set programs that you use
|
||||
$terminal = alacritty
|
||||
$fileManager = dolphin
|
||||
# $menu = rofi -show drun calc -modi calc -terse
|
||||
$menu = pgrep -x tofi-drun && pkill -x tofi-drun || tofi-drun --drun-launch=true > ~/.logs/tofi-drun.log 2>&1 &
|
||||
|
||||
|
||||
# wofi --show drun
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
|
||||
@@ -98,13 +90,19 @@ decoration {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 3
|
||||
xray = 0
|
||||
special = true
|
||||
}
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 4
|
||||
render_power = 3
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
enabled = true
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
@@ -136,9 +134,11 @@ gestures {
|
||||
cursor {
|
||||
no_warps = 1
|
||||
}
|
||||
|
||||
misc {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
force_default_wallpaper = 1
|
||||
disable_splash_rendering = 1
|
||||
disable_hyprland_logo = 1
|
||||
focus_on_activate = 0 # This breaks vdesks
|
||||
}
|
||||
@@ -175,133 +175,4 @@ plugin {
|
||||
# device {
|
||||
# name = epic-mouse-v1
|
||||
# sensitivity = -0.5
|
||||
# }
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
# bind = $mainMod, Q, exec, $terminal
|
||||
|
||||
bind = CTRL ALT, T, exec, $terminal
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
bind = $mainMod, F, togglefloating,
|
||||
bind = $mainMod, space, exec, $menu
|
||||
bind = CTRL ALT, Delete, exit
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
|
||||
bind = $mainMod, V, exec, [float] alacritty --class clipse -e /home/nathan/.local/bin/clipse
|
||||
|
||||
|
||||
|
||||
# bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
|
||||
# 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
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod ALT, 1, workspace, 1
|
||||
bind = $mainMod ALT, 2, workspace, 2
|
||||
bind = $mainMod ALT, 3, workspace, 3
|
||||
bind = $mainMod ALT, 4, workspace, 4
|
||||
bind = $mainMod ALT, 5, workspace, 5
|
||||
bind = $mainMod ALT, 6, workspace, 6
|
||||
bind = $mainMod ALT, 7, workspace, 7
|
||||
bind = $mainMod ALT, 8, workspace, 8
|
||||
bind = $mainMod ALT, 9, workspace, 9
|
||||
bind = $mainMod ALT, 0, workspace, 10
|
||||
|
||||
# hyprlang noerror true
|
||||
bind = $mainMod, 1, vdesk, 1
|
||||
bind = $mainMod, 2, vdesk, 2
|
||||
bind = $mainMod, 3, vdesk, 3
|
||||
bind = $mainMod, 4, vdesk, 4
|
||||
bind = $mainMod, 5, vdesk, 5
|
||||
bind = $mainMod, 6, vdesk, 6
|
||||
bind = $mainMod, 7, vdesk, 7
|
||||
bind = $mainMod, 8, vdesk, 8
|
||||
bind = $mainMod, 9, vdesk, 9
|
||||
bind = $mainMod, 0, vdesk, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetodesk, 1
|
||||
bind = $mainMod SHIFT, 2, movetodesk, 2
|
||||
bind = $mainMod SHIFT, 3, movetodesk, 3
|
||||
bind = $mainMod SHIFT, 4, movetodesk, 4
|
||||
bind = $mainMod SHIFT, 5, movetodesk, 5
|
||||
bind = $mainMod SHIFT, 6, movetodesk, 6
|
||||
bind = $mainMod SHIFT, 7, movetodesk, 7
|
||||
bind = $mainMod SHIFT, 8, movetodesk, 8
|
||||
bind = $mainMod SHIFT, 9, movetodesk, 9
|
||||
bind = $mainMod SHIFT, 0, movetodesk, 10
|
||||
|
||||
# hyprlang noerror false
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, terminal
|
||||
bind = $mainMod CTRL, S, movetoworkspace, special:terminal
|
||||
|
||||
bind = $mainMod SHIFT, S, exec, hyprshot -m region
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
# bind = $mainMod, mouse_down, workspace, e+1
|
||||
# bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
|
||||
# hyprlang noerror true
|
||||
|
||||
# Used to use overview:toggle, but that resises the windows
|
||||
# bind = $mainMod, TAB, overview:toggle
|
||||
# bind = CTRL ALT, TAB, overview:toggle
|
||||
bind = $mainMod, TAB, hyprexpo:expo, toggle
|
||||
bind = CTRL ALT, TAB, hyprexpo:expo, toggle
|
||||
|
||||
|
||||
bind = ALT, TAB, lastdesk
|
||||
|
||||
# hyprlang noerror false
|
||||
|
||||
bind = ALT, SPACE, exec, ~/.config/hypr/scripts/search-windows.sh
|
||||
# bind = ALT SHIFT, TAB, workspace, e-1
|
||||
# bind = ALT, TAB, exec, hyprswitch gui --mod-key alt --key tab --close mod-key-release --reverse-key=key=shift && hyprswitch dispatch
|
||||
# bind = ALT SHIFT, TAB, exec, hyprswitch gui --mod-key alt --key tab --close mod-key-release --reverse-key=key=shift && hyprswitch dispatch -r
|
||||
|
||||
# Media control keys
|
||||
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindle=, XF86MonBrightnessUp, exec, brightnessctl s +5%
|
||||
bindle=, XF86MonBrightnessDown, exec, brightnessctl s 5%-
|
||||
bindle=, XF86Search, exec, $menu
|
||||
# bindl=, XF86AudioMute, exec, amixer set Master toggle
|
||||
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindl=, XF86AudioPlay, exec, playerctl play-pause # the stupid key is called play , but it toggles
|
||||
bindl=, XF86AudioNext, exec, playerctl next
|
||||
bindl=, XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Mouse wheel tilt
|
||||
bind = , mouse_left, exec, ydotool key 56:1 105:1 105:0 56:0
|
||||
bind = , mouse_right, exec, ydotool key 56:1 106:1 106:0 56:0
|
||||
|
||||
# Gromit for drawing
|
||||
bind = SUPER CTRL, P, exec, ~/.config/hypr/scripts/gromit.py
|
||||
|
||||
# Emoji
|
||||
bind = $mainMod, PERIOD, exec, bemoji
|
||||
|
||||
# Custom terminal
|
||||
bind = $mainMod, T, exec, alacritty --config-file ~/dotfiles/.alacritty-nozellij.toml
|
||||
|
||||
|
||||
bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh
|
||||
# }
|
||||
129
.config/hypr/keybinds.conf
Normal file
129
.config/hypr/keybinds.conf
Normal file
@@ -0,0 +1,129 @@
|
||||
# Set programs that you use
|
||||
$terminal = alacritty
|
||||
$fileManager = dolphin
|
||||
$menu = pgrep -x tofi-drun && pkill -x tofi-drun || tofi-drun --drun-launch=true > ~/.logs/tofi-drun.log 2>&1 &
|
||||
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = CTRL ALT, T, exec, $terminal
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, F, togglefloating,
|
||||
bind = $mainMod, space, exec, $menu
|
||||
bind = ALT, SPACE, exec, ~/.config/hypr/scripts/search-windows.sh
|
||||
bind = CTRL ALT, Delete, exit
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
|
||||
bind = $mainMod, V, exec, [float] alacritty --class clipse -e /home/nathan/.local/bin/clipse
|
||||
|
||||
|
||||
|
||||
# bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
|
||||
# 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
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod ALT, 1, workspace, 1
|
||||
bind = $mainMod ALT, 2, workspace, 2
|
||||
bind = $mainMod ALT, 3, workspace, 3
|
||||
bind = $mainMod ALT, 4, workspace, 4
|
||||
bind = $mainMod ALT, 5, workspace, 5
|
||||
bind = $mainMod ALT, 6, workspace, 6
|
||||
bind = $mainMod ALT, 7, workspace, 7
|
||||
bind = $mainMod ALT, 8, workspace, 8
|
||||
bind = $mainMod ALT, 9, workspace, 9
|
||||
bind = $mainMod ALT, 0, workspace, 10
|
||||
|
||||
# hyprlang noerror true
|
||||
bind = $mainMod, 1, vdesk, 1
|
||||
bind = $mainMod, 2, vdesk, 2
|
||||
bind = $mainMod, 3, vdesk, 3
|
||||
bind = $mainMod, 4, vdesk, 4
|
||||
bind = $mainMod, 5, vdesk, 5
|
||||
bind = $mainMod, 6, vdesk, 6
|
||||
bind = $mainMod, 7, vdesk, 7
|
||||
bind = $mainMod, 8, vdesk, 8
|
||||
bind = $mainMod, 9, vdesk, 9
|
||||
bind = $mainMod, 0, vdesk, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetodesk, 1
|
||||
bind = $mainMod SHIFT, 2, movetodesk, 2
|
||||
bind = $mainMod SHIFT, 3, movetodesk, 3
|
||||
bind = $mainMod SHIFT, 4, movetodesk, 4
|
||||
bind = $mainMod SHIFT, 5, movetodesk, 5
|
||||
bind = $mainMod SHIFT, 6, movetodesk, 6
|
||||
bind = $mainMod SHIFT, 7, movetodesk, 7
|
||||
bind = $mainMod SHIFT, 8, movetodesk, 8
|
||||
bind = $mainMod SHIFT, 9, movetodesk, 9
|
||||
bind = $mainMod SHIFT, 0, movetodesk, 10
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, terminal
|
||||
bind = $mainMod CTRL, S, movetoworkspace, special:terminal
|
||||
|
||||
bind = $mainMod SHIFT, S, exec, hyprshot -m region
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
# bind = $mainMod, mouse_down, workspace, e+1
|
||||
# bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
|
||||
## Custom hyprland module keybinds
|
||||
|
||||
# hyprlang noerror true
|
||||
|
||||
|
||||
# Used to use overview:toggle, but that resises the windows
|
||||
# bind = $mainMod, TAB, overview:toggle
|
||||
# bind = CTRL ALT, TAB, overview:toggle
|
||||
|
||||
bind = $mainMod, TAB, hyprexpo:expo, toggle
|
||||
bind = CTRL ALT, TAB, hyprexpo:expo, toggle
|
||||
bind = ALT, TAB, lastdesk
|
||||
|
||||
# hyprlang noerror false
|
||||
|
||||
|
||||
|
||||
# Media control keys
|
||||
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindle=, XF86MonBrightnessUp, exec, brightnessctl s +5%
|
||||
bindle=, XF86MonBrightnessDown, exec, brightnessctl s 5%-
|
||||
bindle=, XF86Search, exec, $menu
|
||||
# bindl=, XF86AudioMute, exec, amixer set Master toggle
|
||||
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindl=, XF86AudioPlay, exec, playerctl play-pause # the stupid key is called play , but it toggles
|
||||
bindl=, XF86AudioNext, exec, playerctl next
|
||||
bindl=, XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Mouse wheel tilt
|
||||
bind = , mouse_left, exec, ydotool key 56:1 105:1 105:0 56:0
|
||||
bind = , mouse_right, exec, ydotool key 56:1 106:1 106:0 56:0
|
||||
|
||||
# Gromit for drawing
|
||||
bind = SUPER CTRL, P, exec, ~/.config/hypr/scripts/gromit.py
|
||||
|
||||
# Emoji
|
||||
bind = $mainMod, PERIOD, exec, bemoji
|
||||
|
||||
# Custom terminal
|
||||
bind = $mainMod, T, exec, alacritty --config-file ~/dotfiles/.alacritty-nozellij.toml
|
||||
|
||||
|
||||
bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh
|
||||
@@ -54,6 +54,7 @@ if __name__ == "__main__":
|
||||
os.system("hyprctl keyword bind , mouse_right, exec, 'ydotool key 56:1 106:1 106:0 56:0'")
|
||||
# Set dim special to default
|
||||
os.system("hyprctl keyword decoration:dim_special 0.5")
|
||||
os.system("hyprctl keyword decoration:blur:special 1")
|
||||
|
||||
else:
|
||||
print("Gromit is not running",flush=True)
|
||||
@@ -63,6 +64,7 @@ if __name__ == "__main__":
|
||||
|
||||
# Disable dim special
|
||||
os.system("hyprctl keyword decoration:dim_special 0")
|
||||
os.system("hyprctl keyword decoration:blur:special 0")
|
||||
os.system("hyprctl dispatch togglespecialworkspace gromit")
|
||||
os.system("hyprctl keyword unbind , mouse_left")
|
||||
os.system("hyprctl keyword unbind , mouse_right")
|
||||
|
||||
Reference in New Issue
Block a user