complete restructure of hyprland config and some other shit
This commit is contained in:
@@ -1,35 +1,23 @@
|
||||
# Main modifier
|
||||
$mainMod = mod1 # super / meta / windows key
|
||||
$submod = super
|
||||
|
||||
# Script Path
|
||||
$scrPath = ~/.config/scripts
|
||||
|
||||
# Assign apps
|
||||
$term = kitty
|
||||
$editor = kitty -e nvim
|
||||
$file = thunar
|
||||
$browser = firefox
|
||||
$launcher = $scrPath/otter-launch.sh
|
||||
|
||||
# Window/Session actions
|
||||
bind = $mainMod, backspace, exec, $scrPath/dontkillsteam.sh # close focused window
|
||||
bind = $mainMod, F, fullscreen # toggle the window between focus and fullscreen
|
||||
bind = $mainMod, e, exec, wlogout -b 5 # Wlogout menu
|
||||
bind = $mainMod, d, exec, walker # Launcher
|
||||
|
||||
# Application shortcuts
|
||||
bind = $mainMod, return, exec, $term # launch terminal emulator
|
||||
bind = $mainMod, i, exec, $editor # launch text editor
|
||||
bind = $mainMod, o, exec, $browser # launch web browser
|
||||
|
||||
bind = $mainMod, d, exec, $launcher
|
||||
|
||||
# Super key to drag windows
|
||||
binds {
|
||||
drag_threshold = 10
|
||||
scroll_event_delay = 0
|
||||
}
|
||||
bindm = Super, mouse:272, movewindow
|
||||
bindc = SUPER, mouse:272, togglefloating
|
||||
bindm = $submod, mouse:272, movewindow
|
||||
bindc = $submod, mouse:272, togglefloating
|
||||
|
||||
# Resize floating window with scrollwheels
|
||||
bind = $submod, mouse_down, resizeactive, 0 -30
|
||||
@@ -47,34 +35,12 @@ bind = $mainMod, l, movefocus, r
|
||||
bind = $mainMod, k, movefocus, u
|
||||
bind = $mainMod, j, movefocus, d
|
||||
|
||||
# Switch workspaces
|
||||
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 focused window to a workspace
|
||||
bind = $mainMod+Shift, 1, movetoworkspacesilent, 1
|
||||
bind = $mainMod+Shift, 2, movetoworkspacesilent, 2
|
||||
bind = $mainMod+Shift, 3, movetoworkspacesilent, 3
|
||||
bind = $mainMod+Shift, 4, movetoworkspacesilent, 4
|
||||
bind = $mainMod+Shift, 5, movetoworkspacesilent, 5
|
||||
bind = $mainMod+Shift, 6, movetoworkspacesilent, 6
|
||||
bind = $mainMod+Shift, 7, movetoworkspacesilent, 7
|
||||
bind = $mainMod+Shift, 8, movetoworkspacesilent, 8
|
||||
bind = $mainMod+Shift, 9, movetoworkspacesilent, 9
|
||||
bind = $mainMod+Shift, 0, movetoworkspacesilent, 10
|
||||
|
||||
# Move/Switch to special workspace (scratchpad)
|
||||
bind = $mainMod, MINUS, togglespecialworkspace, scratch
|
||||
bind = $mainMod SHIFT, MINUS, movetoworkspacesilent, special:scratch
|
||||
|
||||
bind = $mainMod, m, togglespecialworkspace, music
|
||||
|
||||
# Resize floating windows with keyboard
|
||||
bind = $submod, left, resizeactive, -50 0
|
||||
bind = $submod, right, resizeactive, 50 0
|
||||
@@ -95,3 +61,4 @@ bind = $mainMod SHIFT, L, swapwindow, r
|
||||
bind = $mainMod SHIFT, K, swapwindow, u
|
||||
bind = $mainMod SHIFT, J, swapwindow, d
|
||||
|
||||
source = ~/.config/hypr/binds-local.conf
|
||||
|
||||
Reference in New Issue
Block a user