diff --git a/modules/home/hyprland/conf/hypr/keybindings.conf b/modules/home/hyprland/conf/hypr/keybindings.conf index 7db399c..12d5295 100644 --- a/modules/home/hyprland/conf/hypr/keybindings.conf +++ b/modules/home/hyprland/conf/hypr/keybindings.conf @@ -24,6 +24,7 @@ bind = $mainMod CTRL, L, exec, swaylock # lock screen bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, S, togglesplit, # split screen bind = $mainMod, return, fullscreen, # toggle the window on focus to fullscreen +bind = $mainMod, F1, exec, ~/.config/hypr/scripts/keybinds.sh # Application shortcuts bind = $mainMod, grave, exec, $terminal # ~ open terminal @@ -53,8 +54,8 @@ bind = , XF86AudioNext, exec, playerctl next bind = , XF86AudioPrev, exec, playerctl previous # Screenshot/screencapture -bind = , PRINT, exec, hyprshot -m window -bind = ALT, PRINT, exec, hyprshot -m region +bind = , PRINT, exec, hyprshot -zm window +bind = ALT, PRINT, exec, hyprshot -zm region ################################################ diff --git a/modules/home/hyprland/conf/hypr/scripts/keybinds.sh b/modules/home/hyprland/conf/hypr/scripts/keybinds.sh new file mode 100755 index 0000000..1354337 --- /dev/null +++ b/modules/home/hyprland/conf/hypr/scripts/keybinds.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +# 简单示例:从 hyprland.conf 提取非注释的 bind= 行 +# 注意:这可能需要根据你的配置复杂性进行调整(例如处理逗号后的空格、多行绑定等) +grep '^bind =' ~/.config/hypr/keybindings.conf | \ +sed 's/^bind = //; s/, /\t/' | \ +# 可以进一步处理,比如移除 exec 后面的命令细节,只留动作描述 +# sed -E 's/,(.+)/ : \1/' | # 简单替换 +column -t -s $'\t' | \ +rofi -dmenu -i -p "Hyprland Keybinds" -markup-rows -config ~/.config/rofi/config-keybinds.rasi +# 或者使用 wofi: +# wofi --dmenu --prompt "Hyprland Keybinds" --insensitive \ No newline at end of file diff --git a/modules/home/hyprland/conf/hypr/windowrules.conf b/modules/home/hyprland/conf/hypr/windowrules.conf index 17d55f8..f31ceb0 100644 --- a/modules/home/hyprland/conf/hypr/windowrules.conf +++ b/modules/home/hyprland/conf/hypr/windowrules.conf @@ -10,8 +10,8 @@ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # Float rules for system dialogs and popups -windowrulev2 = float,class:^(.*)$,title:^(Open [Ff]ile) -windowrulev2 = center,class:^(.*)$,title:^(Open [Ff]ile) +windowrulev2 = float,class:^(.*)$,title:^(Open [Ff]iles?) +windowrulev2 = center,class:^(.*)$,title:^(Open [Ff]iles?) windowrulev2 = float,class:^(.*)$,title:^(Open [Ff]older) windowrulev2 = center,class:^(.*)$,title:^(Open [Ff]older) @@ -35,6 +35,6 @@ windowrulev2 = float,class:^(blueman-manager)$ windowrulev2 = opacity 0.80 0.70,class:^(blueman-manager)$ -windowrulev2 = opacity 0.50 0.50,class:^(Code)$ +windowrulev2 = opacity 1.00 1.00,class:^(code)$ windowrulev2 = opacity 0.80 0.80,class:^(code-url-handler)$ -windowrulev2 = opacity 0.80 0.80,class:^(kitty)$ +windowrulev2 = opacity 0.50 0.50,class:^(kitty)$ diff --git a/modules/home/hyprland/conf/rofi/config.rasi b/modules/home/hyprland/conf/rofi/config.rasi index a038244..0ae9544 100644 --- a/modules/home/hyprland/conf/rofi/config.rasi +++ b/modules/home/hyprland/conf/rofi/config.rasi @@ -33,8 +33,8 @@ configuration { window { background-color: @bg0; location: center; - width: 560px; - height: 450px; + width: 720px; + height: 500px; border-radius: 8px; border: 1px; border-color: @bg1; diff --git a/modules/home/hyprland/conf/waybar/config.jsonc b/modules/home/hyprland/conf/waybar/config.jsonc index bc78030..4048323 100644 --- a/modules/home/hyprland/conf/waybar/config.jsonc +++ b/modules/home/hyprland/conf/waybar/config.jsonc @@ -79,7 +79,8 @@ "org.gnome.Nautilus": "󰪶", "wechat": "", "wps": "󰈬", - "class": "󰈛" + "class": "󰈛", + "vlc": "󰕼" } },