refactor(hypr): improve visual spacing of configs

This commit is contained in:
Price Hiller 2023-05-28 02:07:57 -05:00
parent e171ebde25
commit 134a2c6ac1
No known key found for this signature in database
5 changed files with 129 additions and 121 deletions

View File

@ -1,12 +1,12 @@
source=~/.config/hypr/wm/general.conf source = ~/.config/hypr/wm/general.conf
source=~/.config/hypr/wm/bindings.conf source = ~/.config/hypr/wm/bindings.conf
source=~/.config/hypr/wm/appearance.conf source = ~/.config/hypr/wm/appearance.conf
source=~/.config/hypr/wm/monitors.conf source = ~/.config/hypr/wm/monitors.conf
exec=~/.config/hypr/scripts/launchers/launch-waybar.bash exec = ~/.config/hypr/scripts/launchers/launch-waybar.bash
exec=~/.config/hypr/scripts/launchers/launch-kbct.bash exec = ~/.config/hypr/scripts/launchers/launch-kbct.bash
exec=mako exec = mako
exec-once=~/.config/hypr/scripts/launchers/events-monitor.bash exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash
exec-once=udiskie exec-once = udiskie
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=/usr/lib/polkit-kde-authentication-agent-1 exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once=/usr/lib/kdeconnectd exec-once = /usr/lib/kdeconnectd

View File

@ -1,18 +1,26 @@
decoration { decoration {
rounding=6 rounding = 8
blur=true
blur_size=3 blur = true
blur_passes=4 blur_size = 10
blur_new_optimizations=true blur_passes = 4
blur_new_optimizations = true
multisample_edges = true
drop_shadow = true
shadow_ignore_window = true
shadow_range = 45
shadow_render_power = 6
} }
animations { animations {
enabled=1 enabled = 1
bezier=overshot,0,0.8,0,1.1 bezier = overshot,0.08,0.8,0,1.1
animation=windows,1,5,overshot,slide animation = windows,1,5,overshot,slide
animation=border,1,10,default animation = border,1,10,default
animation=fade,1,10,default animation = fade,1,10,default
animation=workspaces,1,6,default animation = workspaces,1,6,default
} }
exec=swaybg -i ~/.local/share/wallpapers/Nebula.jpg -m "fill" -o '*' exec = swaybg -i ~/.local/share/wallpapers/Nebula.jpg -m "fill" -o '*'

View File

@ -1,122 +1,122 @@
input { input {
kb_layout=us kb_layout = us
follow_mouse=2 follow_mouse = 2
repeat_rate=100 repeat_rate = 100
repeat_delay=300 repeat_delay = 300
numlock_by_default=true numlock_by_default = true
touchpad { touchpad {
natural_scroll=no natural_scroll = no
} }
} }
gestures { gestures {
workspace_swipe=true workspace_swipe = true
workspace_swipe_fingers=3 workspace_swipe_fingers = 3
} }
### MOUSE ### ### MOUSE ###
bindm=SUPER,mouse:272,movewindow bindm = SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow bindm = SUPER,mouse:273,resizewindow
### RESIZE ### ### RESIZE ###
bind=SUPER,R,submap,resize # will switch to a submap called resize bind = SUPER,R,submap,resize # will switch to a submap called resize
submap=resize # will start a submap called "resize" submap = resize # will start a submap called "resize"
binde=,right,resizeactive,50 0 binde = ,right,resizeactive,50 0
binde=,left,resizeactive,-50 0 binde = ,left,resizeactive,-50 0
binde=,up,resizeactive,0 -50 binde = ,up,resizeactive,0 -50
binde=,down,resizeactive,0 50 binde = ,down,resizeactive,0 50
binde=,l,resizeactive,50 0 binde = ,l,resizeactive,50 0
binde=,h,resizeactive,-50 0 binde = ,h,resizeactive,-50 0
binde=,k,resizeactive,0 -50 binde = ,k,resizeactive,0 -50
binde=,j,resizeactive,0 50 binde = ,j,resizeactive,0 50
bind=,escape,submap,reset # use reset to go back to the global submap bind = ,escape,submap,reset # use reset to go back to the global submap
submap=reset # will reset the submap, meaning end the current one and return to the global one. submap = reset # will reset the submap, meaning end the current one and return to the global one.
### Move Window ### ### Move Window ###
bind=SUPER,M,submap,move_window bind = SUPER,M,submap,move_window
submap=move_window submap = move_window
bind=,right,movewindow,r bind = ,right,movewindow,r
bind=,left,movewindow,l bind = ,left,movewindow,l
bind=,up,movewindow,u bind = ,up,movewindow,u
bind=,down,movewindow,d bind = ,down,movewindow,d
bind=,l,movewindow,r bind = ,l,movewindow,r
bind=,h,movewindow,l bind = ,h,movewindow,l
bind=,k,movewindow,u bind = ,k,movewindow,u
bind=,j,movewindow,d bind = ,j,movewindow,d
bind=,escape,submap,reset bind = ,escape,submap,reset
submap=reset submap = reset
bind=SUPER,RETURN,exec,wezterm bind = SUPER,RETURN,exec,wezterm
bind=SUPERCTRLSHIFT,R,exec,hyprctl reload bind = SUPERCTRLSHIFT,R,exec,hyprctl reload
bind=SUPER,SPACE,exec,wofi --show drun bind = SUPER,SPACE,exec,wofi --show drun
bind=SUPER,F,fullscreen bind = SUPER,F,fullscreen
bind=SUPER,Q,killactive, bind = SUPER,Q,killactive,
bind=SUPER,A,togglefloating, bind = SUPER,A,togglefloating,
bind=SUPERSHIFT,Q,exec,swaylock bind = SUPERSHIFT,Q,exec,swaylock
bind=SUPER,S,exec,grim -g "$(slurp)" - | wl-copy --type image/png bind = SUPER,S,exec,grim -g "$(slurp)" - | wl-copy --type image/png
bind=SUPERSHIFT,S,exec,~/.config/hypr/scripts/screen-cap.bash bind = SUPERSHIFT,S,exec,~/.config/hypr/scripts/screen-cap.bash
bind=SUPERSHIFT,A,exec,~/.config/hypr/scripts/screen-cap.bash gif bind = SUPERSHIFT,A,exec,~/.config/hypr/scripts/screen-cap.bash gif
bind=SUPERSHIFT,M,exit bind = SUPERSHIFT,M,exit
# Mediakey bindings as taken from `wev` # Mediakey bindings as taken from `wev`
bindl=,XF86AudioPrev,exec,playerctl previous bindl = ,XF86AudioPrev,exec,playerctl previous
bindl=,XF86AudioNext,exec,playerctl next bindl = ,XF86AudioNext,exec,playerctl next
bindl=,XF86AudioPlay,exec,playerctl play-pause bindl = ,XF86AudioPlay,exec,playerctl play-pause
binde=,XF86AudioRaiseVolume,exec,pw-volume change -- '+5%'; pkill -RTMIN+8 waybar binde = ,XF86AudioRaiseVolume,exec,pw-volume change -- '+5%'; pkill -RTMIN+8 waybar
binde=,XF86AudioLowerVolume,exec,pw-volume change -- '-5%'; pkill -RTMIN+8 waybar binde = ,XF86AudioLowerVolume,exec,pw-volume change -- '-5%'; pkill -RTMIN+8 waybar
bindl=,XF86AudioMute,exec,pw-volume mute toggle; pkill -RTMIN+8 waybar bindl = ,XF86AudioMute,exec,pw-volume mute toggle; pkill -RTMIN+8 waybar
binde=,XF86MonBrightnessUp,exec,sudo light -As "sysfs/backlight/amdgpu_bl1" -- 5; sudo light -As "sysfs/backlight/amdgpu_bl0" -- 5 binde = ,XF86MonBrightnessUp,exec,sudo light -As "sysfs/backlight/amdgpu_bl1" -- 5; sudo light -As "sysfs/backlight/amdgpu_bl0" -- 5
binde=,XF86MonBrightnessDown,exec,sudo light -Us "sysfs/backlight/amdgpu_bl1" -- 5; sudo light -Us "sysfs/backlight/amdgpu_bl0" -- 5 binde = ,XF86MonBrightnessDown,exec,sudo light -Us "sysfs/backlight/amdgpu_bl1" -- 5; sudo light -Us "sysfs/backlight/amdgpu_bl0" -- 5
bind=,XF86Launch4,exec,asusctl profile -n; notify-send "Asus Control" " $(asusctl profile -p | awk '{print $NF}')" bind = ,XF86Launch4,exec,asusctl profile -n; notify-send "Asus Control" " $(asusctl profile -p | awk '{print $NF}')"
bind=SUPER,left,movefocus,l bind = SUPER,left,movefocus,l
bind=SUPER,right,movefocus,r bind = SUPER,right,movefocus,r
bind=SUPER,up,movefocus,u bind = SUPER,up,movefocus,u
bind=SUPER,down,movefocus,d bind = SUPER,down,movefocus,d
bind=SUPER,h,movefocus,l bind = SUPER,h,movefocus,l
bind=SUPER,l,movefocus,r bind = SUPER,l,movefocus,r
bind=SUPER,k,movefocus,u bind = SUPER,k,movefocus,u
bind=SUPER,j,movefocus,d bind = SUPER,j,movefocus,d
### Workspaces ### ### Workspaces ###
bind=SUPERSHIFT,left,exec,~/.config/hypr/scripts/focus-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') - 1 )) bind = SUPERSHIFT,left,exec,~/.config/hypr/scripts/focus-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') - 1 ))
bind=SUPERSHIFT,right,exec,~/.config/hypr/scripts/focus-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') + 1 )) bind = SUPERSHIFT,right,exec,~/.config/hypr/scripts/focus-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') + 1 ))
bind=SUPERCTRL,left,exec,~/.config/hypr/scripts/move-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') - 1 )) bind = SUPERCTRL,left,exec,~/.config/hypr/scripts/move-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') - 1 ))
bind=SUPERCTRL,right,exec,~/.config/hypr/scripts/move-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') + 1 )) bind = SUPERCTRL,right,exec,~/.config/hypr/scripts/move-workspace-mon.bash $(( $(hyprctl monitors -j | jq -c '.[] | select(.focused) | .activeWorkspace.id') + 1 ))
bind=SUPER,1,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 1 bind = SUPER,1,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 1
bind=SUPER,2,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 2 bind = SUPER,2,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 2
bind=SUPER,3,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 3 bind = SUPER,3,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 3
bind=SUPER,4,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 4 bind = SUPER,4,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 4
bind=SUPER,5,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 5 bind = SUPER,5,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 5
bind=SUPER,6,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 6 bind = SUPER,6,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 6
bind=SUPER,7,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 7 bind = SUPER,7,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 7
bind=SUPER,8,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 8 bind = SUPER,8,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 8
bind=SUPER,9,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 9 bind = SUPER,9,exec,~/.config/hypr/scripts/focus-workspace-mon.bash 9
bind=SUPERCTRL,1,exec,~/.config/hypr/scripts/move-workspace-mon.bash 1 bind = SUPERCTRL,1,exec,~/.config/hypr/scripts/move-workspace-mon.bash 1
bind=SUPERCTRL,2,exec,~/.config/hypr/scripts/move-workspace-mon.bash 2 bind = SUPERCTRL,2,exec,~/.config/hypr/scripts/move-workspace-mon.bash 2
bind=SUPERCTRL,3,exec,~/.config/hypr/scripts/move-workspace-mon.bash 3 bind = SUPERCTRL,3,exec,~/.config/hypr/scripts/move-workspace-mon.bash 3
bind=SUPERCTRL,4,exec,~/.config/hypr/scripts/move-workspace-mon.bash 4 bind = SUPERCTRL,4,exec,~/.config/hypr/scripts/move-workspace-mon.bash 4
bind=SUPERCTRL,5,exec,~/.config/hypr/scripts/move-workspace-mon.bash 5 bind = SUPERCTRL,5,exec,~/.config/hypr/scripts/move-workspace-mon.bash 5
bind=SUPERCTRL,6,exec,~/.config/hypr/scripts/move-workspace-mon.bash 6 bind = SUPERCTRL,6,exec,~/.config/hypr/scripts/move-workspace-mon.bash 6
bind=SUPERCTRL,7,exec,~/.config/hypr/scripts/move-workspace-mon.bash 7 bind = SUPERCTRL,7,exec,~/.config/hypr/scripts/move-workspace-mon.bash 7
bind=SUPERCTRL,8,exec,~/.config/hypr/scripts/move-workspace-mon.bash 8 bind = SUPERCTRL,8,exec,~/.config/hypr/scripts/move-workspace-mon.bash 8
bind=SUPERCTRL,9,exec,~/.config/hypr/scripts/move-workspace-mon.bash 9 bind = SUPERCTRL,9,exec,~/.config/hypr/scripts/move-workspace-mon.bash 9
### Special Workspace ### ### Special Workspace ###
bind=SUPERCTRL,s,togglespecialworkspace bind = SUPERCTRL,s,togglespecialworkspace
bind=SUPERCTRL,a,movetoworkspace,special bind = SUPERCTRL,a,movetoworkspace,special

View File

@ -1,20 +1,20 @@
source=./colors.conf source = ./colors.conf
### General Configuration ### ### General Configuration ###
general { general {
sensitivity=1.0 sensitivity = 1.0
gaps_in=5 gaps_in = 5
gaps_out=10 gaps_out = 10
border_size=2 border_size = 2
col.active_border=0xff$waveRed col.active_border = 0xff$waveRed
col.inactive_border=0xff$oniViolet col.inactive_border = 0xff$oniViolet
apply_sens_to_raw=false apply_sens_to_raw = false
} }
dwindle { dwindle {
pseudotile=0 # enable pseudotiling on dwindle pseudotile = 0 # enable pseudotiling on dwindle
} }
gestures { gestures {
workspace_swipe=no workspace_swipe = no
} }

View File

@ -1 +1 @@
monitor=,preferred,auto,1 monitor = ,preferred,auto,1