♻️ refactor(hypr): use variables for some reused script calls
This commit is contained in:
parent
97f26f8a92
commit
8de504526c
1 changed files with 22 additions and 18 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
# Variables
|
||||||
|
$scripts = ~/.config/hypr/scripts
|
||||||
|
$custom_app_launch = $scripts/custom_app_launch
|
||||||
|
$hyprshot = $scripts/hyprshot -o ~/Imagenes/Capturas/PC -f captura-$(date +%Y-%m-%d-%s).png
|
||||||
|
$workspace = $scripts/awesome_workspaces
|
||||||
|
|
||||||
# Mouse binds
|
# Mouse binds
|
||||||
bindm = SUPER, mouse:272, movewindow
|
bindm = SUPER, mouse:272, movewindow
|
||||||
bindm = SUPER, mouse:273, resizewindow
|
bindm = SUPER, mouse:273, resizewindow
|
||||||
|
@ -6,30 +12,30 @@ bindm = SUPER, mouse:273, resizewindow
|
||||||
bind = SUPER, Q, killactive,
|
bind = SUPER, Q, killactive,
|
||||||
bind = SUPERCTRL, R, exec, pkill waybar || waybar
|
bind = SUPERCTRL, R, exec, pkill waybar || waybar
|
||||||
bind = SUPERCTRL, M, exit
|
bind = SUPERCTRL, M, exit
|
||||||
bind = SUPER, A, exec, ~/.config/hypr/scripts/toggle_floating
|
bind = SUPER, A, exec, $scripts/toggle_floating
|
||||||
bind = SUPER, P, pseudo
|
bind = SUPER, P, pseudo
|
||||||
bind = SUPER, F, fullscreen, 0
|
bind = SUPER, F, fullscreen, 0
|
||||||
bind = SUPER, Z, exec, pypr zoom
|
bind = SUPER, Z, exec, pypr zoom
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
bind = SUPER, W, exec, ~/.config/hypr/scripts/custom_app_launch browser
|
bind = SUPER, W, exec, $custom_app_launch browser
|
||||||
bind = SUPER, O, exec, ~/.config/hypr/scripts/custom_app_launch obsidian
|
bind = SUPER, O, exec, $custom_app_launch obsidian
|
||||||
bind = SUPERSHIFT, O, exec, ~/.config/hypr/scripts/custom_app_launch office
|
bind = SUPERSHIFT, O, exec, $custom_app_launch office
|
||||||
bind = SUPERSHIFT, E,exec, ~/.config/hypr/scripts/custom_app_launch nemo
|
bind = SUPERSHIFT, E,exec, $custom_app_launch nemo
|
||||||
bind = SUPER, RETURN, exec, kitty
|
bind = SUPER, RETURN, exec, kitty
|
||||||
bind = SUPERSHIFT, RETURN, exec, kitty --class=center-float-large
|
bind = SUPERSHIFT, RETURN, exec, kitty --class=center-float-large
|
||||||
bind = SUPERALT, RETURN, exec, kitty --class=center-float
|
bind = SUPERALT, RETURN, exec, kitty --class=center-float
|
||||||
bind = SUPERCTRL, RETURN, exec, kitty --class=center-float-mini
|
bind = SUPERCTRL, RETURN, exec, kitty --class=center-float-mini
|
||||||
bind = SUPER, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch nvim
|
bind = SUPER, BACKSPACE, exec, $custom_app_launch nvim
|
||||||
bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch codium
|
bind = SUPERSHIFT, BACKSPACE, exec, $custom_app_launch codium
|
||||||
|
|
||||||
# Pickers/Launchers
|
# Pickers/Launchers
|
||||||
bind = SUPER, 23, exec, rofi -show drun # Tab
|
bind = SUPER, 23, exec, rofi -show drun # Tab
|
||||||
bind = SUPER, INSERT, exec, ~/.config/hypr/scripts/color_picker
|
bind = SUPER, INSERT, exec, $scripts/color_picker
|
||||||
bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select
|
bind = SUPERSHIFT, W, exec, $scripts/wallpaper select
|
||||||
bind = SUPERCTRL, W, exec, pypr wall next
|
bind = SUPERCTRL, W, exec, pypr wall next
|
||||||
bind = SUPER, 61, exec, ~/.config/hypr/scripts/rofi/keybindings # /
|
bind = SUPER, 61, exec, $scripts/rofi/keybindings # /
|
||||||
bind = SUPERSHIFT, G, exec, ~/.config/hypr/scripts/rofi/game_launcher
|
bind = SUPERSHIFT, G, exec, $scripts/rofi/game_launcher
|
||||||
bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
||||||
|
|
||||||
# Scratchpads
|
# Scratchpads
|
||||||
|
@ -45,11 +51,10 @@ bind = SUPER, U, exec, pypr toggle topgrade-system
|
||||||
bind = SUPERSHIFT, U, exec, pypr toggle topgrade-all
|
bind = SUPERSHIFT, U, exec, pypr toggle topgrade-all
|
||||||
|
|
||||||
# Screenshot stuff
|
# Screenshot stuff
|
||||||
$hyprshot = ~/.config/hypr/scripts/hyprshot -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png
|
|
||||||
bind = SHIFT, INSERT, exec, $hyprshot -m output
|
bind = SHIFT, INSERT, exec, $hyprshot -m output
|
||||||
bind = SUPERSHIFT, INSERT, exec, $hyprshot -m window
|
bind = SUPERSHIFT, INSERT, exec, $hyprshot -m window
|
||||||
bind = CTRL, INSERT, exec, $hyprshot -m region
|
bind = CTRL, INSERT, exec, $hyprshot -m region
|
||||||
bind = ALT, INSERT, exec, ~/.config/hypr/scripts/rofi/screenshots_selection
|
bind = ALT, INSERT, exec, $scripts/rofi/screenshots_selection
|
||||||
|
|
||||||
# Notifications menu
|
# Notifications menu
|
||||||
bind = SUPER, N, exec, swaync-client -t
|
bind = SUPER, N, exec, swaync-client -t
|
||||||
|
@ -79,7 +84,7 @@ bind = SUPERSHIFT, H, movewindow, l
|
||||||
bind = SUPERSHIFT, L, movewindow, r
|
bind = SUPERSHIFT, L, movewindow, r
|
||||||
bind = SUPERSHIFT, K, movewindow, u
|
bind = SUPERSHIFT, K, movewindow, u
|
||||||
bind = SUPERSHIFT, J, movewindow, d
|
bind = SUPERSHIFT, J, movewindow, d
|
||||||
bind = SUPERSHIFT, 51, exec, ~/.config/hypr/scripts/move_by_rules # Backslash
|
bind = SUPERSHIFT, 51, exec, $scripts/move_by_rules # Backslash
|
||||||
|
|
||||||
# Center and split
|
# Center and split
|
||||||
bind = SUPER, S, togglesplit
|
bind = SUPER, S, togglesplit
|
||||||
|
@ -87,7 +92,6 @@ bind = SUPER, C, exec, hyprctl dispatch centerwindow 1
|
||||||
|
|
||||||
# Workspaces
|
# Workspaces
|
||||||
# Focusing other workspaces
|
# Focusing other workspaces
|
||||||
$workspace = ~/.config/hypr/scripts/awesome_workspaces
|
|
||||||
bind = SUPER, 1, exec, $workspace 1 switch
|
bind = SUPER, 1, exec, $workspace 1 switch
|
||||||
bind = SUPER, 2, exec, $workspace 2 switch
|
bind = SUPER, 2, exec, $workspace 2 switch
|
||||||
bind = SUPER, 3, exec, $workspace 3 switch
|
bind = SUPER, 3, exec, $workspace 3 switch
|
||||||
|
@ -137,7 +141,7 @@ bind = SUPER, 60, focusmonitor, +1 # Period
|
||||||
|
|
||||||
# Group control
|
# Group control
|
||||||
bind = SUPER, G, togglegroup
|
bind = SUPER, G, togglegroup
|
||||||
bind = ALT, TAB, changegroupactive
|
bind = ALT, ESCAPE, changegroupactive
|
||||||
|
|
||||||
# Submap for resizing windows
|
# Submap for resizing windows
|
||||||
bind = SUPER, R, submap, resize
|
bind = SUPER, R, submap, resize
|
||||||
|
@ -183,11 +187,11 @@ bindle = , XF86InputLowerVolume, exec, swayosd-client --input-volume lower
|
||||||
bindle = SUPERSHIFT, 20, exec, swayosd-client --input-volume lower # Plus key
|
bindle = SUPERSHIFT, 20, exec, swayosd-client --input-volume lower # Plus key
|
||||||
|
|
||||||
# Disable anim, blur, etc
|
# Disable anim, blur, etc
|
||||||
bind = SUPER, F12, exec, ~/.config/hypr/scripts/performance
|
bind = SUPER, F12, exec, $scripts/performance
|
||||||
|
|
||||||
# Open Wiki
|
# Open Wiki
|
||||||
bind = SUPER, F1, exec, xdg-open https://wiki.hyprland.org/
|
bind = SUPER, F1, exec, xdg-open https://wiki.hyprland.org/
|
||||||
bind = SUPERSHIFT, F1, exec, xdg-open https://github.com/Matt-FTW/dotfiles/wiki
|
bind = SUPERSHIFT, F1, exec, xdg-open https://github.com/Matt-FTW/dotfiles/wiki
|
||||||
|
|
||||||
# Freeze active window
|
# Freeze active window
|
||||||
bind = SUPERSHIFT, ESCAPE, exec, ~/.config/hypr/scripts/hyprfreeze -a
|
bind = SUPERSHIFT, ESCAPE, exec, $scripts/hyprfreeze -a
|
||||||
|
|
Loading…
Add table
Reference in a new issue