moved to personal fennel config for awesome and added qutebrowser
This commit is contained in:
parent
403cb92b7d
commit
688748f8a6
502 changed files with 8576 additions and 9597 deletions
37
awes2/widget/music/content/track-time.lua
Executable file
37
awes2/widget/music/content/track-time.lua
Executable file
|
@ -0,0 +1,37 @@
|
|||
local beautiful = require('beautiful')
|
||||
local gears = require('gears')
|
||||
local awful = require('awful')
|
||||
local wibox = require('wibox')
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
|
||||
local time_info = {}
|
||||
|
||||
time_info.time_status = wibox.widget {
|
||||
id = 'statustime',
|
||||
text = '00:00',
|
||||
font = 'SF Pro Text 8',
|
||||
align = 'center',
|
||||
valign = 'center',
|
||||
forced_height = dpi(10),
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
||||
time_info.time_duration = wibox.widget {
|
||||
id = 'durationtime',
|
||||
text = '00:00',
|
||||
font = 'SF Pro Text 8',
|
||||
align = 'center',
|
||||
valign = 'center',
|
||||
forced_height = dpi(10),
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
||||
time_info.time_track = wibox.widget {
|
||||
expand = 'none',
|
||||
layout = wibox.layout.align.horizontal,
|
||||
time_info.time_status,
|
||||
nil,
|
||||
time_info.time_duration
|
||||
}
|
||||
|
||||
return time_info
|
Loading…
Add table
Add a link
Reference in a new issue