update and clean my AwesomeWM Config

This commit is contained in:
Al-Hassan Abdel-Raouf 2021-12-08 17:14:59 +02:00
parent 94984d0fd3
commit a8b6ddcadd
7 changed files with 32 additions and 59 deletions

@ -1 +0,0 @@
Subproject commit d3d929dbba9e89a8ce2101b1e1b044a727264513

@ -1 +0,0 @@
Subproject commit 7877b992ccfeeed1cc1736580e4e022939cbabc3

@ -1 +0,0 @@
Subproject commit bf8634468afaa73ad874dd86793061d66b879a0c

@ -1 +0,0 @@
Subproject commit 36fc290ba8e94b2081c716d7ec0b4a6defcb9380

@ -0,0 +1 @@
Subproject commit efcd5e7d7c0f2c2d4f1efbe8fe5a67f629223b3d

View File

@ -27,33 +27,12 @@ editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor
-- require *after* `beautiful.init` or the theme will be inconsistent!
local pulse = require("pulseaudio_widget")
pulse.mixer = terminal .. " pulsemixer"
local volume require("plugins.awesome-volume.volume")
local power = require("power_widget")
power.warning_config = {
percentage = 15,
message = "The battery is getting low",
preset = {
shape = gears.shape.rounded_rect,
timeout = 12,
bg = "#FFFF00",
fg = "#000000",
},
}
power.critical_percentage = 15
-- require *after* `beautiful.init` or the theme will be inconsistent!
--local connman = require("connman_widget")
-- set the GUI client.
-- connman.gui_client = "wicd"
local cpu_widget = require("awesome-wm-widgets.cpu-widget.cpu-widget")
local cpu_widget = require("plugins.awesome-wm-widgets.cpu-widget.cpu-widget")
cpu_config = {
width = 70,
@ -63,7 +42,7 @@ cpu_config = {
}
local brightness_widget = require("awesome-wm-widgets.brightness-widget.brightness")
local brightness_widget = require("plugins.awesome-wm-widgets.brightness-widget.brightness")
brightness_config = {
get_brightness_cmd = 'xbacklight -get',
@ -72,9 +51,9 @@ brightness_config = {
}
local keyboard_layout = require("keyboard_layout")
local keyboard_layout = require("plugins.keyboard_layout.kbdcfg")
local kbdcfg = keyboard_layout.kbdcfg({type = "tui"})
local kbdcfg = keyboard_layout({type = "tui"})
kbdcfg.add_primary_layout("English", "EN", "us")
kbdcfg.add_primary_layout("Arabic", "AR", "ar")
@ -87,15 +66,9 @@ kbdcfg.widget:buttons(
)
local screenshot = require("awesomewm-screenshot")
local screenshot = require("plugins.awesomewm-screenshot.screenshot")
--local net_widgets = require("net_widgets")
--net_wireless = net_widgets.wireless({
-- interface="wlp6s0",
-- font="mono"
-- })
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
@ -291,13 +264,10 @@ awful.screen.connect_for_each_screen(function(s)
},
s.mytasklist, -- Middle widget
{ -- Right widgets
pulse,
power,
volume_widget,
brightness_widget(brightness_config),
cpu_widget(cpu_config),
-- net_wireless,
layout = wibox.layout.fixed.horizontal,
-- mykeyboardlayout,
kbdcfg.widget,
wibox.widget.systray(),
mytextclock,
@ -332,17 +302,23 @@ awful.key({ }, "Print", scrot_full,
awful.key({"Shift"}, "Alt_L", function () kbdcfg.switch_next() end),
awful.key({"Mod4"}, "l", function () awful.spawn("xscreensaver-command -lock") end, {description = "Lock Screen", group = "custom"}),
awful.util.table.join(
-- Audio
awful.key({ }, "XF86AudioRaiseVolume", pulse.volume_up, {description = "increase sound Volume", group = "custom"}),
awful.key({ }, "XF86AudioLowerVolume", pulse.volume_down, {description = "decrease sound Volume", group = "custom"}),
awful.key({ }, "XF86AudioMute", pulse.toggle_muted, {description = "mute sound volume", group = "custom"}),
-- Microphone
awful.key({"Shift"}, "XF86AudioRaiseVolume", pulse.volume_up_mic, {description = "increase mic volume", group = "custom"}),
awful.key({"Shift"}, "XF86AudioLowerVolume", pulse.volume_down_mic, {description = "decrease mic volume", group = "custom"}),
awful.key({"Shift"}, "XF86AudioMute", pulse.toggle_muted_mic, {description = "mute mic volume", group = "custom"})
awful.key({ }, "XF86AudioRaiseVolume", volume_up, {description = "increase sound Volume", group = "custom"}),
awful.key({ }, "XF86AudioLowerVolume", volume_down, {description = "decrease sound Volume", group = "custom"}),
awful.key({ }, "XF86AudioMute", volume_mute, {description = "mute sound volume", group = "custom"})
-- -- Microphone
-- awful.key({"Shift"}, "XF86AudioRaiseVolume", pulse.volume_up_mic, {description = "increase mic volume", group = "custom"}),
-- awful.key({"Shift"}, "XF86AudioLowerVolume", pulse.volume_down_mic, {description = "decrease mic volume", group = "custom"}),
-- awful.key({"Shift"}, "XF86AudioMute", pulse.toggle_muted_mic, {description = "mute mic volume", group = "custom"})
),
awful.key({}, "XF86MonBrightnessUp", function () awful.spawn("xbacklight -inc 5") end, {description = "increase brightness", group = "custom"}),
awful.key({}, "XF86MonBrightnessDown", function () awful.spawn("xbacklight -dec 5") end, {description = "decrease brightness", group = "custom"}),

20
.gitmodules vendored
View File

@ -10,15 +10,15 @@
[submodule ".config/vis/plugins/vis-surround"]
path = .config/vis/plugins/vis-surround
url = https://repo.or.cz/vis-surround.git
[submodule ".config/awesome/awesome-wm-widgets"]
path = .config/awesome/awesome-wm-widgets
[submodule ".config/awesome/plugins/awesome-wm-widgets"]
path = .config/awesome/plugins/awesome-wm-widgets
url = https://github.com/streetturtle/awesome-wm-widgets.git
[submodule ".config/awesome/awesomewm-screenshot"]
path = .config/awesome/awesomewm-screenshot
url = https://github.com/alhassanaraouf/awesomewm-screenshot.git
[submodule ".config/awesome/keyboard_layout"]
path = .config/awesome/keyboard_layout
[submodule ".config/awesome/plugins/awesomewm-screenshot"]
path = .config/awesome//plugins/awesomewm-screenshot
url = https://github.com/denisoster/awesomewm-screenshot.git
[submodule ".config/awesome/plugins/keyboard_layout"]
path = .config/awesome/plugins/keyboard_layout
url = https://github.com/echuraev/keyboard_layout.git
[submodule ".config/awesome/net_widgets"]
path = .config/awesome/net_widgets
url = https://github.com/pltanton/net_widgets.git
[submodule ".config/awesome/plugins/awesome-volume"]
path = .config/awesome/plugins/awesome-volume
url = https://github.com/alhassanaraouf/awesome-volume