This commit is contained in:
Crispy 2023-08-03 21:25:40 +02:00
parent ba797057cf
commit a48d288c19
21 changed files with 72 additions and 68 deletions

View file

@ -7,23 +7,20 @@ if is_reloading() then
return
end
awful.spawn(CONFIG_DIR .. "utils/xcape_conf.sh")
awful.spawn("picom -b")
awful.spawn("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") -- authentication popup for obs virtual camera etc
awful.spawn("redshift")
awful.spawn("sxhkd")
if not is_laptop then
awful.spawn(CONFIG_DIR .. "utils/xrandr_conf.sh")
awful.spawn("discord", { screen = 3 })
awful.spawn("vscodium")
awful.spawn("spotify", { tag = "2", screen = 3, urgent = false })
awful.spawn("firefox")
awful.spawn(terminal .. " -e fish -c \"sleep 5 && ncpamixer\"",
awful.spawn(terminal .. " -e fish -C \"sleep 5 && ncpamixer\"",
{ tag = "3", screen = 3, urgent = false, focus = false })
awful.spawn(terminal .. " -e btop", { tag = "4", screen = 3, urgent = false, focus = false })
awful.spawn(terminal .. " -e fish -c \"sleep 5 && snoud\"", { tag = "5", screen = 3, urgent = false, focus = false })
awful.spawn(terminal .. " -e fish -c \"sleep 2 && gomuks\"", { tag = "6", screen = 3, urgent = false, focus = false })
awful.spawn(terminal .. " -e fish -C btop", { tag = "4", screen = 3, urgent = false, focus = false })
awful.spawn(terminal .. " -e fish -C \"sleep 5 && snoud\"", { tag = "5", screen = 3, urgent = false, focus = false })
awful.spawn(terminal .. " -e fish -C \"sleep 2 && gomuks\"", { tag = "9", screen = 3, urgent = false, focus = false })
end

View file

@ -8,6 +8,7 @@ local awful = require("awful")
CONFIG_DIR = awful.util.get_configuration_dir()
HOME_DIR = CONFIG_DIR .. "../../"
SCRIPTS_DIR = HOME_DIR .. "dotfiles/scripts/"
HOME_BIN = HOME_DIR .. "bin/"
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
@ -90,12 +91,14 @@ local main_menu = awful.menu({
{ "terminal", terminal },
{ "file manager", file_manager },
{ "OVR Utils", function() awful.spawn("./proj/godot/ovr-utils/builds/linux/ovr-utils.x86_64") end },
{ "sinpin-vr", function() awful.spawn(terminal .. " -e fish -C ~/bin/sinpin-vr/sinpin_vr") end },
{ "close menu", function()
end }
}
})
local launcher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = main_menu })
local blahaj = awful.widget.launcher({ image = beautiful.blahaj, menu = {} })
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
@ -106,7 +109,7 @@ menubar.menu_gen.all_menu_dirs = {
--"/var/lib/flatpak/exports/share/applications",
}
local juneday = awful.widget.watch(SCRIPTS_DIR .. "june", 600, function(widget, stdout)
local juneday = awful.widget.watch(HOME_BIN .. "june", 600, function(widget, stdout)
for line in stdout:gmatch("[^\r\n]+") do
widget.text = " [ " .. line .. " ] "
break
@ -116,7 +119,7 @@ local juneday = awful.widget.watch(SCRIPTS_DIR .. "june", 600, function(widget,
end)
-- Create a textclock widget
local textclock = wibox.widget.textclock()
local textclock = awful.widget.textclock()
-- Create a wibox for each screen and add it
-- buttons for each tag widget
@ -200,6 +203,7 @@ awful.screen.connect_for_each_screen(function(s)
layout = wibox.layout.fixed.horizontal,
launcher,
s.mytaglist,
blahaj,
},
s.mytasklist, -- Middle widget
{ -- Right widgets

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 981 KiB

After

Width:  |  Height:  |  Size: 981 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -121,6 +121,7 @@ theme.wallpaper = theme_path .. "background.png"
-- theme.menu_height, theme.bg_focus, theme.fg_focus
-- )
theme.awesome_icon = theme_path .. "icon.png"
theme.blahaj = theme_path .. "blahaj.png"
-- Define the icon theme for application icons. If not set then the icons
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.