diff --git a/home/.config/hypr/hyprland.conf b/home/.config/hypr/hyprland.conf index 937272a..81e464e 100644 --- a/home/.config/hypr/hyprland.conf +++ b/home/.config/hypr/hyprland.conf @@ -8,13 +8,13 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK exec-once = hypr-restart-portals exec-once = setbg -# exec-once = waybar --config ~/.config/waybar/config-hypr >~/.waybar.txt 2>&1 -exec-once = dunst> +exec-once = eww open bar +exec-once = dunst exec-once = swayidle -exec-once = nm-applet exec-once = aa-notify -p exec-once = udiskie -A -T +# exec-once = nm-applet --indicator exec-once = webcord --start-minimized @@ -81,6 +81,12 @@ windowrulev2 = workspace 6, class:^(Stremio)$ windowrulev2 = float, class:^(qalculate-gtk)$ windowrulev2 = size 800 550, class:^(qalculate-gtk)$ +# Float some firefox windows (like bookmark menus) +windowrulev2 = float, class:^(firefox)$,title:^(Revert Bookmarks)$ +windowrulev2 = float, class:^(firefox)$,title:^(Library)$ +# TODO: Fix this +windowrulev2 = float, class:^(firefox)$,title:^(Page Info)(.*)$ + # Mouse window resizing bindm = SUPER, mouse:272, movewindow @@ -95,7 +101,7 @@ bind = SUPER, G, togglegroup, bind = SUPER_SHIFT, N, changegroupactive, f bind = SUPER_SHIFT, P, changegroupactive, b bind = SUPER, P, pseudo, -bind = SUPER_SHIFT, Q, exit, # TODO: Use pkill and prompt for confirm +bind = SUPER_SHIFT, Q, exec, menuprompt --yesno -p "Quit Hyprland?" && hyprctl dispatch exit "" # Utilities bind = SUPER_CTRL, L, exec, swaylock -fF @@ -115,11 +121,12 @@ bind = CTRL, period, exec, dunstctl history-pop bind = CTRL_SHIFT, period, exec, dunstctl context # Volume comtrol -binde = SUPER, Down, exec, pulsemixer --change-volume -5 -binde = SUPER, Up, exec,pulsemixer --change-volume +5 -binde = , XF86AudioLowerVolume, exec, pulsemixer --change-volume -5 -binde = , XF86AudioRaiseVolume, exec, pulsemixer --change-volume +5 -bind = , XF86AudioMute, exec, pulsemixer --toggle-mute +binde = SUPER, Down, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05- +binde = SUPER, Up, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+ +binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05- +binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+ +bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle # Brightness control binde = SUPER, Right, exec, brightness -i 5% -n @@ -134,6 +141,10 @@ bind = CTRL, Print, exec, echo "" | wofi --prompt "Set delay (ms)" --show dmenu bind = SUPER_CTRL, Print, exec, echo "" | wofi --prompt "Set delay (ms)" --show dmenu | xargs -I _ sleep _e-3 && grim -g "$(slurp)" - | swappy -f - -o - | wl-copy bind = SHIFT, Print, exec, wl-copy "$(hyprpicker)" && notify-send 'Picked color' "$(wl-paste) (saved to clipboard)" +# Global keybinds (passing keys to other programs) +bind = SUPER, F10, pass, ^(com\.obsproject\.Studio)$ +bind = SUPER, F10, pass, ^(com\.obsproject\.Studio)$ + # Move between windows bind = SUPER, h, movefocus, l bind = SUPER, l, movefocus, r @@ -155,6 +166,14 @@ bind = , escape, submap, reset bind = SUPER, Q, submap, reset submap = reset +binde = ALT, right, resizeactive, 10 0 +binde = ALT, left, resizeactive, -10 0 +binde = ALT, up, resizeactive, 0 -10 +binde = ALT, down, resizeactive, 0 10 binde = , L, resizeactive, 10 0 +binde = ALT, H, resizeactive, -10 0 +binde = ALT, K, resizeactive, 0 -10 +binde = ALT, J, resizeactive, 0 10 + # Move between workspaces bind = SUPER, 1, workspace, 1 bind = SUPER, 2, workspace, 2