Advertisement
Guest User

My RC

a guest
May 29th, 2022
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.64 KB | None | 0 0
  1. -- If LuaRocks is installed, make sure that packages installed through it are
  2. -- found (e.g. lgi). If LuaRocks is not installed, do nothing.
  3. pcall(require, "luarocks.loader")
  4.  
  5. -- Standard awesome library
  6. local gears = require("gears")
  7. local awful = require("awful")
  8. require("awful.autofocus")
  9. -- Widget and layout library
  10. local wibox = require("wibox")
  11. -- Theme handling library
  12. local beautiful = require("beautiful")
  13. -- Notification library
  14. local naughty = require("naughty")
  15. local menubar = require("menubar")
  16. local hotkeys_popup = require("awful.hotkeys_popup")
  17. -- Enable hotkeys help widget for VIM and other apps
  18. -- when client with a matching name is opened:
  19. require("awful.hotkeys_popup.keys")
  20.  
  21.  
  22.  
  23. -- {{{ Error handling
  24. -- Check if awesome encountered an error during startup and fell back to
  25. -- another config (This code will only ever execute for the fallback config)
  26. if awesome.startup_errors then
  27.     naughty.notify({ preset = naughty.config.presets.critical,
  28.                      title = "Oops, there were errors during startup!",
  29.                      text = awesome.startup_errors })
  30. end
  31.  
  32. -- Handle runtime errors after startup
  33. do
  34.     local in_error = false
  35.     awesome.connect_signal("debug::error", function (err)
  36.         -- Make sure we don't go into an endless error loop
  37.         if in_error then return end
  38.         in_error = true
  39.  
  40.         naughty.notify({ preset = naughty.config.presets.critical,
  41.                          title = "Oops, an error happened!",
  42.                          text = tostring(err) })
  43.         in_error = false
  44.     end)
  45. end
  46. -- }}}
  47.  
  48. -- {{{ Variable definitions
  49. -- Themes define colours, icons, font and wallpapers.
  50. beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
  51.  
  52. -- This is used later as the default terminal and editor to run.
  53. terminal = "alacritty"
  54. editor = os.getenv("EDITOR") or "editor"
  55. editor_cmd = terminal .. " -e " .. editor
  56.  
  57. -- Default modkey.
  58. -- Usually, Mod4 is the key with a logo between Control and Alt.
  59. -- If you do not like this or do not have such a key,
  60. -- I suggest you to remap Mod4 to another key using xmodmap or other tools.
  61. -- However, you can use another modifier like Mod1, but it may interact with others.
  62. modkey = "Mod4"
  63.  
  64. -- Table of layouts to cover with awful.layout.inc, order matters.
  65. awful.layout.layouts = {
  66.     awful.layout.suit.floating,
  67.     awful.layout.suit.tile,
  68.     awful.layout.suit.tile.left,
  69.     awful.layout.suit.tile.bottom,
  70.     awful.layout.suit.tile.top,
  71.     awful.layout.suit.fair,
  72.     awful.layout.suit.spiral,
  73.     awful.layout.suit.corner.nw,
  74.     -- awful.layout.suit.corner.ne,
  75.     -- awful.layout.suit.corner.sw,
  76.     -- awful.layout.suit.corner.se,
  77. }
  78. -- }}}
  79.  
  80. -- {{{ Menu
  81. -- Create a launcher widget and a main menu
  82. myawesomemenu = {
  83.    { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
  84.    { "manual", terminal .. " -e man awesome" },
  85.    { "edit config", editor_cmd .. " " .. awesome.conffile },
  86.    { "restart", awesome.restart },
  87.    { "quit", function() awesome.quit() end },
  88. }
  89.  
  90. mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
  91.                                     { "open terminal", terminal }
  92.                                   }
  93.                         })
  94.  
  95. mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
  96.                                      menu = mymainmenu })
  97.  
  98. -- Menubar configuration
  99. menubar.utils.terminal = terminal -- Set the terminal for applications that require it
  100. -- }}}
  101.  
  102. -- Keyboard map indicator and switcher
  103. mykeyboardlayout = awful.widget.keyboardlayout()
  104.  
  105. -- {{{ Wibar
  106. -- Create a textclock widget
  107. mytextclock = wibox.widget.textclock()
  108.  
  109. -- Create a wibox for each screen and add it
  110. local taglist_buttons = gears.table.join(
  111.                     awful.button({ }, 1, function(t) t:view_only() end),
  112.                     awful.button({ modkey }, 1, function(t)
  113.                                               if client.focus then
  114.                                                   client.focus:move_to_tag(t)
  115.                                               end
  116.                                           end),
  117.                     awful.button({ }, 3, awful.tag.viewtoggle),
  118.                     awful.button({ modkey }, 3, function(t)
  119.                                               if client.focus then
  120.                                                   client.focus:toggle_tag(t)
  121.                                               end
  122.                                           end),
  123.                     awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
  124.                     awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
  125.                 )
  126.  
  127. local tasklist_buttons = gears.table.join(
  128.                      awful.button({ }, 1, function (c)
  129.                                               if c == client.focus then
  130.                                                   c.minimized = true
  131.                                               else
  132.                                                   c:emit_signal(
  133.                                                       "request::activate",
  134.                                                       "tasklist",
  135.                                                       {raise = true}
  136.                                                   )
  137.                                               end
  138.                                           end),
  139.                      awful.button({ }, 3, function()
  140.                                               awful.menu.client_list({ theme = { width = 250 } })
  141.                                           end),
  142.                      awful.button({ }, 4, function ()
  143.                                               awful.client.focus.byidx(1)
  144.                                           end),
  145.                      awful.button({ }, 5, function ()
  146.                                               awful.client.focus.byidx(-1)
  147.                                           end))
  148.  
  149. local function set_wallpaper(s)
  150.     -- Wallpaper
  151.     if beautiful.wallpaper then
  152.         local wallpaper = beautiful.wallpaper
  153.         -- If wallpaper is a function, call it with the screen
  154.         if type(wallpaper) == "function" then
  155.             wallpaper = wallpaper(s)
  156.         end
  157.         gears.wallpaper.maximized(wallpaper, s, true)
  158.     end
  159. end
  160.  
  161. -- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
  162. screen.connect_signal("property::geometry", set_wallpaper)
  163.  
  164. awful.screen.connect_for_each_screen(function(s)
  165.     -- Wallpaper
  166.     set_wallpaper(s)
  167.  
  168.     -- Each screen has its own tag table.
  169.     awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
  170.  
  171.     -- Create a promptbox for each screen
  172.     s.mypromptbox = awful.widget.prompt()
  173.     -- Create an imagebox widget which will contain an icon indicating which layout we're using.
  174.     -- We need one layoutbox per screen.
  175.     s.mylayoutbox = awful.widget.layoutbox(s)
  176.     s.mylayoutbox:buttons(gears.table.join(
  177.                            awful.button({ }, 1, function () awful.layout.inc( 1) end),
  178.                            awful.button({ }, 3, function () awful.layout.inc(-1) end),
  179.                            awful.button({ }, 4, function () awful.layout.inc( 1) end),
  180.                            awful.button({ }, 5, function () awful.layout.inc(-1) end)))
  181.     -- Create a taglist widget
  182.     s.mytaglist = awful.widget.taglist {
  183.         screen  = s,
  184.         filter  = awful.widget.taglist.filter.all,
  185.         buttons = taglist_buttons
  186.     }
  187.  
  188.     -- Create a tasklist widget
  189.     s.mytasklist = awful.widget.tasklist {
  190.         screen  = s,
  191.         filter  = awful.widget.tasklist.filter.currenttags,
  192.         buttons = tasklist_buttons
  193.     }
  194.  
  195.     -- Create the wibox
  196.     s.mywibox = awful.wibar({ position = "top", screen = s })
  197.  
  198.      
  199.  
  200.     s.mywibox:setup {
  201.     layout = wibox.layout.align.horizontal,
  202.     { -- Left widgets
  203.         layout = wibox.layout.fixed.horizontal,
  204.         mylauncher,
  205.         s.mytaglist,
  206.         s.mypromptbox,
  207.     },
  208.     s.mytasklist, -- Middle widget
  209.     { -- Right widgets
  210.         layout = wibox.layout.fixed.horizontal,
  211.         mytextclock, -- WIDGET ADDED HERE
  212.         mykeyboardlayout,
  213.         wibox.widget.systray(),
  214.         mytextclock,
  215.         s.mylayoutbox,
  216.     },
  217. }
  218.  
  219.     -- Add widgets to the wibox
  220.     s.mywibox:setup {
  221.         layout = wibox.layout.align.horizontal,
  222.         { -- Left widgets
  223.             layout = wibox.layout.fixed.horizontal,
  224.             mylauncher,
  225.             s.mytaglist,
  226.             s.mypromptbox,
  227.         },
  228.         s.mytasklist, -- Middle widget
  229.         { -- Right widgets
  230.             layout = wibox.layout.fixed.horizontal,
  231.             mykeyboardlayout,
  232.             wibox.widget.systray(),
  233.             mytextclock,
  234.             s.mylayoutbox,
  235.         },
  236.     }
  237. end)
  238. -- }}}
  239.  
  240. -- {{{ Mouse bindings
  241. root.buttons(gears.table.join(
  242.     awful.button({ }, 3, function () mymainmenu:toggle() end),
  243.     awful.button({ }, 4, awful.tag.viewnext),
  244.     awful.button({ }, 5, awful.tag.viewprev)
  245. ))
  246. -- }}}
  247.  
  248. -- {{{ Key bindings
  249. globalkeys = gears.table.join(
  250.     awful.key({ modkey,           }, "s",      hotkeys_popup.show_help,
  251.               {description="show help", group="awesome"}),
  252.     awful.key({ modkey,           }, "Left",   awful.tag.viewprev,
  253.               {description = "view previous", group = "tag"}),
  254.     awful.key({ modkey,           }, "Right",  awful.tag.viewnext,
  255.               {description = "view next", group = "tag"}),
  256.     awful.key({ modkey,           }, "Escape", awful.tag.history.restore,
  257.               {description = "go back", group = "tag"}),
  258.  
  259.     awful.key({ modkey,           }, "j",
  260.         function ()
  261.             awful.client.focus.byidx( 1)
  262.         end,
  263.         {description = "focus next by index", group = "client"}
  264.     ),
  265.     awful.key({ modkey,           }, "k",
  266.         function ()
  267.             awful.client.focus.byidx(-1)
  268.         end,
  269.         {description = "focus previous by index", group = "client"}
  270.     ),
  271.     awful.key({ modkey,           }, "w", function () mymainmenu:show() end,
  272.               {description = "show main menu", group = "awesome"}),
  273.  
  274.     -- Layout manipulation
  275.     awful.key({ modkey, "Shift"   }, "j", function () awful.client.swap.byidx(  1)    end,
  276.               {description = "swap with next client by index", group = "client"}),
  277.     awful.key({ modkey, "Shift"   }, "k", function () awful.client.swap.byidx( -1)    end,
  278.               {description = "swap with previous client by index", group = "client"}),
  279.     awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
  280.               {description = "focus the next screen", group = "screen"}),
  281.     awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
  282.               {description = "focus the previous screen", group = "screen"}),
  283.     awful.key({ modkey,           }, "u", awful.client.urgent.jumpto,
  284.               {description = "jump to urgent client", group = "client"}),
  285.     awful.key({ modkey,           }, "Tab",
  286.         function ()
  287.             awful.client.focus.history.previous()
  288.             if client.focus then
  289.                 client.focus:raise()
  290.             end
  291.         end,
  292.         {description = "go back", group = "client"}),
  293.  
  294.     -- Standard program
  295.     awful.key({ modkey,           }, "Return", function () awful.spawn(terminal) end,
  296.               {description = "open a terminal", group = "launcher"}),
  297.     awful.key({ modkey, "Control" }, "r", awesome.restart,
  298.               {description = "reload awesome", group = "awesome"}),
  299.     awful.key({ modkey, "Shift"   }, "q", awesome.quit,
  300.               {description = "quit awesome", group = "awesome"}),
  301.  
  302.     awful.key({ modkey, "Shift"   }, "p", awesome.quit,
  303.               {description = "quit awesome", group = "awesome"}),
  304.  
  305.     awful.key({ modkey,           }, "l",     function () awful.tag.incmwfact( 0.05)          end,
  306.               {description = "increase master width factor", group = "layout"}),
  307.     awful.key({ modkey,           }, "h",     function () awful.tag.incmwfact(-0.05)          end,
  308.               {description = "decrease master width factor", group = "layout"}),
  309.     awful.key({ modkey, "Shift"   }, "h",     function () awful.tag.incnmaster( 1, nil, true) end,
  310.               {description = "increase the number of master clients", group = "layout"}),
  311.     awful.key({ modkey, "Shift"   }, "l",     function () awful.tag.incnmaster(-1, nil, true) end,
  312.               {description = "decrease the number of master clients", group = "layout"}),
  313.     awful.key({ modkey, "Control" }, "h",     function () awful.tag.incncol( 1, nil, true)    end,
  314.               {description = "increase the number of columns", group = "layout"}),
  315.     awful.key({ modkey, "Control" }, "l",     function () awful.tag.incncol(-1, nil, true)    end,
  316.               {description = "decrease the number of columns", group = "layout"}),
  317.     awful.key({ modkey,           }, "space", function () awful.layout.inc( 1)                end,
  318.               {description = "select next", group = "layout"}),
  319.     awful.key({ modkey, "Shift"   }, "space", function () awful.layout.inc(-1)                end,
  320.               {description = "select previous", group = "layout"}),
  321.  
  322.     awful.key({ modkey, "Control" }, "n",
  323.               function ()
  324.                   local c = awful.client.restore()
  325.                   -- Focus restored client
  326.                   if c then
  327.                     c:emit_signal(
  328.                         "request::activate", "key.unminimize", {raise = true}
  329.                     )
  330.                   end
  331.               end,
  332.               {description = "restore minimized", group = "client"}),
  333.  
  334.     -- Prompt
  335.     awful.key({ modkey },            "r",     function () awful.screen.focused().mypromptbox:run() end,
  336.               {description = "run prompt", group = "launcher"}),
  337.  
  338.     awful.key({ modkey }, "x",
  339.               function ()
  340.                   awful.prompt.run {
  341.                     prompt       = "Run Lua code: ",
  342.                     textbox      = awful.screen.focused().mypromptbox.widget,
  343.                     exe_callback = awful.util.eval,
  344.                     history_path = awful.util.get_cache_dir() .. "/history_eval"
  345.                   }
  346.               end,
  347.               {description = "lua execute prompt", group = "awesome"}),
  348.     -- Menubar
  349.     awful.key({ modkey }, "p", function() menubar.show() end,
  350.               {description = "show the menubar", group = "launcher"})
  351. )
  352.  
  353. clientkeys = gears.table.join(
  354.     awful.key({ modkey,           }, "f",
  355.         function (c)
  356.             c.fullscreen = not c.fullscreen
  357.             c:raise()
  358.         end,
  359.         {description = "toggle fullscreen", group = "client"}),
  360.     awful.key({ modkey, "Shift"   }, "c",      function (c) c:kill()                         end,
  361.               {description = "close", group = "client"}),
  362.     awful.key({ modkey, "Control" }, "space",  awful.client.floating.toggle                     ,
  363.               {description = "toggle floating", group = "client"}),
  364.     awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
  365.               {description = "move to master", group = "client"}),
  366.     awful.key({ modkey,           }, "o",      function (c) c:move_to_screen()               end,
  367.               {description = "move to screen", group = "client"}),
  368.     awful.key({ modkey,           }, "t",      function (c) c.ontop = not c.ontop            end,
  369.               {description = "toggle keep on top", group = "client"}),
  370.     awful.key({ modkey,           }, "n",
  371.         function (c)
  372.             -- The client currently has the input focus, so it cannot be
  373.             -- minimized, since minimized clients can't have the focus.
  374.             c.minimized = true
  375.         end ,
  376.         {description = "minimize", group = "client"}),
  377.     awful.key({ modkey,           }, "m",
  378.         function (c)
  379.             c.maximized = not c.maximized
  380.             c:raise()
  381.         end ,
  382.         {description = "(un)maximize", group = "client"}),
  383.     awful.key({ modkey, "Control" }, "m",
  384.         function (c)
  385.             c.maximized_vertical = not c.maximized_vertical
  386.             c:raise()
  387.         end ,
  388.         {description = "(un)maximize vertically", group = "client"}),
  389.     awful.key({ modkey, "Shift"   }, "m",
  390.         function (c)
  391.             c.maximized_horizontal = not c.maximized_horizontal
  392.             c:raise()
  393.         end ,
  394.         {description = "(un)maximize horizontally", group = "client"})
  395. )
  396.  
  397. -- Bind all key numbers to tags.
  398. -- Be careful: we use keycodes to make it work on any keyboard layout.
  399. -- This should map on the top row of your keyboard, usually 1 to 9.
  400. for i = 1, 9 do
  401.     globalkeys = gears.table.join(globalkeys,
  402.         -- View tag only.
  403.         awful.key({ modkey }, "#" .. i + 9,
  404.                   function ()
  405.                         local screen = awful.screen.focused()
  406.                         local tag = screen.tags[i]
  407.                         if tag then
  408.                            tag:view_only()
  409.                         end
  410.                   end,
  411.                   {description = "view tag #"..i, group = "tag"}),
  412.         -- Toggle tag display.
  413.         awful.key({ modkey, "Control" }, "#" .. i + 9,
  414.                   function ()
  415.                       local screen = awful.screen.focused()
  416.                       local tag = screen.tags[i]
  417.                       if tag then
  418.                          awful.tag.viewtoggle(tag)
  419.                       end
  420.                   end,
  421.                   {description = "toggle tag #" .. i, group = "tag"}),
  422.         -- Move client to tag.
  423.         awful.key({ modkey, "Shift" }, "#" .. i + 9,
  424.                   function ()
  425.                       if client.focus then
  426.                           local tag = client.focus.screen.tags[i]
  427.                           if tag then
  428.                               client.focus:move_to_tag(tag)
  429.                           end
  430.                      end
  431.                   end,
  432.                   {description = "move focused client to tag #"..i, group = "tag"}),
  433.         -- Toggle tag on focused client.
  434.         awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
  435.                   function ()
  436.                       if client.focus then
  437.                           local tag = client.focus.screen.tags[i]
  438.                           if tag then
  439.                               client.focus:toggle_tag(tag)
  440.                           end
  441.                       end
  442.                   end,
  443.                   {description = "toggle focused client on tag #" .. i, group = "tag"})
  444.     )
  445. end
  446.  
  447. clientbuttons = gears.table.join(
  448.     awful.button({ }, 1, function (c)
  449.         c:emit_signal("request::activate", "mouse_click", {raise = true})
  450.     end),
  451.     awful.button({ modkey }, 1, function (c)
  452.         c:emit_signal("request::activate", "mouse_click", {raise = true})
  453.         awful.mouse.client.move(c)
  454.     end),
  455.     awful.button({ modkey }, 3, function (c)
  456.         c:emit_signal("request::activate", "mouse_click", {raise = true})
  457.         awful.mouse.client.resize(c)
  458.     end)
  459. )
  460.  
  461. -- Set keys
  462. root.keys(globalkeys)
  463. -- }}}
  464.  
  465. -- {{{ Rules
  466. -- Rules to apply to new clients (through the "manage" signal).
  467. awful.rules.rules = {
  468.     -- All clients will match this rule.
  469.     { rule = { },
  470.       properties = { border_width = beautiful.border_width,
  471.                      border_color = beautiful.border_normal,
  472.                      focus = awful.client.focus.filter,
  473.                      raise = true,
  474.                      keys = clientkeys,
  475.                      buttons = clientbuttons,
  476.                      screen = awful.screen.preferred,
  477.                      placement = awful.placement.no_overlap+awful.placement.no_offscreen
  478.      }
  479.     },
  480.  
  481.     -- Floating clients.
  482.     { rule_any = {
  483.         instance = {
  484.           "DTA",  -- Firefox addon DownThemAll.
  485.           "copyq",  -- Includes session name in class.
  486.           "pinentry",
  487.         },
  488.         class = {
  489.           "Arandr",
  490.           "Blueman-manager",
  491.           "Gpick",
  492.           "Kruler",
  493.           "MessageWin",  -- kalarm.
  494.           "Sxiv",
  495.           "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
  496.           "Wpa_gui",
  497.           "veromix",
  498.           "xtightvncviewer"},
  499.  
  500.         -- Note that the name property shown in xprop might be set slightly after creation of the client
  501.         -- and the name shown there might not match defined rules here.
  502.         name = {
  503.           "Event Tester",  -- xev.
  504.         },
  505.         role = {
  506.           "AlarmWindow",  -- Thunderbird's calendar.
  507.           "ConfigManager",  -- Thunderbird's about:config.
  508.           "pop-up",       -- e.g. Google Chrome's (detached) Developer Tools.
  509.         }
  510.       }, properties = { floating = true }},
  511.  
  512.     -- Add titlebars to normal clients and dialogs
  513.     { rule_any = {type = { "normal", "dialog" }
  514.       }, properties = { titlebars_enabled = true }
  515.     },
  516.  
  517.     -- Set Firefox to always map on the tag named "2" on screen 1.
  518.     -- { rule = { class = "Firefox" },
  519.     --   properties = { screen = 1, tag = "2" } },
  520. }
  521. -- }}}
  522.  
  523. -- {{{ Signals
  524. -- Signal function to execute when a new client appears.
  525. client.connect_signal("manage", function (c)
  526.     -- Set the windows at the slave,
  527.     -- i.e. put it at the end of others instead of setting it master.
  528.     -- if not awesome.startup then awful.client.setslave(c) end
  529.  
  530.     if awesome.startup
  531.       and not c.size_hints.user_position
  532.       and not c.size_hints.program_position then
  533.         -- Prevent clients from being unreachable after screen count changes.
  534.         awful.placement.no_offscreen(c)
  535.     end
  536. end)
  537.  
  538. -- Add a titlebar if titlebars_enabled is set to true in the rules.
  539. client.connect_signal("request::titlebars", function(c)
  540.     -- buttons for the titlebar
  541.     local buttons = gears.table.join(
  542.         awful.button({ }, 1, function()
  543.             c:emit_signal("request::activate", "titlebar", {raise = true})
  544.             awful.mouse.client.move(c)
  545.         end),
  546.         awful.button({ }, 3, function()
  547.             c:emit_signal("request::activate", "titlebar", {raise = true})
  548.             awful.mouse.client.resize(c)
  549.         end)
  550.     )
  551.  
  552.     awful.titlebar(c) : setup {
  553.         { -- Left
  554.             awful.titlebar.widget.iconwidget(c),
  555.             buttons = buttons,
  556.             layout  = wibox.layout.fixed.horizontal
  557.         },
  558.         { -- Middle
  559.             { -- Title
  560.                 align  = "center",
  561.                 widget = awful.titlebar.widget.titlewidget(c)
  562.             },
  563.             buttons = buttons,
  564.             layout  = wibox.layout.flex.horizontal
  565.         },
  566.         { -- Right
  567.             awful.titlebar.widget.floatingbutton (c),
  568.             awful.titlebar.widget.maximizedbutton(c),
  569.             awful.titlebar.widget.stickybutton   (c),
  570.             awful.titlebar.widget.ontopbutton    (c),
  571.             awful.titlebar.widget.closebutton    (c),
  572.             layout = wibox.layout.fixed.horizontal()
  573.         },
  574.         layout = wibox.layout.align.horizontal
  575.     }
  576. end)
  577.  
  578. -- Enable sloppy focus, so that focus follows mouse.
  579. client.connect_signal("mouse::enter", function(c)
  580.     c:emit_signal("request::activate", "mouse_enter", {raise = false})
  581. end)
  582.  
  583. client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
  584. client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
  585. -- }}}
  586.  
  587.  
  588.  
  589.  
  590.  
  591. awful.spawn("pkill picom")
  592. awful.spawn("pkill feh")
  593. awful.spawn("pkill cairo-dock")
  594.    
  595.  
  596. awful.spawn("picom")
  597. awful.spawn("feh --bg-scale /wlp/s.jpe")
  598. awful.spawn("cairo-dock")
  599.  
  600.  
  601. -- beautiful.init("~/.config/awesome/theme2.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement