Page 1 of 1

morphr - update colors for 2wm, dwm, 2bwm

Posted: Fri Dec 23, 2016 5:32 pm
by dkeg
Script containing funtions for the following window managers
- 2wm
- dwm
- 2bwm

Assuming the user will run the script while running one of the three, will recognize current wm, and run appropriate function to update color options based on current xrdb.

Check the script to update color choices as needed.

One of those scripts that came from just simply filling a personal need to simplify things. Why manually update color options?

https://github.com/dkeg/dots/blob/master/morphr

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Sat Dec 24, 2016 1:50 pm
by wuxmedia
cool, nice scripting!

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Sat Dec 24, 2016 2:17 pm
by ChefIronBelly
Look at what Santa has brought me... thanks Santa

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Sat Dec 24, 2016 2:51 pm
by dkeg
Thanks gents. I pushed a couple changes:
1. updated the 2bwm section
2. called out for dwm that I had changed the color labels to sensible names.

## old labels: col_gray1,col_gray2,col_gray3,col_gray4,col_cyan - Really?
EDIT: I updated for the script to take the liberty of changing the name for you.

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Sun Dec 25, 2016 5:27 pm
by dkeg
Happy Holiday's

updated to check if label change needed, and exit if running incompatible wm.

https://github.com/dkeg/dots/blob/master/morphr

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Wed Dec 28, 2016 11:22 pm
by dkeg
updated with cleaner code making individual updates easier.

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Thu Dec 29, 2016 1:22 pm
by machinebacon
ah nice, wrt dwm logout/login there's following trick: https://wiki.archlinux.org/index.php/dw ... g_programs

of course this would require ~.xinitrc to check if dwm is actually started, but hey :D

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Thu Dec 29, 2016 2:11 pm
by dkeg
Oh, that's really cool. Had no idea. I'll check it out for sure. Thank you for that.

Re: morphr - update colors for 2wm, dwm, 2bwm

Posted: Thu Dec 29, 2016 3:19 pm
by dkeg
works. simply added the startdwm script in ~/.xinitrc. Using the built in binding to restart now will reload. I added a binding to kill xinit.

also, it works for 2wm as well.