fix: Window rules keybinds and other stuff

This commit is contained in:
2025-05-27 15:40:31 +10:00
parent 89dfbfa617
commit c23af7303a
8 changed files with 37 additions and 41 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}
}

View File

@@ -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