making init work with a slightly updated fennel
This commit is contained in:
parent
eebfc39eb9
commit
c4cd1393a5
|
@ -363,10 +363,10 @@ package.preload["fennel.repl"] = package.preload["fennel.repl"] or function(...)
|
||||||
_571_ = _572_
|
_571_ = _572_
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if ((_G.type(_571_) == "table") and (nil ~= (_571_).source) and ((_571_).what == "Lua") and (nil ~= (_571_).linedefined) and (nil ~= (_571_).short_src)) then
|
if ((_G.type(_571_) == "table") and (nil ~= (_571_).short_src) and (nil ~= (_571_).linedefined) and ((_571_).what == "Lua") and (nil ~= (_571_).source)) then
|
||||||
local source = (_571_).source
|
|
||||||
local line = (_571_).linedefined
|
|
||||||
local src = (_571_).short_src
|
local src = (_571_).short_src
|
||||||
|
local line = (_571_).linedefined
|
||||||
|
local source = (_571_).source
|
||||||
local fnlsrc
|
local fnlsrc
|
||||||
do
|
do
|
||||||
local t_576_ = compiler.sourcemap
|
local t_576_ = compiler.sourcemap
|
||||||
|
|
|
@ -18,29 +18,30 @@
|
||||||
(local ruled (require "ruled"))
|
(local ruled (require "ruled"))
|
||||||
|
|
||||||
;; my splits
|
;; my splits
|
||||||
(local clientrules (require "rules"))
|
(local clientrules (require :rules))
|
||||||
(local keybindings (require "keybindings"))
|
(local keybindings (require :keybindings))
|
||||||
(local notifications (require "notifications"))
|
(local notifications (require :notifications))
|
||||||
|
|
||||||
;; Error handling
|
;; Error handling
|
||||||
;; Check if awesome encountered an error during startup and fall back to
|
;; Check if awesome encountered an error during startup and fall back to
|
||||||
;; another config (This code will only ever execute for the fallback config)
|
;; another config (This code will only ever execute for the fallback config)
|
||||||
(when awesome.startup_errors
|
(when awesome.startup_errors
|
||||||
(naughty.notify {:preset naughty.config.presets.critical
|
(naughty.notify {:preset naughty.config.presets.critical
|
||||||
:title "Oops, there were errors during startup!"
|
:title "Oops, there were errors during startup!"
|
||||||
:text awesome.startup_errors}))
|
:text awesome.startup_errors}))
|
||||||
|
|
||||||
|
|
||||||
;; Handle runtime errors after startup
|
;; Handle runtime errors after startup
|
||||||
(do
|
(do
|
||||||
(var in_error false)
|
(var in_error false)
|
||||||
(awesome.connect_signal "debug::error" (fn [err]
|
(awesome.connect_signal "debug::error" (fn [err]
|
||||||
;; Make sure we don't go into an endless error loop
|
;; Make sure we don't go into an endless error loop
|
||||||
(when (not in_error)
|
(when (not in_error)
|
||||||
(set in_error true)
|
(set in_error true)
|
||||||
(naughty.notify {:preset naughty.config.presets.critical
|
(naughty.notify {:preset naughty.config.presets.critical
|
||||||
:title "Oops, an error happened!"
|
:title "Oops, an error happened!"
|
||||||
:text (tostring err)})
|
:text (tostring err)})
|
||||||
(set in_error false)))))
|
(set in_error false)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
pcall(require, "luarocks.loader")
|
pcall(require, "luarocks.loader")
|
||||||
fennel = require("fennel")
|
fennel = require("fennel")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
local naughty = require("naughty")
|
||||||
table.insert(package.loaders or package.searchers, fennel.searcher)
|
cfgDir = os.getenv("HOME") .. "/.config/awesome/"
|
||||||
|
-- package.path = cfgDir .. "?.lua"
|
||||||
|
fennel.path = fennel.path .. ";" .. cfgDir .. "?.fnl;"
|
||||||
|
|
||||||
|
searcher = fennel.make_searcher({
|
||||||
|
correlate = true,
|
||||||
|
useMetadata = true,
|
||||||
|
-- disable strict checking.
|
||||||
|
-- TODO: assemble a full list of globals so we can enable this
|
||||||
|
-- allowedGlobals = false
|
||||||
|
})
|
||||||
|
|
||||||
|
table.insert(package.loaders or package.searchers, fennel.searcher)
|
||||||
|
debug.traceback = fennel.traceback
|
||||||
require("init") -- load ~/.config/awesome/init.fnl
|
require("init") -- load ~/.config/awesome/init.fnl
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(local awful (require "awful"))
|
(local awful (require "awful"))
|
||||||
|
(local naughty (require "naughty"))
|
||||||
(local gears (require "gears"))
|
(local gears (require "gears"))
|
||||||
(local beautiful (require "beautiful"))
|
(local beautiful (require "beautiful"))
|
||||||
(local keybindings (require "keybindings"))
|
|
||||||
(local xresources (require "beautiful.xresources"))
|
(local xresources (require "beautiful.xresources"))
|
||||||
(local dpi xresources.apply_dpi)
|
(local dpi xresources.apply_dpi)
|
||||||
|
|
||||||
|
@ -38,7 +38,9 @@
|
||||||
:floating true
|
:floating true
|
||||||
:raise true
|
:raise true
|
||||||
:height (dpi 1000)
|
:height (dpi 1000)
|
||||||
:screen (screen.count)
|
:screen (if (= (screen.count) 3)
|
||||||
|
2
|
||||||
|
(screen.count))
|
||||||
:sticky true
|
:sticky true
|
||||||
:placement awful.placement.centered
|
:placement awful.placement.centered
|
||||||
}
|
}
|
||||||
|
@ -168,7 +170,9 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
:properties {
|
:properties {
|
||||||
:screen (screen.count)
|
:screen (if (= (screen.count) 3)
|
||||||
|
2
|
||||||
|
(screen.count))
|
||||||
:focus awful.client.focus.filter
|
:focus awful.client.focus.filter
|
||||||
:raise true
|
:raise true
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
SETUVAR --export ANDROID_SDK_ROOT:/opt/android\x2dsdk
|
SETUVAR --export ANDROID_SDK_ROOT:/opt/android\x2dsdk
|
||||||
SETUVAR --export CHROME_EXECUTABLE:/usr/bin/qutebrowser
|
SETUVAR --export CHROME_EXECUTABLE:/usr/bin/qutebrowser
|
||||||
SETUVAR --export JAVA_HOME:/usr/lib/jvm/default
|
SETUVAR --export JAVA_HOME:/usr/lib/jvm/default
|
||||||
SETUVAR __fish_initialized:3100
|
SETUVAR __fish_initialized:3400
|
||||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
SETUVAR fish_color_command:005fd7
|
SETUVAR fish_color_command:005fd7
|
||||||
|
@ -33,4 +33,5 @@ SETUVAR fish_pager_color_completion:\x1d
|
||||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||||
|
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||||
SETUVAR fish_user_paths:/home/chris/\x2elocal/bin\x1e/home/chris/scripts\x1e/home/chris/\x2edoom\x2demacs/bin\x1e/home/chris/\x2eemacs\x2ed/bin\x1e/home/chris/\x2ecargo/bin\x1e/opt/android\x2dsdk/cmdline\x2dtools/latest/bin
|
SETUVAR fish_user_paths:/home/chris/\x2elocal/bin\x1e/home/chris/scripts\x1e/home/chris/\x2edoom\x2demacs/bin\x1e/home/chris/\x2eemacs\x2ed/bin\x1e/home/chris/\x2ecargo/bin\x1e/opt/android\x2dsdk/cmdline\x2dtools/latest/bin
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
osc=no
|
osc=no
|
||||||
vo=gpu
|
vo=gpu
|
||||||
af=scaletempo2
|
af=scaletempo2
|
||||||
autofit=90%
|
autofit=70%
|
||||||
geometry=90%:90%
|
geometry=80%:80%
|
||||||
# input-ipc-server="/tmp/mpvsocket"
|
# input-ipc-server="/tmp/mpvsocket"
|
||||||
hwdec=auto
|
hwdec=auto
|
||||||
rtsp-transport=udp
|
rtsp-transport=udp
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[FileDialog]
|
[FileDialog]
|
||||||
history=@Invalid()
|
history=file:///home/chris/Videos/paul
|
||||||
lastVisited=file:///home/chris/
|
lastVisited=file:///home/chris/Videos/paul
|
||||||
qtVersion=5.15.3
|
qtVersion=5.15.3
|
||||||
shortcuts=file:, file:///home/chris, file:///home/chris/storage/tfc
|
shortcuts=file:, file:///home/chris, file:///home/chris/storage/tfc
|
||||||
sidebarWidth=116
|
sidebarWidth=116
|
||||||
|
|
Loading…
Reference in a new issue