修改hyprland样式
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
################################################
|
||||
|
||||
12
modules/home/hyprland/conf/hypr/scripts/keybinds.sh
Executable file
12
modules/home/hyprland/conf/hypr/scripts/keybinds.sh
Executable file
@@ -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
|
||||
@@ -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)$
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -79,7 +79,8 @@
|
||||
"org.gnome.Nautilus": "",
|
||||
"wechat": "",
|
||||
"wps": "",
|
||||
"class<et>": ""
|
||||
"class<et>": "",
|
||||
"vlc": ""
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user