mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
Remove autostart.sh
I noticed that I do not need it at all anymore due to my evil daemons plus the fact that I only need to start applications once on login, instead of everytime AwesomeWM restarts.
This commit is contained in:
parent
f235cba312
commit
192efb9a28
3 changed files with 0 additions and 62 deletions
|
|
@ -186,12 +186,6 @@ After setting up my AwesomeWM configuration, inside `~/.config/awesome` you will
|
|||
This file allows you to set user preferences, choose themes, configure default layouts for each tag, window rules and more.
|
||||
It is also responsible for initializing all necessary desktop components.
|
||||
|
||||
+ 🚀 `autostart.sh`
|
||||
|
||||
The commands in in this file will run every time AwesomeWM restarts.
|
||||
|
||||
If you would like to run something only **once on login**, I suggest you create the file `~/.xprofile`, make it executable and put the commands you want in it.
|
||||
|
||||
+ ⌨️ `keys.lua`
|
||||
|
||||
It initializes global and client keybinds.
|
||||
|
|
|
|||
|
|
@ -1,50 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# ---
|
||||
# Use "run program" to run it only if it is not already running
|
||||
# Use "program &" to run it regardless
|
||||
# ---
|
||||
# NOTE: This script runs with every restart of AwesomeWM
|
||||
# If you would like to run a command *once* on login,
|
||||
# you can use ~/.xprofile
|
||||
|
||||
function run {
|
||||
if ! pgrep $1 > /dev/null ;
|
||||
then
|
||||
$@&
|
||||
fi
|
||||
}
|
||||
|
||||
# Music
|
||||
# run mpd
|
||||
# (Alternatively, enable the mpd service so mpd runs on login)
|
||||
|
||||
# Emacs daemon
|
||||
#run emacs --daemon
|
||||
|
||||
# Load terminal colorscheme and settings
|
||||
xrdb ~/.Xresources
|
||||
|
||||
# Urxvt daemon
|
||||
# run urxvtd -q -o -f
|
||||
|
||||
# Mpv input file
|
||||
if [ ! -e /tmp/mpv.fifo ]; then
|
||||
mkfifo /tmp/mpv.fifo
|
||||
fi
|
||||
|
||||
# Desktop effects
|
||||
#run compton --config ~/.config/compton/compton.conf
|
||||
|
||||
# Enable numlock on login
|
||||
# Required numlockx to be installed
|
||||
run numlockx
|
||||
|
||||
# Network manager tray icon
|
||||
run nm-applet
|
||||
|
||||
# Kill redshift processes
|
||||
# pkill redshift
|
||||
|
||||
# Wallpaper
|
||||
# (Already set to run in rc.lua)
|
||||
# ~/.fehbg
|
||||
|
|
@ -1023,12 +1023,6 @@ end)
|
|||
-- client.disconnect_signal("request::geometry", awful.ewmh.client_geometry_requests)
|
||||
-- client.disconnect_signal("request::geometry", awful.ewmh.geometry)
|
||||
|
||||
-- Startup applications
|
||||
-- Runs your autostart.sh script, which should include all the commands you
|
||||
-- would like to run every time AwesomeWM restarts
|
||||
-- ===================================================================
|
||||
awful.spawn.with_shell(os.getenv("HOME") .. "/.config/awesome/autostart.sh")
|
||||
|
||||
-- Garbage collection
|
||||
-- Enable for lower memory consumption
|
||||
-- ===================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue