From 3d077205670cc266c18de88eef863cdf263691bd Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 20 Apr 2025 22:50:51 +1000 Subject: [PATCH] feat: Add some more rules and fix draw screen dimming --- .alacritty-nozellij.toml | 2 +- .alacritty.toml | 2 +- .config/.gitignore | 1 + .config/btop/btop.log | 136 ------------------------ .config/hypr/hyprland.conf | 33 ++++-- .config/hypr/scripts/gromit.py | 7 ++ .config/hypr/scripts/search-windows.log | 0 .config/hypr/windowrules.conf | 6 +- 8 files changed, 38 insertions(+), 149 deletions(-) delete mode 100644 .config/btop/btop.log delete mode 100644 .config/hypr/scripts/search-windows.log diff --git a/.alacritty-nozellij.toml b/.alacritty-nozellij.toml index f184059..7f771e5 100644 --- a/.alacritty-nozellij.toml +++ b/.alacritty-nozellij.toml @@ -6,7 +6,7 @@ shell = "zsh" [window] decorations = "none" startup_mode = "Windowed" -opacity = 1 +opacity = 0.8 blur = true # padding = { x = 10, y = 10 } diff --git a/.alacritty.toml b/.alacritty.toml index 18f601c..3dc4c5a 100644 --- a/.alacritty.toml +++ b/.alacritty.toml @@ -6,7 +6,7 @@ shell = "zsh" [window] decorations = "none" startup_mode = "Windowed" -opacity = 1 +opacity = 0.8 blur = true # padding = { x = 10, y = 10 } diff --git a/.config/.gitignore b/.config/.gitignore index 8d3770e..508c55e 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -27,5 +27,6 @@ !btop !btop/** btop/themes/WallRizz.theme +btop/btop.log !kitty !kitty/** diff --git a/.config/btop/btop.log b/.config/btop/btop.log deleted file mode 100644 index 5ee9ecf..0000000 --- a/.config/btop/btop.log +++ /dev/null @@ -1,136 +0,0 @@ - -2025/04/03 (15:28:50) | ===> btop++ v.1.4.0 -2025/04/03 (15:28:50) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (17:04:21) | ===> btop++ v.1.4.0 -2025/04/03 (17:04:21) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (19:12:00) | ===> btop++ v.1.4.0 -2025/04/03 (19:12:00) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (19:12:15) | ===> btop++ v.1.4.0 -2025/04/03 (19:12:15) | WARNING: Intel GPU: Failed to initialize PMU -2025/04/03 (19:12:39) | ERROR: Stall in Runner thread, restarting! - -2025/04/03 (19:13:16) | ===> btop++ v.1.4.0 -2025/04/03 (19:13:16) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (19:13:17) | ===> btop++ v.1.4.0 -2025/04/03 (19:13:17) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (19:13:24) | ===> btop++ v.1.4.0 -2025/04/03 (19:13:24) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (19:42:15) | ===> btop++ v.1.4.0 -2025/04/03 (19:42:15) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/03 (19:59:14) | ===> btop++ v.1.4.0 -2025/04/03 (19:59:14) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/04 (12:20:48) | ===> btop++ v.1.4.0 -2025/04/04 (12:20:48) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/04 (12:35:50) | ===> btop++ v.1.4.0 -2025/04/04 (12:35:50) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/04 (17:08:48) | ===> btop++ v.1.4.0 -2025/04/04 (17:08:48) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/04 (18:17:39) | ===> btop++ v.1.4.0 -2025/04/04 (18:17:39) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/04 (18:30:39) | ===> btop++ v.1.4.0 -2025/04/04 (18:30:39) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/04 (18:32:11) | ===> btop++ v.1.4.0 -2025/04/04 (18:32:11) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/05 (14:07:19) | ===> btop++ v.1.4.0 -2025/04/05 (14:07:19) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/08 (12:20:25) | ===> btop++ v.1.4.0 -2025/04/08 (12:20:25) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/08 (14:28:39) | ===> btop++ v.1.4.0 -2025/04/08 (14:28:39) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/08 (22:53:43) | ===> btop++ v.1.4.0 -2025/04/08 (22:53:43) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/10 (15:24:50) | ===> btop++ v.1.4.0 -2025/04/10 (15:24:50) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/10 (16:02:00) | ===> btop++ v.1.4.0 -2025/04/10 (16:02:00) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/11 (13:53:22) | ===> btop++ v.1.4.0 -2025/04/11 (13:53:22) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/11 (14:05:35) | ===> btop++ v.1.4.0 -2025/04/11 (14:05:35) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/15 (11:56:11) | ===> btop++ v.1.4.0 -2025/04/15 (11:56:11) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (16:03:55) | ===> btop++ v.1.4.0 -2025/04/19 (16:03:55) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:13:46) | ===> btop++ v.1.4.0 -2025/04/19 (17:13:46) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:13:56) | ===> btop++ v.1.4.0 -2025/04/19 (17:13:56) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:14:03) | ===> btop++ v.1.4.0 -2025/04/19 (17:14:03) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:17:05) | ===> btop++ v.1.4.0 -2025/04/19 (17:17:05) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:17:40) | ===> btop++ v.1.4.0 -2025/04/19 (17:17:40) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:47:27) | ===> btop++ v.1.4.0 -2025/04/19 (17:47:27) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:47:35) | ===> btop++ v.1.4.0 -2025/04/19 (17:47:35) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:47:46) | ===> btop++ v.1.4.0 -2025/04/19 (17:47:46) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:47:54) | ===> btop++ v.1.4.0 -2025/04/19 (17:47:54) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:49:31) | ===> btop++ v.1.4.0 -2025/04/19 (17:49:31) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:51:02) | ===> btop++ v.1.4.0 -2025/04/19 (17:51:02) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:51:07) | ===> btop++ v.1.4.0 -2025/04/19 (17:51:07) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:51:09) | ===> btop++ v.1.4.0 -2025/04/19 (17:51:09) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:51:15) | ===> btop++ v.1.4.0 -2025/04/19 (17:51:15) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (17:54:49) | ===> btop++ v.1.4.0 -2025/04/19 (17:54:49) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (18:45:05) | ===> btop++ v.1.4.0 -2025/04/19 (18:45:05) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/19 (22:20:46) | ===> btop++ v.1.4.0 -2025/04/19 (22:20:46) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/20 (17:30:16) | ===> btop++ v.1.4.0 -2025/04/20 (17:30:16) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/20 (17:33:49) | ===> btop++ v.1.4.0 -2025/04/20 (17:33:49) | WARNING: Intel GPU: Failed to initialize PMU - -2025/04/20 (17:33:52) | ===> btop++ v.1.4.0 -2025/04/20 (17:33:52) | WARNING: Intel GPU: Failed to initialize PMU diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 43f0e49..135379c 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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" \ No newline at end of file +bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh \ No newline at end of file diff --git a/.config/hypr/scripts/gromit.py b/.config/hypr/scripts/gromit.py index 42937a2..99f0480 100755 --- a/.config/hypr/scripts/gromit.py +++ b/.config/hypr/scripts/gromit.py @@ -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'") + \ No newline at end of file diff --git a/.config/hypr/scripts/search-windows.log b/.config/hypr/scripts/search-windows.log deleted file mode 100644 index e69de29..0000000 diff --git a/.config/hypr/windowrules.conf b/.config/hypr/windowrules.conf index aadd632..9054161 100644 --- a/.config/hypr/windowrules.conf +++ b/.config/hypr/windowrules.conf @@ -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