a lot of stuff

This commit is contained in:
Kievits Rene
2022-04-16 05:08:33 +02:00
parent dae28d55eb
commit 1ceec3a7d9
74 changed files with 4743 additions and 716 deletions

View File

@@ -4,21 +4,21 @@ local beautiful = require("beautiful")
screen.connect_signal(
"added",
function ()
function()
awesome.restart()
end
)
screen.connect_signal(
"removed",
function ()
function()
awesome.restart()
end
)
client.connect_signal(
"manage",
function (c)
function(c)
if awesome.startup and not c.size_hints.user_porition and not c.size_hints.program_position then
awful.placement.no_offscreen(c)
end
@@ -58,24 +58,24 @@ client.connect_signal(
-- Sloppy focus
client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = false})
c:emit_signal("request::activate", "mouse_enter", { raise = false })
end)
-- Workaround for focused border color, why in the love of god doesnt it work with
-- beautiful.border_focus
client.connect_signal("focus", function (c)
client.connect_signal("focus", function(c)
c.border_color = "#616161"
end)
client.connect_signal("unfocus", function (c)
client.connect_signal("unfocus", function(c)
c.border_color = beautiful.border_normal
end)
function hover_signal (widget, bg, fg)
function Hover_signal(widget, bg, fg)
local old_wibox, old_cursor, old_bg, old_fg
widget:connect_signal(
"mouse::enter",
function ()
function()
if bg then
old_bg = widget.bg
if string.len(bg) == 7 then
@@ -98,7 +98,7 @@ function hover_signal (widget, bg, fg)
widget:connect_signal(
"button::press",
function ()
function()
if bg then
if bg then
if string.len(bg) == 7 then
@@ -116,7 +116,7 @@ function hover_signal (widget, bg, fg)
widget:connect_signal(
"button::release",
function ()
function()
if bg then
if bg then
if string.len(bg) == 7 then
@@ -134,7 +134,7 @@ function hover_signal (widget, bg, fg)
widget:connect_signal(
"mouse::leave",
function ()
function()
if bg then
widget.bg = old_bg
end

View File

@@ -8,7 +8,7 @@ local awful = require("awful")
return function()
local tags = {}
awful.screen.connect_for_each_screen(
function (s)
function(s)
tags[s] = awful.tag(
{
"1", "2", "3", "4", "5", "6", "7", "8", "9"
@@ -20,4 +20,4 @@ return function()
)
return tags
end
end

View File

@@ -7,7 +7,7 @@ local home = os.getenv("HOME")
local function get_screen()
local screen = {}
for i, s in ipairs(screen) do
screen[i] = {screen.x, screen.y}
screen[i] = { screen.x, screen.y }
end
return screen
end
@@ -15,20 +15,32 @@ end
-- If you want different default programs, wallpaper path or modkey; edit this file.
local _M = {
network = {
wlan = "",
ethernet = "eno1"
},
-- Set your font with this format:
font = {
regular = "JetBrainsMono Nerd Font, 14",
bold = "JetBrainsMono Nerd Font, bold 14",
extrabold = "JetBrainsMono Nerd Font, ExtraBold 14"
},
-- This is your default Terminal
terminal = "alacritty -o font.size=8",
terminal = "alacritty -o font.size=14",
-- This is the modkey 'mod4' = Super/Mod/WindowsKey, 'mod3' = alt...
modkey = "Mod4",
-- place your wallpaper at this path with this name, you could also try to change the path
wallpaper = home .. "/.config/awesome/theme/crylia/assets/space.jpg",
wallpaper = home .. "/.config/awesome/theme/crylia/assets/fuji.jpg",
-- Naming scheme for the powermenu, userhost = "user@hostname", fullname = "Firstname Surname", something else ...
namestyle = "userhost",
-- List every Keyboard layout you use here comma seperated. (run localectl list-keymaps to list all averiable keymaps)
kblayout = {"de", "ru"},
kblayout = { "de", "ru" },
-- Set to false if you dont have a controller
bluetooth = true,
@@ -47,15 +59,15 @@ local _M = {
-- Second can be what ever the fuck you want it to be (will be the displayed name if you hover over it)
-- For steam games please use this format {"394360", "Name", true} true will tell the func that it's a steam game
dock_programs = {
{"firefox", "Firefox"},
{"discord", "Discord"},
{"spotify", "Spotify"},
{"code", "Visual Studio Code"},
{"arduino", "Arduino IDE"},
{"zoom", "Zoom"},
{"thunderbird", "Thunderbird"},
{"mattermost-desktop", "Mattermost"},
{"blender", "Blender"}
{ "firefox", "Firefox" },
{ "discord", "Discord" },
{ "spotify", "Spotify" },
{ "code", "Visual Studio Code" },
{ "arduino", "Arduino IDE" },
{ "zoom", "Zoom" },
{ "thunderbird", "Thunderbird" },
{ "mattermost-desktop", "Mattermost" },
{ "blender", "Blender" }
},
screens_size = get_screen()