You are not logged in.

#1 2010-02-14 00:46:30

sdellysse
Member
Registered: 2009-12-15
Posts: 26

dwmctl - a very simple dwm wrapper

Just wrote a simple dwm wrapper. I always see users on the forum and wiki talking about making a small 'startdwm' script and 'killall dwm' to end it. these scripts save the pid of the dwmctl script to ~/.config/dwm/pid, and kills it from that pid. also checks to make sure that dwm is running or not running, repsectively.

First time writing any bash to put on the aur. any comments?

http://aur.archlinux.org/packages.php?ID=34605

Last edited by sdellysse (2010-02-14 03:03:45)

Offline

#2 2010-02-14 00:55:41

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,418
Website

Re: dwmctl - a very simple dwm wrapper

url shouldn't be the dwm website, makes it look like the script is official. remove arrays you aren't using from the pkgbuild, merge both into a single script with start|stop functions, and up to you but you could use the scripts in rc.d as a model.

Offline

#3 2010-02-14 01:05:58

sdellysse
Member
Registered: 2009-12-15
Posts: 26

Re: dwmctl - a very simple dwm wrapper

Ghost1227 wrote:

url shouldn't be the dwm website, makes it look like the script is official.

True, but since there is no website for such a simple process, what should i put?

Ghost1227 wrote:

remove arrays you aren't using from the pkgbuild,

done.

Ghost1227 wrote:

merge both into a single script with start|stop functions, and up to you but you could use the scripts in rc.d as a model.

Not meant to be used like that. meant to be used as in 'startx'

Offline

#4 2010-02-14 01:16:41

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,418
Website

Re: dwmctl - a very simple dwm wrapper

i'd put the url for this thread for the website... and i wasn't implying it be setup _as_ an rc script, just that it could be merged into a single script. users could then just run (for example) `dwmctl start` to start (or add it to xinitrc) and `dwmctl stop` to shut down.

Offline

#5 2010-02-14 01:30:42

sdellysse
Member
Registered: 2009-12-15
Posts: 26

Re: dwmctl - a very simple dwm wrapper

Ghost1227 wrote:

i'd put the url for this thread for the website... and i wasn't implying it be setup _as_ an rc script, just that it could be merged into a single script. users could then just run (for example) `dwmctl start` to start (or add it to xinitrc) and `dwmctl stop` to shut down.

nice. I see what you're saying now, and I like it. Changed to reflect as such. Is there anyway I can change the name of it on the AUR?

Offline

#6 2010-02-14 01:50:39

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,418
Website

Re: dwmctl - a very simple dwm wrapper

yep. i delete it, you change the name in the pkgbuild and reupload it

Offline

#7 2010-02-14 02:03:20

sdellysse
Member
Registered: 2009-12-15
Posts: 26

Re: dwmctl - a very simple dwm wrapper

Ghost1227 wrote:

yep. i delete it, you change the name in the pkgbuild and reupload it

Okay, submitted as dwmctl. I will edit the first post to reflect the change. I appreciate all the help Ghost.

Offline

#8 2010-02-14 02:45:46

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,418
Website

Re: dwmctl - a very simple dwm wrapper

not a problem tongue

Offline

Board footer

Powered by FluxBB