From c23af7303ae9a001b45fb47cd88b3e7a47b0806f Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 27 May 2025 15:40:31 +1000 Subject: [PATCH] fix: Window rules keybinds and other stuff --- .config/hypr/hyprland.conf | 2 +- .config/hypr/keybinds.conf | 16 +++++++++++----- .config/hypr/scripts/exec-once.sh | 5 +++-- .config/hypr/start-exec.conf | 4 ++-- .config/hypr/windowrules.conf | 13 +++++++++---- .config/hyprpanel/config.json | 26 ++++++++++---------------- .config/hyprpanel/modules.json | 10 ---------- .config/kitty/kitty.conf | 2 +- 8 files changed, 37 insertions(+), 41 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 201b74a..5c511e8 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -13,6 +13,7 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=,preferred,auto,1 +monitor=desc:Samsung Electric Company C34H89x H4ZR900171, highrr, auto, 1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more @@ -140,7 +141,6 @@ cursor { misc { # See https://wiki.hyprland.org/Configuring/Variables/ for more - force_default_wallpaper = 1 disable_splash_rendering = 1 disable_hyprland_logo = 1 focus_on_activate = 0 # This breaks vdesks diff --git a/.config/hypr/keybinds.conf b/.config/hypr/keybinds.conf index 0fd0c82..95b8ac6 100644 --- a/.config/hypr/keybinds.conf +++ b/.config/hypr/keybinds.conf @@ -18,7 +18,7 @@ bind = CTRL ALT, Delete, exit bind = $mainMod, L, exec, hyprlock #bind = $mainMod, V, exec, [float] alacritty --class clipse -e /home/nathan/.local/bin/clipse -bind = $mainMod, V, exec, [float] kitty --class clipse -e /home/nathan/.local/bin/clipse +bind = $mainMod, V, exec, [float] kitty --class float-80 -e /home/nathan/.local/bin/clipse @@ -72,6 +72,7 @@ bind = $mainMod, S, togglespecialworkspace, terminal bind = $mainMod CTRL, S, movetoworkspace, special:terminal bind = $mainMod SHIFT, S, exec, hyprshot -m region +bind = $mainMod CTRL SHIFT, S, exec, hyprshot -m window -m active # Scroll through existing workspaces with mainMod + scroll # bind = $mainMod, mouse_down, workspace, e+1 @@ -88,7 +89,6 @@ bind = $mainMod SHIFT, S, exec, hyprshot -m region # bind = CTRL ALT, TAB, overview:toggle bind = $mainMod, TAB, hyprexpo:expo, toggle -bind = CTRL ALT, TAB, hyprexpo:expo, toggle bind = ALT, TAB, lastdesk # hyprlang noerror false @@ -100,14 +100,20 @@ bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK bindle=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- bindle=, XF86MonBrightnessUp, exec, brightnessctl s +5% bindle=, XF86MonBrightnessDown, exec, brightnessctl s 5%- -bindle=, XF86Search, exec, $menu +bind=, XF86Search, exec, $menu # bindl=, XF86AudioMute, exec, amixer set Master toggle bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +bindl=, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindl=, XF86AudioPlay, exec, playerctl play-pause # the stupid key is called play , but it toggles bindl=, XF86AudioNext, exec, playerctl next bindl=, XF86AudioPrev, exec, playerctl previous - +# Other FN keys +bindl= $mainMod CTRL, XF86TouchpadToggle, exec, hyprctl notify -1 2000 -1 "TODO Touchpad Toggle" +bind = $mainMod, P, exec, hyprctl notify -1 2000 -1 "TODO Screen Settings" +bindl = , Print, exec, hyprshot -m output -m active +bindl = $mainMod, Print, exec, hyprshot -m window -m active +bindl = $mainMod CTRL, Print, exec, hyprshot -m region # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow @@ -128,4 +134,4 @@ bind = $mainMod, T, exec, alacritty --config-file ~/dotfiles/.alacritty-nozellij bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh -bind = $mainMod CTRL, W, exec, WallRizz -r -n -d ~/.config/backgrounds +bind = $mainMod CTRL, W, exec, systemctl --user start wallpaper.timer && WallRizz -r -n -d ~/.config/backgrounds diff --git a/.config/hypr/scripts/exec-once.sh b/.config/hypr/scripts/exec-once.sh index 6352a55..b76be31 100755 --- a/.config/hypr/scripts/exec-once.sh +++ b/.config/hypr/scripts/exec-once.sh @@ -1,10 +1,11 @@ #!/bin/bash -sleep 2 +sleep 3 clipse -listen & # alacritty --class alacritty-init & -/home/nathan/AppImages/Fingertip-0.0.4-beta2-linux-X64.AppImage & +#/home/nathan/AppImages/Fingertip-0.0.4-beta2-linux-X64.AppImage & # This is broken using sane now + /home/nathan/AppImages/nextcloud_desktop_sync_client.appimage --background & # discord --start-minimized & Using vesktop now diff --git a/.config/hypr/start-exec.conf b/.config/hypr/start-exec.conf index 8c99bdb..76c1f23 100644 --- a/.config/hypr/start-exec.conf +++ b/.config/hypr/start-exec.conf @@ -1,6 +1,6 @@ exec-once = hyprpm reload -n -exec-once = hyprpanel -exec-once = hyprpaper +exec-once = hyprpanel > ~/.logs/hyprpanel.log +exec-once = hyprpaper > ~/.logs/hyprpaper.log exec-once = hypridle exec-once = /usr/bin/kdeconnectd diff --git a/.config/hypr/windowrules.conf b/.config/hypr/windowrules.conf index 31d5a91..67a24d2 100644 --- a/.config/hypr/windowrules.conf +++ b/.config/hypr/windowrules.conf @@ -7,7 +7,7 @@ windowrulev2 = size <80% <80%,floating:1 # windowrulev2 = float,class:(clipse) # windowrulev2 = size 622 652,class:(clipse) -# windowrulev2 = stayfocused,class:(clipse) +# windowrulev2 = opacity 1 override 1 override,class:(clipse) windowrulev2 = float,class:(float) windowrule = size <80% <80%,class:(float) @@ -36,10 +36,14 @@ workspace = special:gromit, gapsin:0, gapsout:0, shadow:0, on-created-empty: gro windowrule = noblur, class:^(Gromit-mpx)$ windowrule = opacity 1 override, 1 override, class:^(Gromit-mpx)$ windowrule = noshadow, class:^(Gromit-mpx)$ -windowrule = suppressevent fullscreen, class:^(Gromit-mpx)$ windowrule = size 100% 100%, class:^(Gromit-mpx)$ +# Floating broken windows +windowrule = opacity 1 override 1 override class:^(xdg-desktop-portal-gtk)$ +#windowrule = float 1, class:^(xdg-desktop-portal-gtk)$ + + # No Opacity windowrules windowrule = opacity 1 override 1 override class:brave-browser @@ -48,10 +52,11 @@ windowrule = opacity 1 override 1 override class:virt-manager windowrule = opacity 1 override 1 override class:^(Bootstrap Studio)$ windowrule = opacity 1 override 1 override class:^(Minecraft)(.*)$ windowrule = opacity 1 override 1 override class:^(gimp)$ +windowrule = opacity 1 override 1 override class:^(com.obsproject.Studio)$ + # Disable opacity for Alacritty (as it already has a transparent background) -windowrule = opacity 1 override 0.75 override class:Alacritty - +windowrule = opacity 1 override 0.75 override class:^(Alacritty)$ workspace = special:terminal, on-created-empty: alacritty diff --git a/.config/hyprpanel/config.json b/.config/hyprpanel/config.json index a2d72ab..4c4767f 100644 --- a/.config/hyprpanel/config.json +++ b/.config/hyprpanel/config.json @@ -18,17 +18,15 @@ "dashboard", "media" ], - "middle": [ - "custom/vdesks" - ], + "middle": [], "right": [ "volume", "bluetooth", + "network", "battery", "systray", "clock", - "notifications", - "cputemp" + "notifications" ] }, "1": { @@ -36,28 +34,23 @@ "dashboard", "media" ], - "middle": [ - "custom/vdesks" - ], + "middle": [], "right": [ "volume", "bluetooth", + "network", "battery", "systray", "clock", - "notifications", - "cputemp" + "notifications" ] }, "2": { "left": [ "dashboard", - "workspaces" - ], - "middle": [ - "media", - "custom/vdesks" + "media" ], + "middle": [], "right": [ "volume", "network", @@ -498,5 +491,6 @@ "theme.bar.buttons.background_opacity": 100, "theme.osd.border.color": "#ffffff", "theme.osd.enableShadow": true, - "terminal": "alacritty -e" + "terminal": "alacritty -e", + "menus.power.showLabel": true } \ No newline at end of file diff --git a/.config/hyprpanel/modules.json b/.config/hyprpanel/modules.json index e29bc52..7a73a41 100644 --- a/.config/hyprpanel/modules.json +++ b/.config/hyprpanel/modules.json @@ -1,12 +1,2 @@ { - "custom/vdesks": { - "icon": "🖥️", - "label": "Virtual Desktops {current}", - "tooltip": "Manage virtual desktops", - "truncationSize": -1, - "execute": "/home/$USER/scripts/vdesks.sh", - "executeOnAction": "alacritty --class float -e ping 1.1.1.1", - "interval": 1000, - "hideOnEmpty": true - } } \ No newline at end of file diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index abf28da..819f86e 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -4,7 +4,7 @@ bold_font auto italic_font auto bold_italic_font auto -background_opacity 0 +background_opacity 1 confirm_os_window_close 0 # change to x11 or wayland or leave auto