Guest User

Untitled

a guest
Aug 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. xmlstarlet update an attribute
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <channel name="xfce4-keyboard-shortcuts" version="1.0">
  4. <property name="commands" type="empty">
  5. <property name="default" type="empty">
  6. <property name="<Alt>F2" type="empty"/>
  7. <property name="<Control><Alt>Delete" type="empty"/>
  8. <property name="XF86Display" type="string" value="xrandr --output LVDS --auto --output VGA-0 --mode 1680x1050_60.00 --right-of LVDS"/>
  9. </property>
  10. <property name="custom" type="empty">
  11. <property name="<Alt>F2" type="string" value="xfrun4"/>
  12. <property name="<Control><Alt>Delete" type="string" value="xflock4"/>
  13. <property name="XF86Display" type="string" value="xrandr --output LVDS --auto --output VGA-0 --mode 1680x1050_60.00 --right-of LVDS"/>
  14. <property name="override" type="bool" value="true"/>
  15. </property>
  16. </property>
  17. </channel>
  18.  
  19. xmlstarlet edit --update "/xml/channel[@name=xfce4-keyboard-shortcuts]/property[@name=commands]/property[@name=custom]/property[@name=XF86Display]/@value" --value "test" xfce4-keyboard-shortcuts.xml
Add Comment
Please, Sign In to add comment