From f53dab69093cc1cbcca3436d3efbc8d6b2ec9b2a Mon Sep 17 00:00:00 2001 From: thek4n Date: Tue, 10 Mar 2026 18:44:02 +0300 Subject: [PATCH] add another firefox session for media --- TARGETS.sh | 2 +- home/user/.config/sway/autostart.conf | 1 + home/user/.config/sway/other.conf | 4 ++-- home/user/.local/bin/firefox_media | 4 ++++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 home/user/.local/bin/firefox_media diff --git a/TARGETS.sh b/TARGETS.sh index d487b6c..04725da 100644 --- a/TARGETS.sh +++ b/TARGETS.sh @@ -12,7 +12,7 @@ ssh: git:.config/git .local/bin/ga ranger:.config/ranger gpg: -sway:.config/sway .config/i3blocks .config/mako .config/mimeapps.list .config/rofi .local/bin/screenshot .config/swaylock .Xresources .local/bin/slm .local/bin/slm_rofi %copypasta %pomodoro +sway:.config/sway .config/i3blocks .config/mako .config/mimeapps.list .config/rofi .local/bin/screenshot .config/swaylock .Xresources .local/bin/slm .local/bin/slm_rofi .local/bin/firefox_media %copypasta %pomodoro pomodoro: bat:.config/bat font: diff --git a/home/user/.config/sway/autostart.conf b/home/user/.config/sway/autostart.conf index e220677..305a6e3 100644 --- a/home/user/.config/sway/autostart.conf +++ b/home/user/.config/sway/autostart.conf @@ -25,3 +25,4 @@ exec --no-startup-id pomodoro daemon exec $browser exec $terminal exec Telegram +exec firefox_media diff --git a/home/user/.config/sway/other.conf b/home/user/.config/sway/other.conf index 7d75c22..819b47e 100644 --- a/home/user/.config/sway/other.conf +++ b/home/user/.config/sway/other.conf @@ -37,10 +37,10 @@ for_window [class="black"] fullscreen enable no_focus [title="^Peek preview$"] no_focus [class="black"] -assign [app_id="firefox"] workspace $ws1 +assign [app_id="firefox_media"] workspace $ws10 assign [app_id="Alacritty"] workspace $ws2 assign [app_id="org.telegram.desktop"] workspace $ws8 - +assign [app_id="firefox"] workspace $ws1 workspace $ws1 output $primary workspace $ws2 output $primary diff --git a/home/user/.local/bin/firefox_media b/home/user/.local/bin/firefox_media new file mode 100755 index 0000000..4f7412c --- /dev/null +++ b/home/user/.local/bin/firefox_media @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +firefox --new-instance -P media --name firefox_media