44 lines
904 B
Plaintext
44 lines
904 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
sudo apt-get install devilspie
|
||
|
|
||
|
mkdir -p ~/.devilspie
|
||
|
|
||
|
echo '(if
|
||
|
(or
|
||
|
(is (application_name) "plugin-container")
|
||
|
(and
|
||
|
(contains application_name) "chromium-browser")
|
||
|
(contains application_name) "flash-plugin")
|
||
|
)
|
||
|
)
|
||
|
(begin
|
||
|
(focus)
|
||
|
)
|
||
|
)' > ~/.devilspie/flash_fullscreen.ds
|
||
|
|
||
|
echo '#!/bin/bash
|
||
|
|
||
|
echo "running" > /home/maarten/devilspie.log
|
||
|
|
||
|
while [ true ]; do
|
||
|
/usr/bin/devilspie;
|
||
|
done' > ~/.devilspie/devilspie_daemon.sh
|
||
|
|
||
|
chmod a+x ~/.devilspie/devilspie_daemon.sh
|
||
|
|
||
|
mkdir -p ~/.config/autostart
|
||
|
|
||
|
echo '[Desktop Entry]
|
||
|
Type=Application
|
||
|
Exec=/home/maarten/.devilspie/devilspie_daemon.sh
|
||
|
Hidden=false
|
||
|
X-GNOME-Autostart-enabled=true
|
||
|
Name[en_US]=Devilspie Daemon
|
||
|
Name=Devilspie Daemon
|
||
|
Comment[en_US]=Script will continuously restart devilspie if stopped
|
||
|
Comment=Script will continuously restart devilspie if stopped
|
||
|
' > ~/.config/autostart/devilspie_daemon.desktop
|