Fixed README.md, fixed multiple typos, set sensible defaults for desktop.conf

This commit is contained in:
Yessiest 2023-08-16 23:40:39 +04:00
parent 1b7cc116dc
commit f9e933bebf
11 changed files with 39 additions and 26 deletions

View File

@ -16,18 +16,24 @@ Thanks to the ethically questionable decision of employing JSON to Widget Layout
## Installation ## Installation
The installation process is not much different from the previous iteration, except this time the window manager does not crash if you don't install luapam. Instead, the lock widget will simply refuse to operate. Reno internally requires [ImageMagick](https://imagemagick.org/) to generate thumbnails for images. Please consider installing ImageMagick for things to function correctly.
1. `git clone` the repository to your .config folder 1. `git clone` the repository to your .config folder
2. Rename `reno` folder to `awesome` 2. Rename `reno` folder to `awesome`
3. Install AwesomeWM (version 4.3 as of right now) 3. Install AwesomeWM (version 4.3 as of right now)
4. (Optional) Read additional installation steps in `extra/README.md` 4. Change your shell, terminal emulator, browser, keybindings and other settings in `desktop.conf`
5. (Optional) Read additional installation steps in `extra/README.md`
6. Reload your awesomewm if you have already loaded it.
## Keybindings and user guide ## Keybindings and user guide
- press win+s - press win+s
- read extra/README.md - read extra/README.md
- enjoy - enjoy
## Feedback
Your feedback would be highly appreciated. However, please understand that I may not be able to answer all of your issues in a timely manner.
## Roadmap ## Roadmap
- [x] Port widgets from original config to AWMTK2 - [x] Port widgets from original config to AWMTK2

View File

@ -1,10 +1,15 @@
# Global variables # Global variables
[global] [global]
terminal = "st" # Your preferred terminal emulator
browser = "librewolf" terminal = "xterm"
# Your preferred browser (opens the first one available by default)
browser = "xdg-open about:blank"
# Your modkey (Mod4 = Super key (Win key))
modkey = "Mod4" modkey = "Mod4"
# Your theme (one of the themes available in ./themes/)
theme = "unity" theme = "unity"
shell = "zsh" # Your shell (currently doesn't do much, preferrably should remain the same)
shell = "bash"
# Keybindings # Keybindings
# Format: <modifier>(+<modifier>+...)+<key> = "<command or :internal.function>" # Format: <modifier>(+<modifier>+...)+<key> = "<command or :internal.function>"
@ -77,9 +82,9 @@ KP_Delete = ":macro.loop"
# Power manager module # Power manager module
[powerman] [powerman]
# Bad battery condition warning threshold # Bad battery condition warning threshold (in %)
battery_quality_min = 33 battery_quality_min = 33
# Low battery warning threshold # Low battery warning threshold (in %)
battery_capacity_min = 15 battery_capacity_min = 15
# Process to execute on low battery # Process to execute on low battery
on_low_battery = "" on_low_battery = ""

View File

@ -143,7 +143,7 @@ awmtk.proto_style = {
-- } -- }
-- { callbacks -- { callbacks
-- a tiny bit more complex thing to account for more extensibility -- a tiny bit more complex thing to account for more extensibility
-- the stub functions do nothing - you should implement functionality inside theme -- the stub functions do nothing - you should implement functionality inside the theme
onpress = function() end, onpress = function() end,
onrelease = function() end, onrelease = function() end,
-- } -- }
@ -463,7 +463,7 @@ awmtk.proto_templates = {
end, end,
wibar = function(style) wibar = function(style)
-- just you regular old wibar, but as a style template. -- just your regular old wibar, but as a style template.
return function(layout,options) return function(layout,options)
local margins = style.wibar.margins local margins = style.wibar.margins
if (style.wibar.left or if (style.wibar.left or

View File

@ -5,7 +5,7 @@
-- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-- --
-- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>. -- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
-- Powerman X - second generation of the power management daemon -- Powerman X - second generation of the power management module
local awful = require("awful") local awful = require("awful")
local sysctl = require("syscontrol") local sysctl = require("syscontrol")
local naughty = require("naughty") local naughty = require("naughty")

View File

@ -494,7 +494,7 @@ theme.widgets = {
}, },
-- awesomewm: yo pass me that pango markup -- awesomewm: yo pass me that pango markup
-- pango: you better not make unintuitive cryptic shit -- pango: you better not make unintuitive cryptic shit
-- awesomewm: *attach foreground setting to drawable container* -- awesomewm: *attaches foreground text color setting to container*
fg_normal = "#FAFAFA" fg_normal = "#FAFAFA"
} }
}, },

View File

