LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2018, 03:10 PM   #31
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 397

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by keefaz View Post
Ok, it's seems dwm doesn't support sticky feature. I was worth a try though

And what about (say window is on workspace 2 and you work on workspace 1
Code:
wmctrl -i -r <window id> -t 1
import -window <window id> window_image.png
wmctrl -i -r <window id> -t 2
You may want to use wmctrl -d to verify workspaces numbers
Code:
$ wmctrl -d
Cannot get number of desktops properties. (_NET_NUMBER_OF_DESKTOPS or _WIN_WORKSPACE_COUNT)
IIRC there used to be a patch for dwm that adds this feature, but I'm using vanilla dwm. I'm afraid patching dwm to get support for this feature goes out of the scope of my goal. For now at least.
 
Old 04-14-2018, 03:30 PM   #32
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Just got this to work on my little netbook.
I started a nested session running Windowmaker with
Code:
exec xinit /usr/bin/wmaker -- /usr/bin/Xephyr :1 -screen 1000x500
I tried this, but with glxgears, it did not start:

Code:
$ exec xinit /usr/bin/glxgears -- /usr/bin/Xephyr :1                 

xinit: XFree86_VT property unexpectedly has 0 items instead of 1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  25
  Current serial number in output stream:  26
xinit: connection to X server lost

waiting for X server to shut down
 
Old 04-14-2018, 04:22 PM   #33
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
What about open window in same workspace but put it out of screen view?
Code:
wmctrl -i -r <window id> -e 0,-2000,-1,-1,-1
import -window <window id> window_image.png
# if you want to move window back in screen view
# wmctrl -i -r <window id> -e 0,5,-1,-1,-1

Last edited by keefaz; 04-14-2018 at 04:34 PM. Reason: Added -1 for telling to wmctrl that geometry value doesn't change
 
Old 04-14-2018, 06:46 PM   #34
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
What about open window in same workspace but put it out of screen view?
Code:
wmctrl -i -r <window id> -e 0,-2000,-1,-1,-1
this doesn't seem to work at all with dwm, the window remains visible
 
Old 04-14-2018, 11:05 PM   #35
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,365

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
Code:
exec xinit /usr/bin/glxgears -- /usr/bin/Xephyr :1
Where you have used '/usr/bin/glxgears', change to the command to start a window manager. I do not use dwm, so I do not have that command.
Here:
'/usr/bin/wmaker' starts WindowMaker
'/usr/bin/startxfce4 starts XFCE
'usr/bin/startfluxbox' starts fluxbox
'/usr/bin/startfvwm2' starts FVWM.
From within the Xephyr session, glxgears works for me.
 
Old 04-15-2018, 10:16 AM   #36
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Code:
exec xinit /usr/bin/glxgears -- /usr/bin/Xephyr :1
Where you have used '/usr/bin/glxgears', change to the command to start a window manager. I do not use dwm, so I do not have that command.
Here:
'/usr/bin/wmaker' starts WindowMaker
'/usr/bin/startxfce4 starts XFCE
'usr/bin/startfluxbox' starts fluxbox
'/usr/bin/startfvwm2' starts FVWM.
From within the Xephyr session, glxgears works for me.
Running dwm inside the Xephyr session is not essential for me indeed. Since I need the wm just for running the command (glxgears) in this case.

After this command

Code:
exec xinit /usr/bin/startfluxbox -- /usr/bin/Xephyr :1
fluxbox starts inside the Xephyr session. I right click to bring up the popup menu. Select rxvt to launch a terminal. Run glxgears from it. The error is exactly like above, when I start glxgears directly.
 
Old 04-15-2018, 01:28 PM   #37
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,365

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
Are you being deliberately perverse?

If you want to break things then use rxvt (recently removed from Slackware-current). If you want to use the common denominator then use 'xterm'.
If you do not want to configure fluxbox, then start your preferred dwm.

This is now your problem. You have been offered two viable solutions that will work with a modicum of effort on your part.

Your posting history be damned!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Login window not visible on wakeup. Lubuntu 14.04 wolfson Linux - Desktop 1 02-13-2015 09:50 AM
batch mode mmhs Linux - Newbie 1 09-04-2012 03:51 AM
Running ‘top’ with ‘Irix mode’ off in batch mode alexz1011 Linux - Software 1 10-02-2009 04:29 PM
How to customize KDE so that a window is visible only in one desktop rockor Linux - Desktop 1 08-20-2009 09:38 PM
Using top in batch mode neothephoenix Linux - Server 5 06-09-2007 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration