Update && Fix

This commit is contained in:
Luca 2023-03-10 23:51:09 +01:00
parent 4f850f7173
commit 6f8acf2168
28 changed files with 443 additions and 353 deletions

View file

@ -1,2 +1,2 @@
[General] [General]
theme=KvGnomeDark theme=Matcha-sea-dark

View file

@ -1,40 +0,0 @@
#!/bin/sh
autostart="nm-applet xfce4-power-manager"
for program in $autostart; do
pidof -s "$program" || setsid -f "$program"
done >/dev/null 2>&1
# Applets :
#nm-applet &
#blueman-applet &
#volumeicon &
#xfce4-power-manager &
# Polkit :
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# Keybord auto-repeat :
xset r rate 300 50 &
# Clipordmanager :
clipmenud &
# Wallpaper :
nitrogen --restore &
# conky
#conky -c ~/.config/conky/otis-forest.conkyrc\ &
# Sevices info :
#echo "false" > /tmp/blue_light_state
# Compositor :
#autostart="picom"
#for program in $autostart; do
# pidof -s "$program" || setsid -f "$program"
#done >/dev/null 2>&1
# Updates :
#notify-send -t 8000 "You have $(checkupdates | wc -l) update 📦" &

View file

@ -20,6 +20,8 @@ require("configurations.layouts")
-- # Rules : -- # Rules :
require("configurations.rules") require("configurations.rules")
-- # Signals :
require("signals")
-- ### UI ### -- -- ### UI ### --
@ -32,18 +34,12 @@ require("ui.titlebar")
-- # Menu : -- # Menu :
require("ui.menu") require("ui.menu")
-- # Signals :
require("signals")
-- # Sidebar :
require("ui.sidebar")
-- # Bar : -- # Bar :
require("ui.bar") require("ui.bar")
-- Autorun at startup -- Autorun at startup
awful.spawn.with_shell("bash ~/.config/awesome/configurations/autorun") awful.spawn.with_shell("bash ~/.config/awesome/configurations/autostart")
--- Enable for lower memory consumption --- Enable for lower memory consumption
collectgarbage("setpause", 110) collectgarbage("setpause", 110)

View file

@ -1,13 +1,13 @@
req = { req = {
"volume", --"volume",
"brightness", --"brightness",
"wifi", --"wifi",
"bluetooth", --"bluetooth",
"airplane", --"airplane",
"weather", "weather",
"battery", "battery",
"player", --"player",
"disk" --"disk"
} }
for _, x in pairs(req) do for _, x in pairs(req) do

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 296 KiB

Before After
Before After

View file

@ -50,12 +50,13 @@ theme = {}
--theme.font = "JetBrains Mono Bold 10" --theme.font = "JetBrains Mono Bold 10"
--theme.font = "JetBrainsMono Nerd Font Bold 10" --theme.font = "JetBrainsMono Nerd Font Bold 10"
--theme.font = "RobotoMono Nerd Font Bold 11" --theme.font = "RobotoMono Nerd Font Bold 11"
theme.font = "Roboto Regular 11" theme.font = "Roboto Regular 12"
theme.taglist_font = "Font Awesome 6 Free Solid 16" --theme.taglist_font = "Font Awesome 6 Free Solid 16"
theme.icon_font = "Font Awesome 6 Free Solid 11" theme.taglist_font = "RobotoMono Nerd Font Medium 16"
theme.icon_font = "Font Awesome 6 Free Solid 12"
theme.sidebar_font = "Font Awesome 6 Free Solid 16" theme.sidebar_font = "Font Awesome 6 Free Solid 16"
theme.ui_font = "RobotoMono Nerd Font Medium 16" theme.ui_font = "RobotoMono Nerd Font Medium 16"
theme.menu_font = "RobotoMono Nerd Font Bold 11" theme.menu_font = "RobotoMono Nerd Font 11"
-- # Background Colors : -- # Background Colors :

View file

