[FIX] Show browser before refreshing
This commit is contained in:
parent
1a3374d1e2
commit
825331f1ae
@ -5,7 +5,7 @@ Description=Reload page in running browser
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
Environment=DISPLAY=:0.0
|
Environment=DISPLAY=:0.0
|
||||||
Environment=XAUTHORITY=/home/odoo/.Xauthority
|
Environment=XAUTHORITY=/home/odoo/.Xauthority
|
||||||
ExecStart=sh -c "xdotool keydown F5; xdotool keyup F5"
|
ExecStart=sh -c "xdotool key Super_L+F1; sleep 1; xdotool key F5"
|
||||||
User=odoo
|
User=odoo
|
||||||
Group=users
|
Group=users
|
||||||
|
|
||||||
|
|||||||
152
roles/display/files/openbox_rc
Normal file
152
roles/display/files/openbox_rc
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<openbox_config xmlns="http://openbox.org/3.4/rc"
|
||||||
|
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
|
||||||
|
<resistance>
|
||||||
|
<strength>10</strength>
|
||||||
|
<screen_edge_strength>20</screen_edge_strength>
|
||||||
|
</resistance>
|
||||||
|
|
||||||
|
<focus>
|
||||||
|
<focusNew>yes</focusNew>
|
||||||
|
<followMouse>no</followMouse>
|
||||||
|
<focusLast>yes</focusLast>
|
||||||
|
<underMouse>no</underMouse>
|
||||||
|
<focusDelay>200</focusDelay>
|
||||||
|
<raiseOnFocus>no</raiseOnFocus>
|
||||||
|
</focus>
|
||||||
|
|
||||||
|
<placement>
|
||||||
|
<policy>Smart</policy>
|
||||||
|
<center>yes</center>
|
||||||
|
<monitor>Primary</monitor>
|
||||||
|
<primaryMonitor>1</primaryMonitor>
|
||||||
|
</placement>
|
||||||
|
|
||||||
|
<theme>
|
||||||
|
<name>Clearlooks</name>
|
||||||
|
<titleLayout>NLIMC</titleLayout>
|
||||||
|
<keepBorder>yes</keepBorder>
|
||||||
|
<animateIconify>yes</animateIconify>
|
||||||
|
<font place="ActiveWindow">
|
||||||
|
<name>sans</name>
|
||||||
|
<size>8</size>
|
||||||
|
<weight>bold</weight>
|
||||||
|
<slant>normal</slant>
|
||||||
|
</font>
|
||||||
|
<font place="InactiveWindow">
|
||||||
|
<name>sans</name>
|
||||||
|
<size>8</size>
|
||||||
|
<weight>bold</weight>
|
||||||
|
<slant>normal</slant>
|
||||||
|
</font>
|
||||||
|
<font place="MenuHeader">
|
||||||
|
<name>sans</name>
|
||||||
|
<size>9</size>
|
||||||
|
<weight>normal</weight>
|
||||||
|
<slant>normal</slant>
|
||||||
|
</font>
|
||||||
|
<font place="MenuItem">
|
||||||
|
<name>sans</name>
|
||||||
|
<size>9</size>
|
||||||
|
<weight>normal</weight>
|
||||||
|
<slant>normal</slant>
|
||||||
|
</font>
|
||||||
|
<font place="ActiveOnScreenDisplay">
|
||||||
|
<name>sans</name>
|
||||||
|
<size>9</size>
|
||||||
|
<weight>bold</weight>
|
||||||
|
<slant>normal</slant>
|
||||||
|
</font>
|
||||||
|
<font place="InactiveOnScreenDisplay">
|
||||||
|
<name>sans</name>
|
||||||
|
<size>9</size>
|
||||||
|
<weight>bold</weight>
|
||||||
|
<slant>normal</slant>
|
||||||
|
</font>
|
||||||
|
</theme>
|
||||||
|
|
||||||
|
<desktops>
|
||||||
|
<number>2</number>
|
||||||
|
<firstdesk>1</firstdesk>
|
||||||
|
<names>
|
||||||
|
</names>
|
||||||
|
<popupTime>0</popupTime>
|
||||||
|
</desktops>
|
||||||
|
|
||||||
|
<resize>
|
||||||
|
<drawContents>yes</drawContents>
|
||||||
|
<popupShow>Nonpixel</popupShow>
|
||||||
|
<popupPosition>Center</popupPosition>
|
||||||
|
<popupFixedPosition>
|
||||||
|
<x>10</x>
|
||||||
|
<y>10</y>
|
||||||
|
</popupFixedPosition>
|
||||||
|
</resize>
|
||||||
|
|
||||||
|
<margins>
|
||||||
|
<top>0</top>
|
||||||
|
<bottom>0</bottom>
|
||||||
|
<left>0</left>
|
||||||
|
<right>0</right>
|
||||||
|
</margins>
|
||||||
|
|
||||||
|
<keyboard>
|
||||||
|
<chainQuitKey>C-g</chainQuitKey>
|
||||||
|
|
||||||
|
<!-- Keybindings for desktop switching -->
|
||||||
|
<keybind key="C-A-Left">
|
||||||
|
<action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="C-A-Right">
|
||||||
|
<action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-F1">
|
||||||
|
<action name="GoToDesktop"><to>1</to></action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-F2">
|
||||||
|
<action name="GoToDesktop"><to>2</to></action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-F3">
|
||||||
|
<action name="GoToDesktop"><to>3</to></action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-F4">
|
||||||
|
<action name="GoToDesktop"><to>4</to></action>
|
||||||
|
</keybind>
|
||||||
|
|
||||||
|
<keybind key="W-d">
|
||||||
|
<action name="ToggleShowDesktop"/>
|
||||||
|
</keybind>
|
||||||
|
|
||||||
|
<!-- Keybindings for window switching -->
|
||||||
|
<keybind key="A-Tab">
|
||||||
|
<action name="NextWindow">
|
||||||
|
<finalactions>
|
||||||
|
<action name="Focus"/>
|
||||||
|
<action name="Raise"/>
|
||||||
|
<action name="Unshade"/>
|
||||||
|
</finalactions>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
|
||||||
|
</keyboard>
|
||||||
|
|
||||||
|
<menu>
|
||||||
|
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
|
||||||
|
<!-- system menu files on Debian systems -->
|
||||||
|
<file>/var/lib/openbox/debian-menu.xml</file>
|
||||||
|
<file>menu.xml</file>
|
||||||
|
<hideDelay>200</hideDelay>
|
||||||
|
<middle>no</middle>
|
||||||
|
<submenuShowDelay>100</submenuShowDelay>
|
||||||
|
<submenuHideDelay>400</submenuHideDelay>
|
||||||
|
<showIcons>yes</showIcons>
|
||||||
|
<manageDesktops>yes</manageDesktops>
|
||||||
|
</menu>
|
||||||
|
|
||||||
|
<applications>
|
||||||
|
</applications>
|
||||||
|
|
||||||
|
</openbox_config>
|
||||||
|
|
||||||
@ -6,7 +6,7 @@ Type=oneshot
|
|||||||
Environment=DISPLAY=:0.0
|
Environment=DISPLAY=:0.0
|
||||||
Environment=XAUTHORITY=/home/odoo/.Xauthority
|
Environment=XAUTHORITY=/home/odoo/.Xauthority
|
||||||
ExecStart=/usr/bin/nitrogen --set-zoom-fill --random /home/odoo/wallpapers/
|
ExecStart=/usr/bin/nitrogen --set-zoom-fill --random /home/odoo/wallpapers/
|
||||||
ExecStart=sh -c "xdotool key Super_L+d; sleep 7; xdotool key Super_L+d"
|
ExecStart=sh -c "xdotool key Super_L+F2; sleep 7; xdotool key Super_L+F1"
|
||||||
User=odoo
|
User=odoo
|
||||||
Group=users
|
Group=users
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Configure Openbox
|
||||||
|
copy:
|
||||||
|
src: openbox_rc
|
||||||
|
dest: /home/odoo/.config/openbox/rc.xml
|
||||||
|
owner: odoo
|
||||||
|
|
||||||
- name: Copy wallpapers
|
- name: Copy wallpapers
|
||||||
copy:
|
copy:
|
||||||
src: wallpapers/
|
src: wallpapers/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user