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

Submitted scripts and programs
Forum rules
Your own work only.
User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

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

Unread post by dkeg » Fri Dec 23, 2016 5:32 pm

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

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

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

Unread post by wuxmedia » Sat Dec 24, 2016 1:50 pm

cool, nice scripting!
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
ChefIronBelly
Approved BBQer
Posts: 1044
Joined: Mon Jan 13, 2014 6:01 am
Location: Michigan

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

Unread post by ChefIronBelly » Sat Dec 24, 2016 2:17 pm

Look at what Santa has brought me... thanks Santa
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

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

Unread post by dkeg » Sat Dec 24, 2016 2:51 pm

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.

Work hard; Complain less

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

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

Unread post by dkeg » Sun Dec 25, 2016 5:27 pm

Happy Holiday's

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

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

Work hard; Complain less

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

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

Unread post by dkeg » Wed Dec 28, 2016 11:22 pm

updated with cleaner code making individual updates easier.

Work hard; Complain less

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

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

Unread post by machinebacon » Thu Dec 29, 2016 1:22 pm

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
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

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

Unread post by dkeg » Thu Dec 29, 2016 2:11 pm

Oh, that's really cool. Had no idea. I'll check it out for sure. Thank you for that.

Work hard; Complain less

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

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

Unread post by dkeg » Thu Dec 29, 2016 3:19 pm

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.

Work hard; Complain less

Post Reply