Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dualfade
Created March 8, 2020 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dualfade/029b6f7e217505fb1fcc9a32b864b365 to your computer and use it in GitHub Desktop.
Save dualfade/029b6f7e217505fb1fcc9a32b864b365 to your computer and use it in GitHub Desktop.
awesome autorun blackarch
% cat /etc/xdg/awesome/rc.lua
----- snip ------
-- autorun
-- https://wiki.archlinux.org/index.php/Awesome#Autostart
awful.spawn.with_shell("/etc/xdg/awesome/autorun.sh")
% cat /etc/xdg/awesome/autorun.sh
#!/usr/bin/env bash
function run {
if ! pgrep -f $1 ;
then
$@&
fi
}
# run [program] [args]
run /home/dualfade/Scripts/displays.sh &
run /usr/bin/sudo /usr/bin/ufw enable &
run /usr/bin/keybase login dualfade && /usr/bin/systemctl start --user kbfs &
run /usr/bin/picom --config ~/.config/picom/picom.conf &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment