Send to Desktop Shortcut - but to a particular Activity/Workspace

Can we have separate shortcuts on the desktop based on activity, like the same way we can pin icons on the taskbar based on a particular activity/workspace?

In short - Different Desktop Shortcuts (not below panel icons) for different workspaces, any way to do that?

System Specs

System:
  Kernel: 6.2.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=300b519a-3024-4686-afd7-f1ddd46f32da
    rw rootflags=subvol=@ quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=52154b75-ad63-40ae-8c7b-b88b6a503277 loglevel=3
  Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Hewlett-Packard product: HP 15 Notebook PC v: 0977100000405F00000610180
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Hewlett-Packard model: 2212 v: 86.56 serial: <superuser required> UEFI: Insyde v: F.45
    date: 06/27/2018
Battery:
  ID-1: BAT1 charge: 36.4 Wh (100.0%) condition: 36.4/36.4 Wh (100.0%) volts: 16.6 min: 14.6
    model: 13-42 OA04041 type: Li-ion serial: <filter> status: full
CPU:
  Info: model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell gen: core 4 level: v3
    note: check built: 2013-15 process: Intel 22nm family: 6 model-id: 0x45 (69) stepping: 1
    microcode: 0x26
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 2301 high: 2452 min/max: 800/2700 scaling: driver: intel_cpufreq
    governor: performance cores: 1: 2452 2: 2395 3: 1964 4: 2395 bogomips: 19156
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel
    arch: Gen-7.5 process: Intel 22nm built: 2013 ports: active: HDMI-A-1 off: eDP-1 empty: DP-1
    bus-ID: 00:02.0 chip-ID: 8086:0a16 class-ID: 0300
  Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]
    vendor: Hewlett-Packard driver: N/A alternate: nouveau, nvidia_drm, nvidia non-free:
    series: 390.xx+ status: legacy-active (EOL~late 2022) arch: Fermi code: GF1xx process: 40/28nm
    built: 2010-16 pcie: gen: 1 speed: 2.5 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 09:00.0
    chip-ID: 10de:1140 class-ID: 0302
  Device-3: Cheng Uei Precision Industry (Foxlink) Webcam type: USB driver: uvcvideo
    bus-ID: 1-1.5:4 chip-ID: 05c8:036e class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,intel,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1080 s-dpi: 96 s-size: 675x285mm (26.57x11.22") s-diag: 733mm (28.85")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary model: LG (GoldStar) HDR WFHD serial: <filter>
    built: 2021 res: 2560x1080 dpi: 81 gamma: 1.2 size: 798x334mm (31.42x13.15") diag: 869mm (34.2")
    modes: max: 2560x1080 min: 640x480
  Monitor-2: eDP-1 note: disabled model: LG Display 0x039f built: 2012 res: 2560x1080 dpi: 101
    gamma: 1.2 size: 345x194mm (13.58x7.64") diag: 396mm (15.6") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 4400 (HSW GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Haswell-ULT HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403
  Device-2: Intel 8 Series HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403
  Sound API: ALSA v: k6.2.7-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.67 running: yes
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 08:00.0 chip-ID: 10ec:8136
    class-ID: 0200
  IF: enp8s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: Hewlett-Packard
    driver: ath9k v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 0a:00.0 chip-ID: 168c:0032
    class-ID
: 0280
  IF: wlp10s0 state: up mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-1.4:5
    chip-ID: 0cf3:311d class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci1 rfk-id: 2 state: up address: <filter>
  Device-2: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB driver: btusb v: 0.8
    bus-ID: 2-2:3 chip-ID: 0a12:0001 class-ID: e001
  Report: ID: hci0 rfk-id: 0 state: up address: N/A
Drives:
  Local Storage: total: 1.35 TiB used: 55.23 GiB (4.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT480BX500SSD1 size: 447.13 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 052 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: HGST (Hitachi) model: HTS541010A9E680 size: 931.51 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: A710 scheme: MBR
Partition:
  ID-1: / raw-size: 231.51 GiB size: 231.51 GiB (100.00%) used: 55.2 GiB (23.8%) fs: btrfs
    dev: /dev/sda6 maj-min: 8:6
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 34.8 MiB (36.2%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 231.51 GiB size: 231.51 GiB (100.00%) used: 55.2 GiB (23.8%) fs: btrfs
    dev: /dev/sda6 maj-min: 8:6
  ID-4: /var/log raw-size: 231.51 GiB size: 231.51 GiB (100.00%) used: 55.2 GiB (23.8%) fs: btrfs
    dev: /dev/sda6 maj-min: 8:6
  ID-5: /var/tmp raw-size: 231.51 GiB size: 231.51 GiB (100.00%) used: 55.2 GiB (23.8%) fs: btrfs
    dev: /dev/sda6 maj-min: 8:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.69 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 15.62 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda5
    maj-min: 8:5
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 252 Uptime: 2m wakeups: 1 Memory: 7.69 GiB used: 3.66 GiB (47.5%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1946
  libs: 525 tools: octopi,paru Client: shell wrapper v: 5.1.16-release inxi: 3.3.25
Garuda (2.6.15-1):
  System install date:     2023-03-18
  Last full system update: 2023-03-21
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

Welcome to the forums! :wave:
Is this about KDE? We won't know unless you post your garuda-inxi as mandated by the template. You can easily find the output by opening up the Garuda Assistant, going to the system specs tab and copying for forum. :slight_smile:

Assuming this is about KDE, yes, you can have separate shortcuts on the bottom panel based on the activity. Right click the application in the panel and look at the pin and show options. You can pin exclusively to one activity or share the pins with all activities - you can also have open applications be visible in more than one activity, and change which activity they are visible in.

Keep in mind that when switching between activities, if different applications are pinned and/or open, they can get a bit glitchy sometimes. Nothing a few more switches can't fix :smiley:

6 Likes

Thanks @lum1nuss, by "separate shortcuts" I mean desktop shortcuts, not bottom taskbar panel pins. I have updated the question for more clarity.

1 Like

Ahh icic.
I think these two threads have what you’re looking for. It’s not an officially supported feature in KDE unfortunately, but I’m sure you can get it working with what alexjp made.

Thank you for updating your op with your garuda-inxi btw, much appreciated ^^

4 Likes

btw ( sorry for the delay in this )

in latest plasma versions ( 5.27 ) is even easier: no need for scripting or anything.

Just create a copy of the desktop shortcut (use kmenuedit for easily do this) , and in the desktop specific for the activity, just set the environment filed to something like HOME=/home/your_home/wherever_you_want_to_set_the_files !!

and that shortcut will set the HOME to that specific folder and use it as home, hence having different files ( this works for 99.9% of the cases )

4 Likes