Advertisement
dannyLopez68

Awesome Tarrasquero

Mar 21st, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.26 KB | None | 0 0
  1. -- Standard awesome library
  2. require("awful")
  3. require("awful.autofocus")
  4. require("awful.rules")
  5. -- Theme handling library
  6. require("beautiful")
  7. -- Notification library
  8. require("naughty")
  9. local vicious = require("vicious")  --you have to add awesome-extras in the ubuntu repository for this
  10. -- Load Debian menu entries
  11. require("debian.menu")
  12. -- local lain = require("lain")
  13. -- local mytemp = lain.widget.temp
  14. -- local calendar = lain.widget.calendar()
  15. -- {{Temperatura CPU
  16. -- mytemp = widget({ type = "textbox" })
  17. -- }}
  18. -- {{ Network usage widget
  19.  
  20. -- Initialize widget
  21. netwidget = widget({ type = "textbox" })
  22. -- Register widget
  23. vicious.register(netwidget, vicious.widgets.net, '<span color = "#CC9393">${wlan0 down_kb}</span> <span color ="#7F9F7F">${wlan0 up_kb}</span>', 3)
  24. -- lain.register(mytemp)
  25. -- }}
  26.    --Create Volume Progressbar
  27.    -- Initialize widget
  28.    volwidget = awful.widget.progressbar()
  29.    -- Progressbar properties
  30.    volwidget:set_width(24)
  31.    volwidget:set_height(22)
  32.    volwidget:set_vertical(true)
  33.    volwidget:set_background_color("#232323")
  34.    volwidget:set_border_color(nil)
  35.    volwidget:set_color("#red")
  36.    volwidget:set_gradient_colors({ "#606060", "red" })
  37.    --Register widget
  38.    vicious.register(volwidget, vicious.widgets.volume, "$1", 0.2, "Master")
  39.    --Mouse bindings
  40.    volwidget.widget:buttons(awful.util.table.join(
  41.        awful.button({ }, 5, function () awful.util.spawn_with_shell("amixer -c 0 set Master 3+ unmute") end),
  42.        awful.button({ }, 4, function () awful.util.spawn_with_shell("amixer -c 0 set Master 3-") end)
  43.    ))
  44.  
  45. ---Battery widget
  46.   batwidget = awful.widget.progressbar()
  47.   batwidget:set_width(12)
  48.   batwidget:set_height(18)
  49.   batwidget:set_vertical(true)
  50.   batwidget:set_background_color("#494B4F")
  51.   batwidget:set_border_color(nil)
  52.   batwidget:set_color("#AECF96")
  53.   batwidget:set_gradient_colors({ "#AECF96", "#88A175", "#FF5656" })
  54.   vicious.register(batwidget, vicious.widgets.bat, "$2", 61, "BAT0")
  55.  
  56. -- lain.widgets.calendar:attach(tdwidget, { font_size = 9 })
  57.  
  58. -- Initialize widget
  59. memwidget = awful.widget.progressbar()
  60. -- Progressbar properties
  61. memwidget:set_width(12)
  62. memwidget:set_height(18)
  63. memwidget:set_vertical(true)
  64. memwidget:set_background_color("darkblue")
  65. memwidget:set_border_color(nil)
  66. memwidget:set_color("#yellow")
  67. memwidget:set_gradient_colors({ "orange", "#88A175", "blue" })
  68. -- Register widget
  69. vicious.register(memwidget, vicious.widgets.mem, "$1", 13)
  70.  
  71. -- Initialize widget
  72. cpuwidget = awful.widget.graph()
  73. -- Graph properties
  74. cpuwidget:set_width(20)
  75. cpuwidget:set_background_color("darkgreen")
  76. cpuwidget:set_color("#FF5656")
  77. cpuwidget:set_gradient_colors({ "red", "orange", "white" })
  78. -- Register widget
  79. vicious.register(cpuwidget, vicious.widgets.cpu, "$1")
  80.  
  81.  
  82. -- {{{ Variable definitions
  83. -- Themes define colours, icons, and wallpapers
  84. beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua")
  85.  
  86.  
  87.  
  88.  
  89. -- {{{ Styles
  90. theme.font      = "sans 8"
  91.  
  92. -- {{{ Colors
  93. theme.fg_normal = "green"
  94. theme.fg_focus  = "black"
  95. theme.fg_urgent = "black"
  96. theme.bg_normal = "#3F3F3F"
  97. theme.bg_focus  = "orange"
  98. theme.bg_urgent = "red"
  99. -- }}}
  100.  
  101.  
  102. -- {{{ Borders
  103. theme.border_width  = "2"
  104. theme.border_normal = "#3F3F3F"
  105. theme.border_focus  = "orange"
  106. theme.border_marked = "#CC9393"
  107. -- }}}
  108.  
  109. -- this is my default font
  110. theme.font      = "Inconsolata Medium 9"
  111. -- make tag list bigger
  112. --theme.taglist_font = "Inconsolata Medium 12theme.font      = "Inconsolata Medium 8""
  113.  
  114. -- This is used later as the default terminal and editor to run.
  115. -- local notify = "notify"
  116. terminal = "x-terminal-emulator"
  117. editor = os.getenv("EDITOR") or "editor"
  118. editor_cmd = terminal .. " -e " .. editor
  119. --local moc = "x-terminal-emulator --command=mocp"
  120. local G = "gksu -P gparted"
  121. local Y = "gksu -P synaptic-pkexec"
  122. local Dolphin = "dolphin"
  123. local navegador = "x-www-browser"
  124. local Matchbox = "matchbox-keyboard"
  125. local Icedove = "icedove"
  126. Gimp = "gimp"
  127. local Transmission = "transmission-gtk"
  128. local K = "keepass2"
  129. local W = "wicd-gtk"
  130. local Gimp = "gimp"
  131. Reboot = "gksu reboot"
  132. Apagar = "gksu poweroff"
  133. local D = "darktable"
  134. -- Irssi = terminal .. " -e " .. screen .. irssi
  135. -- local sh = zsh
  136. -- Default modkey.
  137. -- Usually, Mod4 is the key with a logo between Control and Alt.
  138. -- If you do not like this or do not have such a key,
  139. -- I suggest you to remap Mod4 to another key using xmodmap or other tools.
  140. -- However, you can use another modifier like Mod1, but it may interact with others.
  141. modkey = "Mod4"
  142.  
  143. -- Table of layouts to cover with awful.layout.inc, order matters.
  144. layouts =
  145. {
  146.     awful.layout.suit.floating,
  147.     awful.layout.suit.tile,
  148. --    awful.layout.suit.tile.left,
  149. --    awful.layout.suit.tile.bottom,
  150.     awful.layout.suit.tile.top,
  151. --    awful.layout.suit.fair,
  152. --    awful.layout.suit.fair.horizontal,
  153.  --   awful.layout.suit.spiral,
  154. --    awful.layout.suit.spiral.dwindle,
  155.     awful.layout.suit.max
  156. --    awful.layout.suit.max.fullscreen,
  157. --    awful.layout.suit.magnifier
  158. }
  159. -- }}}
  160.  
  161.  
  162.  
  163.  
  164. -- {{{ Tags
  165. -- Define a tag table which hold all screen tags.
  166. tags = {}
  167.  
  168. for s = 1, screen.count() do
  169.     -- Each screen has its own tag table.
  170.     tags[s] = awful.tag({ "1www", "2mail", "3files", "4offi", "5Mult", "6Graf", "7Sys", "8cal", "9term" }, s, layouts[1])  
  171. end
  172.  
  173.  
  174.  
  175.  
  176. -- {{{ Menu
  177. -- Create a laucher widget and a main menu
  178. myawesomemenu = {
  179.    { "manual", terminal .. " -e man awesome" },
  180.    { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },
  181.    { "restart", awesome.restart },
  182.    { "quit", awesome.quit }
  183. }
  184.  
  185. mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
  186.                                     { "Debian", debian.menu.Debian_menu.Debian },
  187.                                     { "open terminal", terminal },
  188.                                     { "Apagar", Apagar },
  189.                                     { "Reboot", Reboot}
  190.                                   }
  191.                         })
  192.  
  193. mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
  194.                                      menu = mymainmenu })
  195. -- }}}
  196.  
  197. -- {{{ Wibox
  198. -- Create a textclock widget
  199. mytextclock = awful.widget.textclock({ align = "right" }, "%a %d %b %y, %H:%M:%S", 1)
  200.  
  201. -- Create a systray
  202. mysystray = widget({ type = "systray" })
  203.  
  204. -- Create a wibox for each screen and add it
  205. mywibox = {}
  206. mypromptbox = {}
  207. mylayoutbox = {}
  208. mytaglist = {}
  209. mytaglist.buttons = awful.util.table.join(
  210.                     awful.button({ }, 1, awful.tag.viewonly),
  211.                     awful.button({ modkey }, 1, awful.client.movetotag),
  212.                     awful.button({ }, 3, awful.tag.viewtoggle),
  213.                     awful.button({ modkey }, 3, awful.client.toggletag),
  214.                     awful.button({ }, 4, awful.tag.viewnext),
  215.                     awful.button({ }, 5, awful.tag.viewprev)
  216.                     )
  217. mytasklist = {}
  218. mytasklist.buttons = awful.util.table.join(
  219.                      awful.button({ }, 1, function (c)
  220.                                               if not c:isvisible() then
  221.                                                   awful.tag.viewonly(c:tags()[1])
  222.                                               end
  223.                                               client.focus = c
  224.                                               c:raise()
  225.                                           end),
  226.     awful.button({ }, 2,    function (c) c:kill()      end),
  227.                      awful.button({ }, 3, function ()
  228.                                               if instance then
  229.                                                   instance:hide()
  230.                                                   instance = nil
  231.                                               else
  232.                                                   instance = awful.menu.clients({ width=250 })
  233.                                               end
  234.                                           end),
  235.                      awful.button({ }, 4, function ()
  236.                                               awful.client.focus.byidx(1)
  237.                                               if client.focus then client.focus:raise() end
  238.                                           end),
  239.                      awful.button({ }, 5, function ()
  240.                                               awful.client.focus.byidx(-1)
  241.                                               if client.focus then client.focus:raise() end
  242.                                           end))
  243.  
  244. for s = 1, screen.count() do
  245.     -- Create a promptbox for each screen
  246.     mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
  247.     -- Create an imagebox widget which will contains an icon indicating which layout we're using.
  248.     -- We need one layoutbox per screen.
  249.     mylayoutbox[s] = awful.widget.layoutbox(s)
  250.     mylayoutbox[s]:buttons(awful.util.table.join(
  251.                            awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
  252.                            awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
  253.                            awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
  254.                            awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
  255.     -- Create a taglist widget
  256.     mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)
  257.  
  258.     -- Create a tasklist widget
  259.     mytasklist[s] = awful.widget.tasklist(function(c)
  260.                                               return awful.widget.tasklist.label.currenttags(c, s)
  261.                                           end, mytasklist.buttons)
  262.  
  263.     -- Create the wibox
  264.     mywibox[s] = awful.wibox({ position = "top", height = "18",screen = s })
  265.     -- Add widgets to the wibox - order matters
  266.     mywibox[s].widgets = {
  267.         {
  268.             mylauncher,
  269. volwidget.widget,
  270. batwidget,
  271. netwidget,
  272. cpuwidget,
  273. memwidget,
  274. -- mytemp,
  275.          mytaglist[s],
  276.             mypromptbox[s],
  277.             layout = awful.widget.layout.horizontal.leftright
  278.         },
  279.         mylayoutbox[s],
  280.         mytextclock,
  281.         s == 1 and mysystray or nil,
  282.         mytasklist[s],
  283.         layout = awful.widget.layout.horizontal.rightleft
  284.     }
  285. end
  286. -- }}}
  287.  
  288. -- {{{ Mouse bindings
  289. root.buttons(awful.util.table.join(
  290.  
  291.  
  292.     awful.button({ }, 3, function () mymainmenu:toggle() end),
  293.     awful.button({ }, 4, awful.tag.viewnext),
  294.     awful.button({ }, 5, awful.tag.viewprev)
  295. ))
  296. -- }}}
  297.  
  298. -- {{{ Key bindings
  299. globalkeys = awful.util.table.join(
  300.     awful.key({ modkey,           }, "Left",   awful.tag.viewprev       ),
  301.     awful.key({ modkey,           }, "Right",  awful.tag.viewnext       ),
  302.     awful.key({ "Mod1",           }, "Tab", awful.tag.history.restore),
  303.  
  304.  
  305.  
  306.  awful.key({  }, "Menu", function ()
  307.      -- If you want to always position the menu on the same place set coordinates
  308.      awful.menu.menu_keys.down = { "Down", "Alt_L" }
  309.      local cmenu = awful.menu.clients({width=245}, { keygrabber=true }) --, coords={x=525, y=330}
  310.  end),
  311.  
  312.  
  313.    awful.key({ modkey }, "p",
  314.        function (c)
  315.            if c.titlebar then
  316.                awful.titlebar.remove(c)
  317.                debug_notify(c.name .. "\ntitlebar " .. colored_off)
  318.            else
  319.                awful.titlebar.add(c, { altkey = "Mod1" })
  320.                debug_notify(c.name .. "\ntitlebar " .. colored_on)
  321.            end
  322.        end),
  323.  
  324.  
  325.  
  326.     awful.key({ modkey,           }, "j",
  327.         function ()
  328.             awful.client.focus.byidx( 1)
  329.             if client.focus then client.focus:raise() end
  330.         end),
  331.     awful.key({ modkey,           }, "k",
  332.         function ()
  333.             awful.client.focus.byidx(-1)
  334.             if client.focus then client.focus:raise() end
  335.         end),
  336.     awful.key({ modkey,           }, "w", function () mymainmenu:show({keygrabber=true}) end),
  337.  
  338.     -- Layout manipulation
  339.     awful.key({ modkey, "Shift"   }, "j", function () awful.client.swap.byidx(  1)    end),
  340.     awful.key({ modkey, "Shift"   }, "k", function () awful.client.swap.byidx( -1)    end),
  341.     awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
  342.     awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
  343.     awful.key({ modkey,           }, "u", awful.client.urgent.jumpto),
  344.     awful.key({ modkey,           }, "Tab",
  345.         function ()
  346.             awful.client.focus.history.previous()
  347.             if client.focus then
  348.                 client.focus:raise()
  349.             end
  350.         end),
  351.  
  352.     -- Standard program
  353.     awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer -c 0 set Master mute") end),
  354.     awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -c 0 set Master 3+ unmute") end),
  355.     awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -c 0 set Master 3-") end),
  356.     awful.key({ modkey, "Control"}, "i", function () awful.util.spawn("x-terminal-emulator -m --command=screen") end),
  357.     awful.key({ modkey, "Control"}, "o", function () awful.util.spawn("gimp") end),
  358.     awful.key({ modkey, "Control"}, "d", function () awful.util.spawn("darktable") end),
  359.     awful.key({ modkey, "Control"}, "p", function () awful.util.spawn("icedove") end),
  360.     awful.key({ modkey, "Control"}, "w", function () awful.util.spawn("iceweasel") end),
  361.     awful.key({ modkey, "Control"}, "b", function () awful.util.spawn("matchbox-keyboard") end),
  362.     awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),
  363.     awful.key({ }, "Pause", function () awful.util.spawn("scrot -s -e 'mv $f ~/screenshots/ 2>/dev/null'") end),
  364.     awful.key({ }, "XF86AudioPlay", function () awful.util.spawn(moc) end),
  365.     awful.key({ modkey, "Control" }, "g", function () awful.util.spawn(G) end),
  366.     awful.key({ modkey, "Control" }, "y", function () awful.util.spawn(Y) end),
  367.     awful.key({ modkey, "Control" }, "f", function () awful.util.spawn(Dolphin) end),
  368.     awful.key({ }, "XF86Launch4", function () awful.util.spawn(navegador) end),
  369.     awful.key({ modkey,           }, "Return", function () awful.util.spawn(terminal) end),
  370.     awful.key({ modkey, "Control" }, "r", awesome.restart),
  371.     awful.key({ modkey, "Shift"   }, "q", awesome.quit),
  372.  
  373.     awful.key({ modkey,           }, "l",     function () awful.tag.incmwfact( 0.05)    end),
  374.     awful.key({ modkey,           }, "h",     function () awful.tag.incmwfact(-0.05)    end),
  375.     awful.key({ modkey, "Shift"   }, "h",     function () awful.tag.incnmaster( 1)      end),
  376.     awful.key({ modkey, "Shift"   }, "l",     function () awful.tag.incnmaster(-1)      end),
  377.     awful.key({ modkey, "Control" }, "h",     function () awful.tag.incncol( 1)         end),
  378.     awful.key({ modkey, "Control" }, "l",     function () awful.tag.incncol(-1)         end),
  379.     awful.key({ modkey,           }, "space", function () awful.layout.inc(layouts,  1) end),
  380.     awful.key({ modkey, "Shift"   }, "space", function () awful.layout.inc(layouts, -1) end),
  381.     awful.key({ modkey, "Control" }, "n", awful.client.restore),
  382.  
  383.     -- Prompt
  384.     awful.key({ modkey },            "r",     function () mypromptbox[mouse.screen]:run() end),
  385.  
  386.     awful.key({ modkey }, "x",
  387.               function ()
  388.                   awful.prompt.run({ prompt = "Run Lua code: " },
  389.                   mypromptbox[mouse.screen].widget,
  390.                   awful.util.eval, nil,
  391.                   awful.util.getdir("cache") .. "/history_eval")
  392.               end)
  393. )
  394.  
  395. clientkeys = awful.util.table.join(
  396.     awful.key({ modkey,           }, "f",      function (c) c.fullscreen = not c.fullscreen  end),
  397.     awful.key({ modkey, "Shift"   }, "c",      function (c) c:kill()                         end),
  398.     awful.key({ modkey, "Control" }, "space",  awful.client.floating.toggle                     ),
  399.     awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
  400.     awful.key({ modkey,           }, "o",      awful.client.movetoscreen                        ),
  401.     awful.key({ modkey, "Shift"   }, "r",      function (c) c:redraw()                       end),
  402.     awful.key({ modkey,           }, "t",      function (c) c.ontop = not c.ontop            end),
  403.     awful.key({ modkey,           }, "n",      function (c) c.minimized = not c.minimized    end),
  404.     awful.key({ modkey,           }, "m",
  405.         function (c)
  406.             c.maximized_horizontal = not c.maximized_horizontal
  407.             c.maximized_vertical   = not c.maximized_vertical
  408.         end)
  409. )
  410.  
  411. -- Compute the maximum number of digit we need, limited to 9
  412. keynumber = 0
  413. for s = 1, screen.count() do
  414.    keynumber = math.min(9, math.max(#tags[s], keynumber));
  415. end
  416.  
  417. -- Bind all key numbers to tags.
  418. -- Be careful: we use keycodes to make it works on any keyboard layout.
  419. -- This should map on the top row of your keyboard, usually 1 to 9.
  420. for i = 1, keynumber do
  421.     globalkeys = awful.util.table.join(globalkeys,
  422.         awful.key({ modkey }, "#" .. i + 9,
  423.                   function ()
  424.                         local screen = mouse.screen
  425.                         if tags[screen][i] then
  426.                             awful.tag.viewonly(tags[screen][i])
  427.                         end
  428.                   end),
  429.         awful.key({ modkey, "Control" }, "#" .. i + 9,
  430.                   function ()
  431.                       local screen = mouse.screen
  432.                       if tags[screen][i] then
  433.                           awful.tag.viewtoggle(tags[screen][i])
  434.                       end
  435.                   end),
  436.         awful.key({ modkey, "Shift" }, "#" .. i + 9,
  437.                   function ()
  438.                       if client.focus and tags[client.focus.screen][i] then
  439.                           awful.client.movetotag(tags[client.focus.screen][i])
  440.                       end
  441.                   end),
  442.         awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
  443.                   function ()
  444.                       if client.focus and tags[client.focus.screen][i] then
  445.                           awful.client.toggletag(tags[client.focus.screen][i])
  446.                       end
  447.                   end))
  448. end
  449.  
  450. clientbuttons = awful.util.table.join(
  451.     awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
  452.     awful.button({ modkey }, 1, awful.mouse.client.move),
  453.     awful.button({ modkey }, 3, awful.mouse.client.resize))
  454.  
  455. -- Set keys
  456. root.keys(globalkeys)
  457. -- }}}
  458.  
  459. -- {{{ Rules
  460. awful.rules.rules = {
  461.     -- All clients will match this rule.
  462.     { rule = { },
  463.       properties = { border_width = beautiful.border_width,
  464.                      border_color = beautiful.border_normal,
  465.                      focus = true,
  466.                      keys = clientkeys,
  467.                      buttons = clientbuttons } },
  468.     --{ rule = { class = "MPlayer" },
  469.       --properties = { floating = true } },
  470.     --{ rule = { class = "Dolphin" },
  471.       --properties = { floating = false} },
  472.    --{ rule = { class = "Dolphin" },
  473.      -- properties = { tag = tags[1][3]} },
  474.    --{ rule = { class = "Rhythmbox" },
  475.       --properties = { tag = tags[1][5]} },
  476.    { rule = { class = "Download" },
  477.       properties = { floating = true} },
  478.    { rule = { class = "Download" },
  479.       properties = { tag = tags[1][1]} },
  480.    --{ rule = { class = "Gnome-terminal" },
  481.       --properties = { floating = true} },
  482.     { rule = { class = "pinentry" },
  483.       properties = { floating = true } },
  484.     --{ rule = { class = "Gimp" },
  485.       --properties = { tag = tags[1][5] } },    
  486.     --{ rule = { class = "Gimp" },
  487.       --properties = { floating = true } },
  488.     -- Set Firefox to always map on tags number 2 of screen 1.
  489.      --{ rule = { class = "Firefox" },
  490.       -- properties = { tag = tags[1][1] } },
  491.      --{ rule = { class = "Firefox" },
  492.       -- properties = { floating = false } },
  493.      --{ rule = { class = "Matchbox" },
  494.        --properties = { floating = true } },
  495.      --{ rule = { class = "Matchbox" },
  496.        --properties = { tag = tags[1][1] } },
  497.      --{ rule = { class = "Icedove" },
  498.        --properties = { floating = false } },
  499.      --{ rule = { class = "Icedove" },
  500.       -- properties = { tag = tags[1][2] } },
  501.      --{ rule = { class = "terminal" },
  502.        --properties = { floating = false } },
  503.      --{ rule = { class = "terminal" },
  504.        --properties = { tag = tags[1][9] } },
  505.      --{ rule = { class = "Transmission" },
  506.        --properties = { floating = false } },
  507.      --{ rule = { class = "Transmission" },
  508.        --properties = { tag = tags[1][1] } },
  509.      --{ rule = { class = "G" },
  510.        --properties = { floating = false } },
  511.      --{ rule = { class = "G" },
  512.        --properties = { tag = tags[1][7] } },
  513.      --{ rule = { class = "Y" },
  514.        --properties = { floating = false } },
  515.      --{ rule = { class = "Y" },
  516.        --properties = { tag = tags[1][7] } },
  517.      --{ rule = { class = "K" },
  518.        --properties = { floating = true } },
  519.      --{ rule = { class = "K" },
  520.        --properties = { tag = tags[1][7] } },
  521.      --{ rule = { class = "W" },
  522.        --properties = { floating = true } },
  523.      --{ rule = { class = "W" },
  524.        --properties = { tag = tags[1][1] } },
  525.      { rule = { class = "Gimp" },
  526.        properties = { floating = true } },
  527.      --{ rule = { class = "Gimp" },
  528.        --properties = { tag = tags[1][6] } },
  529.      --{ rule = { class = "D" },
  530.        --properties = { floating = true } },
  531.      --{ rule = { class = "D" },
  532.        --properties = { tag = tags[1][6] } },      
  533.           --{ rule = { class = "Irssi" },
  534.        --properties = { tag = tags[1][9] } },            
  535.  
  536.  
  537.  
  538. }
  539. -- }}}
  540.  
  541.  
  542. -- {{{ Signals
  543. -- Signal function to execute when a new client appears.
  544. client.add_signal("manage", function (c, startup)
  545.     -- Add a titlebar
  546. --awful.titlebar.add(c, { modkey = modkey })
  547.  
  548.     -- Enable sloppy focus
  549.     c:add_signal("mouse::enter", function(c)
  550.         if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
  551.             and awful.client.focus.filter(c) then
  552.             client.focus = c
  553.         end
  554.     end)
  555.  
  556.     if not startup then
  557.         -- Set the windows at the slave,
  558.         -- i.e. put it at the end of others instead of setting it master.
  559.         -- awful.client.setslave(c)
  560.  
  561.         -- Put windows in a smart way, only if they does not set an initial position.
  562.         if not c.size_hints.user_position and not c.size_hints.program_position then
  563.             awful.placement.no_overlap(c)
  564.             awful.placement.no_offscreen(c)
  565.         end
  566.     end
  567. end)
  568.  
  569. client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
  570. client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
  571. -- }}}
  572.  
  573. awful.util.spawn_with_shell("icedove")
  574. awful.util.spawn_with_shell("dropbox start")
  575. awful.util.spawn_with_shell("parcellite")
  576. awful.util.spawn_with_shell("wicd")
  577. awful.util.spawn_with_shell("xfce4-power-manager")
  578. awful.util.spawn_with_shell("keepass2 'Nueva base de datos.kdbx'")
  579. awful.util.spawn_with_shell("thunar --daemon")
  580. awful.util.spawn_with_shell("/home/jorge/configuracion/Cambiar_wallpapers.sh")
  581. awful.util.spawn_with_shell("cryptkeeper")
  582. awful.util.spawn_with_shell("hp-systray")
  583. awful.util.spawn_with_shell("/usr/bin/X11/xauth")
  584.  
  585. -- Conky Config
  586.  
  587. -- awful.util.spawn_with_shell("conky -c /home/jorge/configuracion/conkycalendar")
  588. -- awful.util.spawn_with_shell("conky -c /home/jorge/configuracion/conkytemp")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement