refactor(hypr): improve config layout

This commit is contained in:
Price Hiller 2024-03-15 23:18:05 -05:00
parent af26b037d3
commit 9015796dd7
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
10 changed files with 44 additions and 15 deletions

View File

@ -0,0 +1,21 @@
### GROMIT-MPX ###
workspace = special:gromit,gapsin:0,gapsout:0,decorate:false,border:false,on-created-empty:gromit-mpx -a
windowrulev2 = noblur,class:^(Gromit-mpx)$
windowrulev2 = opacity 1 override, 1 override,class:^(Gromit-mpx)$
windowrulev2 = noshadow,class:^(Gromit-mpx)$
windowrulev2 = nofullscreenrequest,class:^(Gromit-mpx)$
windowrulev2 = noanim,class:^(Gromit-mpx)$
windowrulev2 = size 100% 100%,class:^(Gromit-mpx)$
# Gromit Bindings
bind = CTRLSUPER,x,togglespecialworkspace,gromit
bind = CTRLSUPER,x,submap,gromit
submap = gromit
bind = ,c,exec, gromit-mpx --clear
bind = CTRL,z,exec, gromit-mpx --undo
bind = ,z,exec, gromit-mpx --redo
bind = CTRLSUPER,x,togglespecialworkspace,gromit
bind = CTRLSUPER,x,submap,reset
bind = ,escape,togglespecialworkspace,gromit
bind = ,escape,submap,reset
submap = reset

View File

@ -12,8 +12,11 @@ decoration {
shadow_ignore_window = true shadow_ignore_window = true
shadow_range = 45 shadow_range = 45
shadow_render_power = 6 shadow_render_power = 6
dim_special = 0.05
} }
animation=specialWorkspace,0
animations { animations {
enabled = 1 enabled = 1
bezier = overshot,0.08,0.8,0,1.1 bezier = overshot,0.08,0.8,0,1.1

View File

@ -67,11 +67,14 @@ bind = SUPER,Q,killactive,
bind = SUPER,A,togglefloating, bind = SUPER,A,togglefloating,
bind = SUPER,D,exec,makoctl dismiss -a bind = SUPER,D,exec,makoctl dismiss -a
bind = SUPERSHIFT,Q,exec,swaylock bind = SUPERSHIFT,Q,exec,swaylock
bind = SUPER,S,exec,grim -g "$(slurp)" - | wl-copy --type image/png bind = SUPERSHIFT,M,exit
bind = CTRLSUPER,S,exec,grim -g "$(slurp)" - | swappy -f -
### Screen Captures ###
# May be videos or screenshots
bind = SUPER,S,exec,grim -g "$(slurp)" - | swappy -f -
bind = CTRLSUPER,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
# Mediakey bindings as taken from `wev` # Mediakey bindings as taken from `wev`
bindl = ,XF86AudioPrev,exec,playerctl previous bindl = ,XF86AudioPrev,exec,playerctl previous
@ -120,7 +123,3 @@ 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 ###
bind = SUPERCTRL,s,togglespecialworkspace
bind = SUPERCTRL,a,movetoworkspace,special

View File

@ -1,5 +1,3 @@
windowrule = noblur,fullscreen:1,title:^(gromit-mpx)$
# Xwayland Video Bridge Rules # Xwayland Video Bridge Rules
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$ windowrulev2 = noanim,class:^(xwaylandvideobridge)$

View File

@ -0,0 +1,12 @@
$configDir = ~/.config/hypr/conf
### Core Config ###
source = $configDir/core/env.conf
source = $configDir/core/general.conf
source = $configDir/core/bindings.conf
source = $configDir/core/appearance.conf
source = $configDir/core/monitors.conf
source = $configDir/core/window-rules.conf
### Application Specific ###
source = $configDir/application/gromit-mpx.conf

View File

@ -1,9 +1,5 @@
source = ~/.config/hypr/wm/env.conf source = ~/.config/hypr/conf/init.conf
source = ~/.config/hypr/wm/general.conf
source = ~/.config/hypr/wm/bindings.conf
source = ~/.config/hypr/wm/appearance.conf
source = ~/.config/hypr/wm/monitors.conf
source = ~/.config/hypr/wm/window-rules.conf
exec = systemd-run --user --unit=udiskie udiskie --tray || systemctl --user restart udiskie exec = systemd-run --user --unit=udiskie udiskie --tray || systemctl --user restart udiskie
exec = systemd-run --user --unit=blueman-applet blueman-applet || systemctl --user restart blueman-applet exec = systemd-run --user --unit=blueman-applet blueman-applet || systemctl --user restart blueman-applet
exec = systemd-run --user --unit=slimbookbattery slimbookbattery --minimize || systemctl --user restart slimbookbattery exec = systemd-run --user --unit=slimbookbattery slimbookbattery --minimize || systemctl --user restart slimbookbattery