summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2020-08-18 07:33:03 +0200
committerache <ache@ache.one>2020-08-18 07:34:39 +0200
commit26911ee477aecdf8e7bfde9a3451a522aab39ace (patch)
tree6b3743c09ccd3302180095465809fc6de6613b3d
parentTest style (diff)
Update lfs
-rw-r--r--rc.lua31
1 files changed, 17 insertions, 14 deletions
diff --git a/rc.lua b/rc.lua
index 6930da4..84650ec 100644
--- a/rc.lua
+++ b/rc.lua
@@ -10,7 +10,7 @@ local beautiful = require("beautiful")
local naughty = require("naughty")
local vicious = require("vicious")
local menubar = require("menubar")
-local lfs = require'lfs'
+-- local lfs = require'lfs'
awful.screen = require("awful.screen")
local hotkeys = require("awful.hotkeys_popup")
@@ -19,6 +19,8 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget
-- Lain
local lain = require("lain")
+local io = require("io")
+
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
@@ -37,16 +39,17 @@ awesome.quit = function()
end
function guess_wifi(d)
- for file in lfs.dir(d) do
- if lfs.attributes(d .. file,"mode") == "directory" then
- local ok = ""
- for l in lfs.dir("/sys/class/net/" .. file) do
- if l == "wireless" then
- return file
- end
- end
- end
- end
+
+ -- for file in lfs.dir(d) do
+ -- if lfs.attributes(d .. file,"mode") == "directory" then
+ -- local ok = ""
+ -- for l in lfs.dir("/sys/class/net/" .. file) do
+ -- if l == "wireless" then
+ -- return file
+ -- end
+ -- end
+ -- end
+ -- end
end
@@ -656,9 +659,9 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio
{description = "Switch wallpaper", group = "awesome"}),
awful.key({ modkey, "Control" }, "w", function () act() end,
{description = "Actualise Wibox", group = "awesome"}),
- awful.key({ modkey, "Shift" }, "w", function () awful.util.spawn("passmenu --type") end,
+ awful.key({ modkey, "Shift" }, "w", function () awful.util.spawn("passmenu --type -matching fuzzy") end,
{description = "🔑 Passwd promt", group = "awesome"}),
- awful.key({ modkey, "Mod1" }, "w", function () awful.util.spawn("passmenu --type -matching fuzzy") end,
+ awful.key({ modkey, "Mod1" }, "w", function () awful.util.spawn("passmenu --type") end,
{description = "🔑 Passwd promt alt", group = "awesome"}),
awful.key({ modkey, "Control" }, "x", function () awful.util.spawn("locker") end,
{description = "Lock screen", group = "awesome"}),
@@ -731,7 +734,7 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio
history_path = awful.util.get_cache_dir() .. "/history_eval"
}
]]
- awful.util.spawn("rofi -show run -modi run")
+ awful.util.spawn("rofi -show run -modi run -matching fuzzy")
end,{description = "Run rofi prompt", group = "awesome"}),
awful.key({ modkey }, "!",
function ()