fixed awesome to be a bit more consistant to hyprland. fixed autostart

This commit is contained in:
iceyrazor 2025-06-11 18:56:41 -05:00
parent 7cf3fa4899
commit a0048ec816
5 changed files with 13 additions and 22 deletions

View File

@ -1,3 +1,4 @@
-- KEYS are out of wack. n should be o but its not. ill fix it later
pcall(require, "luarocks.loader") pcall(require, "luarocks.loader")
-- Standard awesome library -- Standard awesome library
@ -66,7 +67,7 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Shift" }, "q", awesome.quit, awful.key({ modkey, "Shift" }, "q", awesome.quit,
{description = "quit awesome", group = "awesome"}), {description = "quit awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "u", show_my_desktop, {description = "show desktop", group = "awesome"}), -- awful.key({ modkey, "Shift" }, "u", show_my_desktop, {description = "show desktop", group = "awesome"}),
awful.key({ modkey, }, "i", function () awful.tag.incmwfact( 0.05) end, awful.key({ modkey, }, "i", function () awful.tag.incmwfact( 0.05) end,
{description = "increase master width factor", group = "layout"}), {description = "increase master width factor", group = "layout"}),

View File

@ -43,7 +43,7 @@ globalkeys = gears.table.join(
{description = "swap with next client by index", group = "client"}), {description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}), {description = "swap with previous client by index", group = "client"}),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end, awful.key({ modkey, }, "o", function () awful.screen.focus_relative( 1) end,
{description = "focus the next screen", group = "screen"}), {description = "focus the next screen", group = "screen"}),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end, awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
{description = "focus the previous screen", group = "screen"}), {description = "focus the previous screen", group = "screen"}),
@ -66,7 +66,7 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Shift" }, "q", awesome.quit, awful.key({ modkey, "Shift" }, "q", awesome.quit,
{description = "quit awesome", group = "awesome"}), {description = "quit awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "o", show_my_desktop, {description = "show desktop", group = "awesome"}), --awful.key({ modkey, "Shift" }, "o", show_my_desktop, {description = "show desktop", group = "awesome"}),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end, awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
{description = "increase master width factor", group = "layout"}), {description = "increase master width factor", group = "layout"}),
@ -222,7 +222,7 @@ clientkeys = gears.table.join(
{description = "toggle floating", group = "client"}), {description = "toggle floating", group = "client"}),
awful.key({ modkey, }, "z", function (c) c:swap(awful.client.getmaster()) end, awful.key({ modkey, }, "z", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}), {description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, awful.key({ modkey, "Shift" }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}), {description = "move to screen", group = "client"}),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}), {description = "toggle keep on top", group = "client"}),

View File

@ -141,10 +141,10 @@ myawesomemenu = {
{ "quit", function() awesome.quit() end }, { "quit", function() awesome.quit() end },
} }
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, mymainmenu = awful.menu({ items = {
{ "open terminal", terminal } { "awesome", myawesomemenu, beautiful.awesome_icon },
} { "open terminal", terminal }
}) }})
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu }) menu = mymainmenu })
@ -462,7 +462,6 @@ awful.rules.rules = {
} }
-- }}} -- }}}
if screen[2] then if screen[2] then
screen[2]:fake_resize(1986,33,1792,1015)
table.insert(awful.rules.rules, table.insert(awful.rules.rules,
{ rule_any = { { rule_any = {
class = { "Mumble", "gajim", "vesktop" } class = { "Mumble", "gajim", "vesktop" }
@ -487,15 +486,6 @@ client.connect_signal("manage", function (c)
end end
end) end)
screen[1]:connect_signal("request::geometry", function(s)
-- Recalculate the workarea height
-- s.workarea.height = s.geometry.height - 100
gears.debug.print_error("Workarea height: " .. tostring(s.workarea.height))
naughty.notify({ title = "Oops, there were errors during startup!",
text = 'djsakldsaujsaiodsjugfa89rdfjg489ejt' })
-- You can also recalculate s.workarea.y if you want to fine-tune vertical placement
-- awful.layout.arrange(s)
end)
awful.layout.suit.tile.master_width_factor = 0.5 awful.layout.suit.tile.master_width_factor = 0.5
-- Add a titlebar if titlebars_enabled is set to true in the rules. -- Add a titlebar if titlebars_enabled is set to true in the rules.
@ -551,4 +541,4 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
-- autostart applets -- autostart applets
awful.spawn.with_shell("~/.local/bin/system/start_scripts/autostart.sh") awful.spawn.with_shell("~/.local/bin/system/start-scripts/autostart.sh")

View File

@ -1,12 +1,12 @@
{ {
"label" : "shutdown", "label" : "shutdown",
"action" : "poweroff", "action" : "loginctl poweroff",
"text" : "Shutdown", "text" : "Shutdown",
"keybind" : "s" "keybind" : "s"
} }
{ {
"label" : "reboot", "label" : "reboot",
"action" : "reboot", "action" : "loginctl reboot",
"text" : "Reboot", "text" : "Reboot",
"keybind" : "r" "keybind" : "r"
} }

View File

@ -15,7 +15,7 @@ fsyncb () {
fi fi
} }
syncfile="stuff .surf/styles .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .var/app/dev.vencord.Vesktop/config/vesktop/themes .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .local/share/applications/custom .local/share/osu" syncfile="stuff .surf/styles .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .local/share/applications/custom .local/share/osu"
# se shit # se shit
syncfile="$syncfile /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Blueprints /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/IngameScripts /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Saves" syncfile="$syncfile /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Blueprints /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/IngameScripts /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Saves"