avivace / dotfiles

i3 + Plasma: using the i3 window manager on the top of KDE Plasma and other dotfiles, configurations, scripts, workarounds and practises from my Debian Sid machines.
https://www.reddit.com/r/unixporn/comments/64mihc/i3_kde_plasma_a_match_made_in_heaven/
GNU General Public License v3.0
790 stars 47 forks source link

Can't kill the Desktop #11

Closed jorpilo closed 1 year ago

jorpilo commented 6 years ago

I have changed the i3 configuration but still when I open a new session the Plasma Desktop occupies the hole screen.

After everything has loaded if I execute:

i3-msg "exec --no-startup-id wmctrl -c Plasma for_window [title="Desktop - Plasma"] kill; floating enable; border none"

Then the Desktop gets killed and I can see the i3 windows

avivace commented 6 years ago

So it works if you manually run the wmctrl command but not on i3 startup?

jorpilo commented 6 years ago

Yes, probably I am doing something wrong

avivace commented 6 years ago

Plasma is probably still starting when i3 runs that command, then.

Try with something like

exec "sh -c 'sleep 5; exec wmctrl -c Plasma for_window [title="Desktop - Plasma"] kill; floating enable; border none'"

Which delays the wmctrl command by 5 seconds.

arlr commented 5 years ago

I kill the desktop by modifying config file's code order and adding timer as you said.

## Avoid tiling popups, dropdown windows from plasma
# for the first time, manually resize them, i3 will remember the setting for floating windows
for_window [class="plasmashell"] floating enable
for_window [class="Plasma"] floating enable, border none
for_window [title="plasma-desktop"] floating enable, border none
for_window [title="win7"] floating enable, border none
for_window [class="krunner"] floating enable, border none
for_window [class="Kmix"] floating enable, border none
for_window [class="Klipper"] floating enable, border none
for_window [class="Plasmoidviewer"] floating enable, border none

## Plasma Integration
# Try to kill the wallpaper set by Plasma (it takes up the entire workspace and hides everythiing)
exec --no-startup-id sleep 5 && wmctrl -c Plasma for_window [title="Desktop — Plasma"] kill, floating enable, border none