moved to personal fennel config for awesome and added qutebrowser

This commit is contained in:
Chris Cochrun 2020-10-13 17:35:26 -05:00
parent 403cb92b7d
commit 688748f8a6
502 changed files with 8576 additions and 9597 deletions

View file

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
width="240"
height="240"
viewBox="0 0 24.00 24.00"
enable-background="new 0 0 24.00 24.00"
xml:space="preserve"
id="svg4"
sodipodi:docname="package-up.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14"><metadata
id="metadata10"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs8" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1321"
inkscape:window-height="740"
id="namedview6"
showgrid="false"
inkscape:pagecheckerboard="true"
inkscape:zoom="0.98333333"
inkscape:cx="120"
inkscape:cy="120"
inkscape:window-x="45"
inkscape:window-y="28"
inkscape:window-maximized="0"
inkscape:current-layer="svg4" />
<path
d="M 21.488889,4.4777778 C 21.811111,4.8555556 22,5.3555556 22,5.8888889 V 19.777778 C 22,21 21,22 19.777778,22 H 4.2222222 C 3,22 2,21 2,19.777778 V 5.8888889 C 2,5.3555556 2.1888889,4.8555556 2.5111111,4.4777778 L 4.0444444,2.6111111 C 4.3555556,2.2333333 4.8111111,2 5.3333333,2 H 18.666667 c 0.522222,0 0.977777,0.2333333 1.277777,0.6111111 z M 4.3555556,4.2222333 H 19.633333 L 18.588889,3.1111222 H 5.2555556 Z M 12,9.2222222 5.8888889,15.333333 H 9.777778 v 2.222223 h 4.444444 v -2.222223 h 3.888889 z"
id="path2"
inkscape:connector-curvature="0"
style="fill:#00c853;fill-opacity:1;stroke-width:1.11111104;stroke-linejoin:round" />
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
width="240"
height="240"
viewBox="0 0 24.00 24.00"
enable-background="new 0 0 24.00 24.00"
xml:space="preserve"
id="svg4"
sodipodi:docname="package.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14"><metadata
id="metadata10"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs8" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1321"
inkscape:window-height="740"
id="namedview6"
showgrid="false"
inkscape:pagecheckerboard="true"
inkscape:zoom="0.98333333"
inkscape:cx="120"
inkscape:cy="120"
inkscape:window-x="45"
inkscape:window-y="28"
inkscape:window-maximized="0"
inkscape:current-layer="svg4" />
<path
d="M 4.3555556,4.2222123 H 19.633333 L 18.588889,3.1111006 H 5.2555556 Z M 21.488889,4.4777792 C 21.811222,4.8555571 22,5.3555574 22,5.888891 V 19.777777 C 22,20.999999 21,22 19.777778,22 H 4.2222222 C 3,22 2,20.999999 2,19.777777 V 5.888891 C 2,5.3555574 2.1888889,4.8555571 2.5111111,4.4777792 L 4.0444444,2.6111115 C 4.3555556,2.2333335 4.8111,2 5.3333333,2 H 18.666667 c 0.522222,0 0.977777,0.2333335 1.277777,0.6111115 z M 5.3333333,18.666665 H 12 V 15.33333 H 5.3333333 Z"
id="path2"
inkscape:connector-curvature="0"
style="fill:#ffffff;fill-opacity:1;stroke-width:0.22222228;stroke-linejoin:round" />
</svg>

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -0,0 +1,122 @@
-------------------------------------------------
-- Package Updater Widget for Awesome Window Manager
-- Shows the package updates information in Arch Linux
-- Will only show if there is/are updates available
-------------------------------------------------
local awful = require('awful')
local naughty = require('naughty')
local wibox = require('wibox')
local gears = require('gears')
local watch = awful.widget.watch
local apps = require('configuration.apps')
local clickable_container = require('widget.clickable-container')
local dpi = require('beautiful').xresources.apply_dpi
local config_dir = gears.filesystem.get_configuration_dir()
local widget_icon_dir = config_dir .. 'widget/package-updater/icons/'
local update_available = false
local number_of_updates_available = nil
local update_package = nil
local return_button = function()
local widget = wibox.widget {
{
id = 'icon',
widget = wibox.widget.imagebox,
image = widget_icon_dir .. 'package' .. '.svg',
resize = true
},
layout = wibox.layout.align.horizontal
}
local widget_button = wibox.widget {
{
widget,
margins = dpi(2),
widget = wibox.container.margin
},
widget = clickable_container
}
widget_button:buttons(
gears.table.join(
awful.button(
{},
1,
nil,
function()
if update_available then
awful.spawn(apps.default.package_manager .. ' --updates', false)
else
awful.spawn(apps.default.package_manager, false)
end
end
)
)
)
-- Tooltip
awful.tooltip(
{
objects = {widget_button},
mode = 'outside',
align = 'right',
margin_leftright = dpi(8),
margin_topbottom = dpi(8),
timer_function = function()
if update_available then
return update_package:gsub('\n$', '')
else
return 'We are up-to-date!'
end
end,
preferred_positions = {'right', 'left', 'top', 'bottom'}
}
)
watch('pamac checkupdates', 60, function(_, stdout)
number_of_updates_available = tonumber(stdout:match('.-\n'):match('%d*'))
update_package = stdout
local icon_name
if number_of_updates_available ~= nil then
update_available = true
icon_name = 'package-up'
else
update_available = false
icon_name = 'package'
end
widget.icon:set_image(widget_icon_dir .. icon_name .. '.svg')
collectgarbage('collect')
end)
return widget_button
end
return return_button