feat: Add some more rules and fix draw screen dimming

This commit is contained in:
2025-04-20 22:50:51 +10:00
parent 7fc2d78f96
commit 3d07720567
8 changed files with 38 additions and 149 deletions

View File

@@ -68,13 +68,32 @@ general {
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
snap {
enabled = true
window_gap = 20
monitor_gap = 20
}
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10
rounding_power = 2
active_opacity = 0.9
inactive_opacity = 0.75
fullscreen_opacity = 1
dim_inactive = false
dim_strength = 0.5
dim_special = 0.2
dim_around = 0.4
blur {
enabled = true
size = 3
@@ -82,9 +101,6 @@ decoration {
xray = 0
}
active_opacity = 0.9
inactive_opacity = 0.75
fullscreen_opacity = 1
}
animations {
@@ -93,7 +109,6 @@ animations {
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
@@ -106,6 +121,7 @@ dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
smart_split = true
}
master {
@@ -228,9 +244,8 @@ bind = $mainMod SHIFT, 0, movetodesk, 10
# hyprlang noerror false
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod CTRL, S, movetoworkspace, special:magic
# bindr = $mainMod, SUPER_L, exec, hyprpanel toggleWindow dashboardmenu
bind = $mainMod, S, togglespecialworkspace, terminal
bind = $mainMod CTRL, S, movetoworkspace, special:terminal
bind = $mainMod SHIFT, S, exec, hyprshot -m region
@@ -288,7 +303,5 @@ bind = $mainMod, PERIOD, exec, bemoji
# Custom terminal
bind = $mainMod, T, exec, alacritty --config-file ~/dotfiles/.alacritty-nozellij.toml
# Save output to ~/tmp/errors.log
bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh
bind = $mainMod CTRL, W, exec, systemctl --user start wallpaper.timer && hyprctl notify 1 1500 0 "Started wallpaper timer"
bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh

View File

@@ -52,15 +52,22 @@ if __name__ == "__main__":
print("Rebinding mouse buttons")
os.system("hyprctl keyword bind , mouse_left, exec, 'ydotool key 56:1 105:1 105:0 56:0'")
os.system("hyprctl keyword bind , mouse_right, exec, 'ydotool key 56:1 106:1 106:0 56:0'")
# Set dim special to default
os.system("hyprctl keyword decoration:dim_special 0.5")
else:
print("Gromit is not running",flush=True)
# Check if gromit-mpx is running
if gromit_running():
os.system("gromit-mpx -t")
# Disable dim special
os.system("hyprctl keyword decoration:dim_special 0")
os.system("hyprctl dispatch togglespecialworkspace gromit")
os.system("hyprctl keyword unbind , mouse_left")
os.system("hyprctl keyword unbind , mouse_right")
os.system("hyprctl keyword bind , mouse_left, exec, 'gromit-mpx --undo'")
os.system("hyprctl keyword bind , mouse_right, exec, 'gromit-mpx --redo'")

View File

@@ -39,6 +39,10 @@ windowrule = size 100% 100%, class:^(Gromit-mpx)$
windowrule = opacity 1 override 1 override class:brave-browser
windowrule = opacity 1 override 1 override class:mpv
workspace = special:magic, on-created-empty: alacritty
# Disable opacity for Alacritty (as it already has a transparent background)
windowrule = opacity 1 override 0.75 override class:Alacritty
workspace = special:terminal, on-created-empty: alacritty
# hyprlang noerror false