[Solved] How can I query the number of the virtual desktop on which the bash script is running in Linux Mint via bash?
[ad_1] Based on answer of KamilCuk, its possible to output on follow way the line which is including the number of the active desktop: nr_of_active_desktop=activedesktop=$(wmctrl -d | grep “*” | rev | cut -d ‘ ‘ -f1) echo $nr_of_active_desktop [ad_2] solved How can I query the number of the virtual desktop on which the bash … Read more