fix black background

This commit is contained in:
thek4n 2025-11-14 01:45:21 +03:00
parent cd92b78f23
commit 9addfbd04e
3 changed files with 7 additions and 6 deletions

View File

@ -97,7 +97,7 @@ mode $exitmode {
bindsym --to-code s exec shutdown -h now bindsym --to-code s exec shutdown -h now
bindsym --to-code u exec systemctl suspend; mode "default" bindsym --to-code u exec systemctl suspend; mode "default"
bindsym --to-code l exec swaylock -f; mode "default" bindsym --to-code l exec swaylock -f; mode "default"
bindsym --to-code b exec magick canvas:none PNG:- | feh -YFx -; mode "default" bindsym --to-code b exec magick canvas:none PNG:- | feh --class black -YFx -; mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
bindsym Return mode "default" bindsym Return mode "default"

View File

@ -20,6 +20,10 @@ for_window [title="Picture-in-Picture"] sticky enable
for_window [title="Picture-in-Picture"] border pixel 0 for_window [title="Picture-in-Picture"] border pixel 0
for_window [app_id="firefox"] inhibit_idle fullscreen for_window [app_id="firefox"] inhibit_idle fullscreen
for_window [app_id="pavucontrol"] floating enable for_window [app_id="pavucontrol"] floating enable
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"] workspace $ws1
assign [app_id="Alacritty"] workspace $ws2 assign [app_id="Alacritty"] workspace $ws2
@ -36,10 +40,7 @@ workspace hide1 output $primary
workspace hide2 output $secondary workspace hide2 output $secondary
# Screen layout # Screen layout
exec ~/.screenlayout/default exec_always ~/.screenlayout/default
no_focus [title="^Peek preview$"]
no_focus [class="feh"]
output * bg "$(find ~/.wallpaper -type f | shuf -n 1)" fill output * bg "$(find ~/.wallpaper -type f | shuf -n 1)" fill

View File

@ -150,7 +150,7 @@ alias copy='tee /dev/stderr | _copy'
alias ssh='TERM=xterm-256color ssh' alias ssh='TERM=xterm-256color ssh'
alias sshn='ssh -S none' alias sshn='ssh -S none'
alias black='magick canvas:none PNG:- | feh -YFx -' alias black='magick canvas:none PNG:- | feh --class black -YFx -'
alias ex='extract' alias ex='extract'
alias notes='note' alias notes='note'