Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Raspberry Pi OS • Re: Workspace Script

$
0
0
Ok I figured out a way to do it.

Make a script which opens the files you want for a workspace #:

Code:

#! /bin/bashopen /home/user/filename1open /home/user/filename2open /home/user/filename3open /home/user/filename4open /home/user/filename5
I called that file above workspace2files.sh

Make the script executable:

Code:

chmod a+x workspace2files.sh

Code:

nano .config/labwc/rc.xml
Add the following lines in the keyboard section:

Code:

<keybind key="W-C-2-f">                <action name="Execute" command="/home/user/workspace2files.sh"/>                <action name="SendToDesktop" to="Desktop 2" /></keybind>
All the files will be opened and moved to workspace #2. You can also use:

Code:

<windowRule title="Window Title">                 <action name="SendToDesktop" to="Desktop 3" />
The problem with the above is that with certain programs like LibreOffice a file will open up and the window is titled "LibreOffice 7.4" for two seconds and then the window title changes to the file name. So the windowRule title option will only pick up "LibreOffice 7.4" and you cannot be file specific using that option for certain programs.

Statistics: Posted by RaspberryPiOSMan — Sun Apr 06, 2025 1:42 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles