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 PIL import Image, ImageOps
|
||||
|
||||
SIZE = 100
|
||||
|
||||
part_size = SIZE//5
|
||||
|
||||
for svg in pathlib.Path('.').glob('*.svg'):
|
||||
print(f'Converting {svg.name}...', end='')
|
||||
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:
|
||||
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)
|
||||
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_low = theme.confdir .. '/icons/info/vollow.png'
|
||||
theme.widget_vol_high = theme.confdir .. '/icons/info/volhigh.png'
|
||||
theme.taglist_squares_sel = theme.confdir .. '/icons/square_a.png'
|
||||
theme.taglist_squares_unsel = theme.confdir .. '/icons/square_b.png'
|
||||
theme.taglist_fg_focus = '#111111'
|
||||
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_disable_icon = true
|
||||
theme.useless_gap = 0
|
||||
@ -142,11 +144,11 @@ local netupinfo = lain.widget.net({
|
||||
|
||||
table.insert(info_widgets, {
|
||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_netdown), netdowninfo),
|
||||
bg = '#87af5f'
|
||||
bg = '#87af5f',
|
||||
})
|
||||
table.insert(info_widgets, {
|
||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_netup), netupinfo.widget),
|
||||
bg = '#e54c62'
|
||||
bg = '#e54c62',
|
||||
})
|
||||
-- < Net
|
||||
|
||||
@ -181,7 +183,7 @@ if settings['show_battery'] == true then
|
||||
})
|
||||
table.insert(info_widgets, {
|
||||
widget = wibox.layout.fixed.horizontal(baticon, bat.widget),
|
||||
bg = '#e54c62'
|
||||
bg = '#e54c62',
|
||||
})
|
||||
end
|
||||
-- < Battery
|
||||
@ -207,10 +209,10 @@ local volume = lain.widget.alsa({
|
||||
})
|
||||
|
||||
local volumebuttons = awful.util.table.join(
|
||||
awful.button({}, 1, function() -- left click
|
||||
awful.button({}, 1, function() -- left click
|
||||
os.execute(string.format('%s set %s toggle', volume.cmd, volume.togglechannel or volume.channel))
|
||||
volume.update()
|
||||
end),
|
||||
end),
|
||||
awful.button({}, 4, function()
|
||||
os.execute(string.format('%s set %s 1%%+', volume.cmd, volume.channel))
|
||||
volume.update()
|
||||
@ -226,7 +228,7 @@ volumeicon:buttons(volumebuttons)
|
||||
|
||||
table.insert(info_widgets, {
|
||||
widget = wibox.layout.fixed.horizontal(volumeicon, volume.widget),
|
||||
bg = '#7493d2'
|
||||
bg = '#7493d2',
|
||||
})
|
||||
-- < ALSA volume
|
||||
|
||||
@ -239,7 +241,7 @@ local memory = lain.widget.mem({
|
||||
})
|
||||
table.insert(info_widgets, {
|
||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_mem), memory.widget),
|
||||
bg = '#e0da37'
|
||||
bg = '#e0da37',
|
||||
})
|
||||
-- < MEM
|
||||
|
||||
@ -252,7 +254,7 @@ local cpu = lain.widget.cpu({
|
||||
})
|
||||
table.insert(info_widgets, {
|
||||
widget = wibox.layout.fixed.horizontal(wibox.widget.imagebox(theme.widget_cpu), cpu.widget),
|
||||
bg = '#e33a6e'
|
||||
bg = '#e33a6e',
|
||||
})
|
||||
-- < CPU
|
||||
|
||||
@ -276,7 +278,7 @@ fs.widget:buttons(gears.table.join(awful.button({}, 1, function()
|
||||
end)))
|
||||
table.insert(info_widgets, {
|
||||
widget = fs.widget,
|
||||
bg = '#80d9d8'
|
||||
bg = '#80d9d8',
|
||||
})
|
||||
-- < fs
|
||||
|
||||
@ -296,7 +298,7 @@ lain.widget.cal({
|
||||
})
|
||||
table.insert(info_widgets, {
|
||||
widget = mytextclock,
|
||||
bg = '#7788af'
|
||||
bg = '#7788af',
|
||||
})
|
||||
-- < Textclock
|
||||
|
||||
@ -419,13 +421,10 @@ function theme.at_screen_connect(s)
|
||||
},
|
||||
s.mytasklist, -- Middle widget
|
||||
--nil,
|
||||
gears.table.join(
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
wibox.container.margin(wibox.widget.systray(), 0, 5)
|
||||
},
|
||||
final_info_widgets
|
||||
),
|
||||
gears.table.join({ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
wibox.container.margin(wibox.widget.systray(), 0, 5),
|
||||
}, final_info_widgets),
|
||||
})
|
||||
end
|
||||
|
||||
|