@ -636,9 +636,6 @@ theme.widgets = {
return gears.shape.rounded_rect(cr,width,height,0) return gears.shape.rounded_rect(cr,width,height,0)
end, end,
margins = 0, margins = 0,
-- WARNING: Change this to true only if you're wiliing to take
-- the visual performance impact from cairo re-rendering the
-- canvas a lot!
transparent = true transparent = true
}, },
icon = { icon = {

View File

@ -21,7 +21,7 @@ return function(args)
if args.vertical then if args.vertical then
widget:get_children_by_id("systray")[1]:set_horizontal(false) widget:get_children_by_id("systray")[1]:set_horizontal(false)
end end
-- Part of a private API -- Stolen from the API. Apparently this function is entirely undocumented.
if awesome.systray() == 0 then if awesome.systray() == 0 then
widget.visible = false widget.visible = false
end end

View File

@ -15,7 +15,7 @@ local syscontrol = require("syscontrol")
local ask = require("asckey") local ask = require("asckey")
local function get_virtual_icon(data) local function get_virtual_icon(data)
-- Get an icon from a cumulative total of battery percentages and current charging state -- Get an icon from average of total battery percentage and current charging state
local count = 0 local count = 0
local cumulative = 0 local cumulative = 0
local name = "battery-" local name = "battery-"
@ -142,7 +142,7 @@ return function(args)
percentage_map["charge"] = data.online percentage_map["charge"] = data.online
end end
end end
-- "Virtual" here means a battery that displays the state of a cumulative total of all attached batteries (as if there are any devices that even have more than 1 battery) -- "Virtual" here means an abstract icon that represents the average state of all batteries.
local function update_virtual_battery() local function update_virtual_battery()
local icon = battery_widget:get_children_by_id("virtual_id")[1] local icon = battery_widget:get_children_by_id("virtual_id")[1]
local percentage = battery_widget:get_children_by_id("percentage_id")[1] local percentage = battery_widget:get_children_by_id("percentage_id")[1]

View File

@ -60,13 +60,17 @@ return function(args)
return return
end end
local textbox = self:get_children_by_id("text_role")[1] or {} local textbox = self:get_children_by_id("text_role")[1] or {}
-- Apparently the original system for changing bgimage is -- Apparently the original system for changing
-- the bgimage of a tasklist is
-- 1) broken -- 1) broken
-- 2) uses deprecated functions (nice code practices awesomewm) -- 2) uses deprecated functions (nice code practices awesomewm)
-- Solution: write my own. I blame material design for all this. -- Solution: write my own. I blame material design for all this.
-- (P.S: Not to bullshit you, check it yourself - replicatable -- (P.S: Not to bullshit you, check it yourself:
-- by adding theme.tasklist_bg_image_normal or -- you can replicate this by adding
-- theme.tasklist_bg_image_focus in current beautiful theme.) -- ``theme.tasklist_bg_image_normal``
-- or
-- ``theme.tasklist_bg_image_focus``
-- in the default awesomewm config.)
local onfocus = function() local onfocus = function()
self.bgimage = style.button.bgimage_focus self.bgimage = style.button.bgimage_focus
self.bg = style.button.bg_focus self.bg = style.button.bg_focus
@ -112,6 +116,7 @@ return function(args)
end end
end, end,
-- Uncomment this only, and **ONLY** if you actually need it. -- Uncomment this only, and **ONLY** if you actually need it.
-- (P.S: you don't need it.)
--id = "background_role" --id = "background_role"
}) })
return awful.widget.tasklist { return awful.widget.tasklist {

View File

@ -20,14 +20,14 @@ return function(args)
awmtk2.generic.status_widget,args.style,args.vertical) awmtk2.generic.status_widget,args.style,args.vertical)
local templates = awmtk2.create_template_lib("lock_clock",awmtk2.templates,args.templates) local templates = awmtk2.create_template_lib("lock_clock",awmtk2.templates,args.templates)
local t = awmtk2.build_templates(templates,style,args.vertical) local t = awmtk2.build_templates(templates,style,args.vertical)
-- Don't mind me just stealing default library code -- Don't mind me just stealing standard library code
local format = args.format or "%a %b %d, %H:%M" local format = args.format or "%a %b %d, %H:%M"
local refresh = args.refresh or 60 local refresh = args.refresh or 60
local tzid = args.tzid local tzid = args.tzid
local timezone = (tzid and TimeZone.new(tzid)) or TimeZone.new_local() local timezone = (tzid and TimeZone.new(tzid)) or TimeZone.new_local()
-- Seriously, was it so hard to add a font parameter for textclock? -- Seriously, was it so hard to add a font parameter for textclock?
-- Do you actually expect of nobody to change the font to something like -- Do you actually expect nobody to change the font to something like
-- idk, 7-segment display? Goddamnit awesome. I trusted you. -- idk, 7-segment display? Goddamnit awesome. I trusted you.
local widget = wibox.widget(t.container(t.textbox({ local widget = wibox.widget(t.container(t.textbox({
id = "clocktext" id = "clocktext"

View File

@ -77,7 +77,7 @@ return function(args)
end end
end end
end) end)
-- If any of the menus emits cascade::kill, close the menu -- If any of the menus emit cascade::kill, close the menu
for _,v in pairs(menus) do for _,v in pairs(menus) do
v:connect_signal("cascade::kill",function() v:connect_signal("cascade::kill",function()
root_menu.visible = false root_menu.visible = false