update Luakit Config

This commit is contained in:
Al-Hassan Abdel-Raouf 2022-03-07 20:29:39 +02:00
parent cb093c9ac2
commit 511bf96ca6
6 changed files with 58 additions and 4 deletions

View File

@ -14,7 +14,7 @@ export EMAIL="alhassanaraouf@disroot.org"
export VISUAL=vis
export EDITOR=$VISUAL
export BROWSER=lynx
#export TERM=xterm
export TERM=xfce4-terminal
export LYNX_CFG=~/.config/lynx/lynx.cfg
@ -28,4 +28,9 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
PATH=~/.config/composer/vendor/bin/:$HOME/scripts:$PATH
PATH=~/.config/composer/vendor/bin/:$HOME/scripts:$PATH
export FLYCTL_INSTALL="/home/alhassan/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"

1
.config/luakit/pass Submodule

@ -0,0 +1 @@
Subproject commit 7d242c6570d14edba71b047c91631110c703a95d

View File

@ -0,0 +1,43 @@
--- Tabgroup name - status bar widget.
--
-- Shows the name of the current tabgroup.
--
-- @module lousy.widget.tgname
-- @copyright 2021 Tao Nelson <taobert@gmail.com>
-- Derived from lousy.widget.uri
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
-- @copyright 2010 Mason Larobina <mason.larobina@gmail.com>
local _M = {}
local webview = require("webview")
local lousy = require("lousy")
local theme = lousy.theme.get()
local wc = require("lousy.widget.common")
local tabgroups = require('tabgroups')
local widgets = {
update = function (w,tgname)
tgname.text = lousy.util.escape('['..tabgroups.current_tabgroup(w)..']')
end,
}
webview.add_signal("init", function (view)
-- `switch_tabgroup()` and `tabgroup-menu-rename` emit `switched-page`
view:add_signal("switched-page", function (v)
wc.update_widgets_on_w(widgets, webview.window(v))
end)
end)
local function new()
local tgname = widget{type="label"}
tgname.selectable = true
tgname.can_focus = false
tgname.fg = theme.sbar_fg
tgname.font = theme.sbar_font
return wc.add_widget(widgets, tgname)
end
return setmetatable(_M, { __call = function(_, ...) return new(...) end })
-- vim: et:sw=4:ts=8:sts=4:tw=80

View File

@ -2,7 +2,9 @@
require "noscript"
-- Loading Tabgroups Plugin
require "plugins/tabgroups"
require "tabgroups"
-- require "uaswitch"
require "pass"
-- Setup My Search Engine
local settings = require "settings"
@ -12,4 +14,4 @@ engines.default = engines.disroot
-- Setup My Editor
local editor = require "editor"
editor.editor_cmd = "xterm -e vis {file}"
editor.editor_cmd = "xfce4-terminal -x vis {file}"

3
.gitmodules vendored
View File

@ -22,3 +22,6 @@
[submodule ".config/awesome/plugins/awesome-volume"]
path = .config/awesome/plugins/awesome-volume
url = https://github.com/alhassanaraouf/awesome-volume.git
[submodule ".config/luakit/plugins/luakit-pass"]
path = .config/luakit/pass
url = https://github.com/arcnmx/luakit-pass.git