Compare commits
13 Commits
Author | SHA1 | Date |
---|---|---|
|
8576d5de59 | |
|
5d573761d9 | |
|
b2fa7c4767 | |
|
780f63f1a0 | |
|
579c46f4f4 | |
|
7cd97ec4b0 | |
|
768e6d49d3 | |
|
dcfcc459a1 | |
|
b80ec3fdb4 | |
|
9842227176 | |
|
4a6ec01f88 | |
|
ab3570bf0b | |
|
1fee5d93e5 |
|
@ -1,4 +1,5 @@
|
|||
# awesome
|
||||
(SUNSETTED) this config is outdated and most of the themes/layouts will be ported to https://512mb.org/git/Yessiest/reno
|
||||
|
||||
my slightly overcomplicated awesomewm config
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ local awful = require("awful")
|
|||
local gears = require("gears")
|
||||
|
||||
return gears.table.join(
|
||||
awful.button({ }, 3, function () require("core.widgets.menu"):toggle() end),
|
||||
awful.button({ }, 3, function () menu:show() end),
|
||||
awful.button({ }, 4, awful.tag.viewnext),
|
||||
awful.button({ }, 5, awful.tag.viewprev)
|
||||
)
|
||||
|
|
126
core/layout.lua
|
@ -34,7 +34,6 @@ require("core.widgets.menubar")
|
|||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
set_wallpaper(s)
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
|
||||
|
||||
|
@ -67,76 +66,81 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},
|
||||
bottom_widgets = {
|
||||
require("widgets.polylauncher")({vertical = true})
|
||||
}
|
||||
},
|
||||
position="left"
|
||||
})
|
||||
-- Menu
|
||||
require("core.widgets.menu")
|
||||
-- Start button
|
||||
local start_button = wibox.widget {
|
||||
{
|
||||
{
|
||||
image = beautiful.awesome_icon,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "center",
|
||||
id = "menu"
|
||||
},
|
||||
bg = "#26262633",
|
||||
widget = wibox.container.background,
|
||||
forced_width = require("beautiful.xresources").apply_dpi(61),
|
||||
}
|
||||
start_button:connect_signal("button::press",function(self,x,y,button)
|
||||
if button == 1 then
|
||||
menu:show()
|
||||
end
|
||||
end)
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup {
|
||||
expand = "outside",
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
{
|
||||
{
|
||||
{
|
||||
require("core.widgets.menu_launcher"),
|
||||
widget = wibox.container.place,
|
||||
halign = "center"
|
||||
},
|
||||
bg = "#26262633",
|
||||
widget = wibox.container.background,
|
||||
forced_width = require("beautiful.xresources").apply_dpi(61),
|
||||
-- Left widgets
|
||||
start_button,
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 3
|
||||
},
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
spacing = 3
|
||||
widget = wibox.container.place,
|
||||
halign = "left",
|
||||
fill_horizontal = false
|
||||
},
|
||||
-- Middle widget
|
||||
{
|
||||
--[[require("widgets.polytasklist")({
|
||||
vertical = false,
|
||||
stretch = false,
|
||||
constraint = 180,
|
||||
names = true,
|
||||
margins = 5
|
||||
})(s),]]
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
awful.widget.keyboardlayout(),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
--wibox.widget.systray(),
|
||||
require("widgets.volume")({
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
require("widgets.battery")({
|
||||
percentage = true,
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
wibox.widget.textclock(),
|
||||
require("widgets.username")({
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
s.mylayoutbox,
|
||||
spacing = 4
|
||||
{
|
||||
{
|
||||
-- Right widgets
|
||||
require("widgets.drawer")({
|
||||
wibox.widget.systray(),
|
||||
}),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
}
|
||||
}),
|
||||
require("widgets.volume")({}),
|
||||
require("widgets.battery")({
|
||||
percentage = true,
|
||||
}),
|
||||
awful.widget.keyboardlayout(),
|
||||
wibox.widget.textclock(),
|
||||
s.mylayoutbox,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 4,
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "right",
|
||||
fill_horizontal = false
|
||||
},
|
||||
}
|
||||
end)
|
||||
|
|
|
@ -2,87 +2,89 @@ local awful = require("awful")
|
|||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local menu = require("widgets.polymenu")
|
||||
local move_screentags = {}
|
||||
local toggle_screentags = {}
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
local move_tags = {}
|
||||
local toggle_tags = {}
|
||||
for _,tag in pairs(s.tags) do
|
||||
table.insert(move_tags,{
|
||||
tag.name,
|
||||
function()
|
||||
if client.focus then
|
||||
client.focus:tags({tag})
|
||||
end
|
||||
end
|
||||
})
|
||||
table.insert(toggle_tags,{
|
||||
tag.name,
|
||||
function()
|
||||
if client.focus then
|
||||
local tags = client.focus:tags()
|
||||
for k,v in pairs(tags) do
|
||||
if v == tag then
|
||||
table.remove(tags,k)
|
||||
client.focus:tags(tags)
|
||||
return
|
||||
end
|
||||
end
|
||||
table.insert(tags,tag)
|
||||
client.focus:tags(tags)
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
table.insert(move_screentags,{
|
||||
"Screen "..tostring(s.index),
|
||||
move_tags
|
||||
})
|
||||
table.insert(toggle_screentags,{
|
||||
"Screen "..tostring(s.index),
|
||||
toggle_tags
|
||||
})
|
||||
end)
|
||||
local controls_widget = wibox.widget {
|
||||
forced_width = 72,
|
||||
forced_height = 24,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
}
|
||||
-- To conserve memory we keep one menu at a time
|
||||
local menu_widget = menu({
|
||||
before = {
|
||||
controls_widget
|
||||
},
|
||||
after = {
|
||||
require("widgets.client-volume")({})
|
||||
},
|
||||
items = {
|
||||
{ "Move to tag" ,
|
||||
move_screentags
|
||||
if not menu_widget then
|
||||
local move_screentags = {}
|
||||
local toggle_screentags = {}
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
local move_tags = {}
|
||||
local toggle_tags = {}
|
||||
for _,tag in pairs(s.tags) do
|
||||
table.insert(move_tags,{
|
||||
tag.name,
|
||||
function()
|
||||
if client.focus then
|
||||
client.focus:tags({tag})
|
||||
end
|
||||
end
|
||||
})
|
||||
table.insert(toggle_tags,{
|
||||
tag.name,
|
||||
function()
|
||||
if client.focus then
|
||||
local tags = client.focus:tags()
|
||||
for k,v in pairs(tags) do
|
||||
if v == tag then
|
||||
table.remove(tags,k)
|
||||
client.focus:tags(tags)
|
||||
return
|
||||
end
|
||||
end
|
||||
table.insert(tags,tag)
|
||||
client.focus:tags(tags)
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
table.insert(move_screentags,{
|
||||
"Screen "..tostring(s.index),
|
||||
move_tags
|
||||
})
|
||||
table.insert(toggle_screentags,{
|
||||
"Screen "..tostring(s.index),
|
||||
toggle_tags
|
||||
})
|
||||
end)
|
||||
controls_widget = wibox.widget {
|
||||
forced_width = 72,
|
||||
forced_height = 24,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
}
|
||||
menu_widget = menu({
|
||||
before = {
|
||||
controls_widget
|
||||
},
|
||||
{ "Toggle on tag",
|
||||
toggle_screentags
|
||||
after = {
|
||||
require("widgets.client-volume")({})
|
||||
},
|
||||
{ "Stop task",
|
||||
function()
|
||||
awful.spawn("kill "..tostring(c.pid))
|
||||
end
|
||||
},
|
||||
{ "Kill task",
|
||||
function()
|
||||
awful.spawn("kill -s KILL "..tostring(c.pid))
|
||||
end
|
||||
},
|
||||
{ "Debug info",
|
||||
{
|
||||
before = {
|
||||
require("widgets.window-debug")()
|
||||
items = {
|
||||
{ "Move to tag" ,
|
||||
move_screentags
|
||||
},
|
||||
{ "Toggle on tag",
|
||||
toggle_screentags
|
||||
},
|
||||
{ "Stop task",
|
||||
function()
|
||||
awful.spawn("kill "..tostring(c.pid))
|
||||
end
|
||||
},
|
||||
{ "Kill task",
|
||||
function()
|
||||
awful.spawn("kill -s KILL "..tostring(c.pid))
|
||||
end
|
||||
},
|
||||
{ "Debug info",
|
||||
{
|
||||
before = {
|
||||
require("widgets.window-debug")()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
vertical = true
|
||||
})
|
||||
},
|
||||
vertical = true
|
||||
})
|
||||
end
|
||||
|
||||
return function(c)
|
||||
local buttons = gears.table.join(
|
||||
|
|
|
@ -83,7 +83,7 @@ local menu_template = {
|
|||
vertical = true,
|
||||
inverse = true
|
||||
}
|
||||
local menu = polymenu(menu_template)
|
||||
menu = polymenu(menu_template)
|
||||
root.keys(gears.table.join(
|
||||
root.keys(),
|
||||
awful.key({ global.modkey, }, "w", function () menu:show() end,
|
||||
|
|
|
@ -67,76 +67,81 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},
|
||||
bottom_widgets = {
|
||||
require("widgets.polylauncher")({vertical = true})
|
||||
}
|
||||
},
|
||||
position="left"
|
||||
})
|
||||
-- Menu
|
||||
require("core.widgets.menu")
|
||||
-- Start button
|
||||
local start_button = wibox.widget {
|
||||
{
|
||||
{
|
||||
image = beautiful.awesome_icon,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "center",
|
||||
id = "menu"
|
||||
},
|
||||
bg = "#26262633",
|
||||
widget = wibox.container.background,
|
||||
forced_width = require("beautiful.xresources").apply_dpi(61),
|
||||
}
|
||||
start_button:connect_signal("button::press",function(self,x,y,button)
|
||||
if button == 1 then
|
||||
menu:show()
|
||||
end
|
||||
end)
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup {
|
||||
expand = "outside",
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
{
|
||||
{
|
||||
{
|
||||
require("core.widgets.menu_launcher"),
|
||||
widget = wibox.container.place,
|
||||
halign = "center"
|
||||
},
|
||||
bg = "#26262633",
|
||||
widget = wibox.container.background,
|
||||
forced_width = require("beautiful.xresources").apply_dpi(61),
|
||||
-- Left widgets
|
||||
start_button,
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 3
|
||||
},
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
spacing = 3
|
||||
widget = wibox.container.place,
|
||||
halign = "left",
|
||||
fill_horizontal = false
|
||||
},
|
||||
-- Middle widget
|
||||
{
|
||||
--[[require("widgets.polytasklist")({
|
||||
vertical = false,
|
||||
stretch = false,
|
||||
constraint = 180,
|
||||
names = true,
|
||||
margins = 5
|
||||
})(s),]]
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
awful.widget.keyboardlayout(),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
--wibox.widget.systray(),
|
||||
require("widgets.volume")({
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
require("widgets.battery")({
|
||||
percentage = true,
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
wibox.widget.textclock(),
|
||||
require("widgets.username")({
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
s.mylayoutbox,
|
||||
spacing = 4
|
||||
{
|
||||
{
|
||||
-- Right widgets
|
||||
require("widgets.drawer")({
|
||||
wibox.widget.systray(),
|
||||
}),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
}
|
||||
}),
|
||||
require("widgets.volume")({}),
|
||||
require("widgets.battery")({
|
||||
percentage = true,
|
||||
}),
|
||||
awful.widget.keyboardlayout(),
|
||||
wibox.widget.textclock(),
|
||||
s.mylayoutbox,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 4,
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "right",
|
||||
fill_horizontal = false
|
||||
},
|
||||
}
|
||||
end)
|
||||
|
|
|
@ -71,55 +71,50 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
})
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup {
|
||||
expand = "outside",
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
require("core.widgets.menu_launcher"),
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
spacing = 3
|
||||
{
|
||||
require("core.widgets.menu_launcher"),
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 3
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "left",
|
||||
fill_horizontal = false,
|
||||
},
|
||||
-- Middle widget
|
||||
{
|
||||
widget = wibox.container.background
|
||||
},
|
||||
wibox.widget.textclock(),
|
||||
{ -- Right widgets
|
||||
wibox.widget.textclock(),
|
||||
{
|
||||
widget = wibox.container.background,
|
||||
forced_width = (math.abs(s.geometry.width/2)-200)
|
||||
require("widgets.drawer")({
|
||||
wibox.widget.systray()
|
||||
}),
|
||||
awful.widget.keyboardlayout(),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
}
|
||||
}),
|
||||
require("widgets.volume")({}),
|
||||
require("widgets.battery")({
|
||||
percentage = false,
|
||||
}),
|
||||
s.mylayoutbox,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 4
|
||||
},
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
awful.widget.keyboardlayout(),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
--wibox.widget.systray(),
|
||||
require("widgets.volume")({
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
require("widgets.battery")({
|
||||
percentage = false,
|
||||
style = {
|
||||
icon_bg_normal = beautiful.topbar_bg
|
||||
}
|
||||
}),
|
||||
s.mylayoutbox,
|
||||
spacing = 4
|
||||
widget = wibox.container.place,
|
||||
halign = "right",
|
||||
fill_horizontal = false
|
||||
},
|
||||
}
|
||||
end)
|
||||
|
|
|
@ -0,0 +1,136 @@
|
|||
local beautiful = require("beautiful")
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
-- {{{ Wibar
|
||||
|
||||
-- Create a wibox for each screen and add it
|
||||
|
||||
local function set_wallpaper(s)
|
||||
-- Wallpaper
|
||||
if beautiful.wallpaper then
|
||||
local wallpaper = beautiful.wallpaper
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
end
|
||||
end
|
||||
|
||||
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
||||
screen.connect_signal("property::geometry", set_wallpaper)
|
||||
|
||||
-- {{{ Non-widget modules
|
||||
-- The following modules are not exactly widgets, however they are part of the ui.
|
||||
|
||||
-- Load the keybindings list
|
||||
require("core.widgets.hotkeys_popup")
|
||||
|
||||
-- Load the menubar
|
||||
require("core.widgets.menubar")
|
||||
-- }}}
|
||||
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
set_wallpaper(s)
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
|
||||
|
||||
-- Create a promptbox for each screen
|
||||
s.mypromptbox = require("core.widgets.prompt")()
|
||||
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||
-- Create the taglist
|
||||
s.mytaglist = require("core.widgets.taglist")(s)
|
||||
-- We need one layoutbox per screen.
|
||||
s.mylayoutbox = require("core.widgets.layout_box")(s)
|
||||
-- Create a tasklist widget
|
||||
s.mytasklist = require("core.widgets.tasklist")(s)
|
||||
-- Create the wibox
|
||||
s.mywibox = awful.wibar({
|
||||
position = "top",
|
||||
screen = s,
|
||||
bg = beautiful.topbar_bg,
|
||||
})
|
||||
-- Add screen lock
|
||||
require("widgets.lock")({screen = s, obscure = true})
|
||||
require("widgets.unitybar")(s,{
|
||||
top_widgets = {
|
||||
require("widgets.polytasklist")({
|
||||
vertical = false,
|
||||
stretch = false,
|
||||
--constraint = 180,
|
||||
names = false,
|
||||
margins = 5
|
||||
})(s),
|
||||
},
|
||||
bottom_widgets = {
|
||||
require("widgets.polylauncher")({vertical = false})
|
||||
},
|
||||
position="bottom"
|
||||
})
|
||||
-- Menu
|
||||
require("core.widgets.menu")
|
||||
-- Start button
|
||||
local start_button = wibox.widget {
|
||||
{
|
||||
{
|
||||
image = beautiful.awesome_icon,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "center",
|
||||
id = "menu"
|
||||
},
|
||||
bg = "#26262633",
|
||||
widget = wibox.container.background,
|
||||
forced_width = require("beautiful.xresources").apply_dpi(61),
|
||||
}
|
||||
start_button:connect_signal("button::press",function(self,x,y,button)
|
||||
if button == 1 then
|
||||
menu:show()
|
||||
end
|
||||
end)
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup {
|
||||
expand = "outside",
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{ -- Left widgets
|
||||
start_button,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
--require("widgets.polylauncher")({vertical = false}),
|
||||
--s.mytaglist,
|
||||
s.mypromptbox,
|
||||
spacing = 3
|
||||
},
|
||||
wibox.widget.textclock(),
|
||||
{ -- Right widgets
|
||||
{
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
awful.widget.keyboardlayout(),
|
||||
require("widgets.wallpapers")({
|
||||
screen = s,
|
||||
path = os.getenv("HOME").."/Pictures/Wallpapers/",
|
||||
}),
|
||||
require("widgets.mailbox")({
|
||||
screen = s,
|
||||
style = {
|
||||
rounding = 1,
|
||||
}
|
||||
}),
|
||||
--wibox.widget.systray(),
|
||||
require("widgets.volume")({}),
|
||||
require("widgets.battery")({
|
||||
percentage = true,
|
||||
}),
|
||||
s.mylayoutbox,
|
||||
spacing = 4,
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
halign = "right",
|
||||
fill_horizontal = true
|
||||
},
|
||||
}
|
||||
end)
|
||||
-- }}}
|
|
@ -0,0 +1,155 @@
|
|||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
local wibox = require("wibox")
|
||||
local menu = require("widgets.polymenu")
|
||||
local move_screentags = {}
|
||||
local toggle_screentags = {}
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
local move_tags = {}
|
||||
local toggle_tags = {}
|
||||
for _,tag in pairs(s.tags) do
|
||||
table.insert(move_tags,{
|
||||
tag.name,
|
||||
function()
|
||||
if client.focus then
|
||||
client.focus:tags({tag})
|
||||
end
|
||||
end
|
||||
})
|
||||
table.insert(toggle_tags,{
|
||||
tag.name,
|
||||
function()
|
||||
if client.focus then
|
||||
local tags = client.focus:tags()
|
||||
for k,v in pairs(tags) do
|
||||
if v == tag then
|
||||
table.remove(tags,k)
|
||||
client.focus:tags(tags)
|
||||
return
|
||||
end
|
||||
end
|
||||
table.insert(tags,tag)
|
||||
client.focus:tags(tags)
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
table.insert(move_screentags,{
|
||||
"Screen "..tostring(s.index),
|
||||
move_tags
|
||||
})
|
||||
table.insert(toggle_screentags,{
|
||||
"Screen "..tostring(s.index),
|
||||
toggle_tags
|
||||
})
|
||||
end)
|
||||
local controls_widget = wibox.widget {
|
||||
forced_width = 72,
|
||||
forced_height = 24,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
}
|
||||
-- To conserve memory we keep one menu at a time
|
||||
local menu_widget = menu({
|
||||
before = {
|
||||
controls_widget
|
||||
},
|
||||
after = {
|
||||
require("widgets.client-volume")({})
|
||||
},
|
||||
items = {
|
||||
{ "Move to tag" ,
|
||||
move_screentags
|
||||
},
|
||||
{ "Toggle on tag",
|
||||
toggle_screentags
|
||||
},
|
||||
{ "Stop task",
|
||||
function()
|
||||
awful.spawn("kill "..tostring(client.focus.pid))
|
||||
end
|
||||
},
|
||||
{ "Kill task",
|
||||
function()
|
||||
awful.spawn("kill -s KILL "..tostring(client.focus.pid))
|
||||
end
|
||||
},
|
||||
{ "Debug info",
|
||||
{
|
||||
before = {
|
||||
require("widgets.window-debug")()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
vertical = true
|
||||
})
|
||||
|
||||
return function(c)
|
||||
local buttons = gears.table.join(
|
||||
awful.button({ }, 1, function()
|
||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
||||
awful.mouse.client.move(c)
|
||||
end),
|
||||
awful.button({ }, 3, function()
|
||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
||||
awful.mouse.client.resize(c)
|
||||
end)
|
||||
)
|
||||
c.menu_button = awful.titlebar.widget.iconwidget(c)
|
||||
-- A little trick we do to conserve memory and cpu usage on regenerating
|
||||
-- buttons is we pop up a menu in the location of the icon
|
||||
-- and insert buttons into the controls widget layout.
|
||||
c.hidden_floatingbutton = awful.titlebar.widget.floatingbutton(c)
|
||||
c.hidden_stickybutton = awful.titlebar.widget.stickybutton(c)
|
||||
c.hidden_ontopbutton = awful.titlebar.widget.ontopbutton(c)
|
||||
c.menu_button:connect_signal("button::press", function()
|
||||
menu_widget.toggle()
|
||||
if controls_widget then
|
||||
controls_widget:reset()
|
||||
controls_widget:add(c.hidden_floatingbutton)
|
||||
controls_widget:add(c.hidden_stickybutton)
|
||||
controls_widget:add(c.hidden_ontopbutton)
|
||||
end
|
||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
||||
end)
|
||||
c:connect_signal("unfocus",function()
|
||||
if menu_widget.visible then
|
||||
menu_widget.toggle(0,0)
|
||||
end
|
||||
end)
|
||||
return awful.titlebar(c) : setup {
|
||||
{ -- Left
|
||||
c.menu_button,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
{ -- Middle
|
||||
awful.titlebar.widget.titlewidget(c),
|
||||
buttons = buttons,
|
||||
layout = wibox.layout.flex.horizontal
|
||||
},
|
||||
{ -- Right
|
||||
{
|
||||
{
|
||||
awful.titlebar.widget.maximizedbutton(c),
|
||||
awful.titlebar.widget.minimizebutton (c),
|
||||
awful.titlebar.widget.closebutton (c),
|
||||
layout = wibox.layout.fixed.horizontal(),
|
||||
widget = wibox.container.margin,
|
||||
margins = 3
|
||||
},
|
||||
widget = wibox.container.background,
|
||||
shape = gears.shape.rounded_bar,
|
||||
bg = {
|
||||
type = "linear",
|
||||
from = { 0, 15 },
|
||||
to = { 0, 0},
|
||||
stops = { { 0, "#5d5d5955"} , {1, "39383555"} }
|
||||
},
|
||||
},
|
||||
widget = wibox.container.margin,
|
||||
margins = 2
|
||||
},
|
||||
spacing = 10,
|
||||
layout = wibox.layout.align.horizontal,
|
||||
}
|
||||
end
|
|
@ -0,0 +1,31 @@
|
|||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
-- {{{ Variable definitions
|
||||
global = {}
|
||||
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
|
||||
global.config_dir = os.getenv("HOME").."/.awesome/"
|
||||
global.themes_dir = os.getenv("HOME").."/.config/awesome/themes/"
|
||||
global.theme = global.awesome_dir .. "themes/unity/theme.lua"
|
||||
global.terminal = "xterm"
|
||||
global.editor = os.getenv("EDITOR") or "vim"
|
||||
global.editor_cmd = global.terminal .. " -e ".. global.editor
|
||||
global.modkey = "Mod4"
|
||||
awful.layout.layouts = {
|
||||
awful.layout.suit.floating,
|
||||
awful.layout.suit.tile,
|
||||
awful.layout.suit.tile.left,
|
||||
awful.layout.suit.tile.bottom,
|
||||
awful.layout.suit.tile.top,
|
||||
awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.spiral,
|
||||
awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.max,
|
||||
awful.layout.suit.max.fullscreen,
|
||||
awful.layout.suit.magnifier,
|
||||
awful.layout.suit.corner.nw,
|
||||
-- awful.layout.suit.corner.ne,
|
||||
-- awful.layout.suit.corner.sw,
|
||||
-- awful.layout.suit.corner.se,
|
||||
}
|
||||
-- }}}
|
|
@ -1,21 +1,78 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="431" height="345" version="1.1">
|
||||
<style type="text/css"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs>
|
||||
<linearGradient id="LO" gradientUnits="userSpaceOnUse" x1="319.20822" y1="235.14877" x2="657.65295" y2="269.49396">
|
||||
<stop style="stop-color:#e54c18" offset="0"/>
|
||||
<stop style="stop-color:#fec350" offset="1"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g transform="translate(142.2839,-24.99705)">
|
||||
<g transform="translate(-413.2102,-40.70387)">
|
||||
<path d="M342.0739,390.70219L 453.17118,245.44599L 338.79445,85.733013L 412.30881,85.794093L 503.44682,211.37696L 367.17669,390.70219L 342.0739,390.70219 z M559.52169,390.8049L 469.01289,265.00644L 606.41773,85.596933L 630.89946,85.596933L 519.34879,231.53848L 633.03722,390.8049L 559.52169,390.8049z"/>
|
||||
<path id="P1" d="M486.41071,143.82651C 477.55968,143.82651 468.10342,144.51187 459.5906,145.32904C 474.75653,165.10903 487.34067,181.85855 501.82347,200.88092C 493.69471,183.38799 476.98783,166.61333 482.7635,157.98625C 488.48067,149.44656 499.01457,150.88393 499.81696,150.88393C 516.70545,150.88393 532.96221,152.79132 548.16071,156.32143L 551.72321,151.41518C 531.4524,146.19692 509.43472,143.82651 486.41071,143.82651 z M577.87946,159.79018L 574.59821,164.47768C 621.42401,182.81432 653.09821,217.83797 653.09821,257.97767C 653.09821,317.0837 584.43336,365.04017 499.81696,365.04017C 415.20056,365.04016 346.50446,317.08369 346.50446,257.97767C 346.50447,225.78991 366.87604,196.89765 399.09821,177.25893L 389.19196,162.16518C 338.64582,183.59701 305.09822,221.2148 305.09821,264.04017C 305.09821,330.67385 386.32071,384.72767 486.41071,384.72767C 586.5007,384.72767 667.75445,330.67386 667.75446,264.04017C 667.75446,219.60725 631.63191,180.74772 577.87946,159.79018z"/>
|
||||
</g>
|
||||
<rect x="322.36493" y="180.85307" width=".50507629" height="0"/>
|
||||
</g>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
version="1.1"
|
||||
id="svg20"
|
||||
sodipodi:docname="fallback-application.svg"
|
||||
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview22"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="7.148952"
|
||||
inkscape:cx="16.505916"
|
||||
inkscape:cy="25.458277"
|
||||
inkscape:window-width="1856"
|
||||
inkscape:window-height="1030"
|
||||
inkscape:window-x="62"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg20"
|
||||
showguides="false" />
|
||||
<style
|
||||
type="text/css"
|
||||
id="style2"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs
|
||||
id="defs9">
|
||||
<linearGradient
|
||||
id="LO"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="319.20822"
|
||||
y1="235.14877"
|
||||
x2="657.65295"
|
||||
y2="269.49396">
|
||||
<stop
|
||||
style="stop-color:#e54c18"
|
||||
offset="0"
|
||||
id="stop4" />
|
||||
<stop
|
||||
style="stop-color:#fec350"
|
||||
offset="1"
|
||||
id="stop6" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g
|
||||
transform="matrix(0.12,0,0,0.12,15.214064,0.30035442)"
|
||||
id="g18">
|
||||
<g
|
||||
transform="translate(-413.2102,-40.70387)"
|
||||
id="g14">
|
||||
<path
|
||||
d="M 342.0739,390.70219 453.17118,245.44599 338.79445,85.733013 412.30881,85.794093 503.44682,211.37696 367.17669,390.70219 Z M 559.52169,390.8049 469.01289,265.00644 606.41773,85.596933 h 24.48173 L 519.34879,231.53848 633.03722,390.8049 Z"
|
||||
id="path11" />
|
||||
<path
|
||||
id="P1"
|
||||
d="m 486.41071,143.82651 c -8.85103,0 -18.30729,0.68536 -26.82011,1.50253 15.16593,19.77999 27.75007,36.52951 42.23287,55.55188 -8.12876,-17.49293 -24.83564,-34.26759 -19.05997,-42.89467 5.71717,-8.53969 16.25107,-7.10232 17.05346,-7.10232 16.88849,0 33.14525,1.90739 48.34375,5.4375 l 3.5625,-4.90625 c -20.27081,-5.21826 -42.28849,-7.58867 -65.3125,-7.58867 z m 91.46875,15.96367 -3.28125,4.6875 c 46.8258,18.33664 78.5,53.36029 78.5,93.49999 0,59.10603 -68.66485,107.0625 -153.28125,107.0625 -84.6164,-10e-6 -153.3125,-47.95648 -153.3125,-107.0625 1e-5,-32.18776 20.37158,-61.08002 52.59375,-80.71874 l -9.90625,-15.09375 c -50.54614,21.43183 -84.09374,59.04962 -84.09375,101.87499 0,66.63368 81.2225,120.6875 181.3125,120.6875 100.08999,0 181.34374,-54.05381 181.34375,-120.6875 0,-44.43292 -36.12255,-83.29245 -89.875,-104.24999 z"
|
||||
style="fill:url(#LO)" />
|
||||
</g>
|
||||
<rect
|
||||
x="322.36493"
|
||||
y="180.85307"
|
||||
width="0.50507629"
|
||||
height="0"
|
||||
id="rect16" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -15,8 +15,9 @@ return function(theme)
|
|||
theme.wallpapers_pager_button_size = dpi(15)
|
||||
|
||||
-- Menus
|
||||
theme.menu_button_height = 20
|
||||
theme.menu_button_width = 140
|
||||
theme.menu_button_height = dpi(20)
|
||||
theme.menu_button_width = dpi(140)
|
||||
theme.menu_button_inner_margin = dpi(1)
|
||||
|
||||
-- Power management icons
|
||||
theme.powercontrol_button_height = 25
|
||||
|
|
|
@ -1,21 +1,78 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="431" height="345" version="1.1">
|
||||
<style type="text/css"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs>
|
||||
<linearGradient id="LO" gradientUnits="userSpaceOnUse" x1="319.20822" y1="235.14877" x2="657.65295" y2="269.49396">
|
||||
<stop style="stop-color:#e54c18" offset="0"/>
|
||||
<stop style="stop-color:#fec350" offset="1"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g transform="translate(142.2839,-24.99705)">
|
||||
<g transform="translate(-413.2102,-40.70387)">
|
||||
<path d="M342.0739,390.70219L 453.17118,245.44599L 338.79445,85.733013L 412.30881,85.794093L 503.44682,211.37696L 367.17669,390.70219L 342.0739,390.70219 z M559.52169,390.8049L 469.01289,265.00644L 606.41773,85.596933L 630.89946,85.596933L 519.34879,231.53848L 633.03722,390.8049L 559.52169,390.8049z"/>
|
||||
<path id="P1" d="M486.41071,143.82651C 477.55968,143.82651 468.10342,144.51187 459.5906,145.32904C 474.75653,165.10903 487.34067,181.85855 501.82347,200.88092C 493.69471,183.38799 476.98783,166.61333 482.7635,157.98625C 488.48067,149.44656 499.01457,150.88393 499.81696,150.88393C 516.70545,150.88393 532.96221,152.79132 548.16071,156.32143L 551.72321,151.41518C 531.4524,146.19692 509.43472,143.82651 486.41071,143.82651 z M577.87946,159.79018L 574.59821,164.47768C 621.42401,182.81432 653.09821,217.83797 653.09821,257.97767C 653.09821,317.0837 584.43336,365.04017 499.81696,365.04017C 415.20056,365.04016 346.50446,317.08369 346.50446,257.97767C 346.50447,225.78991 366.87604,196.89765 399.09821,177.25893L 389.19196,162.16518C 338.64582,183.59701 305.09822,221.2148 305.09821,264.04017C 305.09821,330.67385 386.32071,384.72767 486.41071,384.72767C 586.5007,384.72767 667.75445,330.67386 667.75446,264.04017C 667.75446,219.60725 631.63191,180.74772 577.87946,159.79018z"/>
|
||||
</g>
|
||||
<rect x="322.36493" y="180.85307" width=".50507629" height="0"/>
|
||||
</g>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
version="1.1"
|
||||
id="svg20"
|
||||
sodipodi:docname="fallback-application.svg"
|
||||
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview22"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="7.148952"
|
||||
inkscape:cx="16.505916"
|
||||
inkscape:cy="25.458277"
|
||||
inkscape:window-width="1856"
|
||||
inkscape:window-height="1030"
|
||||
inkscape:window-x="62"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg20"
|
||||
showguides="false" />
|
||||
<style
|
||||
type="text/css"
|
||||
id="style2"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs
|
||||
id="defs9">
|
||||
<linearGradient
|
||||
id="LO"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="319.20822"
|
||||
y1="235.14877"
|
||||
x2="657.65295"
|
||||
y2="269.49396">
|
||||
<stop
|
||||
style="stop-color:#e54c18"
|
||||
offset="0"
|
||||
id="stop4" />
|
||||
<stop
|
||||
style="stop-color:#fec350"
|
||||
offset="1"
|
||||
id="stop6" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g
|
||||
transform="matrix(0.12,0,0,0.12,15.214064,0.30035442)"
|
||||
id="g18">
|
||||
<g
|
||||
transform="translate(-413.2102,-40.70387)"
|
||||
id="g14">
|
||||
<path
|
||||
d="M 342.0739,390.70219 453.17118,245.44599 338.79445,85.733013 412.30881,85.794093 503.44682,211.37696 367.17669,390.70219 Z M 559.52169,390.8049 469.01289,265.00644 606.41773,85.596933 h 24.48173 L 519.34879,231.53848 633.03722,390.8049 Z"
|
||||
id="path11" />
|
||||
<path
|
||||
id="P1"
|
||||
d="m 486.41071,143.82651 c -8.85103,0 -18.30729,0.68536 -26.82011,1.50253 15.16593,19.77999 27.75007,36.52951 42.23287,55.55188 -8.12876,-17.49293 -24.83564,-34.26759 -19.05997,-42.89467 5.71717,-8.53969 16.25107,-7.10232 17.05346,-7.10232 16.88849,0 33.14525,1.90739 48.34375,5.4375 l 3.5625,-4.90625 c -20.27081,-5.21826 -42.28849,-7.58867 -65.3125,-7.58867 z m 91.46875,15.96367 -3.28125,4.6875 c 46.8258,18.33664 78.5,53.36029 78.5,93.49999 0,59.10603 -68.66485,107.0625 -153.28125,107.0625 -84.6164,-10e-6 -153.3125,-47.95648 -153.3125,-107.0625 1e-5,-32.18776 20.37158,-61.08002 52.59375,-80.71874 l -9.90625,-15.09375 c -50.54614,21.43183 -84.09374,59.04962 -84.09375,101.87499 0,66.63368 81.2225,120.6875 181.3125,120.6875 100.08999,0 181.34374,-54.05381 181.34375,-120.6875 0,-44.43292 -36.12255,-83.29245 -89.875,-104.24999 z"
|
||||
style="fill:url(#LO)" />
|
||||
</g>
|
||||
<rect
|
||||
x="322.36493"
|
||||
y="180.85307"
|
||||
width="0.50507629"
|
||||
height="0"
|
||||
id="rect16" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -0,0 +1,73 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 12.7 12.7"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="drawer-closed.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<sodipodi:namedview
|
||||
id="namedview7"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:zoom="6.6340405"
|
||||
inkscape:cx="3.1654917"
|
||||
inkscape:cy="25.097827"
|
||||
inkscape:window-width="1132"
|
||||
inkscape:window-height="576"
|
||||
inkscape:window-x="62"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="layer1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid9" />
|
||||
</sodipodi:namedview>
|
||||
<defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
id="rect85"
|
||||
style="fill:#ffffff;fill-rule:evenodd;stroke-width:0.132288"
|
||||
d="M 4.6963541,6.3497502 8.0036458,8.3340001 V 4.3655002 Z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata676">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
|
@ -0,0 +1,73 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 12.7 12.7"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="drawer-open.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#">
|
||||
<sodipodi:namedview
|
||||
id="namedview7"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:zoom="6.6340405"
|
||||
inkscape:cx="3.1654917"
|
||||
inkscape:cy="25.097827"
|
||||
inkscape:window-width="1024"
|
||||
inkscape:window-height="576"
|
||||
inkscape:window-x="62"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="layer1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid9" />
|
||||
</sodipodi:namedview>
|
||||
<defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
id="rect85"
|
||||
style="fill:#ffffff;fill-rule:evenodd;stroke-width:0.132288"
|
||||
d="M 8.0036458,6.3497502 4.6963541,8.3340001 V 4.3655002 Z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata602">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
|
||||
</cc:Work>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
|
@ -1,21 +1,78 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="431" height="345" version="1.1">
|
||||
<style type="text/css"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs>
|
||||
<linearGradient id="LO" gradientUnits="userSpaceOnUse" x1="319.20822" y1="235.14877" x2="657.65295" y2="269.49396">
|
||||
<stop style="stop-color:#e54c18" offset="0"/>
|
||||
<stop style="stop-color:#fec350" offset="1"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g transform="translate(142.2839,-24.99705)">
|
||||
<g transform="translate(-413.2102,-40.70387)">
|
||||
<path d="M342.0739,390.70219L 453.17118,245.44599L 338.79445,85.733013L 412.30881,85.794093L 503.44682,211.37696L 367.17669,390.70219L 342.0739,390.70219 z M559.52169,390.8049L 469.01289,265.00644L 606.41773,85.596933L 630.89946,85.596933L 519.34879,231.53848L 633.03722,390.8049L 559.52169,390.8049z"/>
|
||||
<path id="P1" d="M486.41071,143.82651C 477.55968,143.82651 468.10342,144.51187 459.5906,145.32904C 474.75653,165.10903 487.34067,181.85855 501.82347,200.88092C 493.69471,183.38799 476.98783,166.61333 482.7635,157.98625C 488.48067,149.44656 499.01457,150.88393 499.81696,150.88393C 516.70545,150.88393 532.96221,152.79132 548.16071,156.32143L 551.72321,151.41518C 531.4524,146.19692 509.43472,143.82651 486.41071,143.82651 z M577.87946,159.79018L 574.59821,164.47768C 621.42401,182.81432 653.09821,217.83797 653.09821,257.97767C 653.09821,317.0837 584.43336,365.04017 499.81696,365.04017C 415.20056,365.04016 346.50446,317.08369 346.50446,257.97767C 346.50447,225.78991 366.87604,196.89765 399.09821,177.25893L 389.19196,162.16518C 338.64582,183.59701 305.09822,221.2148 305.09821,264.04017C 305.09821,330.67385 386.32071,384.72767 486.41071,384.72767C 586.5007,384.72767 667.75445,330.67386 667.75446,264.04017C 667.75446,219.60725 631.63191,180.74772 577.87946,159.79018z"/>
|
||||
</g>
|
||||
<rect x="322.36493" y="180.85307" width=".50507629" height="0"/>
|
||||
</g>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
version="1.1"
|
||||
id="svg20"
|
||||
sodipodi:docname="fallback-application.svg"
|
||||
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview22"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="7.148952"
|
||||
inkscape:cx="16.505916"
|
||||
inkscape:cy="25.458277"
|
||||
inkscape:window-width="1856"
|
||||
inkscape:window-height="1030"
|
||||
inkscape:window-x="62"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg20"
|
||||
showguides="false" />
|
||||
<style
|
||||
type="text/css"
|
||||
id="style2"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs
|
||||
id="defs9">
|
||||
<linearGradient
|
||||
id="LO"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="319.20822"
|
||||
y1="235.14877"
|
||||
x2="657.65295"
|
||||
y2="269.49396">
|
||||
<stop
|
||||
style="stop-color:#e54c18"
|
||||
offset="0"
|
||||
id="stop4" />
|
||||
<stop
|
||||
style="stop-color:#fec350"
|
||||
offset="1"
|
||||
id="stop6" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g
|
||||
transform="matrix(0.12,0,0,0.12,15.214064,0.30035442)"
|
||||
id="g18">
|
||||
<g
|
||||
transform="translate(-413.2102,-40.70387)"
|
||||
id="g14">
|
||||
<path
|
||||
d="M 342.0739,390.70219 453.17118,245.44599 338.79445,85.733013 412.30881,85.794093 503.44682,211.37696 367.17669,390.70219 Z M 559.52169,390.8049 469.01289,265.00644 606.41773,85.596933 h 24.48173 L 519.34879,231.53848 633.03722,390.8049 Z"
|
||||
id="path11" />
|
||||
<path
|
||||
id="P1"
|
||||
d="m 486.41071,143.82651 c -8.85103,0 -18.30729,0.68536 -26.82011,1.50253 15.16593,19.77999 27.75007,36.52951 42.23287,55.55188 -8.12876,-17.49293 -24.83564,-34.26759 -19.05997,-42.89467 5.71717,-8.53969 16.25107,-7.10232 17.05346,-7.10232 16.88849,0 33.14525,1.90739 48.34375,5.4375 l 3.5625,-4.90625 c -20.27081,-5.21826 -42.28849,-7.58867 -65.3125,-7.58867 z m 91.46875,15.96367 -3.28125,4.6875 c 46.8258,18.33664 78.5,53.36029 78.5,93.49999 0,59.10603 -68.66485,107.0625 -153.28125,107.0625 -84.6164,-10e-6 -153.3125,-47.95648 -153.3125,-107.0625 1e-5,-32.18776 20.37158,-61.08002 52.59375,-80.71874 l -9.90625,-15.09375 c -50.54614,21.43183 -84.09374,59.04962 -84.09375,101.87499 0,66.63368 81.2225,120.6875 181.3125,120.6875 100.08999,0 181.34374,-54.05381 181.34375,-120.6875 0,-44.43292 -36.12255,-83.29245 -89.875,-104.24999 z"
|
||||
style="fill:url(#LO)" />
|
||||
</g>
|
||||
<rect
|
||||
x="322.36493"
|
||||
y="180.85307"
|
||||
width="0.50507629"
|
||||
height="0"
|
||||
id="rect16" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -1,21 +1,78 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="431" height="345" version="1.1">
|
||||
<style type="text/css"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs>
|
||||
<linearGradient id="LO" gradientUnits="userSpaceOnUse" x1="319.20822" y1="235.14877" x2="657.65295" y2="269.49396">
|
||||
<stop style="stop-color:#e54c18" offset="0"/>
|
||||
<stop style="stop-color:#fec350" offset="1"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g transform="translate(142.2839,-24.99705)">
|
||||
<g transform="translate(-413.2102,-40.70387)">
|
||||
<path d="M342.0739,390.70219L 453.17118,245.44599L 338.79445,85.733013L 412.30881,85.794093L 503.44682,211.37696L 367.17669,390.70219L 342.0739,390.70219 z M559.52169,390.8049L 469.01289,265.00644L 606.41773,85.596933L 630.89946,85.596933L 519.34879,231.53848L 633.03722,390.8049L 559.52169,390.8049z"/>
|
||||
<path id="P1" d="M486.41071,143.82651C 477.55968,143.82651 468.10342,144.51187 459.5906,145.32904C 474.75653,165.10903 487.34067,181.85855 501.82347,200.88092C 493.69471,183.38799 476.98783,166.61333 482.7635,157.98625C 488.48067,149.44656 499.01457,150.88393 499.81696,150.88393C 516.70545,150.88393 532.96221,152.79132 548.16071,156.32143L 551.72321,151.41518C 531.4524,146.19692 509.43472,143.82651 486.41071,143.82651 z M577.87946,159.79018L 574.59821,164.47768C 621.42401,182.81432 653.09821,217.83797 653.09821,257.97767C 653.09821,317.0837 584.43336,365.04017 499.81696,365.04017C 415.20056,365.04016 346.50446,317.08369 346.50446,257.97767C 346.50447,225.78991 366.87604,196.89765 399.09821,177.25893L 389.19196,162.16518C 338.64582,183.59701 305.09822,221.2148 305.09821,264.04017C 305.09821,330.67385 386.32071,384.72767 486.41071,384.72767C 586.5007,384.72767 667.75445,330.67386 667.75446,264.04017C 667.75446,219.60725 631.63191,180.74772 577.87946,159.79018z"/>
|
||||
</g>
|
||||
<rect x="322.36493" y="180.85307" width=".50507629" height="0"/>
|
||||
</g>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
version="1.1"
|
||||
id="svg20"
|
||||
sodipodi:docname="fallback-application.svg"
|
||||
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview22"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="7.148952"
|
||||
inkscape:cx="16.505916"
|
||||
inkscape:cy="25.458277"
|
||||
inkscape:window-width="1856"
|
||||
inkscape:window-height="1030"
|
||||
inkscape:window-x="62"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg20"
|
||||
showguides="false" />
|
||||
<style
|
||||
type="text/css"
|
||||
id="style2"><![CDATA[
|
||||
#P1 {fill:url(#LO)}
|
||||
rect {opacity:.40740739;fill:#000cff;width:.50507629;height:0}
|
||||
]]></style>
|
||||
<defs
|
||||
id="defs9">
|
||||
<linearGradient
|
||||
id="LO"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="319.20822"
|
||||
y1="235.14877"
|
||||
x2="657.65295"
|
||||
y2="269.49396">
|
||||
<stop
|
||||
style="stop-color:#e54c18"
|
||||
offset="0"
|
||||
id="stop4" />
|
||||
<stop
|
||||
style="stop-color:#fec350"
|
||||
offset="1"
|
||||
id="stop6" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g
|
||||
transform="matrix(0.12,0,0,0.12,15.214064,0.30035442)"
|
||||
id="g18">
|
||||
<g
|
||||
transform="translate(-413.2102,-40.70387)"
|
||||
id="g14">
|
||||
<path
|
||||
d="M 342.0739,390.70219 453.17118,245.44599 338.79445,85.733013 412.30881,85.794093 503.44682,211.37696 367.17669,390.70219 Z M 559.52169,390.8049 469.01289,265.00644 606.41773,85.596933 h 24.48173 L 519.34879,231.53848 633.03722,390.8049 Z"
|
||||
id="path11" />
|
||||
<path
|
||||
id="P1"
|
||||
d="m 486.41071,143.82651 c -8.85103,0 -18.30729,0.68536 -26.82011,1.50253 15.16593,19.77999 27.75007,36.52951 42.23287,55.55188 -8.12876,-17.49293 -24.83564,-34.26759 -19.05997,-42.89467 5.71717,-8.53969 16.25107,-7.10232 17.05346,-7.10232 16.88849,0 33.14525,1.90739 48.34375,5.4375 l 3.5625,-4.90625 c -20.27081,-5.21826 -42.28849,-7.58867 -65.3125,-7.58867 z m 91.46875,15.96367 -3.28125,4.6875 c 46.8258,18.33664 78.5,53.36029 78.5,93.49999 0,59.10603 -68.66485,107.0625 -153.28125,107.0625 -84.6164,-10e-6 -153.3125,-47.95648 -153.3125,-107.0625 1e-5,-32.18776 20.37158,-61.08002 52.59375,-80.71874 l -9.90625,-15.09375 c -50.54614,21.43183 -84.09374,59.04962 -84.09375,101.87499 0,66.63368 81.2225,120.6875 181.3125,120.6875 100.08999,0 181.34374,-54.05381 181.34375,-120.6875 0,-44.43292 -36.12255,-83.29245 -89.875,-104.24999 z"
|
||||
style="fill:url(#LO)" />
|
||||
</g>
|
||||
<rect
|
||||
x="322.36493"
|
||||
y="180.85307"
|
||||
width="0.50507629"
|
||||
height="0"
|
||||
id="rect16" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -10,7 +10,10 @@ DIRS = [
|
|||
"/usr/share/applications"
|
||||
]
|
||||
|
||||
print("Welcome to shitty link cleaner PRO v1.3.3.7 patch 666")
|
||||
print("Welcome to shitty link cleaner PRO v1.3.3.7 patch 666 (PG edition; GOTY version; DLSS+Raytracing patch)")
|
||||
|
||||
incorrect_prompt = "What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little \"clever\" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo. \n\nSo, y/n?"
|
||||
|
||||
|
||||
isroot = (os.environ["USER"] == "root")
|
||||
engage = []
|
||||
|
@ -19,12 +22,12 @@ for directory in DIRS:
|
|||
p = Path(directory)
|
||||
dfiles = list(p.glob('./*.desktop'))
|
||||
if (not isroot) and p.owner() != os.environ["USER"]:
|
||||
print("Unable to engage "+directory+" motherfucker - i'm not root and i refuse to delete anything in another user's dir.")
|
||||
print("I am unable to can clean the "+directory+" directory, for I am rootn't ")
|
||||
else:
|
||||
print("Engage "+directory+" motherfucker ("+str(len(dfiles))+" files)")
|
||||
print("Mr clean "+directory+" ("+str(len(dfiles))+" files)")
|
||||
answer = input("[y/n?]: ")
|
||||
while not (answer in ["y","n"]):
|
||||
print("Bitch please speak clearly, y/n?")
|
||||
print(incorrect_prompt)
|
||||
answer = input("[y/n?]: ")
|
||||
if answer == "y":
|
||||
print("Added "+directory+" to cleaning list.")
|
||||
|
@ -41,7 +44,7 @@ for f in engage:
|
|||
print(str(f)+" doesn't seem to have an Exec field. delet?")
|
||||
answer = input("[y/n?]: ")
|
||||
while not (answer in ["y","n"]):
|
||||
print("Bitch please speak clearly, y/n?")
|
||||
print(incorrect_prompt)
|
||||
answer = input("[y/n?]: ")
|
||||
if answer == "y":
|
||||
print(str(f)+" delet")
|
||||
|
@ -53,10 +56,10 @@ for f in engage:
|
|||
comm = None
|
||||
for arg in args:
|
||||
if arg == "env":
|
||||
print("Assuming 'env' is not the target binary - skipping...")
|
||||
print("Assuming 'env' is not the target binary")
|
||||
continue
|
||||
if "=" in arg:
|
||||
print("Assuming '"+arg+"' is an environment variable - skipping...")
|
||||
print("Assuming '"+arg+"' is an environment variable")
|
||||
continue
|
||||
comm = arg
|
||||
break
|
||||
|
@ -64,7 +67,7 @@ for f in engage:
|
|||
print("Weirdly enough, "+str(f)+" has an exec, but no target. delet?")
|
||||
answer = input("[y/n?]: ")
|
||||
while not (answer in ["y","n"]):
|
||||
print("Bitch please speak clearly, y/n?")
|
||||
print(incorrect_prompt)
|
||||
answer = input("[y/n?]: ")
|
||||
if answer == "y":
|
||||
print(str(f)+" delet")
|
||||
|
@ -88,7 +91,7 @@ for f in engage:
|
|||
print(comm+" doesn't seem to exist. delet?")
|
||||
answer = input("[y/n?]: ")
|
||||
while not (answer in ["y","n"]):
|
||||
print("Bitch please speak clearly, y/n?")
|
||||
print(incorrect_prompt)
|
||||
answer = input("[y/n?]: ")
|
||||
if answer == "y":
|
||||
print(str(f)+" delet")
|
||||
|
|
|
@ -31,7 +31,8 @@ return function(args)
|
|||
local icon_name = out:match("icon%-name:%s+'(battery%-[^']+)'")
|
||||
local value = out:match("percentage:%s+(%d+%%)")
|
||||
icon:get_children_by_id("widget_icon")[1].image =
|
||||
style[icon_name:gsub("%-","_")]
|
||||
style[(icon_name or ""):gsub("%-","_")] or
|
||||
style["battery_missing_symbolic"]
|
||||
if args.percentage and value then
|
||||
icon:get_children_by_id("widget_text")[1].markup = value
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ local get_app_volume = function(pid)
|
|||
for key,process in pairs(get_pactl_data()) do
|
||||
-- Match app by pid
|
||||
if process:match("application.process.id = \""..tostring(pid).."\"") then
|
||||
return process:match("Volume: .-(%d?%d?%d)%%")
|
||||
return tonumber(process:match("Volume: .-(%d?%d?%d)%%"))
|
||||
end
|
||||
end
|
||||
-- Return nil and an error if not found matching process
|
||||
|
@ -93,7 +93,7 @@ return function(args)
|
|||
if value then
|
||||
slider.value = value
|
||||
widget.children[2] = slider
|
||||
widget.children[1].image = get_icon(tonumber(value))
|
||||
widget.children[1].image = get_icon(value)
|
||||
else
|
||||
warning_text.markup = err
|
||||
widget.children[2] = warning_text
|
||||
|
@ -102,7 +102,7 @@ return function(args)
|
|||
end)
|
||||
slider:connect_signal("widget::redraw_needed",function()
|
||||
set_app_volume(client.focus.pid,slider.value)
|
||||
widget.children[1].image = get_icon(tonumber(slider.value))
|
||||
widget.children[1].image = get_icon(slider.value)
|
||||
end)
|
||||
else
|
||||
warning_text.markup = "pactl is not available"
|
||||
|
|
|
@ -59,33 +59,69 @@ return function(args)
|
|||
s.lockscreen = awful.popup({
|
||||
widget = {
|
||||
{
|
||||
--Top bar
|
||||
-- Bottom layer
|
||||
{
|
||||
{
|
||||
--Top bar
|
||||
{
|
||||
markup = "AwesomewWM",
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
{
|
||||
widget = wibox.container.background
|
||||
{
|
||||
-- Top bar contents
|
||||
{
|
||||
markup = "AwesomewWM",
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
{
|
||||
widget = wibox.container.background
|
||||
},
|
||||
{
|
||||
require("widgets.battery")({
|
||||
percentage = true
|
||||
}),
|
||||
wibox.widget.textclock(),
|
||||
widget = wibox.container.background,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
layout = wibox.layout.align.horizontal,
|
||||
},
|
||||
widget = wibox.container.margin,
|
||||
left = 5,
|
||||
right = 5
|
||||
},
|
||||
{
|
||||
require("widgets.battery")({percentage = true}),
|
||||
wibox.widget.textclock(),
|
||||
widget = wibox.container.background,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
layout = wibox.layout.align.horizontal,
|
||||
widget = wibox.container.background,
|
||||
forced_width = s.geometry.width,
|
||||
forced_height = style.lockscreen_bar_height or 25,
|
||||
bg = style.lockscreen_bar_bg or
|
||||
style.lockscreen_bg_normal
|
||||
},
|
||||
widget = wibox.container.background,
|
||||
forced_width = s.geometry.width,
|
||||
forced_height = style.lockscreen_bar_height or 25,
|
||||
bg = style.lockscreen_bar_bg or style.lockscreen_bg_normal
|
||||
{
|
||||
--Drop shadow
|
||||
{
|
||||
markup = "",
|
||||
widget = wibox.widget.textbox,
|
||||
},
|
||||
widget = wibox.container.background,
|
||||
forced_height = style.lockscreen_bar_shadow or 5,
|
||||
forced_width = s.geometry.width,
|
||||
bg = {
|
||||
-- Gradient
|
||||
type = "linear",
|
||||
from = { 0, 0 },
|
||||
to = { 0, style.lockscreen_bar_shadow or 5},
|
||||
stops = {
|
||||
{ 0, style.lockscreen_bar_shadow_color_start or
|
||||
"#00000055" },
|
||||
{ 1, style.lockscreen_bar_shadow_color_end or
|
||||
"#00000000" }
|
||||
}
|
||||
}
|
||||
},
|
||||
layout = wibox.layout.fixed.vertical
|
||||
},
|
||||
widget = wibox.container.place,
|
||||
valign = "top",
|
||||
halign = "center"
|
||||
},{
|
||||
},
|
||||
{
|
||||
--Combo box (face, nickname, password entry)
|
||||
style.container({
|
||||
(read("./.face") and style.container {
|
||||
|
|
|
@ -21,7 +21,7 @@ return function(widget,list,max_elements)
|
|||
end
|
||||
end
|
||||
function new_pager:next()
|
||||
if #list >= self.index*self.max then
|
||||
if #list >= (self.index+1)*self.max then
|
||||
self.index = self.index + 1
|
||||
new_pager:update()
|
||||
end
|
||||
|
|
|
@ -138,9 +138,13 @@ local function loader(options)
|
|||
end
|
||||
end)
|
||||
elseif type(v[2]) == "function" then
|
||||
new_button:connect_signal("button::press",v[2])
|
||||
new_button:connect_signal("button::press",function()
|
||||
cascade_close(tree_path,1)
|
||||
v[2]()
|
||||
end)
|
||||
elseif type(v[2]) == "string" then
|
||||
new_button:connect_signal("button::press",function()
|
||||
cascade_close(tree_path,1)
|
||||
awful.spawn(v[2])
|
||||
end)
|
||||
end
|
||||
|
@ -152,9 +156,6 @@ local function loader(options)
|
|||
menu.current_button = new_button
|
||||
menu.current_button.bg = button_bg_on
|
||||
end)
|
||||
new_button:connect_signal("button::press",function()
|
||||
cascade_close(tree_path,1)
|
||||
end)
|
||||
table.insert(menu,new_button)
|
||||
end
|
||||
end
|
||||
|
@ -182,7 +183,10 @@ local function loader(options)
|
|||
end
|
||||
tree_path[1] = menu
|
||||
menu.visible = (not menu.visible)
|
||||
end
|
||||
end
|
||||
menu.show = function(self)
|
||||
menu.toggle()
|
||||
end
|
||||
return menu
|
||||
end
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ local awmtk = require("awmtk")
|
|||
function unitybar(s,args)
|
||||
local style = awmtk.style(awmtk.defaults,args.style or {},"unitybar_")
|
||||
s.myunitybar = awful.wibar({
|
||||
position = "left",
|
||||
position = args.position or "left",
|
||||
screen = s,
|
||||
border_width = style.unitybar_border_width or 1,
|
||||
border_color = style.unitybar_border_color or "#262626AA",
|
||||
|
@ -13,7 +13,21 @@ function unitybar(s,args)
|
|||
(type(style.bg_normal) == "string") and
|
||||
(style.bg_normal:len() < 8) and
|
||||
style.bg_normal.."AA"),
|
||||
width = style.unitybar_width or 50,
|
||||
width = (function()
|
||||
if (not args.position) or
|
||||
(args.position == "left") or
|
||||
(args.position == "right")
|
||||
then
|
||||
return style.unitybar_width or 50
|
||||
end
|
||||
end)(),
|
||||
height = (function()
|
||||
if (args.position == "bottom") or
|
||||
(args.posiiton == "top")
|
||||
then
|
||||
return style.unitybar_width or 50
|
||||
end
|
||||
end)()
|
||||
})
|
||||
local top_widgets = {
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
|
@ -31,7 +45,15 @@ function unitybar(s,args)
|
|||
widget = wibox.container.margin,
|
||||
margins = style.unitybar_inner_margin,
|
||||
{
|
||||
layout = wibox.layout.align.vertical,
|
||||
layout = (function()
|
||||
if (s.myunitybar.position == "left") or
|
||||
(s.myunitybar.position == "right")
|
||||
then
|
||||
return wibox.layout.align.vertical
|
||||
else
|
||||
return wibox.layout.align.horizontal
|
||||
end
|
||||
end)(),
|
||||
top_widgets,
|
||||
{ --Middle spacer
|
||||
widget = wibox.container.background
|
||||
|
|