diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml new file mode 100644 index 0000000..f391a6a --- /dev/null +++ b/alacritty/alacritty.toml @@ -0,0 +1,11 @@ +[general] +import=[ + "~/.config/alacritty/dracula.toml" +] +[window] +padding={x=5,y=5} +dynamic_padding=true +opacity=0.9 +[font] +normal={family="Jetbrains Mono Nerd Font", style="Regular"} +size=14 diff --git a/alacritty/dracula.toml b/alacritty/dracula.toml new file mode 100644 index 0000000..0a56c29 --- /dev/null +++ b/alacritty/dracula.toml @@ -0,0 +1,76 @@ +# Dracula theme for Alacritty +# https://draculatheme.com/alacritty +# +# Color palette +# https://spec.draculatheme.com +# +# Instructions +# https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd + +[colors.primary] + +background = "#282a36" +foreground = "#f8f8f2" +bright_foreground = "#ffffff" + +[colors.cursor] + +text = "#282a36" +cursor = "#f8f8f2" + +[colors.vi_mode_cursor] + +text = "CellBackground" +cursor = "CellForeground" + +[colors.selection] + +text = "CellForeground" +background = "#44475a" + +[colors.normal] + +black = "#21222c" +red = "#ff5555" +green = "#50fa7b" +yellow = "#f1fa8c" +blue = "#bd93f9" +magenta = "#ff79c6" +cyan = "#8be9fd" +white = "#f8f8f2" + +[colors.bright] + +black = "#6272a4" +red = "#ff6e6e" +green = "#69ff94" +yellow = "#ffffa5" +blue = "#d6acff" +magenta = "#ff92df" +cyan = "#a4ffff" +white = "#ffffff" + +[colors.search.matches] + +foreground = "#44475a" +background = "#50fa7b" + +[colors.search.focused_match] + +foreground = "#44475a" +background = "#ffb86c" + +[colors.footer_bar] + +background = "#282a36" +foreground = "#f8f8f2" + +[colors.hints.start] + +foreground = "#282a36" +background = "#f1fa8c" + +[colors.hints.end] + +foreground = "#f1fa8c" +background = "#282a36" diff --git a/hypr/keyboard.conf b/hypr/keyboard.conf index 0fed944..d8fc175 100644 --- a/hypr/keyboard.conf +++ b/hypr/keyboard.conf @@ -19,15 +19,15 @@ bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, C, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, -bind = $mainMod, P, exec, $menu -bind = $mainMod SHIFT, P, pseudo, # dwindle +bind = $mainMod, SPACE, exec, $menu +bind = $mainMod, P, pseudo, # dwindle bind = $mainMod SHIFT, J, togglesplit, # dwindle # Move focus with mainMod + arrow keys -bind = $mainMod, h, movefocus, left -bind = $mainMod, l, movefocus, right -bind = $mainMod, j, movefocus, down -bind = $mainMod, k, movefocus, up +bind = $mainMod, h, movefocus, l +bind = $mainMod, l, movefocus, r +bind = $mainMod, j, movefocus, d +bind = $mainMod, k, movefocus, u # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 diff --git a/hypr/rules.conf b/hypr/rules.conf index 233afe9..994a569 100644 --- a/hypr/rules.conf +++ b/hypr/rules.conf @@ -5,7 +5,8 @@ # 文件对话框 windowrule = float, class:^(thunar|google-chrome|chromium)$, title:^(.*文件.*|.*保存.*|.*打开.*) -windowrule = float, class:^(Alacritty)$, title:^(alacritty -e \./system-update\.sh.*) +# 更新系统 +windowrule = float, class:^(Alacritty)$, title:^(.*system) # Ignore maximize requests from apps. You'll probably like this. windowrule = suppressevent maximize, class:.* diff --git a/waybar/modules/custom/system_update.jsonc b/waybar/modules/custom/system_update.jsonc index d8bd085..8c4069b 100644 --- a/waybar/modules/custom/system_update.jsonc +++ b/waybar/modules/custom/system_update.jsonc @@ -15,7 +15,7 @@ // "justify": "min-length": 2, "max-length": 2, - "on-click": "alacritty -e ~/.config/waybar/scripts/system-update.sh", + "on-click": "alacritty --class 'system' -e ~/.config/waybar/scripts/system-update.sh", // "on-click-middle": "on-click-right": "pkill -RTMIN+1 waybar" // "on-update":