tofi output fix, open secondary browsers on focused workspace

This commit is contained in:
2026-03-15 19:53:28 +05:00
parent cbe5675693
commit 273941e2d7
2 changed files with 30 additions and 5 deletions

View File

@ -1,7 +1,8 @@
# shortcut bindings to app and directions
set $mod Mod4
set $term alacritty
set $menu tofi-drun | xargs swaymsg exec --
# set $menu tofi-drun | xargs swaymsg exec --
set $menu tofi_prefix_hack && tofi-drun | xargs swaymsg exec --
set $left h
set $down j
@ -25,6 +26,8 @@ exec ~/Scripts/ntfy/ntfy_subscribe.sh &
xwayland force
exec xrandr --output DP-2 --primary
# set swaysock env to make swaymsg commands accessible for systemd
exec --no-startup-id systemctl --user set-environment SWAYSOCK=$SWAYSOCK
bar {
id 1
@ -91,13 +94,21 @@ for_window [app_id="in_scratchpad"] move container to scratchpad, focus
# for_window [class="steam" title="^(?!.*Steam Big Picture Mode).*"] exec "/home/nikita/Scripts/sway/disable_tv_gaming_mode.sh"
# dont idle screen when any app in fullscreen is open
for_window [shell=".*"] inhibit_idle fullscreen
# dont idle screen when any steam game is visible
for_window [class="steam_app_.*"] inhibit_idle visible
assign [app_id="DBeaver"] workspace 22
assign [class="jetbrains-datagrip"] workspace 23
assign [app_id="taxsee.im.desktop*"] workspace 24
assign [app_id="Element"] workspace number 25
assign [class="Element"] workspace number 25
assign [app_id="librewolf"] workspace number 12
exec ~/Scripts/sway/browser_workspace_assign.sh
# powermenu
bindsym --to-code $mod+SHIFT+BackSpace exec ~/Scripts/tofi/powermenu.sh