#!/bin/sh
# special_urxvt
xrdb -merge $XRESOURCES_CUSTOM
urxvt $@ &
xrdb -load ~/.Xresources
# fg # uncomment if you want to retain control of urxvt? assuming this works?
I haven't tested this, but might work? I'm thinking you could just temporarily load the colors, start urxvt, and revert back to standard immediately after launching. Not sure if the & fg trick will actually work, but you can probably safely ignore the fg
Pretty sure you can make it happen. With dynamic colors you can switch all the terminals at once, but if you read the code, it's just sending all the terminals a whole bunch of escape codes to reload colors on-the-fly.
You should be able to modify this slightly to target particular terminals, and that will do the trick.
Sure, depends on how frequently you do those things. Personally I don't have those problems. But you can also remove the effects in two seconds with xcalib -clear and you can just reload the theme when you're done photo-editing or whatever.
Also, it's not too hard to compile dmenu from scratch with defaults you like, and even to add xresources support. The nice thing with suckless code is that it's very hackable (even if they might disapprove of me hacking it to add bloat with colors and such). You can avoid the whole alias dmenu_run thing so that it doesn't depend on other scripts (it's nice to keep things decoupled, when possible)
There are solutions to avoid refreshing the terminal.
a)
there are terminal emulators that support thispkill -USR1 -x st will automatically reload xresources in every running instance.
b)
In urxvt there are also (more involved) ways
# Run whatever script you need in every running terminal
for term in $(ls /dev/pts/ | grep "[0-9][0-9]*"); do
echo "`chtheme refresh-terminal`" > /dev/pts/$term
done
combining this with code like you can find in dynamic colors you can pull this off, though the solution obviously isn't as nice.
I have always liked bitmap wallpapers, but I never knew where people found nice bitmaps. I tracked this down and wanted to share. Maybe this is old news to some.
For those who don't know, you can use xsetroot to set your background with a bitmap file (.xbm) with xsetroot -bg $bg_color -fg $fg_color -bitmap file.xbm
I no longer use lemonbar, but if you want you can take a look here to see how I did it at the time. Feel free to pm me questions too. I might not respond immediately.
Bspwm is nice in that you can write your own rules that let you set up the behavior of certain windows. I'm not sure, but this might be useful for you if there is a particular type of window that your are trying to manage. To be honest, I don't know exactly how to force the floating windows to go into the background.
Two other alternatives: wmutils lets you do anything; so if you are comfortable with designing how your window manager works from scratch, then that is always an option. The other thing is that with herbstluftwm "monitors" are virtual. So you can have two monitors on top of one-another on the same screen. Meaning that you can have all floating windows in the lower monitor, and tiled windows in the surface monitor. It's involved to set this up though, as you have to mess with a lot of keybindings, and it also doesn't play the best with multi-screen setups, but I have done it before, and it works well with one screen systems.
My favorite fonts atm are Dina, CtrlD, and Gohufont. All fairly similar, but they are available in slightly different sizes. Between Gohu and one of the others, you should have a nice font for any size (I use a small Gohu-9 in the terminal, and ctrlD-10 or Dina-8 in emacs (they're oddly the same size, and both larger than gohu-9)
I'm not sure if I was just missing something, but this didn't adjust my background color (it just floated an image in the center). These lines are a (really) shotty solution, but they do seem to work.
In case you are interested (though you may not be), you can use this to do cool stuff in imagemagick. For instance, if your image is too square for your aspect ratio, but looks odd zoomed or stretched, in some cases you can "expand the canvas" using this trick. It will work best on "framed" pieces like this. Just 3 lines of imagemagick
Oh. You could also try something like
and run
XRESOURCES_CUSTOM="ssh_Xresources" special_urxvt [arguments]I haven't tested this, but might work? I'm thinking you could just temporarily load the colors, start urxvt, and revert back to standard immediately after launching. Not sure if the
& fgtrick will actually work, but you can probably safely ignore the fgPretty sure you can make it happen. With dynamic colors you can switch all the terminals at once, but if you read the code, it's just sending all the terminals a whole bunch of escape codes to reload colors on-the-fly.
You should be able to modify this slightly to target particular terminals, and that will do the trick.
Sure, depends on how frequently you do those things. Personally I don't have those problems. But you can also remove the effects in two seconds with
xcalib -clearand you can just reload the theme when you're done photo-editing or whatever.I'm not an imagemagick expert, so there might be a better solution, but this seems to be ok
(I just used
grabcto extract the top and bottom color)No problem! Glad you got it working
Also, it's not too hard to compile dmenu from scratch with defaults you like, and even to add xresources support. The nice thing with suckless code is that it's very hackable (even if they might disapprove of me hacking it to add bloat with colors and such). You can avoid the whole alias dmenu_run thing so that it doesn't depend on other scripts (it's nice to keep things decoupled, when possible)
There are solutions to avoid refreshing the terminal. a) there are terminal emulators that support this
pkill -USR1 -x stwill automatically reload xresources in every running instance.b) In urxvt there are also (more involved) ways
combining this with code like you can find in dynamic colors you can pull this off, though the solution obviously isn't as nice.
upvote for void + herbst. Btw, herbst is working well on musl these days. It got fixed the other day (in case you're curious).
Wow! Thanks! Sorry, haven't been on reddit in a while! This is great
You can also look at bitmap wallpapers, which you can tile to form a pattern. https://github.com/dkeg/bitmap-walls
Thanks; that's a good idea. Funny thing, I actually went looking for these bitmaps to go with your new blumune and soundwave colors
I have always liked bitmap wallpapers, but I never knew where people found nice bitmaps. I tracked this down and wanted to share. Maybe this is old news to some.
For those who don't know, you can use xsetroot to set your background with a bitmap file (.xbm) with
xsetroot -bg $bg_color -fg $fg_color -bitmap file.xbmIt seems to be custom. It's a script in the dotfiles (info.sh)Nevermind, that's a different info script.I no longer use lemonbar, but if you want you can take a look here to see how I did it at the time. Feel free to pm me questions too. I might not respond immediately.
Great stuff, as always.
Bspwm is nice in that you can write your own rules that let you set up the behavior of certain windows. I'm not sure, but this might be useful for you if there is a particular type of window that your are trying to manage. To be honest, I don't know exactly how to force the floating windows to go into the background.
Two other alternatives: wmutils lets you do anything; so if you are comfortable with designing how your window manager works from scratch, then that is always an option. The other thing is that with herbstluftwm "monitors" are virtual. So you can have two monitors on top of one-another on the same screen. Meaning that you can have all floating windows in the lower monitor, and tiled windows in the surface monitor. It's involved to set this up though, as you have to mess with a lot of keybindings, and it also doesn't play the best with multi-screen setups, but I have done it before, and it works well with one screen systems.
My favorite fonts atm are Dina, CtrlD, and Gohufont. All fairly similar, but they are available in slightly different sizes. Between Gohu and one of the others, you should have a nice font for any size (I use a small Gohu-9 in the terminal, and ctrlD-10 or Dina-8 in emacs (they're oddly the same size, and both larger than gohu-9)
Have you considered trying emacs with evil mode? You can basically get all the functionality of emacs and never touch the original keybindings.
I'm not sure if I was just missing something, but this didn't adjust my background color (it just floated an image in the center). These lines are a (really) shotty solution, but they do seem to work.
I think that should be revealed once the survey results come out. They'll have better statisitcs than I would get by crawling through posts.
Nice colors. One might even say that the setup has an air of autumn... What color-scheme are you using in vim there?
Looks like monaco, but I could be wrong
My little chromebook http://imgur.com/a/BbcMV
Could you share the weather script? That's pretty slick.
In case you are interested (though you may not be), you can use this to do cool stuff in imagemagick. For instance, if your image is too square for your aspect ratio, but looks odd zoomed or stretched, in some cases you can "expand the canvas" using this trick. It will work best on "framed" pieces like this. Just 3 lines of imagemagick