@ -23,8 +23,6 @@ mylauncher = wibox.container.margin(mylauncher, dpi(0), dpi(0), dpi(6), dpi(6))
-- # Widgets : -- # Widgets :
-- ~~~~~~~~~~~ -- ~~~~~~~~~~~
-- # Sidebar button :
local sidebar_button = require('ui.widgets.sidebar_button')
-- # Systray : -- # Systray :
local systray = require('ui.widgets.systray') local systray = require('ui.widgets.systray')
-- # Clock : -- # Clock :
@ -40,7 +38,6 @@ local temprature_widget = require('ui.widgets.temprature')
-- # Launcher : -- # Launcher :
local launcher = require('ui.widgets.launcher') local launcher = require('ui.widgets.launcher')
-- # Status widgets : -- # Status widgets :
local status_widgets = wibox.widget { local status_widgets = wibox.widget {
{ {
@ -55,14 +52,15 @@ local status_widgets = wibox.widget {
-- # Keybord : -- # Keybord :
keyboard_widget, keyboard_widget,
-- # Clock : -- # Clock :
clock_widget, clock_widget,
spacing = dpi(20), spacing = dpi(15),
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
}, },
margins = {top = dpi(4), bottom = dpi(4)}, margins = {top = dpi(4), bottom = dpi(4)},
widget = wibox.container.margin, widget = wibox.container.margin,
} }
-- Bar : -- Bar :
local function get_bar(s) local function get_bar(s)
-- Create the wibox -- Create the wibox
@ -74,58 +72,52 @@ local function get_bar(s)
visible = true, visible = true,
height = dpi(42), height = dpi(42),
width = s.geometry.width, width = s.geometry.width,
--width = s.geometry.width - dpi(120), --width = s.geometry.width - dpi(20),
screen = s, screen = s,
bg = colors.black, bg = colors.black,
--bg = colors.main_transparent, --bg = colors.main_transparent,
--bg = colors.transparent, --bg = colors.transparent,
--opacity = 0.85, --opacity = 0.85,
}) })
--awful.placement.bottom(s.mywibar, { margins = theme.useless_gap * 1 }) --awful.placement.bottom(s.mywibar, { margins = theme.useless_gap * 2 })
--s.mywibar:struts { bottom = dpi(45), top = dpi(0), left = dpi(0), right = dpi(0) } --s.mywibar:struts { bottom = dpi(50), top = dpi(5)}
-- Bar setup : -- Bar setup :
s.mywibar:setup { s.mywibar:setup {
{ {
{ {
{ {
{ launcher,
launcher, taglist(s),
taglist(s), --tasklist(s),
--tasklist(s), spacing = dpi(10),
spacing = dpi(10), layout = wibox.layout.fixed.horizontal
layout = wibox.layout.fixed.horizontal
},
--nil,
-- # Tasks in middel :
{
tasklist(s),
--clock_widget,
layout = wibox.layout.fixed.horizontal
},
{
status_widgets,
systray,
sidebar_button,
layoutbox(s),
layout = wibox.layout.fixed.horizontal,
spacing = dpi(10)
},
layout = wibox.layout.align.horizontal,
expand = "none"
}, },
widget = wibox.container.margin, --nil,
margins = {left = dpi(15), right = dpi(15), top = dpi(2), bottom = dpi(2)} -- # Tasks in middel :
{
tasklist(s),
layout = wibox.layout.fixed.horizontal
},
{
status_widgets,
systray,
layoutbox(s),
layout = wibox.layout.fixed.horizontal,
spacing = dpi(10)
},
layout = wibox.layout.align.horizontal,
expand = "none"
}, },
widget = wibox.container.background, widget = wibox.container.margin,
bg = colors.bg_color, margins = {left = dpi(15), right = dpi(15), top = dpi(0), bottom = dpi(0)}
forced_height = s.mywibar.height
}, },
layout = wibox.layout.fixed.vertical, layout = wibox.layout.fixed.vertical,
spacing = dpi(10) spacing = dpi(10)
} }
-- function to remove the bar in maxmized/fullscreen apps -- function to remove the bar in maxmized/fullscreen apps
local function remove_wibar(c) local function remove_wibar(c)
if c.fullscreen or c.maximized then if c.fullscreen or c.maximized then

View file

@ -21,6 +21,6 @@ return function(s)
awful.button({ }, 5, function () awful.layout.inc( 1) end), awful.button({ }, 5, function () awful.layout.inc( 1) end),
} }
} }
layoutbox = wibox.container.margin(layoutbox, dpi(4), dpi(4), dpi(10), dpi(10)) layoutbox = wibox.container.margin(layoutbox, dpi(2), dpi(2), dpi(11), dpi(11))
return layoutbox return layoutbox
end end

View file

@ -24,15 +24,27 @@ screen.connect_signal("request::desktop_decoration", function(s)
awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) awful.tag(awful.util.tagnames, s, awful.layout.layouts[1])
end) end)
--local function update_tag(item, tag, index)
-- if tag.selected then
-- item.markup = helpers.colorize_text(" 󰮯 ", colors.main_scheme)
-- elseif tag.urgent then
-- item.markup = helpers.colorize_text("  ", colors.red)
-- elseif #tag:clients() > 0 then
-- item.markup = helpers.colorize_text("  ", colors.white)
-- else
-- item.markup = helpers.colorize_text(" 󱙝 ", colors.white)
-- end
--end
local function update_tag(item, tag, index) local function update_tag(item, tag, index)
if tag.selected then if tag.selected then
item.markup = helpers.colorize_text(" 󰮯 ", colors.main_scheme) item.markup = helpers.colorize_text(" ", colors.main_scheme)
elseif tag.urgent then elseif tag.urgent then
item.markup = helpers.colorize_text("", colors.red) item.markup = helpers.colorize_text(" ", colors.red)
elseif #tag:clients() > 0 then elseif #tag:clients() > 0 then
item.markup = helpers.colorize_text("", colors.white) item.markup = helpers.colorize_text(" ", colors.white)
else else
item.markup = helpers.colorize_text(" 󱙝 ", colors.white) item.markup = helpers.colorize_text(" ", colors.white)
end end
end end
@ -69,11 +81,11 @@ return function(s)
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
}, },
style = { style = {
spacing = dpi(-4), spacing = dpi(-2),
}, },
widget_template = { widget_template = {
id = "tag", id = "tag",
font = theme.ui_font, font = theme.taglist_font,
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
create_callback = function(self, c3, index, object) create_callback = function(self, c3, index, object)
@ -92,16 +104,16 @@ return function(s)
taglist, taglist,
top = dpi(0), top = dpi(0),
bottom = dpi(0), bottom = dpi(0),
left = dpi(8), left = dpi(0),
right = dpi(8), right = dpi(4),
widget = wibox.container.margin widget = wibox.container.margin
}, },
bg = colors.container, bg = colors.black,
shape = helpers.rrect(theme.rounded - 4), shape = helpers.rrect(theme.rounded),
widget = wibox.container.background widget = wibox.container.background
}, },
top = dpi(4), top = dpi(6),
bottom = dpi(4), bottom = dpi(6),
left = dpi(0), left = dpi(0),
right = dpi(0), right = dpi(0),
widget = wibox.container.margin widget = wibox.container.margin

View file

@ -80,10 +80,7 @@ return function(s)
id = "background_role", id = "background_role",
widget = wibox.container.background, widget = wibox.container.background,
}, },
top = dpi(4), margins = dpi(4),
bottom = dpi(4),
left = dpi(2),
right = dpi(2),
widget = wibox.container.margin widget = wibox.container.margin
} }
} }

View file

@ -14,29 +14,29 @@ local hotkeys_popup = require('awful.hotkeys_popup')
-- # Menu -- # Menu
-- Create a launcher widget and a main menu -- Create a launcher widget and a main menu
myawesomemenu = { myawesomemenu = {
{ " Hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, {" Hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
{ " Manual", terminal .. " -e man awesome" }, {" Manual", terminal .. " -e man awesome" },
--{ " Edit config", editor_cmd .. " " .. awesome.conffile }, --{ " Edit config", editor_cmd .. " " .. awesome.conffile },
{ " Restart", awesome.restart }, {" Restart", awesome.restart },
{ " Quit", function() awesome.quit() end }, {" Quit", function() awesome.quit() end },
} }
powermenu = { powermenu = {
{ " Lock", function() awful.spawn.with_shell('notify-send "👉 Locking system " && sleep 1 && betterlockscreen -l') end }, {" Lock", function() awful.spawn.with_shell('notify-send "👉 Locking system " && sleep 1 && betterlockscreen -l') end },
{ " Logout", function() awful.spawn.with_shell('notify-send "👉 Loging out " && sleep 1 && loginctl terminate-session ${XDG_SESSION_ID-}') end }, {" Logout", function() awful.spawn.with_shell('notify-send "👉 Loging out " && sleep 1 && loginctl terminate-session ${XDG_SESSION_ID-}') end },
{ " Sleep", function() awful.spawn.with_shell('notify-send "👉 Suspending 鈴" && sleep 1 && systemctl suspend') end }, {" Sleep", function() awful.spawn.with_shell('notify-send "👉 Suspending 鈴" && sleep 1 && systemctl suspend') end },
{ " Hibernate", function() awful.spawn.with_shell('notify-send "👉 Hibernateing " && sleep 1 && systemctl hibernate') end }, {" Hibernate", function() awful.spawn.with_shell('notify-send "👉 Hibernateing " && sleep 1 && systemctl hibernate') end },
{ " Reboot", function() awful.spawn.with_shell('notify-send "👉 Rebooting " && sleep 1 && reboot') end }, {" Reboot", function() awful.spawn.with_shell('notify-send "👉 Rebooting " && sleep 1 && reboot') end },
{ " Poweroff", function() awful.spawn.with_shell('notify-send "👉 Powering Off " && sleep 1 && poweroff') end }, {" Poweroff", function() awful.spawn.with_shell('notify-send "👉 Powering Off " && sleep 1 && poweroff') end },
} }
mymainmenu = awful.menu( mymainmenu = awful.menu(
{ items = { { items = {
{ " Awesome", myawesomemenu }, {" Awesome", myawesomemenu },
{ " Terminal", terminal }, {" Terminal", terminal },
{ " Power Menu", powermenu } {" Power Menu", powermenu }
} }
}) })

View file

@ -7,6 +7,7 @@ local menubar = require("menubar")
local awful = require('awful') local awful = require('awful')
local wibox = require('wibox') local wibox = require('wibox')
local gears = require('gears') local gears = require('gears')
local ruled = require("ruled")
local beautiful = require('beautiful') local beautiful = require('beautiful')
local dpi = beautiful.xresources.apply_dpi local dpi = beautiful.xresources.apply_dpi
local naughty = require("naughty") local naughty = require("naughty")
@ -15,128 +16,61 @@ local naughty = require("naughty")
-- ~~~~~~~~ -- ~~~~~~~~
local helpers = require("libs.helpers") local helpers = require("libs.helpers")
-- Defaults
naughty.config.defaults.ontop = true naughty.config.defaults.ontop = true
naughty.config.defaults.screen = awful.screen.focused() naughty.config.defaults.screen = awful.screen.focused()
naughty.config.defaults.timeout = 5
naughty.config.defaults.icon_size = dpi(32)
naughty.config.defaults.title = "Notification" naughty.config.defaults.title = "Notification"
naughty.config.defaults.position = "top_right" naughty.config.defaults.margin = 50
naughty.config.defaults.border_width = 0 naughty.config.defaults.border_width = 0
naughty.config.defaults.position = "top_right"
naughty.config.defaults.max_notifications = 5
naughty.config.icon_dirs = {
"/usr/share/icons/Papirus-Dark/24x24/apps/",
"/usr/share/pixmaps/"
}
naughty.config.icon_formats = {"svg", "png", "jpg", "gif"}
local function create_notifcation(n) -- Timeouts
local time = os.date "%H:%M" naughty.config.defaults.timeout = 2
local icon_visibility naughty.config.presets.low.timeout = 1
naughty.config.presets.critical.timeout = 0
if n.icon == nil then -- naughty normal preset
icon_visibility = false naughty.config.presets.normal = {
else font = "Roboto Medium 10",
icon_visibility = true fg = colors.brightwhite,
end bg = colors.container
}
-- Action widget -- naughty low preset
local action_widget = { naughty.config.presets.low = {
{ font ="Roboto Medium 10",
{ fg = colors.brightwhite,
id = "text_role", bg = colors.container
align = "center", }
font = "Roboto Mono 10",
widget = wibox.widget.textbox,
},
margins = {left = dpi(6), right = dpi(6)},
widget = wibox.container.margin,
},
widget = wibox.container.background,
}
-- Apply action widget ^ -- naughty critical preset
local actions = wibox.widget { naughty.config.presets.critical = {
notification = n, font = "Roboto Bold 12",
base_layout = wibox.widget { fg = colors.brightred,
spacing = dpi(8), bg = colors.container,
layout = wibox.layout.flex.horizontal, timeout = 0
}, }
widget_template = action_widget,
widget = naughty.list.actions,
}
local function space_h(length, circumstances) -- apply preset
return wibox.widget { naughty.config.presets.ok = naughty.config.presets.normal
forced_width = length, naughty.config.presets.info = naughty.config.presets.normal
visible = circumstances, naughty.config.presets.warn = naughty.config.presets.critical
layout = wibox.layout.fixed.horizontal,
}
end
-- Make other widgets -- ruled notification
local title = wibox.widget.textbox() ruled.notification.connect_signal("request::rules", function()
title.font = "Roboto bold 14" ruled.notification.append_rule {
title.align = 'left' rule = {},
title.markup = n.title properties = {screen = awful.screen.preferred, implicit_timeout = 6}
}
local message = wibox.widget.textbox() end)
message.font = "Roboto Medium 11"
message.align = 'left'
message.markup = n.message
local icon = wibox.widget {
nil,
{
{
image = n.icon,
visible = icon_visibility,
widget = wibox.widget.imagebox,
},
strategy = "max",
width = dpi(30),
height = dpi(30),
widget = wibox.container.constraint,
},
expand = 'none',
layout = wibox.layout.align.vertical,
}
local container = wibox.widget {
{
title,
{
icon,
space_h(dpi(10), icon_visibility),
message,
layout = wibox.layout.fixed.horizontal,
},
actions,
spacing = dpi(10),
layout = wibox.layout.fixed.vertical,
},
margins = dpi(20),
widget = wibox.container.margin,
}
naughty.layout.box {
notification = n,
type = "notification",
bg = colors.black,
border_width = 0,
shape = helpers.rrect(theme.rounded),
widget_template = {
{
{
{
widget = container,
},
strategy = "max",
width = dpi(420),
widget = wibox.container.constraint,
},
strategy = "min",
width = dpi(160),
height = dpi(80),
widget = wibox.container.constraint,
},
bg = colors.container,
widget = wibox.container.background,
}
}
end
-- # Error handling : -- # Error handling :
naughty.connect_signal("request::display_error", function(message, startup) naughty.connect_signal("request::display_error", function(message, startup)
@ -147,8 +81,180 @@ naughty.connect_signal("request::display_error", function(message, startup)
} }
end) end)
naughty.connect_signal("request::display", function(n) -- connect to each display
create_notifcation(n) -- ~~~~~~~~~~~~~~~~~~~~~~~
naughty.connect_signal("request::display", function(n)
-- action widget
local action_widget = {
{
{
id = "text_role",
align = "center",
valign = "center",
font = "Roboto 10",
widget = wibox.widget.textbox
},
left = dpi(6),
right = dpi(6),
widget = wibox.container.margin
},
bg = colors.container,
shape = helpers.rrect(dpi(5)),
widget = wibox.container.background
}
-- actions
local actions = wibox.widget {
notification = n,
base_layout = wibox.widget {
spacing = dpi(8),
layout = wibox.layout.flex.horizontal
},
widget_template = action_widget,
style = {underline_normal = false, underline_selected = true},
widget = naughty.list.actions
}
-- image
local image_n = wibox.widget {
{
image = n.icon,
resize = true,
clip_shape = helpers.rrect(theme.rounded),
halign = "center",
valign = "center",
widget = wibox.widget.imagebox,
},
strategy = "exact",
height = dpi(72),
width = dpi(72),
widget = wibox.container.constraint,
}
-- title
local title_n = wibox.widget{
{
{
markup = n.title,
font = "Roboto bold 14",
align = "left",
valign = "center",
widget = wibox.widget.textbox
},
widget = wibox.container.scroll.horizontal,
step_function = wibox.container.scroll.step_functions.waiting_nonlinear_back_and_forth,
speed = 50
},
margins = {right = 15},
widget = wibox.container.margin
}
local message_n = wibox.widget{
{
{
markup = helpers.colorize_text("<span weight='normal'>" .. n.message .. "</span>", colors.brightwhite),
font = "Roboto Medium 11",
align = "left",
valign = "center",
wrap = "char",
widget = wibox.widget.textbox
},
layout = wibox.layout.fixed.horizontal
},
margins = {right = 15},
widget = wibox.container.margin
}
-- app name
local app_name_n = wibox.widget{
markup = helpers.colorize_text(n.app_name, colors.brightwhite),
font = "Roboto Medium 12",
align = "left",
valign = "center",
widget = wibox.widget.textbox
}
local time_n = wibox.widget{
{
markup = helpers.colorize_text(os.date "%H:%M", colors.brightwhite),
font = "Roboto Medium 12",
align = "right",
valign = "center",
widget = wibox.widget.textbox
},
margins = {left = dpi(6)},
widget = wibox.container.margin
}
-- extra info
local notif_info = wibox.widget{
app_name_n,
{
widget = wibox.widget.separator,
shape = gears.shape.circle,
forced_height = dpi(4),
forced_width = dpi(4),
color = colors.brightwhite
},
time_n,
layout = wibox.layout.fixed.horizontal,
spacing = dpi(7)
}
-- init
naughty.layout.box {
notification = n,
type = "notification",
bg = colors.container,
shape = helpers.rrect(theme.rounded),
widget_template = {
{
{
{
{
{
{
notif_info,
{
{
title_n,
message_n,
layout = wibox.layout.fixed.vertical,
spacing = dpi(3)
},
margins = {left = dpi(6)},
widget = wibox.container.margin
},
layout = wibox.layout.fixed.vertical,
spacing = dpi(16)
},
nil,
image_n,
layout = wibox.layout.align.horizontal,
expand = "none"
},
{
{actions, layout = wibox.layout.fixed.vertical},
margins = {top = dpi(20)},
visible = n.actions and #n.actions > 0,
widget = wibox.container.margin
},
layout = wibox.layout.fixed.vertical,
},
margins = dpi(18),
widget = wibox.container.margin
},
strategy = "max",
width = dpi(500),
widget = wibox.container.constraint,
},
strategy = "min",
width = dpi(200),
height = dpi(80),
widget = wibox.container.constraint,
},
shape = helpers.rrect(theme.rounded),
widget = wibox.container.background,
},
}
end) end)

View file

@ -16,19 +16,19 @@ local dpi = beautiful.xresources.apply_dpi
local styles = {} local styles = {}
styles.month = { styles.month = {
bg_color = colors.brightblack, bg_color = colors.container,
fg_color = colors.white, fg_color = colors.white,
padding = dpi(3), padding = dpi(6),
} }
styles.normal = { styles.normal = {
bg_color = colors.brightblack, bg_color = colors.container,
fg_color = colors.white, fg_color = colors.white,
padding = dpi(3), padding = dpi(2),
} }
styles.focus = { styles.focus = {
fg_color = colors.yellow, fg_color = colors.yellow,
markup = function(t) return '<b>' .. t .. '</b>' end, markup = function(t) return '<b>' .. t .. '</b>' end,
padding = dpi(3), padding = dpi(2),
} }
styles.header = { styles.header = {
fg_color = colors.brightblue, fg_color = colors.brightblue,

View file

@ -50,19 +50,19 @@ end
-- Get widgets -- Get widgets
local profile_widget = require("ui.sidebar.profile") local profile_widget = require("ui.sidebar.profile")
local player_widget = require("ui.sidebar.player")
local sliders_widget = require("ui.sidebar.sliders") local sliders_widget = require("ui.sidebar.sliders")
local weather_widget = require("ui.sidebar.weather") local weather_widget = require("ui.sidebar.weather")
local calendar_widget = require("ui.sidebar.calendar") local calendar_widget = require("ui.sidebar.calendar")
local services_widget = require("ui.sidebar.services") --local player_widget = require("ui.sidebar.player")
--local services_widget = require("ui.sidebar.services")
-- Combine some widgets -- Combine some widgets
local profile = box_widget(profile_widget, 380, 150) local profile = box_widget(profile_widget, 380, 150)
local sliders = box_widget(sliders_widget, 380, 120) local sliders = box_widget(sliders_widget, 380, 120)
local weather = box_widget(weather_widget, 380, 180) local weather = box_widget(weather_widget, 380, 180)
local player = box_widget(player_widget, 380, 150) local calendar = box_widget(calendar_widget, 380, 320)
local calendar = box_widget(calendar_widget, 380, 330) --local player = box_widget(player_widget, 380, 150)
local services = box_widget(services_widget, 380, 200) --local services = box_widget(services_widget, 380, 200)
-- Spacing -- Spacing
local space = function(height) local space = function(height)
@ -94,9 +94,9 @@ sidebar : setup {
profile, profile,
sliders, sliders,
weather, weather,
player, --player,
--calendar, calendar,
services, --services,
spacing = dpi(20), spacing = dpi(20),
layout = wibox.layout.fixed.vertical, layout = wibox.layout.fixed.vertical,
@ -105,14 +105,58 @@ sidebar : setup {
widget = wibox.container.margin, widget = wibox.container.margin,
} }
-- Left Side :
-- Slide animation
--local slide = rubato.timed {
-- pos = helpers.screen.geometry.height,
-- rate = 60,
-- intro = 0.2,
-- duration = 0.4,
-- subscribed = function(pos)
-- sidebar.y = helpers.screen.geometry.y + pos
-- end
--}
--
---- Timer of sidebar's death
--sidebar.timer = gears.timer {
-- timeout = 0.5,
-- single_shot = true,
-- callback = function()
-- sidebar.visible = not sidebar.visible
-- end
--}
--
---- Toggle function
--sidebar.toggle = function()
-- if sidebar.visible then
-- slide.target = helpers.screen.geometry.y - sidebar.height
-- sidebar.timer:start()
-- else
-- slide.target = helpers.screen.geometry.y + dpi(10)
-- sidebar.visible = not sidebar.visible
-- end
--
--end
--awful.placement.top_right(sidebar, {honor_workarea = true, margins = beautiful.useless_gap * 3})
--awful.mouse.append_global_mousebindings({
-- awful.button({ }, 1, function () sidebar.toggle() end)
--})
--awful.keyboard.append_global_keybindings({
-- awful.key({alt}, "c", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
--})
-- Right Side :
-- Slide animation -- Slide animation
local slide = rubato.timed { local slide = rubato.timed {
pos = helpers.screen.geometry.height, pos = helpers.screen.geometry.x - sidebar.width,
rate = 60, rate = 60,
intro = 0.2, intro = 0.2,
duration = 0.4, duration = 0.4,
subscribed = function(pos) subscribed = function(pos)
sidebar.y = helpers.screen.geometry.y + pos sidebar.x = helpers.screen.geometry.x + pos
end end
} }
@ -128,23 +172,15 @@ sidebar.timer = gears.timer {
-- Toggle function -- Toggle function
sidebar.toggle = function() sidebar.toggle = function()
if sidebar.visible then if sidebar.visible then
slide.target = helpers.screen.geometry.y - sidebar.height slide.target = helpers.screen.geometry.x - sidebar.width
sidebar.timer:start() sidebar.timer:start()
else else
slide.target = helpers.screen.geometry.y + dpi(10) slide.target = helpers.screen.geometry.x + dpi(10)
sidebar.visible = not sidebar.visible sidebar.visible = not sidebar.visible
end end
end end
awful.placement.top_right(sidebar, {honor_workarea = true, margins = beautiful.useless_gap * 3})
--awful.mouse.append_global_mousebindings({
-- awful.button({ }, 1, function () sidebar.toggle() end)
--})
--awful.keyboard.append_global_keybindings({
-- awful.key({alt}, "c", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
--})
awful.placement.top_left(sidebar, {honor_workarea = true, margins = beautiful.useless_gap * 3})
-- Get signal to execute the function (if that makes sense) -- Get signal to execute the function (if that makes sense)
awesome.connect_signal("sidebar::toggle", function(s) awesome.connect_signal("sidebar::toggle", function(s)
sidebar.toggle(s) sidebar.toggle(s)

View file

@ -113,13 +113,13 @@ local mic = wibox.widget {
} }
local update_mic = function() local update_mic = function()
awful.spawn.easy_async_with_shell("pamixer --source 5891 --get-volume", function(stdout) awful.spawn.easy_async_with_shell("pamixer --source alsa_input.usb-1c1f_USB_PnP_Audio_Device-00.mono-fallback --get-volume", function(stdout)
mic_slider.value = tonumber(stdout:match("%d+")) mic_slider.value = tonumber(stdout:match("%d+"))
end) end)
end end
mic_slider:connect_signal("property::value", function(_, mic_vol) mic_slider:connect_signal("property::value", function(_, mic_vol)
awful.spawn("pamixer --source 5891 --set-volume ".. mic_vol, false) awful.spawn("pamixer --source alsa_input.usb-1c1f_USB_PnP_Audio_Device-00.mono-fallback --set-volume ".. mic_vol, false)
-- Update textbox widget text -- Update textbox widget text
mic_osd_value.text = mic_vol .. "%" mic_osd_value.text = mic_vol .. "%"
awesome.emit_signal("module::mic_osd_value", mic_vol) awesome.emit_signal("module::mic_osd_value", mic_vol)

View file

@ -50,18 +50,22 @@ client.connect_signal("request::titlebars", function(c)
}, },
{-- Right {-- Right
--awful.titlebar.widget.floatingbutton (c), {
awful.titlebar.widget.minimizebutton (c), --awful.titlebar.widget.floatingbutton (c),
awful.titlebar.widget.maximizedbutton(c), awful.titlebar.widget.minimizebutton (c),
awful.titlebar.widget.closebutton (c), awful.titlebar.widget.maximizedbutton(c),
--awful.titlebar.widget.stickybutton (c), awful.titlebar.widget.closebutton (c),
--awful.titlebar.widget.ontopbutton (c), --awful.titlebar.widget.stickybutton (c),
spacing = dpi(4), --awful.titlebar.widget.ontopbutton (c),
layout = wibox.layout.fixed.horizontal, spacing = dpi(4),
layout = wibox.layout.fixed.horizontal,
},
margins = dpi(2),
widget = wibox.container.margin,
}, },
layout = wibox.layout.align.horizontal, layout = wibox.layout.align.horizontal,
}, },
margins = dpi(6), margins = dpi(4),
widget = wibox.container.margin, widget = wibox.container.margin,
}, },
id = 'background_role', id = 'background_role',

View file

@ -6,6 +6,9 @@
local gears = require("gears") local gears = require("gears")
local awful = require("awful") local awful = require("awful")
local wibox = require("wibox") local wibox = require("wibox")
local beautiful = require('beautiful')
local dpi = require('beautiful').xresources.apply_dpi
local sidebar = require("ui.sidebar")
-- # Libs : -- # Libs :
-- ~~~~~~~~ -- ~~~~~~~~
@ -20,11 +23,25 @@ local launcher = wibox.widget{
valign = "center", valign = "center",
} }
launcher:buttons(gears.table.join({ --launcher:buttons(gears.table.join({
awful.button({ }, 1, function () -- awful.button({ }, 1, function ()
awful.spawn.with_shell(require("libs.misc").rofiCommand, false) -- awful.spawn.with_shell(require("libs.misc").rofiCommand, false)
end) -- end)
--
--}))
})) launcher:connect_signal(
"button::press",
function()
launcher.opacity = 0.6
sidebar.toggle(s)
end)
launcher:connect_signal(
"button::release",
function()
launcher.opacity = 1
end)
--return awful.widget.only_on_screen(launcher, 'primary')
return launcher return launcher

View file

@ -1,41 +0,0 @@
-- ## Sidebar button ##
-- ~~~~~~~~~~~~~~~~~~~~
-- Requirements :
-- ~~~~~~~~~~~~~~
local gears = require("gears")
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require('beautiful')
local dpi = require('beautiful').xresources.apply_dpi
local sidebar = require("ui.sidebar")
local sidebar_icon = wibox.widget{
markup = "",
font = theme.taglist_font,
valign = "center",
align = "center",
widget = wibox.widget.textbox
}
--sidebar_icon:buttons{gears.table.join(
-- awful.button({ }, 1, function ()
-- sidebar.toggle(s)
-- end)
--)}
sidebar_icon:connect_signal(
"button::press",
function()
sidebar_icon.opacity = 0.6
sidebar.toggle(s)
end)
sidebar_icon:connect_signal(
"button::release",
function()
sidebar_icon.opacity = 1
end)
--return sidebar_icon
return awful.widget.only_on_screen(sidebar_icon, 'primary')

View file

@ -21,7 +21,7 @@ local systray = wibox.widget {
wibox.widget.systray, wibox.widget.systray,
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
}, },
margins = {top = dpi(6), bottom = dpi(6), left = dpi(6), right = dpi(6)}, margins = {top = dpi(8), bottom = dpi(8), left = dpi(2), right = dpi(2)},
widget = wibox.container.margin, widget = wibox.container.margin,
}, },
margins = {top = dpi(2), bottom = dpi(2)}, margins = {top = dpi(2), bottom = dpi(2)},

