Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black window aroud the Firefox/Floorp screen sharing indicator #318

Open
GustavoJCL opened this issue May 19, 2024 · 0 comments
Open

Black window aroud the Firefox/Floorp screen sharing indicator #318

GustavoJCL opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GustavoJCL
Copy link

GustavoJCL commented May 19, 2024

Hi, when i share the screen the indicator have a black space around in only screen sharing, if I share my camera or microphone it show correctly, Alexays/Waybar#3273
This is the error of black space:
image
But there it show fine if I share the camera or the microphone
image

  • Swayfx Version:

    • sway -v
      swayfx version 0.4-205b09e (May 9 2024, branch 'master') (based on sway 1.9.0)
  • OS

    • Arch Linux
  • Configuration File:

 # import colors
include catppuccin-mocha

exec autotiling
exec dunst

# System tools
exec udiskie
# exec /usr/libexec/polkit-gnome-authentication-agent-1
# exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
# exec_always import-gsettings

# exec --no-startup-id /usr/lib/pam_kwallet_init

exec /usr/lib/polkit-kde-authentication-agent-1
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway


# $ systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# $ dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=compositor_name

# PearDarkCursors
seat seat0 xcursor_theme PearDarkCursors  24

# set $gnome-schema org.gnome.desktop.interface

# exec_always {
#     gsettings set $gnome-schema gtk-theme 'Juno-ocean'
#     gsettings set $gnome-schema icon-theme 'Papirus-Dark'
#     gsettings set $gnome-schema cursor-theme 'PearDarkCursors'
#     gsettings set $gnome-schema font-name 'IBM Plex Sans,  10'
# }

### Idle configuration
exec swayidle -w \
    timeout 500 'swaylock' \
    timeout 820 'loginctl suspend' \
    after-resume 'swaymsg "output * dpms on"' \
    before-sleep 'swaylock' \
    lock 'swaylock'
# target                 title     bg    text   indicator  border
client.focused           $lavender $base $text  $rosewater $lavender
client.focused_inactive  $overlay0 $base $text  $rosewater $overlay0
client.unfocused         $overlay0 $base $text  $rosewater $overlay0
client.urgent            $peach    $base $peach $overlay0  $peach
client.placeholder       $overlay0 $base $text  $overlay0  $overlay0
client.background        $base

set $mod   Mod4
set $left  h
set $down  j
set $up    k
set $right l
set $term  wezterm
# set $menu onagre
set $menu wofi

input * {
    xkb_layout "latam"
    xkb_variant ""
    xkb_options ""
}
# output Screen 0 {
#   mode 1920x1080
# }
# setting the wallpaper
output * bg $HOME/.config/wallpapers/8.jpg fill

# common bindings
bindsym $mod+Return exec $term
# bindsym $mod+Shift+Return floating toggle exec $term
# bindsym $mod+Shift+Return exec ./floating $term
bindsym $mod+d exec $menu
bindsym $mod+q kill
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit Sway?' -B 'Yes, exit sway' 'swaymsg exit' --font="CaskaydiaCove NF"
bindsym $mod+Escape exec 'wlogout'
bindsym XF86Sleep exec 'swaylock'

floating_modifier $mod normal


# more bindings
bindsym $mod+$left        focus left
bindsym $mod+$down        focus down
bindsym $mod+$up          focus up
bindsym $mod+$right       focus right
bindsym $mod+Left         focus left
bindsym $mod+Down         focus down
bindsym $mod+Up           focus up
bindsym $mod+Right        focus right
bindsym $mod+Shift+$left  move left
bindsym $mod+Shift+$down  move down
bindsym $mod+Shift+$up    move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left   move left
bindsym $mod+Shift+Down   move down
bindsym $mod+Shift+Up     move up
bindsym $mod+Shift+Right  move right
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
bindsym $mod+r mode "resize"

# capture all screens to clipboard    
bindsym $mod+p exec grim - | wl-copy    
    
# capture the specified screen area to clipboard    
bindsym $mod+Alt+p exec grim -g "$(slurp)" - | wl-copy    
    
# capture the focused monitor to clipboard    
bindsym $mod+Shift+p exec swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g "$(slurp)" - | wl-copy    

# bindsym Shift+p exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy
# bindsym Shift+p exec grim -o\
# $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name')\
# $(xdg-user-dir PICTURES)/screenshots/$(date +'screenshot_%Y%m%d_%H%M%S.png') 
# swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp
# bindsym $mod+Shift+p exec  swaymsg -t get_tree | jq -r '.. | (.nodes? // empty)[] | select(.focused) | .rect | "\(.x),\(.y) \(.width)x\(.height)"'
# bindsym $mod+Shift+p exec grimshot save active

# bindsym $mod+Shift+p exec swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g "$(slurp)" - | wl-copy    

# Screenshots using Shotman
    # bindsym $mod+p exec shotman -c output | wl-copy
    # bindsym $mod+Alt+p exec shotman -c window | wl-copy
    # bindsym $mod+Shift+p exec shotman -c region | wl-copy


mode "resize" {
    bindsym $left resize shrink width 20px
    bindsym $down resize grow height 20px
    bindsym $up resize shrink height 20px
    bindsym $right resize grow width 20px

    bindsym Left resize shrink width 20px
    bindsym Down resize grow height 20px
    bindsym Up resize shrink height 20px
    bindsym Right resize grow width 20px

    bindsym Return mode "default"
    bindsym Escape mode "default"
}

# exec_always nwg-panel 

bar {
    swaybar_command waybar
    position top
}

# bar {
#   swaybar_command swaybar
#
#   status_command /usr/local/bin/i3status
#   position top
#   font pango:Iosevka NF Bold 12
#
#   colors {
#     statusline #c5c8c6
#     background #1d1f21
#
#     focused_workspace #8abeb7 #81a2be #1d1f21
#   }
# }

# startup executions
# nothing

default_border pixel 1
default_floating_border pixel 1

# Remove default window titlebars
    default_border pixel
    gaps inner 0
    gaps outer 0
    smart_gaps = on

# Scratchpad:

    # Move the currently focused window to the scratchpad
    bindsym $mod+Shift+minus move scratchpad

    # Show the next scratchpad window or hide the focused scratchpad window.
    # If there are multiple scratchpad windows, this command cycles through them.
    bindsym $mod+minus scratchpad show

input type:touchpad {
    tap enabled
    natural_scroll disabled
}

for_window [app_id="floorp" title="Floorp — Sharing Indicator"] floating enable, move position 950 0;

# sound config

bindsym XF86AudioRaiseVolume exec volumectl -u up
bindsym XF86AudioLowerVolume exec volumectl -u down
bindsym XF86AudioMute exec volumectl toggle-mute
bindsym XF86AudioMicMute exec volumectl -m toggle-mute

bindsym XF86MonBrightnessUp exec lightctl up
bindsym XF86MonBrightnessDown exec lightctl down

exec "avizo-service"

# SwayFX Config
blur enable
blur_xray enable
blur_passes 4
blur_radius 5
corner_radius 5
default_dim_inactive 0.1
shadows enable

# includes
include /etc/sway/config.d/*
@GustavoJCL GustavoJCL added the bug Something isn't working label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant