Improved taglist looks
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 910 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 528 B |
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 530 B |
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 1005 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 1023 B |
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 141 B |
@ -4,12 +4,16 @@ import pathlib
|
|||||||
from cairosvg import svg2png
|
from cairosvg import svg2png
|
||||||
from PIL import Image, ImageOps
|
from PIL import Image, ImageOps
|
||||||
|
|
||||||
|
SIZE = 100
|
||||||
|
|
||||||
|
part_size = SIZE//5
|
||||||
|
|
||||||
for svg in pathlib.Path('.').glob('*.svg'):
|
for svg in pathlib.Path('.').glob('*.svg'):
|
||||||
print(f'Converting {svg.name}...', end='')
|
print(f'Converting {svg.name}...', end='')
|
||||||
png = svg.with_suffix('.png')
|
png = svg.with_suffix('.png')
|
||||||
svg2png(url=str(svg), write_to=str(png), output_width=12, output_height=12)
|
svg2png(url=str(svg), write_to=str(png), output_width=part_size*3, output_height=part_size*3)
|
||||||
with Image.open(png) as img:
|
with Image.open(png) as img:
|
||||||
img.load()
|
img.load()
|
||||||
border_img = ImageOps.expand(img, 4, (0, 0, 0, 0))
|
border_img = ImageOps.expand(img, part_size, (0, 0, 0, 0))
|
||||||
border_img.save(png)
|
border_img.save(png)
|
||||||
print(' Done')
|
print(' Done')
|
||||||
|
BIN
awesome/icons/usedtag.png
Normal file
After Width: | Height: | Size: 599 B |
@ -67,8 +67,10 @@ theme.widget_bat_full = theme.confdir .. '/icons/info/batfull.png'
|
|||||||
theme.widget_vol_mute = theme.confdir .. '/icons/info/volmute.png'
|
theme.widget_vol_mute = theme.confdir .. '/icons/info/volmute.png'
|
||||||
theme.widget_vol_low = theme.confdir .. '/icons/info/vollow.png'
|
theme.widget_vol_low = theme.confdir .. '/icons/info/vollow.png'
|
||||||
theme.widget_vol_high = theme.confdir .. '/icons/info/volhigh.png'
|
theme.widget_vol_high = theme.confdir .. '/icons/info/volhigh.png'
|
||||||
theme.taglist_squares_sel = theme.confdir .. '/icons/square_a.png'
|
theme.taglist_fg_focus = '#111111'
|
||||||
theme.taglist_squares_unsel = theme.confdir .. '/icons/square_b.png'
|
theme.taglist_bg_focus = '#b3b3b3'
|
||||||
|
theme.taglist_squares_unsel = theme.confdir .. '/icons/usedtag.png'
|
||||||
|
theme.taglist_squares_resize = true
|
||||||
theme.tasklist_plain_task_name = true
|
theme.tasklist_plain_task_name = true
|
||||||
theme.tasklist_disable_icon = true
|
theme.tasklist_disable_icon = true
|
||||||
theme.useless_gap = 0
|
theme.useless_gap = 0
|
||||||
@ -142,11 +144,11 @@ local netupinfo = lain.widget.net({
|
|||||||
|
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_netdown), netdowninfo),
|
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_netdown), netdowninfo),
|
||||||
bg = '#87af5f'
|
bg = '#87af5f',
|
||||||
})
|
})
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_netup), netupinfo.widget),
|
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_netup), netupinfo.widget),
|
||||||
bg = '#e54c62'
|
bg = '#e54c62',
|
||||||
})
|
})
|
||||||
-- < Net
|
-- < Net
|
||||||
|
|
||||||
@ -181,7 +183,7 @@ if settings['show_battery'] == true then
|
|||||||
})
|
})
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = wibox.layout.fixed.horizontal(baticon, bat.widget),
|
widget = wibox.layout.fixed.horizontal(baticon, bat.widget),
|
||||||
bg = '#e54c62'
|
bg = '#e54c62',
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- < Battery
|
-- < Battery
|
||||||
@ -226,7 +228,7 @@ volumeicon:buttons(volumebuttons)
|
|||||||
|
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = wibox.layout.fixed.horizontal(volumeicon, volume.widget),
|
widget = wibox.layout.fixed.horizontal(volumeicon, volume.widget),
|
||||||
bg = '#7493d2'
|
bg = '#7493d2',
|
||||||
})
|
})
|
||||||
-- < ALSA volume
|
-- < ALSA volume
|
||||||
|
|
||||||
@ -239,7 +241,7 @@ local memory = lain.widget.mem({
|
|||||||
})
|
})
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_mem), memory.widget),
|
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_mem), memory.widget),
|
||||||
bg = '#e0da37'
|
bg = '#e0da37',
|
||||||
})
|
})
|
||||||
-- < MEM
|
-- < MEM
|
||||||
|
|
||||||
@ -252,7 +254,7 @@ local cpu = lain.widget.cpu({
|
|||||||
})
|
})
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_cpu), cpu.widget),
|
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_cpu), cpu.widget),
|
||||||
bg = '#e33a6e'
|
bg = '#e33a6e',
|
||||||
})
|
})
|
||||||
-- < CPU
|
-- < CPU
|
||||||
|
|
||||||
@ -276,7 +278,7 @@ fs.widget:buttons(gears.table.join(awful.button({}, 1, function()
|
|||||||
end)))
|
end)))
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = fs.widget,
|
widget = fs.widget,
|
||||||
bg = '#80d9d8'
|
bg = '#80d9d8',
|
||||||
})
|
})
|
||||||
-- < fs
|
-- < fs
|
||||||
|
|
||||||
@ -296,7 +298,7 @@ lain.widget.cal({
|
|||||||
})
|
})
|
||||||
table.insert(info_widgets, {
|
table.insert(info_widgets, {
|
||||||
widget = mytextclock,
|
widget = mytextclock,
|
||||||
bg = '#7788af'
|
bg = '#7788af',
|
||||||
})
|
})
|
||||||
-- < Textclock
|
-- < Textclock
|
||||||
|
|
||||||
@ -419,13 +421,10 @@ function theme.at_screen_connect(s)
|
|||||||
},
|
},
|
||||||
s.mytasklist, -- Middle widget
|
s.mytasklist, -- Middle widget
|
||||||
--nil,
|
--nil,
|
||||||
gears.table.join(
|
gears.table.join({ -- Right widgets
|
||||||
{ -- Right widgets
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
wibox.container.margin(wibox.widget.systray(), 0, 5)
|
wibox.container.margin(wibox.widget.systray(), 0, 5),
|
||||||
},
|
}, final_info_widgets),
|
||||||
final_info_widgets
|
|
||||||
),
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|