mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2026-03-23 05:55:12 +00:00
format
This commit is contained in:
parent
3a9b8ba038
commit
c09197f0da
|
|
@ -10,7 +10,7 @@ local keybindings = {
|
|||
}
|
||||
|
||||
function keybindings.get_global_keys(mytable, modkey, altkey, cycle_prev, browser, terminal, BLUESTATUS)
|
||||
local globalkeys = mytable.join(-- Destroy all notifications
|
||||
local globalkeys = mytable.join( -- Destroy all notifications
|
||||
awful.key({ "Control", "Shift" }, "Escape", function()
|
||||
naughty.destroy_all_notifications()
|
||||
end, {
|
||||
|
|
@ -521,7 +521,6 @@ function keybindings.get_user_keys(mytable, awful, lain, altkey, modkey)
|
|||
}))
|
||||
|
||||
return clientkeys
|
||||
|
||||
end
|
||||
|
||||
return keybindings
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
local startup =
|
||||
{
|
||||
local startup = {
|
||||
awful.spawn.with_shell("nitrogen --set-zoom-fill --no-recurse --random --head=0 ~/Pictures/SFW/Nature"),
|
||||
awful.spawn.with_shell("optimus-manager-qt"),
|
||||
awful.spawn.with_shell("picom -b"),
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
Vertex Awesome WM theme
|
||||
github.com/lcpz
|
||||
|
||||
--]] local gears = require("gears")
|
||||
--]]
|
||||
local gears = require("gears")
|
||||
local lain = require("lain")
|
||||
local awful = require("awful")
|
||||
local wibox = require("wibox")
|
||||
|
|
@ -108,7 +109,7 @@ theme.widget_cpu = theme.icon_dir .. "/cpu.png"
|
|||
theme.widget_mem = theme.icon_dir .. "/mem.png"
|
||||
|
||||
-- http://fontawesome.io/cheatsheet
|
||||
awful.util.tagnames = {"", "", "", "", "", ""}
|
||||
awful.util.tagnames = { "", "", "", "", "", "" }
|
||||
|
||||
local markup = lain.util.markup
|
||||
|
||||
|
|
@ -118,7 +119,7 @@ local markup = lain.util.markup
|
|||
local mytextclock = wibox.widget.textclock(markup("#FFFFFF", "%H:%M"))
|
||||
mytextclock.font = theme.font
|
||||
theme.cal = lain.widget.cal({
|
||||
attach_to = {mytextclock},
|
||||
attach_to = { mytextclock },
|
||||
notification_preset = {
|
||||
fg = "#FFFFFF",
|
||||
bg = theme.bg_normal,
|
||||
|
|
@ -130,7 +131,7 @@ theme.cal = lain.widget.cal({
|
|||
-- Battery
|
||||
local baticon = wibox.widget.imagebox(theme.bat000)
|
||||
local battooltip = awful.tooltip({
|
||||
objects = {baticon},
|
||||
objects = { baticon },
|
||||
margin_leftright = dpi(15),
|
||||
margin_topbottom = dpi(4)
|
||||
})
|
||||
|
|
@ -191,11 +192,11 @@ local bat = lain.widget.bat({
|
|||
-- ALSA volume
|
||||
local volicon = wibox.widget.imagebox()
|
||||
local voltooltip = awful.tooltip({
|
||||
objects = {volicon},
|
||||
objects = { volicon },
|
||||
margin_leftright = dpi(15),
|
||||
margin_topbottom = dpi(4),
|
||||
preferred_alignments = {"middle", "front", "back"},
|
||||
preferred_positions = {"bottom", "left", "right", "top"}
|
||||
preferred_alignments = { "middle", "front", "back" },
|
||||
preferred_positions = { "bottom", "left", "right", "top" }
|
||||
|
||||
})
|
||||
voltooltip.wibox.fg = "#fcfbf7"
|
||||
|
|
@ -286,8 +287,8 @@ local net = lain.widget.net({
|
|||
|
||||
-- Wifi carrier and signal strength
|
||||
local wificon = wibox.widget.imagebox(theme.wifidisc)
|
||||
local mywifisig = awful.widget.watch({awful.util.shell, "-c",
|
||||
"awk 'NR==3 {printf(\"%d-%.0f\\n\",$2, $3*10/7)}' /proc/net/wireless; iw dev wlan0 link"},
|
||||
local mywifisig = awful.widget.watch({ awful.util.shell, "-c",
|
||||
"awk 'NR==3 {printf(\"%d-%.0f\\n\",$2, $3*10/7)}' /proc/net/wireless; iw dev wlan0 link" },
|
||||
2, function(widget, stdout)
|
||||
local carrier, perc = stdout:match("(%d)-(%d+)")
|
||||
local tiptext = stdout:gsub("(%d)-(%d+)", ""):gsub("%s+$", "")
|
||||
|
|
@ -331,16 +332,16 @@ vspace.forced_height = dpi(18)
|
|||
|
||||
local barcolor = gears.color({
|
||||
type = "linear",
|
||||
from = {0, dpi(46)},
|
||||
to = {dpi(46), dpi(46)},
|
||||
stops = {{0, theme.bg_focus}, {0.9, theme.bg_focus2}}
|
||||
from = { 0, dpi(46) },
|
||||
to = { dpi(46), dpi(46) },
|
||||
stops = { { 0, theme.bg_focus }, { 0.9, theme.bg_focus2 } }
|
||||
})
|
||||
|
||||
local barcolor2 = gears.color({
|
||||
type = "linear",
|
||||
from = {0, dpi(46)},
|
||||
to = {dpi(46), dpi(46)},
|
||||
stops = {{0, "#323232"}, {1, theme.bg_normal}}
|
||||
from = { 0, dpi(46) },
|
||||
to = { dpi(46), dpi(46) },
|
||||
stops = { { 0, "#323232" }, { 1, theme.bg_normal } }
|
||||
})
|
||||
|
||||
local dockshape = function(cr, width, height)
|
||||
|
|
@ -369,7 +370,7 @@ function theme.vertical_wibox(s)
|
|||
end
|
||||
|
||||
-- Add widgets to the vertical wibox
|
||||
s.myleftwibox:setup{
|
||||
s.myleftwibox:setup {
|
||||
layout = wibox.layout.align.vertical,
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
|
|
@ -490,7 +491,7 @@ function theme.at_screen_connect(s)
|
|||
local weather_widget = require("awesome-wm-widgets.weather-widget.weather")
|
||||
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup{
|
||||
s.mywibox:setup {
|
||||
layout = wibox.layout.align.horizontal,
|
||||
expand = "none",
|
||||
{ -- Left widgets
|
||||
|
|
@ -524,7 +525,7 @@ function theme.at_screen_connect(s)
|
|||
hspace,
|
||||
weather_widget({
|
||||
api_key = 'aeec45216dbe6d619167d2e9c9380fd7',
|
||||
coordinates = {45.95, 24.14},
|
||||
coordinates = { 45.95, 24.14 },
|
||||
time_format_12h = true,
|
||||
units = 'metric',
|
||||
both_units_widget = true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue