diff --git a/configs/hypr/hyprland.conf b/configs/hypr/hyprland.conf new file mode 100644 index 0000000..5ce1c04 --- /dev/null +++ b/configs/hypr/hyprland.conf @@ -0,0 +1,189 @@ +# jabuxas + +monitor=HDMI-A-1, 1920x1080, 0x0, 1 +monitor=DP-1, 1920x1080, 1920x145, 1 + + +exec-once = ~/.local/bin/waybar & hyprpaper & redshift -t 5700:3600 -l -23.5475:-46.63611 -b 0.9:0.6 +exec-once = lxqt-policykit-agent +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland +exec-once = mpd +exec-once = rm -rf ~/tmp/* +# source = ~/.config/hypr/myColors.conf + +input { + kb_layout = br + kb_variant = abnt2 + kb_model = + kb_options = + kb_rules = + + follow_mouse = 1 + + touchpad { + natural_scroll = no + } + + sensitivity = -0.69 # -1.0 - 1.0, 0 means no modification. +} + +general { + + gaps_in = 6 + gaps_out = 6 + border_size = 1 + col.active_border = rgb(717171) + col.inactive_border = rgb(161616) + + layout = master +} + +decoration { + + rounding = 10 + blur = yes + blur_size = 3 + blur_passes = 1 + blur_new_optimizations = on + + drop_shadow = yes + shadow_range = 4 + shadow_render_power = 3 + col.shadow = rgba(1a1a1aee) +} + +animations { + enabled = yes + + bezier=slow,0,0.85,0.3,1 + bezier=overshot,0.7,0.6,0.1,1.1 + bezier=bounce,1,1.6,0.1,0.85 + bezier=slingshot,1,-1,0.15,1.25 + bezier=nice,0,6.9,0.5,-4.20 + + animation = windows, 1, 5, bounce, slide + # animation = windowsOut, 1, 7, default, popin 80% + animation = border, 1, 20, default + animation = fade, 1, 5, default + animation = workspaces, 1, 5, overshot, slide +} + +master { + new_on_top = true +} + +# Example per-device config +# device:epic mouse V1 { +# sensitivity = -0.5 +# } + +windowrule = workspace 2 silent, ^(firefox-esr)$ +windowrule = workspace 2 silent, ^(firefox)$ + +windowrule = workspace 4 silent, Minecraft* +windowrule = size 1920x1080, Minecraft* +windowrule = noblur, Minecraft* +windowrule = noshadow, Minecraft* +windowrule = noanim, Minecraft* + +windowrule = noblur, pobfrontend +windowrule = noshadow, pobfrontend +windowrule = noanim, pobfrontend + +windowrule = workspace 3 silent, org.prismlauncher.PrismLauncher +windowrule = float, org.prismlauncher.PrismLauncher +windowrule = workspace 5 silent, ^(com.obsproject.Studio)$ +windowrule = float, ^(vlc)$ +windowrule = float, ^(lxqt-policykit-agent)$ +windowrule = float, ^(pavucontrol)$ +windowrule = workspace 3 silent, ^(Google-chrome)$ +windowrule = float, title:^(Firefox — Sharing Indicator)$ +windowrule = workspace 9 silent, title:^(Firefox — Sharing Indicator)$ +windowrule = float, title:^(Steam - News) +windowrule = maxsize 0 0, title:^(Firefox — Sharing Indicator)$ +windowrule = float, ^(org.gnome.Nautilus)$ + +windowrule = fullscreen, gamescope +windowrule = noblur, gamescope +windowrule = forceinput, ^(gamescope)$ +windowrule = workspace 4 silent, ^(gamescope)$ +windowrule = noanim, gamescope +windowrule = noshadow, gamescope + +windowrule = workspace 4 silent, ^(osu!)$ +#windowrule = fullscreen, ^(osu!)$ +windowrule = workspace 8 silent, ^(Steam)$ +windowrule = workspace 3 silent, ^(lutris)$ +windowrule = float, ^(lutris) +windowrule = size 720x1080, ^(lutris) +windowrule = center, ^(lutris) +windowrule = workspace 4 silent,^(explorer.exe)$ + +# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ + +$mainMod = SUPER + +bind = $mainMod, Return, exec, kitty +bind = $mainMod SHIFT, M, exec, kitty -e ncmpcpp +bind = $mainMod CONTROL, Return, exec, kitty -c /home/jab/.config/kitty/undefined.conf +bind = $mainMod SHIFT, C, killactive, +bind = $mainMod SHIFT, Q, exit, +bind = $mainMod, E, exec, nautilus +bind = $mainMod, Space, togglefloating, +bind = $mainMod SHIFT, Return, exec, ~/.config/rofi/launchers/type-7/launcher.sh +bind = , Print, exec, ~/.local/bin/print-fullscreen +bind = SHIFT, Print, exec, ~/.local/bin/print-select +bind = $mainMod, P, layoutmsg, swapwithmaster +bind = $mainMod, B, exec, firefox-bin +bind = $mainMod, C, exec, google-chrome-stable +bind = $mainMod, V, exec, /usr/bin/vscode --enable-features=UseOzonePlatform --ozone-platform=wayland --unity-launch +bind = $mainMod, Comma, focusmonitor, HDMI-A-1 +bind = $mainMod, Period, focusmonitor, DP-1 +bind = $mainMod SHIFT, Comma, movewindow, l +bind = $mainMod SHIFT, Period, movewindow, r +bind = $mainMod, F, fullscreen, 0 +bind = $mainMod, Escape, exec, mpc toggle +bind = $mainMod, F1, exec, mpc prev +bind = $mainMod, F2, exec, mpc next + + +bind = $mainMod, left, movefocus, l +bind = $mainMod, right, movefocus, r +bind = $mainMod, up, movefocus, u +bind = $mainMod, down, movefocus, d + +# there is fuck (good defaults lmao) +bind = $mainMod SHIFT, H, layoutmsg, swapnext +bind = $mainMod SHIFT, L, layoutmsg, swapnext +binde = $mainMod, H, resizeactive, -30 30 +binde = $mainMod, L, resizeactive, 30 -30 +bind = $mainMod, J, layoutmsg, cyclenext +bind = $mainMod, K, layoutmsg, cycleprev + +bind = $mainMod, 1, exec, ~/.config/hypr/scripts/workspace 1 +bind = $mainMod, 2, exec, ~/.config/hypr/scripts/workspace 2 +bind = $mainMod, 3, exec, ~/.config/hypr/scripts/workspace 3 +bind = $mainMod, 4, exec, ~/.config/hypr/scripts/workspace 4 +bind = $mainMod, 5, exec, ~/.config/hypr/scripts/workspace 5 +bind = $mainMod, 6, exec, ~/.config/hypr/scripts/workspace 6 +bind = $mainMod, 7, exec, ~/.config/hypr/scripts/workspace 7 +bind = $mainMod, 8, exec, ~/.config/hypr/scripts/workspace 8 +bind = $mainMod, 9, exec, ~/.config/hypr/scripts/workspace 9 +bind = $mainMod, 0, exec, ~/.config/hypr/scripts/workspace 0 + +bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 +bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 +bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 +bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 +bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 +bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 +bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 +bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 +bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 +bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 + +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow + diff --git a/configs/hypr/hyprpaper.conf b/configs/hypr/hyprpaper.conf new file mode 100644 index 0000000..025abbd --- /dev/null +++ b/configs/hypr/hyprpaper.conf @@ -0,0 +1,4 @@ +preload = /home/jab/Pictures/wallpapers/actually usable.jpg +preload = /home/jab/Pictures/wallpapers/usable1.jpg +wallpaper = HDMI-A-1,/home/jab/Pictures/wallpapers/actually usable.jpg +wallpaper = DP-1,/home/jab/Pictures/wallpapers/usable1.jpg diff --git a/configs/hypr/scripts/workspace b/configs/hypr/scripts/workspace new file mode 100755 index 0000000..eafada8 --- /dev/null +++ b/configs/hypr/scripts/workspace @@ -0,0 +1,25 @@ +#! /bin/bash + +monitors=/tmp/hypr/monitors_temp +hyprctl monitors > $monitors + +if [[ -z $1 ]]; then + workspace=$(grep -B 4 "focused: no" "$monitors" | awk 'NR==1 {print $3}') +else + workspace=$1 +fi + + +activemonitor=$(grep -B 7 "focused: yes" "$monitors" | awk 'NR==1 {print $2}') +passivemonitor=$(grep -B 3 "($workspace)" "$monitors" | awk 'NR==1 {print $2}') +#activews=$(grep -A 2 "$activemonitor" "$monitors" | awk 'NR==3 {print $1}' RS='(' FS=')') +passivews=$(grep -A 2 "$passivemonitor" "$monitors" | awk 'NR==4 {print $1}' RS='(' FS=')') + +if [[ $workspace -eq $passivews ]] && [[ $activemonitor != "$passivemonitor" ]]; then + hyprctl dispatch swapactiveworkspaces "$activemonitor" "$passivemonitor" + echo $activemonitor $passivemonitor +else + hyprctl dispatch moveworkspacetomonitor "$workspace $activemonitor" && hyprctl dispatch workspace "$workspace" +fi + +exit 0