add new firefox_to_workspace script
This commit is contained in:
parent
e472ad085a
commit
089d879d70
@ -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
|
||||
|
@ -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 &
|
||||
|
@ -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_.*
|
||||
|
@ -60,6 +60,7 @@ animations {
|
||||
master {
|
||||
new_is_master = false
|
||||
allow_small_split = true
|
||||
mfact = 0.5
|
||||
}
|
||||
|
||||
gestures {
|
||||
|
31
desktop/scripts/firefox_to_workspace.sh
Executable file
31
desktop/scripts/firefox_to_workspace.sh
Executable file
@ -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 <profile> <workspace>"
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user