diff --git a/desktop/configs/hypr/binds.conf b/desktop/configs/hypr/binds.conf index d21b0ec..a24bea8 100644 --- a/desktop/configs/hypr/binds.conf +++ b/desktop/configs/hypr/binds.conf @@ -14,16 +14,19 @@ bind = , Print, exec, ~/.local/bin/way-print.sh p bind = SHIFT, Print, exec, ~/.local/bin/way-print.sh s bind = CONTROL SHIFT, Print, exec, ~/.local/bin/way-print.sh t bind = CONTROL, Print, exec, ~/.local/bin/way-print.sh m -bind = $mainMod, b, exec, MOZ_ENABLE_WAYLAND=1 firefox-bin +bind = $mainMod, b, exec, ~/scripts/firefox_to_workspace.sh main 2 +bind = $mainMod SHIFT, b, exec, ~/scripts/firefox_to_workspace.sh dev 1 bind = $mainMod ALT, x, exec, XL_SECRET_PROVIDER=file xivlauncher +bind = ALT, m, exec, ~/scripts/macro.sh + # window control bind = $mainMod SHIFT, C, killactive, bind = $mainMod, t, togglefloating, bind = $mainMod, F, fullscreen, 0 bind = $mainMod, Space, fullscreen, 1 -bind = $mainMod SHIFT, comma, movewindow, mon:DP-3 -bind = $mainMod SHIFT, period, movewindow, mon:HDMI-A-1 +bind = $mainMod SHIFT, comma, movewindow, mon:-1 +bind = $mainMod SHIFT, period, movewindow, mon:+1 bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u diff --git a/desktop/configs/hypr/init.conf b/desktop/configs/hypr/init.conf index 120d6d2..03cf654 100644 --- a/desktop/configs/hypr/init.conf +++ b/desktop/configs/hypr/init.conf @@ -9,3 +9,5 @@ exec-once = dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKT exec-once = rm -rf ~/tmp/* exec-once = corectrl --minimize-systray exec-once = ~/scripts/weechat.sh +exec-once = otd-daemon & +exec-once = waybar & diff --git a/desktop/configs/hypr/rules.conf b/desktop/configs/hypr/rules.conf index f0f2c75..4c198d4 100644 --- a/desktop/configs/hypr/rules.conf +++ b/desktop/configs/hypr/rules.conf @@ -10,11 +10,10 @@ windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ windowrulev2=float,class:anki,title:Add windowrulev2=size 0%,class:explorer.exe,title:Wine System Tray -windowrulev2=workspace 2 silent, class:^(firefox)$, title:(Mozilla Firefox) -windowrulev2=workspace unset, class:(firefox), title:(Developer Tools)(.*) windowrulev2=float, class:(firefox), title:(Picture-in-Picture) windowrule=float,xdg-desktop-portal-gtk +windowrule=workspace 11 silent,org.corectrl.corectrl windowrule=workspace 5 silent,anki windowrule=workspace 7 silent,lutris windowrule=workspace 5 silent,com.obsproject.Studio @@ -40,8 +39,8 @@ windowrule=workspace 9 silent,gamescope windowrule=fullscreen,gamescope windowrule=workspace 9 silent,.*Minecraft.* windowrule=workspace 9 silent,cs2 -windowrule=workspace 11 silent,.*league.* -windowrule=workspace 11 silent,.*riot.* +windowrule=workspace 9 silent,.*league.* +windowrule=workspace 9 silent,.*riot.* windowrule=float,steam_.* # windowrule=fakefullscreen,steam_.* # windowrule=nomaximizerequest,steam_.* diff --git a/desktop/configs/hypr/settings.conf b/desktop/configs/hypr/settings.conf index b1eedaf..439542b 100644 --- a/desktop/configs/hypr/settings.conf +++ b/desktop/configs/hypr/settings.conf @@ -60,6 +60,7 @@ animations { master { new_is_master = false allow_small_split = true + mfact = 0.5 } gestures { diff --git a/desktop/scripts/firefox_to_workspace.sh b/desktop/scripts/firefox_to_workspace.sh new file mode 100755 index 0000000..b35a04f --- /dev/null +++ b/desktop/scripts/firefox_to_workspace.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# i adapted this script from maze, a dear friend of mine +# maze42d/dotfiles on github + +firefox_binary="firefox-bin" + +if [[ -z $1 ]]; then + echo "Usage: $0 " + exit 1 +fi + +firefox_profile=$1 +workspace=$2 + +echo "$firefox_profile to $workspace" + +$firefox_binary -p $firefox_profile &> /dev/null & +PID=$! + +command="hyprctl dispatch movetoworkspacesilent ${workspace},pid:$PID" +echo $command + +until hyprctl clients | grep "pid: $PID" > /dev/null #wait till window opens + do + sleep 0 +done +$command +disown +exit 0 + +