First Commit
This commit is contained in:
43
Laptop/flash_fix
Executable file
43
Laptop/flash_fix
Executable file
@ -0,0 +1,43 @@
|
||||
#!/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
|
Reference in New Issue
Block a user