LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-29-2024, 06:34 AM   #1
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 38

Rep: Reputation: Disabled
wmaker: launching script using specific virtual desktop and placement


hi all

at work I use WindowMaker with 10 virtual desktops on a dual display setup.
Since I manage serveral virtual machines on the data center, I usually open up several scripts, using konsole, like this:

Code:
rudy@rudy:~/bin/logs/restapi$ cat access.sh
#!/bin/bash
echo /var/log/messages restapi access
ssh root@repodev tail -f /var/log/apache2/access.log | grep "\" 200 " -v
from WMaker menu I configured several menu entries which looks like this:


Code:
konsole -e /home/rudy/bin/logs/restapi/access.sh
what I would like to know (since google fails me on this one, giving me entries about Micro$oft Windows) if it would be possible to run the script but forcing wmaker to place it under specific desktop on specific location and size.

The real final objective is to be able to launch all those scripts at login.

thanks
 
Old 01-29-2024, 08:09 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Interesting that you are using konsole that will drag in extra KDE dependencies rather than something more lightweight like xterm.

Have you tried setting up the displays as you want, then using the right mouse click menu option of Workspace -> Save Session? If you close wmaker and restart, you should see the displays as you want.

If that works OK, you could then close wmaker and manually edit the ~/GNUstep/Defaults/WMState file to add in your desired scripts. Make sure to save a working copy first, as introducing syntax errors is easy to do and likely to cause major breakage.
 
1 members found this post helpful.
Old 01-30-2024, 06:26 AM   #3
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Interesting that you are using konsole that will drag in extra KDE dependencies rather than something more lightweight like xterm.

Have you tried setting up the displays as you want, then using the right mouse click menu option of Workspace -> Save Session? If you close wmaker and restart, you should see the displays as you want.

If that works OK, you could then close wmaker and manually edit the ~/GNUstep/Defaults/WMState file to add in your desired scripts. Make sure to save a working copy first, as introducing syntax errors is easy to do and likely to cause major breakage.
you are right about KDE. I use konsole because it has some details like copy/paste that I do not know if I can do with other terminals (copy/paste is the first thing that pop up from mind, but might be others). I will try other terminals again and see what happens.

nice suggestion about sessions. Still I found a AI generated solution which involves using xdotool.

tldr version:

Code:
#!/bin/bash

# Launch Konsole
konsole &

# Wait for a short while to ensure the window appears
sleep 2

# Get the window ID of the Konsole window
WINDOW_ID=$(xdotool search --name "Konsole")

# Move the window to a specific position
xdotool windowmove $WINDOW_ID 100 100
of course I have a lot of work to do to adapt this to what I want, but it is a starting point.

thanks.

Last edited by RudyMartin; 01-30-2024 at 06:33 AM.
 
  


Reply

Tags
windowmaker



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
WindowMaker: Show off your WMaker desktop linuxlicious Linux - Desktop 2 12-08-2011 04:43 PM
running wmaker under Gnome desktop xiekke Fedora 0 02-26-2006 08:57 AM
I like using korganizer, but I don't use KDE (wmaker instead). However, when I start julot Linux - Software 2 08-11-2005 10:33 PM
How do I add icons to wmaker desktop? bruno buys Linux - Software 0 07-30-2004 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:50 AM.

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
Open Source Consulting | Domain Registration