Advertisement
Guest User

JWM config example, пример настройки JWM

a guest
Aug 19th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.03 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <JWM>
  3.  
  4.     <!-- The root menu. -->
  5.     <RootMenu onroot="12">
  6.         <Include>/etc/jwm/debian-menu</Include>
  7.         <!--Program icon="terminal.png" label="Terminal">xterm</Program-->
  8.         <Separator/>
  9.         <Program icon="firefox-esr.png" label="firefox">firefox</Program>
  10.         <Program icon="nemo.png" label="nemo">nemo --no-desktop</Program>
  11.         <Program label="nemo root">sudo nemo --no-desktop</Program>
  12.         <Program icon="xterm-color.png" label="терминал">gnome-terminal</Program>
  13.         <Program icon="gedit.png" label="gedit">gedit</Program>
  14.         <Program icon="alarm-clock.png" label="будильник">alarm-clock-applet</Program>
  15.         <Program icon="htop.png" label="htop">xterm -e htop</Program>
  16.         <Program icon="synaptic.png" label="synaptic">sudo synaptic</Program>
  17.         <Program label="чистка памяти">killall "Web Content" ; killall xfce4-screenshooter ; killall xclip ; rm -r /tmp/*; rm -r ~/.cache/*</Program>
  18.         <Separator/>
  19.         <Program icon="gcr-password.png" label="Lock">
  20.             xscreensaver-command -lock
  21.         </Program>
  22.         <Separator/>
  23.         <Restart label="Restart" icon="restart.png"/>
  24.         <Exit label="Exit" confirm="true" icon="quit.png"/>
  25.     </RootMenu>
  26.  
  27.     <!-- Options for program groups. -->
  28.     <Group>
  29.         <Option>tiled</Option>
  30.         <Option>aerosnap</Option>
  31.     </Group>
  32.     <Group>
  33.         <Class>Pidgin</Class>
  34.         <Option>sticky</Option>
  35.     </Group>
  36.     <Group>
  37.         <Name>xterm</Name>
  38.         <Option>vmax</Option>
  39.     </Group>
  40.     <Group>
  41.         <Name>xclock</Name>
  42.         <Option>drag</Option>
  43.         <!--Option>notitle</Option-->
  44.     </Group>
  45.  
  46.     <!-- Tray at the bottom. -->
  47.     <Tray x="0" y="-1" height="25" autohide="off">
  48.  
  49.         <TrayButton icon="/usr/share/jwm/jwm-red.svg">root:1</TrayButton>
  50.         <Spacer width="2"/>
  51.         <TrayButton label="_">showdesktop</TrayButton>
  52.         <Spacer width="2"/>
  53.  
  54.         <Pager labeled="true"/>
  55.  
  56.         <TaskList maxwidth="256"/>
  57.  
  58.         <Dock/>
  59.         <Clock format="%H:%M:%S"><Button mask="123">exec:xclock</Button></Clock>
  60.  
  61.     </Tray>
  62.  
  63.     <!-- Visual Styles -->
  64.     <WindowStyle>
  65.         <Font>Sans-9:bold</Font>
  66.         <Width>4</Width>
  67.         <Height>21</Height>
  68.         <Corner>3</Corner>
  69.         <Foreground>#FFFFFF</Foreground>
  70.         <Background>#555555</Background>
  71.         <Outline>#000000</Outline>
  72.         <Opacity>0.5</Opacity>
  73.         <Active>
  74.             <Foreground>#FFFFFF</Foreground>
  75.             <Background>#0077CC</Background>
  76.             <Outline>#000000</Outline>
  77.             <Opacity>1.0</Opacity>
  78.         </Active>
  79.     </WindowStyle>
  80.     <TrayStyle group="false" list="desktop" >
  81.         <Font>Sans-9</Font>
  82.         <Background>#333333</Background>
  83.         <Foreground>#FFFFFF</Foreground>
  84.         <Outline>#000000</Outline>
  85.         <Opacity>0.75</Opacity>
  86.     </TrayStyle>
  87.     <PagerStyle>
  88.         <Outline>#000000</Outline>
  89.         <Foreground>#555555</Foreground>
  90.         <Background>#333333</Background>
  91.         <Text>#FFFFFF</Text>
  92.         <Active>
  93.             <Foreground>#0077CC</Foreground>
  94.             <Background>#004488</Background>
  95.         </Active>
  96.     </PagerStyle>
  97.     <MenuStyle>
  98.         <Font>Sans-9</Font>
  99.         <Foreground>#FFFFFF</Foreground>
  100.         <Background>#333333</Background>
  101.         <Outline>#000000</Outline>
  102.         <Active>
  103.             <Foreground>#FFFFFF</Foreground>
  104.             <Background>#0077CC</Background>
  105.         </Active>
  106.         <Opacity>0.85</Opacity>
  107.     </MenuStyle>
  108.     <PopupStyle>
  109.         <Font>Sans-9</Font>
  110.         <Foreground>#000000</Foreground>
  111.         <Background>#999999</Background>
  112.     </PopupStyle>
  113.  
  114.     <!-- Path where icons can be found.
  115.         IconPath can be listed multiple times to allow searching
  116.         for icons in multiple paths.
  117.      -->
  118.     <IconPath>/usr/share/icons/gnome/256x256/actions</IconPath>
  119.     <IconPath>/usr/share/icons/gnome/256x256/apps</IconPath>
  120.     <IconPath>/usr/share/icons/gnome/256x256/categories</IconPath>
  121.     <IconPath>/usr/share/icons/gnome/256x256/devices</IconPath>
  122.     <IconPath>/usr/share/icons/gnome/256x256/emblems</IconPath>
  123.     <IconPath>/usr/share/icons/gnome/256x256/mimetypes</IconPath>
  124.     <IconPath>/usr/share/icons/gnome/256x256/places</IconPath>
  125.     <IconPath>/usr/share/icons/gnome/256x256/status</IconPath>
  126.     <IconPath>/usr/share/icons/gnome/32x32/actions</IconPath>
  127.     <IconPath>/usr/share/icons/gnome/32x32/animations</IconPath>
  128.     <IconPath>/usr/share/icons/gnome/32x32/apps</IconPath>
  129.     <IconPath>/usr/share/icons/gnome/32x32/categories</IconPath>
  130.     <IconPath>/usr/share/icons/gnome/32x32/devices</IconPath>
  131.     <IconPath>/usr/share/icons/gnome/32x32/emblems</IconPath>
  132.     <IconPath>/usr/share/icons/gnome/32x32/mimetypes</IconPath>
  133.     <IconPath>/usr/share/icons/gnome/32x32/places</IconPath>
  134.     <IconPath>/usr/share/icons/gnome/32x32/status</IconPath>
  135.     <IconPath>/usr/share/icons/gnome/scalable/actions</IconPath>
  136.     <IconPath>/usr/share/icons/gnome/scalable/apps</IconPath>
  137.     <IconPath>/usr/share/icons/gnome/scalable/categories</IconPath>
  138.     <IconPath>/usr/share/icons/gnome/scalable/devices</IconPath>
  139.     <IconPath>/usr/share/icons/gnome/scalable/emblems</IconPath>
  140.     <IconPath>/usr/share/icons/gnome/scalable/mimetypes</IconPath>
  141.     <IconPath>/usr/share/icons/gnome/scalable/places</IconPath>
  142.     <IconPath>/usr/share/icons/gnome/scalable/status</IconPath>
  143.     <IconPath>/usr/share/icons/hicolor/256x256/apps</IconPath>
  144.     <IconPath>/usr/share/icons/hicolor/256x256/mimetypes</IconPath>
  145.     <IconPath>/usr/share/icons/hicolor/32x32/actions</IconPath>
  146.     <IconPath>/usr/share/icons/hicolor/32x32/apps</IconPath>
  147.     <IconPath>/usr/share/icons/hicolor/32x32/categories</IconPath>
  148.     <IconPath>/usr/share/icons/hicolor/32x32/devices</IconPath>
  149.     <IconPath>/usr/share/icons/hicolor/32x32/emblems</IconPath>
  150.     <IconPath>/usr/share/icons/hicolor/32x32/mimetypes</IconPath>
  151.     <IconPath>/usr/share/icons/hicolor/32x32/status</IconPath>
  152.     <IconPath>/usr/share/icons/hicolor/48x48/apps</IconPath>
  153.     <IconPath>/usr/share/icons/hicolor/512x512/apps</IconPath>
  154.     <IconPath>/usr/share/icons/hicolor/512x512/mimetypes</IconPath>
  155.     <IconPath>/usr/share/icons/hicolor/scalable/actions</IconPath>
  156.     <IconPath>/usr/share/icons/hicolor/scalable/apps</IconPath>
  157.     <IconPath>/usr/share/icons/hicolor/scalable/categories</IconPath>
  158.     <IconPath>/usr/share/icons/hicolor/scalable/devices</IconPath>
  159.     <IconPath>/usr/share/icons/hicolor/scalable/emblems</IconPath>
  160.     <IconPath>/usr/share/icons/hicolor/scalable/mimetypes</IconPath>
  161.     <IconPath>/usr/share/icons/hicolor/scalable/places</IconPath>
  162.     <IconPath>/usr/share/icons/hicolor/scalable/status</IconPath>
  163.     <IconPath>/usr/share/icons</IconPath>
  164.     <IconPath>/usr/share/pixmaps</IconPath>
  165.     <IconPath>
  166.         /usr/local/share/jwm
  167.     </IconPath>
  168.  
  169.     <!-- Virtual Desktops -->
  170.     <!-- Desktop tags can be contained within Desktops for desktop names. -->
  171.     <Desktops width="4" height="1">
  172.         <!-- Default background. Note that a Background tag can be
  173.              contained within a Desktop tag to give a specific background
  174.              for that desktop.
  175.         -->
  176.         <!--Background type="solid">#111111</Background-->
  177.         <Background type="scale">/kokoko.jpg</Background>
  178.         <Desktop name="1">
  179.             <Background type="solid">#C8A2C8</Background>
  180.         </Desktop>
  181.         <Desktop name="2">
  182.             <Background type="solid">#EBC2AF</Background>
  183.         </Desktop>
  184.         <Desktop name="3">
  185.             <Background type="solid">#A2D5C8</Background>
  186.         </Desktop>
  187.     </Desktops>
  188.  
  189.     <!-- Double click speed (in milliseconds) -->
  190.     <DoubleClickSpeed>400</DoubleClickSpeed>
  191.  
  192.     <!-- Double click delta (in pixels) -->
  193.     <DoubleClickDelta>2</DoubleClickDelta>
  194.  
  195.     <!-- The focus model (sloppy or click) -->
  196.     <FocusModel>click</FocusModel>
  197.  
  198.     <!-- The snap mode (none, screen, or border) -->
  199.     <SnapMode distance="10">border</SnapMode>
  200.  
  201.     <!-- The move mode (outline or opaque) -->
  202.     <MoveMode coordinates="off">opaque</MoveMode>
  203.  
  204.     <!-- The resize mode (outline or opaque) -->
  205.     <ResizeMode coordinates="off">opaque</ResizeMode>
  206.  
  207.     <!-- Key bindings -->
  208.     <Key key="Up">up</Key>
  209.     <Key key="Down">down</Key>
  210.     <Key key="Right">right</Key>
  211.     <Key key="Left">left</Key>
  212.     <Key key="h">left</Key>
  213.     <Key key="j">down</Key>
  214.     <Key key="k">up</Key>
  215.     <Key key="l">right</Key>
  216.     <Key key="Return">select</Key>
  217.     <Key key="Escape">escape</Key>
  218.  
  219.     <Key mask="A" key="Tab">nextstacked</Key>
  220.     <Key mask="A" key="F4">close</Key>
  221.     <Key mask="A" key="#">desktop#</Key>
  222.     <Key mask="A" key="F1">root:1</Key>
  223.     <Key mask="A" key="F2">window</Key>
  224.     <Key mask="A" key="F10">maximize</Key>
  225.     <Key mask="5" key="F10">maximize</Key>
  226.     <Key mask="A" key="Right">rdesktop</Key>
  227.     <Key mask="5" key="Right">rdesktop</Key>
  228.     <Key mask="A" key="Left">ldesktop</Key>
  229.     <Key mask="5" key="Left">ldesktop</Key>
  230.     <Key mask="A" key="Up">udesktop</Key>
  231.     <Key mask="5" key="Up">udesktop</Key>
  232.     <Key mask="A" key="Down">ddesktop</Key>
  233.     <Key mask="5" key="Down">ddesktop</Key>
  234.     <Key key="Print">exec:xfce4-screenshooter -f -d 0</Key>
  235.     <Key mask="S" key="Print">exec:xfce4-screenshooter -r -d 0</Key>
  236.     <Key mask="C" key="Print">exec:xfce4-screenshooter -f -d 0 -o cat | xclip -selection clipboard -t image/png -i -l 1</Key>
  237.     <Key mask="CS" key="Print">exec:xfce4-screenshooter -r -d 0 -o cat | xclip -selection clipboard -t image/png -i -l 1</Key>
  238.     <Key mask="A" key="Print">exec:zenity --progress --text='Скриншот в файл через 5 секунд' --ok-label='Отмена' --timeout=5 --no-cancel --pulsate || xfce4-screenshooter -f -d 0</Key>
  239.     <Key mask="AC" key="Print">exec:zenity --progress --text='Скриншот в буфер через 5 секунд' --ok-label='Отмена' --timeout=5 --no-cancel --pulsate || xfce4-screenshooter -f -d 0 -o cat | xclip -selection clipboard -t image/png -i -l 1</Key>
  240.     <Key mask="5" key="Print">exec:zenity --progress --text='Скриншот в файл через 5 секунд' --ok-label='Отмена' --timeout=5 --no-cancel --pulsate || xfce4-screenshooter -f -d 0</Key>
  241.     <Key mask="5C" key="Print">exec:zenity --progress --text='Скриншот в буфер через 5 секунд' --ok-label='Отмена' --timeout=5 --no-cancel --pulsate || xfce4-screenshooter -f -d 0 -o cat | xclip -selection clipboard -t image/png -i -l 1</Key>
  242.     <Key keycode="150">exec:xscreensaver-command -lock</Key>
  243.     <!--
  244.        mask="1" - alt
  245.        mask="2" - ???
  246.        mask="3" - ???
  247.        mask="4" - lwin
  248.        mask="5" - altgr
  249.    -->
  250.     <Key mask="A" key="F7">move</Key>
  251.     <Key mask="5" key="F7">move</Key>
  252.     <Key mask="A" key="F8">resize</Key>
  253.     <Key mask="5" key="F8">resize</Key>
  254.     <Key mask="CA" key="Left">ldesktop</Key>
  255.     <Key mask="C5" key="Left">ldesktop</Key>
  256.     <Key mask="CA" key="Right">rdesktop</Key>
  257.     <Key mask="C5" key="Right">rdesktop</Key>
  258.     <Key mask="CAS" key="Left">sendl</Key>
  259.     <Key mask="C5S" key="Left">sendl</Key>
  260.     <Key mask="CAS" key="Right">sendr</Key>
  261.     <Key mask="C5S" key="Right">sendr</Key>
  262.  
  263.     <Key mask="CA" key="Up">maxtop</Key>
  264.     <Key mask="C5" key="Up">maxtop</Key>
  265.     <Key mask="CA" key="Left">maxleft</Key>
  266.     <Key mask="C5" key="Left">maxleft</Key>
  267.     <Key mask="CA" key="Right">maxright</Key>
  268.     <Key mask="C5" key="Right">maxright</Key>
  269.     <Key mask="CA" key="Down">maxbottom</Key>
  270.     <Key mask="C5" key="Down">maxbottom</Key>
  271.  
  272.     <Key mask="A" key="F2">exec:bash -c "`zenity --entry --title="$USER@\`hostname\`:\`pwd\`" --text="Команда от имени $USER                                            "`"
  273. </Key>
  274.     <Key mask="A" key="F3">window</Key>
  275.  
  276.     <!--Alt-F10 из коробки делает maximize/restore, а F11 - toggle fullscreen-->
  277.  
  278.     <StartupCommand>gxkb</StartupCommand>
  279. </JWM>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement