Advertisement
flycat

Awesome VM config fragment

Oct 12th, 2011 (edited)
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.08 KB | None | 0 0
  1. rc.lua:
  2. -- WTF?!
  3. globalkeys = awful.util.table.join(
  4.     awful.key({ modkey,           }, "Left",   awful.tag.viewprev       ),
  5.     awful.key({ modkey,           }, "Right",  awful.tag.viewnext       ),
  6.     awful.key({ modkey,           }, "Escape", awful.tag.history.restore),
  7.     awful.key({ modkey,           }, "F12", function () awful.util.spawn('/usr/bin/xlock -mode life') end),
  8.  
  9. -- Table of layouts to cover with awful.layout.inc, order matters.
  10. awful.layout.layouts = {
  11.     awful.layout.suit.tile,
  12.     awful.layout.suit.tile.left,
  13.     awful.layout.suit.tile.bottom,
  14.     awful.layout.suit.tile.top,
  15.     awful.layout.suit.fair,
  16.     awful.layout.suit.fair.horizontal,
  17.     awful.layout.suit.spiral,
  18.     awful.layout.suit.spiral.dwindle,
  19.     awful.layout.suit.max,
  20.     awful.layout.suit.max.fullscreen,
  21.     awful.layout.suit.magnifier,
  22.     awful.layout.suit.corner.nw,
  23.     awful.layout.suit.floating,
  24.     -- awful.layout.suit.corner.ne,
  25.     -- awful.layout.suit.corner.sw,
  26.     -- awful.layout.suit.corner.se,
  27. }
  28.  
  29.     -- Add titlebars to normal clients and dialogs
  30.     { rule_any = {type = { "dialog" }
  31.       }, properties = { titlebars_enabled = true }
  32.     },
  33.  
  34.     -- Set Firefox to always map on the tag named "2" on screen 1.
  35.     -- To detect class: xprop WM_CLASS and clisk
  36.     { rule = { class = "Kopete" },
  37.       properties = { screen = 1, tag = "1" } },
  38.     { rule = { class = "Telegram" },
  39.       properties = { screen = 1, tag = "1" } },
  40.     { rule = { class = "Konqueror" },
  41.       properties = { screen = 1, tag = "9" } },
  42.     { rule = { class = "KeePass" },
  43.       properties = { screen = 2, tag = "8" } },
  44.     { rule = { class = "KeePass2" },
  45.       properties = { screen = 2, tag = "8" } },
  46. }
  47.  
  48. awful.util.spawn_with_shell("pgrep Telegram >/dev/null || /opt/Telegram/Telegram")
  49. awful.util.spawn_with_shell("pgrep firefox >/dev/null || /usr/bin/firefox")
  50. awful.util.spawn_with_shell("pgrep kbdd >/dev/null || /usr/bin/kbdd")
  51. awful.util.spawn_with_shell("pgrep keepassxc >/dev/null || /usr/bin/keepassxc")
  52. awful.util.spawn_with_shell("pgrep konsole >/dev/null || /usr/bin/konsole")
  53. awful.util.spawn_with_shell("pgrep nautilus >/dev/null || /usr/bin/nautilus")
  54. awful.util.spawn_with_shell("pgrep nm-applet >/dev/null || /usr/bin/nm-applet")
  55. awful.util.spawn_with_shell("pgrep pasystray >/dev/null || /usr/bin/pasystray")
  56. awful.util.spawn_with_shell("pgrep syncthing-gtk >/dev/null || /usr/bin/syncthing-gtk")
  57. awful.util.spawn_with_shell("pgrep syndaemon >/dev/null || /usr/bin/syndaemon -i 1 -d -t -K")
  58. awful.util.spawn_with_shell("pgrep thunderbird >/dev/null || /usr/bin/thunderbird")
  59. awful.util.spawn_with_shell("pgrep xbindkeys >/dev/null || /usr/bin/xbindkeys")
  60. awful.util.spawn_with_shell("pgrep xfce4-power-manager >/dev/null || /usr/bin/xfce4-power-manager")
  61. awful.util.spawn_with_shell("pgrep xscreensaver >/dev/null || /usr/bin/xscreensaver -nosplash")
  62.  
  63. /usr/share/awesome/themes/default/theme.lua:
  64. theme.font          = "sans 10"
  65.  
  66. # Определить класс окна для конфига:
  67. xprop|grep -i class
  68.  
  69. # XRandr
  70. https://awesomewm.org/recipes/xrandr/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement