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