-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am using the following key mappings to switch between a light and dark theme 
variant (solarized):

URxvt.keysym.M-C-8: 
command:\033]11;#fdf6e3\007\033]10;#657b83\007\033]12;#586e75\007\033]13;#586e75\007\033]708;#fdf6e3\007
URxvt.keysym.M-C-9: 
command:\033]11;#002b36\007\033]10;#839496\007\033]12;#93a1a1\007\033]13;#93a1a1\007\033]708;#002b36\007

But I would also like to adjust the color of the scrollbar from there.

It seems like 709 (as in "\033]709;#657b83\007") could be used, but it's not as 
easy as with the following patch, probably because the scrollbar needs to get 
re-initialized.

I would be happy to work on and provide a patch for this - but wanted to ask 
for feedback and help first.


diff --git i/src/command.C w/src/command.C
index 05e6f65..527f048 100644
- --- i/src/command.C
+++ w/src/command.C
@@ -3472,6 +3472,10 @@ rxvt_term::process_xterm_seq (int op, char *str, char 
resp)
         process_color_seq (op, Color_border, str, resp);
         break;
 
+      case URxvt_Color_scrollbar:
+        process_color_seq (op, Color_scroll, str, resp);
+        break;
+
 #if BG_IMAGE_FROM_ROOT
       case URxvt_Color_tint:
         process_color_seq (op, Color_tint, str, resp);
diff --git i/src/rxvt.h w/src/rxvt.h
index ec381a7..87b277a 100644
- --- i/src/rxvt.h
+++ w/src/rxvt.h
@@ -505,6 +505,7 @@ enum {
   URxvt_Color_BD         = 706,     // change actual 'Bold' color
   URxvt_Color_UL         = 707,     // change actual 'Underline' color
   URxvt_Color_border     = 708,
+  URxvt_Color_scrollbar  = 709,
 
   URxvt_font             = 710,
   URxvt_boldFont         = 711,


Thanks,
Daniel.
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlaWeUAACgkQfAK/hT/mPgBOfQCgvcpzf7lBi2L+ODEgX0FFBm/i
VLIAoNIE+iffuHfDufUerS1qGNj7ueaC
=8lNf
-----END PGP SIGNATURE-----

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to