various QOL improvements

This commit is contained in:
Yessiest 2023-03-11 03:35:55 +04:00
parent a3cfb76c48
commit 0b6b06b6a7
29 changed files with 135 additions and 40 deletions

View File

@ -62,7 +62,10 @@ end
desc "Uninstall from .config" desc "Uninstall from .config"
task :clean do task :clean do
rm_rf "#{ConfigPath}/awesome" base = ["libs","modules","themes","widgets","rc.lua"]
base.each { |x|
rm_rf "#{ConfigPath}/awesome/"+x
}
end end
desc "Wipe configuration and reinstall from scratch" desc "Wipe configuration and reinstall from scratch"

View File

@ -3,7 +3,7 @@
terminal = "$HOME/.local/bin/st" terminal = "$HOME/.local/bin/st"
browser = "prime-run librewolf" browser = "prime-run librewolf"
modkey = "Mod4" modkey = "Mod4"
theme = "unity" theme = "reno98"
shell = "zsh" shell = "zsh"
# Keybindings # Keybindings

View File

@ -232,3 +232,16 @@ client.connect_signal("manage",function(c)
end end
end) end)
end --}}} end --}}}
-- Find a client to focus on
for s in screen do
for _,t in pairs(awful.tag.gettags(s)) do
t:connect_signal("property::selected", function(t)
if not client.focus then
local c = t:clients()[1]
if c then
client.focus = c
end
end
end)
end
end

12
themes/reno98/COPYRIGHT Normal file
View File

@ -0,0 +1,12 @@
Notice: all assets in the layouts directory and taglist directory, as well as submenu.png, belong to the AwesomeWM team and respective authors of these assets.
The following assets in the titlebar directory are made specifically for reno98 and are licensed under CC0:
close_focus.png
close_normal.png
maximized_focus_inactive.png
maximized_normal_inactive.png
maximized_normal_active.png
minimize_focus.png
minimize_normal.png
Other assets in the directory are kept from the default theme of AwesomeWM and belong to the respecitve authors.

View File

@ -1,7 +1,7 @@
{ {
"widgets.dismal":{ "widgets.dismal":{
"x":0, "pos":"top_left",
"y":26 "ignore_wibars":false
}, },
"widgets.rootmenu":{}, "widgets.rootmenu":{},
"widgets.lockscreen":{}, "widgets.lockscreen":{},

View File

@ -1,3 +1,3 @@
Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt) Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt)
To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno98 icons To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno icons

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -325,6 +325,7 @@ theme["battery-missing-symbolic"] = themes_path.."reno98/icons/battery-missing-s
theme["ac-adapter-symbolic"] = themes_path.."reno98/icons/ac-adapter-symbolic.png" theme["ac-adapter-symbolic"] = themes_path.."reno98/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."reno98/icons/backlight-symbolic.png" theme["backlight-symbolic"] = themes_path.."reno98/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."reno98/icons/notifications-area-symbolic.png" theme["notifications-area-symbolic"] = themes_path.."reno98/icons/notifications-area-symbolic.png"
theme["notifications-area-flagged-symbolic"] = themes_path.."reno98/icons/notifications-area-flagged-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."reno98/icons/mpc-previous-symbolic.png" theme["mpc-previous-symbolic"] = themes_path.."reno98/icons/mpc-previous-symbolic.png"

12
themes/serenity/COPYRIGHT Normal file
View File

@ -0,0 +1,12 @@
Notice: all assets in the layouts directory and taglist directory, as well as submenu.png, belong to the AwesomeWM team and respective authors of these assets.
The following assets in the titlebar directory are made specifically for reno98 and are licensed under CC0:
close_focus.png
close_normal.png
maximized_focus_inactive.png
maximized_normal_inactive.png
maximized_normal_active.png
minimize_focus.png
minimize_normal.png
Other assets in the directory are kept from the default theme of AwesomeWM and belong to the respecitve authors.

View File

@ -1,7 +1,7 @@
{ {
"widgets.dismal":{ "widgets.dismal":{
"x":0, "pos":"top_left",
"y":26 "ignore_wibars":false
}, },
"widgets.rootmenu":{}, "widgets.rootmenu":{},
"widgets.lockscreen":{}, "widgets.lockscreen":{},

View File

@ -1,3 +1,3 @@
Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt) Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt)
To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno98 icons To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno icons

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -427,6 +427,7 @@ theme["battery-missing-symbolic"] = themes_path.."serenity/icons/battery-missing
theme["ac-adapter-symbolic"] = themes_path.."serenity/icons/ac-adapter-symbolic.png" theme["ac-adapter-symbolic"] = themes_path.."serenity/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."serenity/icons/backlight-symbolic.png" theme["backlight-symbolic"] = themes_path.."serenity/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."serenity/icons/notifications-area-symbolic.png" theme["notifications-area-symbolic"] = themes_path.."serenity/icons/notifications-area-symbolic.png"
theme["notifications-area-flagged-symbolic"] = themes_path.."serenity/icons/notifications-area-flagged-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."serenity/icons/mpc-previous-symbolic.png" theme["mpc-previous-symbolic"] = themes_path.."serenity/icons/mpc-previous-symbolic.png"

14
themes/unity/COPYRIGHT Normal file
View File

@ -0,0 +1,14 @@
Notice: all assets in the layouts directory and taglist directory, as well as submenu.png, belong to the AwesomeWM team and respective authors of these assets.
The following assets in the titlebar directory are taken from the Ambiance theme:
close_focus.png
close_normal.png
maximized_focus_inactive.png
maximized_normal_inactive.png
maximized_normal_active.png
minimize_focus.png
minimize_normal.png
Other assets in the directory are kept from the default theme of AwesomeWM and belong to the respecitve authors.
background.png art is taken from Ubuntu release 20.04

View File

@ -1,3 +1,3 @@
A compositor (like compton) is ***required*** for this theme to work as intended. A compositor (like compton) is ***required*** for this theme to work as intended.
This is in part due to the fact that it makes the top bar look less bland, and in part due to the fact that your titlebar corners will look weird otherwise (the corners won't be properly cut). This is in part due to the fact that it makes the top bar look less bland, and in part due to the fact that your titlebar corners will look weird otherwise (the corners won't be properly cut).
You may, of course, dismiss using a compositor, but don't tell me about not exactly round corners being a "bug" in this theme afterwards - it's the best you can get with Awesome. You may, of course, dismiss using a compositor, but don't tell me about not exactly round corners being a "bug" in this theme afterwards - it's the best you can get with X11.

View File

@ -1,7 +1,7 @@
{ {
"widgets.dismal":{ "widgets.dismal":{
"x":0, "pos":"top_left",
"y":26 "ignore_wibars":false
}, },
"widgets.rootmenu":{}, "widgets.rootmenu":{},
"widgets.lockscreen":{}, "widgets.lockscreen":{},

View File

@ -1,3 +1,3 @@
Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt) Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt)
To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno98 icons To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno icons

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -227,6 +227,7 @@ theme["battery-missing-symbolic"] = themes_path.."unity/icons/battery-missing-sy
theme["ac-adapter-symbolic"] = themes_path.."unity/icons/ac-adapter-symbolic.png" theme["ac-adapter-symbolic"] = themes_path.."unity/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."unity/icons/backlight-symbolic.png" theme["backlight-symbolic"] = themes_path.."unity/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."unity/icons/notifications-area-symbolic.png" theme["notifications-area-symbolic"] = themes_path.."unity/icons/notifications-area-symbolic.png"
theme["notifications-area-flagged-symbolic"] = themes_path.."unity/icons/notifications-area-flagged-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."unity/icons/mpc-previous-symbolic.png" theme["mpc-previous-symbolic"] = themes_path.."unity/icons/mpc-previous-symbolic.png"
@ -265,6 +266,7 @@ for _,v in pairs({
"ac-adapter-symbolic", "ac-adapter-symbolic",
"backlight-symbolic", "backlight-symbolic",
"notifications-area-symbolic", "notifications-area-symbolic",
"notifications-area-flagged-symbolic",
"mpc-previous-symbolic", "mpc-previous-symbolic",
"mpc-play-symbolic", "mpc-play-symbolic",
"mpc-pause-symbolic", "mpc-pause-symbolic",

View File

@ -0,0 +1,14 @@
Notice: all assets in the layouts directory and taglist directory, as well as submenu.png, belong to the AwesomeWM team and respective authors of these assets.
The following assets in the titlebar directory are taken from the Ambiance theme:
close_focus.png
close_normal.png
maximized_focus_inactive.png
maximized_normal_inactive.png
maximized_normal_active.png
minimize_focus.png
minimize_normal.png
Other assets in the directory are kept from the default theme of AwesomeWM and belong to the respecitve authors.
background.png art is taken from Ubuntu release 20.04

View File

@ -1,3 +1,3 @@
A compositor (like compton) is ***required*** for this theme to work as intended. A compositor (like compton) is ***required*** for this theme to work as intended.
This is in part due to the fact that it makes the top bar look less bland, and in part due to the fact that your titlebar corners will look weird otherwise (the corners won't be properly cut). This is in part due to the fact that it makes the top bar look less bland, and in part due to the fact that your titlebar corners will look weird otherwise (the corners won't be properly cut).
You may, of course, dismiss using a compositor, but don't tell me about not exactly round corners being a "bug" in this theme afterwards - it's the best you can get with Awesome. You may, of course, dismiss using a compositor, but don't tell me about not exactly round corners being a "bug" in this theme afterwards - it's the best you can get with X11.

View File

@ -1,7 +1,7 @@
{ {
"widgets.dismal":{ "widgets.dismal":{
"x":0, "pos":"top_left",
"y":26 "ignore_wibars":false
}, },
"widgets.rootmenu":{}, "widgets.rootmenu":{},
"widgets.lockscreen":{}, "widgets.lockscreen":{},

View File

@ -1,3 +1,3 @@
Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt) Licensed under conditions of CC0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt)
To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno98 icons To the extent possible under law, Yessiest (yessiest@memeware.net) has waived all copyright and related or neighboring rights to Reno icons

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -227,6 +227,7 @@ theme["battery-missing-symbolic"] = themes_path.."unity_mate/icons/battery-missi
theme["ac-adapter-symbolic"] = themes_path.."unity_mate/icons/ac-adapter-symbolic.png" theme["ac-adapter-symbolic"] = themes_path.."unity_mate/icons/ac-adapter-symbolic.png"
theme["backlight-symbolic"] = themes_path.."unity_mate/icons/backlight-symbolic.png" theme["backlight-symbolic"] = themes_path.."unity_mate/icons/backlight-symbolic.png"
theme["notifications-area-symbolic"] = themes_path.."unity_mate/icons/notifications-area-symbolic.png" theme["notifications-area-symbolic"] = themes_path.."unity_mate/icons/notifications-area-symbolic.png"
theme["notifications-area-flagged-symbolic"] = themes_path.."unity_mate/icons/notifications-area-flagged-symbolic.png"
theme["mpc-previous-symbolic"] = themes_path.."unity_mate/icons/mpc-previous-symbolic.png" theme["mpc-previous-symbolic"] = themes_path.."unity_mate/icons/mpc-previous-symbolic.png"
@ -265,6 +266,7 @@ for _,v in pairs({
"ac-adapter-symbolic", "ac-adapter-symbolic",
"backlight-symbolic", "backlight-symbolic",
"notifications-area-symbolic", "notifications-area-symbolic",
"notifications-area-flagged-symbolic",
"mpc-previous-symbolic", "mpc-previous-symbolic",
"mpc-play-symbolic", "mpc-play-symbolic",
"mpc-pause-symbolic", "mpc-pause-symbolic",

View File

@ -53,6 +53,32 @@ return function(args)
popup.visible = false popup.visible = false
end end
end) end)
-- create popup button
local clip_widget
local clip_icon
do
local style = awmtk2.create_style("notifications",
awmtk2.generic.iconified_widget,args.style,args.vertical)
local templates = awmtk2.create_template_lib("notifications",awmtk2.templates,args.templates)
local t = awmtk2.build_templates(templates,style,args.vertical)
clip_widget = wibox.widget(t.button(t.icon({
image = beautiful["notifications-area-symbolic"],
id = "notification-icon",
resize = true,
})))
clip_icon = clip_widget:get_children_by_id("notification-icon")[1]
clip_widget:connect_signal("button::press",style.button.onpress)
clip_widget:connect_signal("button::release",style.button.onrelease)
clip_widget:connect_signal("button::press",function(self,x,y,button)
clip_icon.image = beautiful["notifications-area-symbolic"]
if button == 1 then
popup.visible = (not popup.visible)
if popup.visible then
popup:move_next_to(mouse.current_widget_geometry)
end
end
end)
end
naughty.config.notify_callback = function(update_args) naughty.config.notify_callback = function(update_args)
count = count + 1 count = count + 1
local w = wibox.widget(t.button(t.article({ local w = wibox.widget(t.button(t.article({
@ -86,29 +112,8 @@ return function(args)
end) end)
table.insert(pager.list,1,w) table.insert(pager.list,1,w)
pager:update() pager:update()
clip_icon.image = beautiful["notifications-area-flagged-symbolic"]
return update_args return update_args
end end
-- create popup button
local clip_widget
do
local style = awmtk2.create_style("notifications",
awmtk2.generic.iconified_widget,args.style,args.vertical)
local templates = awmtk2.create_template_lib("notifications",awmtk2.templates,args.templates)
local t = awmtk2.build_templates(templates,style,args.vertical)
clip_widget = wibox.widget(t.button(t.icon({
image = beautiful["notifications-area-symbolic"],
resize = true,
})))
clip_widget:connect_signal("button::press",style.button.onpress)
clip_widget:connect_signal("button::release",style.button.onrelease)
clip_widget:connect_signal("button::press",function(self,x,y,button)
if button == 1 then
popup.visible = (not popup.visible)
if popup.visible then
popup:move_next_to(mouse.current_widget_geometry)
end
end
end)
end
return clip_widget return clip_widget
end end

View File

@ -75,6 +75,23 @@ return function(args)
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
spacing = style.container.spacing spacing = style.container.spacing
})) }))
local available_positions = {
top_left = awful.placement.top_left,
top_right = awful.placement.top_right,
bottom_left = awful.placement.bottom_left,
bottom_right = awful.placement.bottom_right,
left = awful.placement.left,
right = awful.placement.right,
top = awful.placement.top,
bottom = awful.placement.bottom,
centered = awful.placement.centered
}
local honor_workarea = true
if (args.ignore_wibars) then
honor_workarea = false
end
local popup_position = (args.pos and available_positions[args.pos])
or available_positions["top_left"]
local button_cache = gears.cache(function(name,exec,description,icon,key) local button_cache = gears.cache(function(name,exec,description,icon,key)
-- beacause apparently cache doesn't allow nil values -- beacause apparently cache doesn't allow nil values
if icon == "" then icon = nil end if icon == "" then icon = nil end
@ -208,9 +225,8 @@ return function(args)
ask.k(":dismal.run", function() ask.k(":dismal.run", function()
results_list:reset() results_list:reset()
dismal.visible = true dismal.visible = true
dismal.x = args.x or 0
dismal.y = args.y or 0
if dismal.visible then if dismal.visible then
popup_position(dismal,{honor_workarea=honor_workarea})
awful.prompt.run { awful.prompt.run {
prompt = "<b>Run: </b>", prompt = "<b>Run: </b>",
textbox = input_field, textbox = input_field,