From 192efb9a282792fd12ace389f9fba3707bafa8d7 Mon Sep 17 00:00:00 2001 From: elenapan Date: Thu, 16 Apr 2020 04:03:26 +0300 Subject: [PATCH] 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. --- README.md | 6 ----- config/awesome/autostart.sh | 50 ------------------------------------- config/awesome/rc.lua | 6 ----- 3 files changed, 62 deletions(-) delete mode 100755 config/awesome/autostart.sh diff --git a/README.md b/README.md index bea4e3c..eea7997 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/config/awesome/autostart.sh b/config/awesome/autostart.sh deleted file mode 100755 index ecc5126..0000000 --- a/config/awesome/autostart.sh +++ /dev/null @@ -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 diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index c44f294..52cdbec 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -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 -- ===================================================================