awesome: Switch to autostart with dex

picom: remove opacity from all windows expect kitty
This commit is contained in:
Egor 2024-08-22 00:54:08 +03:00
parent 4f9c2d21c9
commit f8672b84d6
3 changed files with 13 additions and 32 deletions

View file

@ -3,13 +3,13 @@
run() { run() {
if ! pgrep -f "$1" ; if ! pgrep -f "$1" ;
then then
"$@"& $@ &
fi fi
} }
run "xautolock -detectsleep -time 1 -locker '~/.local/bin/lock.sh'" run "xautolock" "-detectsleep -time 10 -locker '~/.local/bin/lock.sh'"
run "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" run "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
run "nm-applet" run "nm-applet"
run "picom" run "picom"
run "openrgb --startminimized -p traaaaa" run "openrgb" "--startminimized -p traaaaa"

View file

@ -33,9 +33,13 @@ ruled.client.connect_signal('request::rules', function()
properties = { screen = 2, tag = '2: Discord' } properties = { screen = 2, tag = '2: Discord' }
}) })
ruled.client.append_rule({ ruled.client.append_rule({
rule = { class = 'nekoray' }, rule = { class = 'nekoray' },
properties = { screen = 2, tag = '3: VPN' } properties = { screen = 2, tag = '3: VPN' }
}) })
ruled.client.append_rule({
rule = { class = 'firefox' },
properties = { screen = 2, tag = '1: Web' }
})
end) end)

View file

@ -38,32 +38,9 @@ require('config.rules')
local awful = require('awful') local awful = require('awful')
-- Autorun background daemons awful.spawn.with_shell(
awful.spawn.with_shell('~/.config/awesome/autorun.sh') 'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;' ..
'xrdb -merge <<< "awesome.started:true";' ..
-- Autorun windowed apps 'dex --environment Awesome --autostart --search-paths "${XDG_CONFIG_HOME:-$HOME/.config}/autostart:${XDG_CONFIG_DIRS:-/etc/xdg}/autostart";'
local autorunApps = { )
{
app = "nekoray",
rules = { screen = 2, tag = "3: VPN" },
matcher = nil,
unique_id = nil
},
{
app = "firefox",
rules = { screen = 2, tag = "1: Web" },
matcher = nil,
unique_id = nil
},
{
app = "discord",
rules = { screen = 2, tag = "2: Discord" },
matcher = nil,
unique_id = nil
}
}
for i = 1, #autorunApps do
awful.spawn.once(autorunApps[i].app, autorunApps[i].rules, autorunApps[i].matcher, autorunApps[i].unique_id)
end