View file

@ -2,8 +2,8 @@
LocationMode=path-bar LocationMode=path-bar
ShowHidden=false ShowHidden=false
ShowSizeColumn=true ShowSizeColumn=true
GeometryX=380 GeometryX=1863
GeometryY=114 GeometryY=180
GeometryWidth=840 GeometryWidth=840
GeometryHeight=630 GeometryHeight=630
SortColumn=name SortColumn=name

View file

@ -1,10 +1,10 @@
[Settings] [Settings]
gtk-theme-name=Gruvbox gtk-theme-name=Gruvbox
gtk-icon-theme-name=Papirus-Dark gtk-icon-theme-name=Papirus-Dark
gtk-font-name=Roboto 11 gtk-font-name=Roboto 12
gtk-cursor-theme-name=Qogir-cursors gtk-cursor-theme-name=Qogir-cursors
gtk-cursor-theme-size=24 gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1 gtk-button-images=1
gtk-menu-images=1 gtk-menu-images=1

View file

@ -6,7 +6,7 @@ font_family JetBrainsMono Nerd Font
bold_font auto bold_font auto
italic_font auto italic_font auto
bold_italic_font auto bold_italic_font auto
font_size 14.0 font_size 16.0
adjust_line_height 0 adjust_line_height 0
adjust_column_width 0 adjust_column_width 0

View file

@ -6,8 +6,8 @@ standard_dialogs=default
style=kvantum-dark style=kvantum-dark
[Fonts] [Fonts]
fixed=@Variant(\0\0\0@\0\0\0\f\0R\0o\0\x62\0o\0t\0o@&\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) fixed="Roboto,12,-1,5,50,0,0,0,0,0,Regular"
general=@Variant(\0\0\0@\0\0\0\f\0R\0o\0\x62\0o\0t\0o@&\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) general="Roboto,12,-1,5,50,0,0,0,0,0,Regular"
[Interface] [Interface]
activate_item_on_single_click=1 activate_item_on_single_click=1
@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x1\x7f\0\0\0L\0\0\x4\xc0\0\0\x3\r\0\0\x1\x81\0\0\0N\0\0\x4\xbe\0\0\x3\v\0\0\0\0\0\0\0\0\x6@\0\0\x1\x81\0\0\0N\0\0\x4\xbe\0\0\x3\v) geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x1l\0\0\0\x39\0\0\x4r\0\0\x3\x12\0\0\x1n\0\0\0;\0\0\x4p\0\0\x3\x10\0\0\0\0\0\0\0\0\x6@\0\0\x1n\0\0\0;\0\0\x4p\0\0\x3\x10)"
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

View file

@ -6,8 +6,8 @@ standard_dialogs=default
style=kvantum-dark style=kvantum-dark
[Fonts] [Fonts]
fixed="Roboto,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" fixed="Roboto,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
general="Roboto,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" general="Roboto,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
[Interface] [Interface]
activate_item_on_single_click=1 activate_item_on_single_click=1

14
install
View file

@ -23,7 +23,7 @@ fi
# ~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~
echo -e "${Cyan}Installing Packeges ...${No}" echo -e "${Cyan}Installing Packeges ...${No}"
#sudo pacman -Rns sudo #sudo pacman -Rns sudo
sudo pacman -Sy --needed --noconfirm xcompmgr xdotool acpi xsel clipmenu xfce4-power-manager lxappearance nitrogen feh viewnior man-db kitty pacman-contrib xclip rsync arandr sxhkd pcmanfm-gtk3 obs-studio pamixer brightnessctl playerctl redshift maim gnome-disk-utility cups xcalib exa lsd ghex cherrytree mpv audacious gst-libav net-tools gpick gdb curl wget alacritty terminator python-pip tk xterm tor cmatrix htop neofetch zsh veracrypt engrampa p7zip unzip cdrtools gufw android-tools ranger ueberzug rofi rofi-emoji geany neovim inetutils dnsutils macchanger zathura zathura-ps zathura-djvu zathura-pdf-poppler qt5ct qt6ct kvantum-qt5 ffmpegthumbnailer tumbler grub-customizer mtpfs gvfs-mtp gvfs-gphoto2 qbittorrent btop qalculate-gtk volumeicon remmina freerdp qt5-tools python-pyqt5 qt6-tools python-pyqt6 qt5-quickcontrols2 qt5-graphicaleffects qt5-svg mesa-utils intel-media-driver rhash libva-utils gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly #firefox sudo pacman -Sy --needed --noconfirm xcompmgr xdotool acpi xsel clipmenu tlp xfce4-power-manager lxappearance nitrogen feh viewnior man-db kitty pacman-contrib xclip rsync arandr sxhkd pcmanfm-gtk3 obs-studio pamixer brightnessctl playerctl redshift maim gnome-disk-utility cups xcalib exa lsd ghex cherrytree mpv audacious gst-libav net-tools gpick gdb curl wget alacritty terminator python-pip tk xterm tor cmatrix htop neofetch zsh veracrypt engrampa p7zip unzip cdrtools gufw android-tools ranger ueberzug jq rofi rofi-emoji geany neovim inetutils dnsutils macchanger zathura zathura-ps zathura-djvu zathura-pdf-poppler qt5ct qt6ct kvantum-qt5 ffmpegthumbnailer tumbler grub-customizer mtpfs gvfs-mtp gvfs-gphoto2 qbittorrent btop qalculate-gtk volumeicon remmina freerdp qt5-tools python-pyqt5 qt6-tools python-pyqt6 qt5-quickcontrols2 qt5-graphicaleffects qt5-svg mesa-utils intel-media-driver rhash libva-utils gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly #firefox
echo -e "QT_QPA_PLATFORMTHEME=qt5ct\nexport CM_LAUNCHER=rofi\nexport CM_HISTLENGTH=50\nexport CM_DIR=/tmp/clipmenu" | sudo tee -a /etc/environment echo -e "QT_QPA_PLATFORMTHEME=qt5ct\nexport CM_LAUNCHER=rofi\nexport CM_HISTLENGTH=50\nexport CM_DIR=/tmp/clipmenu" | sudo tee -a /etc/environment
echo -e "${Green}Installing Packages Done ${No}" echo -e "${Green}Installing Packages Done ${No}"
echo "" echo ""
@ -32,7 +32,7 @@ echo ""
# Aur Packages : # Aur Packages :
# ~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~
echo -e "${Cyan}Installing Aur Packeges ... ${No}" echo -e "${Cyan}Installing Aur Packeges ... ${No}"
yay -Sy --needed --noconfirm bcm43142a0-firmware aic94xx-firmware xkb-switch scrcpy jmtpfs papirus-icon-theme papirus-folders yt-dlp picom-jonaburg-git sddm-config-editor-git matcha-gtk-theme kvantum-theme-matcha-git kvantum-theme-nordic-git brave-bin yay -Sy --needed --noconfirm bcm43142a0-firmware aic94xx-firmware xkb-switch scrcpy jmtpfs papirus-icon-theme bibata-cursor-theme papirus-folders yt-dlp picom-jonaburg-git sddm-config-editor-git matcha-gtk-theme kvantum-theme-matcha-git kvantum-theme-nordic-git brave-bin
#sudo papirus-folders -C yaru --theme Papirus-Dark #sudo papirus-folders -C yaru --theme Papirus-Dark
sudo papirus-folders -C bluegrey --theme Papirus-Dark sudo papirus-folders -C bluegrey --theme Papirus-Dark
echo -e "${Green}Installing Aur Packeges Done ${No}" echo -e "${Green}Installing Aur Packeges Done ${No}"
@ -72,6 +72,16 @@ echo -e "${Cyan}Bluetooth Enabled${No}"
echo "" echo ""
echo "" echo ""
# Setting up TLP :
# ~~~~~~~~~~~~~~~~~~~~~~
echo -e "${Cyan}Enabling TLP ... ${No}"
sudo systemctl enable tlp.service
sudo systemctl start tlp.service
sudo tlp start
echo -e "${Cyan}TLP Enabled${No}"
echo ""
echo ""
# Making Zsh Deafult Shell : # Making Zsh Deafult Shell :
# ~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~
echo -e "${Cyan}Switching to zsh Shell ...${No}" echo -e "${Cyan}Switching to zsh Shell ...${No}"

View file

@ -1,16 +1,16 @@
#!/bin/sh #!/bin/sh
# cursors : # cursors :
doas cp -r cursors/* /usr/share/icons/ sudo cp -r cursors/* /usr/share/icons/
# gtk : # gtk :
doas cp -r gtk/* /usr/share/themes/ sudo cp -r gtk/* /usr/share/themes/
# grub : # grub :
doas cp grub/* -r /boot/grub/themes/ sudo cp grub/* -r /boot/grub/themes/
# kvantum : # kvantum :
doas cp -r kvantum/* /usr/share/Kvantum/ sudo cp -r kvantum/* /usr/share/Kvantum/
# sddm ! # sddm !
doas cp -r sddm/* /usr/share/sddm sudo cp -r sddm/* /usr/share/sddm

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 296 KiB

Before After
Before After

View file

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
# Display : # Display :
doas cp -r 20-modesetting.conf /etc/X11/xorg.conf.d/ sudo cp -r 20-modesetting.conf /etc/X11/xorg.conf.d/
doas cp -r modesetting.conf /etc/X11/xorg.conf.d/ sudo cp -r modesetting.conf /etc/X11/xorg.conf.d/
# Mouse : # Mouse :
doas cp -r 40-libinput.conf /etc/X11/xorg.conf.d/ sudo cp -r 40-libinput.conf /etc/X11/xorg.conf.d/
# Keybord : # Keybord :
doas cp -r 00-keyboard.conf /etc/X11/xorg.conf.d/ sudo cp -r 00-keyboard.conf /etc/X11/xorg.conf.d/
# Video Driver : # Video Driver :
doas cp -r i915.conf /etc/modprobe.d/ sudo cp -r i915.conf /etc/modprobe.d/