refactor:hypr&alacritty_config

This commit is contained in:
dichgrem
2025-07-24 21:23:02 +08:00
parent 12e5ab96f2
commit 76b04610ca
3 changed files with 98 additions and 65 deletions

View File

@@ -8,6 +8,7 @@ TERM = "xterm-256color"
[window] [window]
dynamic_padding = true dynamic_padding = true
decorations = "None" decorations = "None"
opacity = 0.85
[window.dimensions] [window.dimensions]
columns = 100 columns = 100

View File

@@ -1,20 +1,33 @@
source = ~/.config/hypr/theme.conf source = ~/.config/hypr/theme.conf
#animations {
# enabled = true
# bezier = liner, 1, 1, 1, 1
# bezier = overshot, 0.13, 0.99, 0.29, 1.1
# bezier = wind, 0.05, 0.9, 0.1, 1.05
# bezier = winIn, 0.1, 1.1, 0.1, 1.1
# animation = windows, 1, 6, wind, slide
# animation = windowsIn, 1, 7, winIn, slide
# animation = windowsOut, 1, 7, default, popin 80%
# animation = windowsMove, 1, 5, wind, slide
# animation = border, 1, 1, liner
# animation = fade, 1, 10, default
# animation = workspaces, 1, 8, default, slidefade 20%
# animation = specialWorkspaceIn, 1, 8, default, fade
# animation = specialWorkspaceOut, 1, 8, default, fade
#}
animations { animations {
enabled = true enabled = yes
bezier = liner, 1, 1, 1, 1 bezier = smooth, 0.1, 0.9, 0.2, 1.0
bezier = overshot, 0.13, 0.99, 0.29, 1.1 bezier = default, 0.25, 0.8, 0.5, 1
bezier = wind, 0.05, 0.9, 0.1, 1.05 bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1 animation = windowsIn, 1, 4, smooth, slide
animation = windows, 1, 6, wind, slide animation = windowsOut, 1, 2, default, popin 80%
animation = windowsIn, 1, 7, winIn, slide animation = windowsMove, 1, 4, wind, slide
animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 5, default
animation = windowsMove, 1, 5, wind, slide animation = workspacesIn, 1, 6, smooth, slide
animation = border, 1, 1, liner animation = workspacesOut, 1, 6, smooth, slidefade 80%
animation = fade, 1, 10, default
animation = workspaces, 1, 8, default, slidefade 20%
animation = specialWorkspaceIn, 1, 8, default, fade
animation = specialWorkspaceOut, 1, 8, default, fade
} }
@@ -51,10 +64,10 @@ env = XDG_SESSION_DESKTOP, Hyprland
general { general {
gaps_in = 1 gaps_in = 1
gaps_out = 1 gaps_out = 1
border_size = 1 border_size = 2
col.active_border = $lavender col.active_border = $lavender
col.inactive_border = $base col.inactive_border = $base
layout = hy3 layout = tile
} }
@@ -101,34 +114,34 @@ misc {
} }
plugin { #plugin {
hy3 { # hy3 {
no_gaps_when_only = 1 # no_gaps_when_only = 1
node_collapse_policy = 1 # node_collapse_policy = 1
group_inset = 10 # group_inset = 10
tab_first_window = true # tab_first_window = true
tabs { # tabs {
col.active = rgb(b4befe) # col.active = rgb(b4befe)
col.active.border = rgb(313244) # col.active.border = rgb(313244)
col.active.text = rgb(181825) # col.active.text = rgb(181825)
col.inactive = rgb(181825) # col.inactive = rgb(181825)
col.inactive.border = rgb(313244) # col.inactive.border = rgb(313244)
col.inactive.text = rgb(b4befe) # col.inactive.text = rgb(b4befe)
col.urgent = rgb(f2cdcd) # col.urgent = rgb(f2cdcd)
col.urgent.border = rgb(313244) # col.urgent.border = rgb(313244)
col.urgent.text = rgb(181825) # col.urgent.text = rgb(181825)
from_top = false # from_top = false
height = 14 # height = 14
padding = 2 # padding = 2
render_text = true # render_text = true
rounding = 6 # rounding = 6
text_center = true # text_center = true
text_font = Sarasa Gothic SC # text_font = Sarasa Gothic SC
text_height = 10 # text_height = 10
text_padding = 0 # text_padding = 0
} # }
} # }
} #}
xwayland { xwayland {

View File

@@ -41,7 +41,8 @@ bind = SUPER_CTRL_ALT, S, exec, sh ~/.config/waybar/scripts/Screenshot-OCR.sh
## Window actions ## Window actions
bind = SUPER, F, fullscreen bind = SUPER, F, fullscreen
bind = SUPER, Q, hy3:killactive bind = SUPER, Q, killactive
#bind = SUPER, Q, hy3:killactive
## Window actions (bonus) ## Window actions (bonus)
bind = SUPER_SHIFT, F, togglefloating bind = SUPER_SHIFT, F, togglefloating
@@ -108,34 +109,52 @@ bind = SUPER_CTRL, L, workspace, +1
## Window focus movement ## Window focus movement
### Using Alt+Tab ### Using Alt+Tab
bind = ALT, Tab, hy3:movefocus, r #bind = ALT, Tab, hy3:movefocus, r
bind = ALT_SHIFT, Tab, hy3:movefocus, l #bind = ALT_SHIFT, Tab, hy3:movefocus, l
bind = ALT, Tab, movefocus, r
bind = ALT_SHIFT, Tab, movefocus, l
### Using Arrow keys ### Using Arrow keys
bind = SUPER, left, hy3:movefocus,l #bind = SUPER, left, hy3:movefocus,l
bind = SUPER, right, hy3:movefocus,r #bind = SUPER, right, hy3:movefocus,r
bind = SUPER, up, hy3:movefocus,u #bind = SUPER, up, hy3:movefocus,u
bind = SUPER, down, hy3:movefocus,d #bind = SUPER, down, hy3:movefocus,d
bind = SUPER, left, movefocus,l
bind = SUPER, right, movefocus,r
bind = SUPER, up, movefocus,u
bind = SUPER, down, movefocus,d
### Using Vim-like keys ### Using Vim-like keys
bind = SUPER_Alt, H, hy3:movefocus, l #bind = SUPER_Alt, H, hy3:movefocus, l
bind = SUPER_Alt, L, hy3:movefocus, r #bind = SUPER_Alt, L, hy3:movefocus, r
bind = SUPER_Alt, K, hy3:movefocus, u #bind = SUPER_Alt, K, hy3:movefocus, u
bind = SUPER_Alt, J, hy3:movefocus, d #bind = SUPER_Alt, J, hy3:movefocus, d
bind = SUPER_Alt, H, movefocus, l
bind = SUPER_Alt, L, movefocus, r
bind = SUPER_Alt, K, movefocus, u
bind = SUPER_Alt, J, movefocus, d
## Window direction movement ## Window direction movement
### Using Arrow keys ### Using Arrow keys
bind = SUPER_SHIFT, left, hy3:movewindow,l #bind = SUPER_SHIFT, left, hy3:movewindow,l
bind = SUPER_SHIFT, right, hy3:movewindow,r #bind = SUPER_SHIFT, right, hy3:movewindow,r
bind = SUPER_SHIFT, up, hy3:movewindow,u #bind = SUPER_SHIFT, up, hy3:movewindow,u
bind = SUPER_SHIFT, down, hy3:movewindow,d #bind = SUPER_SHIFT, down, hy3:movewindow,d
bind = SUPER_SHIFT, left, movewindow,l
bind = SUPER_SHIFT, right, movewindow,r
bind = SUPER_SHIFT, up, movewindow,u
bind = SUPER_SHIFT, down, movewindow,d
### Using Vim-like keys ### Using Vim-like keys
bind = SUPER_SHIFT, H, hy3:movefocus, l #bind = SUPER_SHIFT, H, hy3:movefocus, l
bind = SUPER_SHIFT, L, hy3:movefocus, r #bind = SUPER_SHIFT, L, hy3:movefocus, r
bind = SUPER_SHIFT, K, hy3:movefocus, u #bind = SUPER_SHIFT, K, hy3:movefocus, u
bind = SUPER_SHIFT, J, hy3:movefocus, d #bind = SUPER_SHIFT, J, hy3:movefocus, d
bind = SUPER_SHIFT, H, movefocus, l
bind = SUPER_SHIFT, L, movefocus, r
bind = SUPER_SHIFT, K, movefocus, u
bind = SUPER_SHIFT, J, movefocus, d
## Some smart actions with Mouse ## Some smart actions with Mouse
@@ -149,9 +168,9 @@ bind = SUPER, mouse:275, workspace, e+1
bind = SUPER, mouse:276, workspace, e-1 bind = SUPER, mouse:276, workspace, e-1
### hy3 bonus ### hy3 bonus
bindn = , mouse:272, hy3:focustab, mouse #bindn = , mouse:272, hy3:focustab, mouse
bindn = , mouse_down, hy3:focustab, l, require_hovered #bindn = , mouse_down, hy3:focustab, l, require_hovered
bindn = , mouse_up, hy3:focustab, r, require_hovered #bindn = , mouse_up, hy3:focustab, r, require_hovered
## Brightness control ## Brightness control