0

In this bash script, I want the last command (the Chrome one) to open a maximized (or better yet, full screen) window.

Is that possible?

!/bin/bash 

killall vlc

banshee --pause

clementine --play /mnt/4E46682B4668164D/Users/Fiksdal/Music/iTunes/iTunes\ Media/Music/Jonny\ Greenwood/Norwegian\ Wood\ OST/05\ Toki\ No\ Senrei\ O\ Ukete\ Inai\ Mono.mp3

cvlc /mnt/4E46682B4668164D/Users/Fiksdal/Music/iTunes/iTunes\ Media/Music/Kural/Kural/Puja\ Cropped.m4a &

sh /home/fiksdal/Google\ Drive/Scripts/foo.sh

/opt/google/chrome/google-chrome --profile-directory=Default --app-id=kefmolhnnppgijjgjcfhlpngbggjlkgf
  • The closest thing might be kiosk mode. See this. – saiarcot895 Oct 16 '15 at 17:36
  • Look at this superuser.com/questions/276923/…, maybe --start-maximized will be working for You, I've tried it in Xfce but it doesn't work for me – Jakub Rakus Oct 16 '15 at 17:41
  • Couldn't get kiosk mode to work at all. --start maximized works for the main Chrome window, but not for Chrome apps, which is the case here. It's actully an ARC APK build. I found another solution, will post it as an answer. – Revetahw says Reinstate Monica Oct 16 '15 at 20:45
0

I installed xdotool and used xdotool key [systemwide keyboard shortcut to full screen] It worked well.

Edit: I found that it also worked to install wmctrl and use wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.