dkeger

Submitted scripts and programs
Forum rules
Your own work only.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

dkeger

Unread post by machinebacon » Mon Nov 04, 2013 4:41 am

We should set up an .Xresources file that contains no color information for terminal colors at all (*color), for example:

Code: Select all

! dzen2 ----------------------------------------------------------------
dzen2.font: -*-fixed-*-*-*-*-10-70-*-*-*-*-*-*
dzen2.foreground: #7D7D7D
dzen2.background: #222222
 
! Xcursor settings -----------------------------------------------------
Xcursor.theme: ATER_Blue
 
! Xft settings ---------------------------------------------------------
Xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.antialias: 1
Xft.rgba: rgb
Xft.hinting: 1
Xft.hintstyle: hintfull
 
! xterm ----------------------------------------------------------------
xterm*saveLines: 1000
xterm*AllowIconInput: on
!xterm*Background: black
!xterm*Border: gray
xterm*DeiconifyWarp: off
xterm*Font: -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*
!xterm*Foreground: grey80
xterm*InternalBorder: 1
xterm*MarginBell: off
xterm*MenuFont: fixed8
xterm*Mouse: yellow
xterm*TitleFont: vtbold
xterm*charClass: 33:48,37:48,45-47:48,64:48
xterm*colorAttrMode: true
xterm*colorMode: true
xterm*curses: on
xterm*cutNewline: off
xterm*jumpScroll: on
xterm*multiClickTime: 500
xterm*multiScroll: on
xterm*reverseVideo: off
xterm*reverseWrap: off
xterm*scrollBar: off
 
! xcolorsel ------------------------------------------------------------
xcolorsel*Background: grey20
xcolorsel*Foreground: grey80
xcolorsel*Font: -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*
xcolorsel.geometry: 399x595
xcolorsel*displayFormat: #rrggbb
xcolorsel*maxRows: 99
 
! xfontsel -------------------------------------------------------------
xfontsel*Background: grey20
xfontsel*Foreground: grey80
 
! xosview --------------------------------------------------------------
xosview*font: -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*
xosview*background: grey20
xosview*foreground: grey80
xosview*net: true
xosview*netIface: eth0
 
! xscreensaver ---------------------------------------------------------
!font settings
xscreensaver.Dialog.headingFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.bodyFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.labelFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.unameFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.buttonFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.dateFont: -*-dina-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.passwd.passwdFont: -*-dina-bold-r-*-*-12-*-*-*-*-*-*-*
!general dialog box (affects main hostname, username, password text)
xscreensaver.Dialog.foreground: #ffffff
xscreensaver.Dialog.background: #111111
xscreensaver.Dialog.topShadowColor: #111111
xscreensaver.Dialog.bottomShadowColor: #111111
xscreensaver.Dialog.Button.foreground: #666666
xscreensaver.Dialog.Button.background: #ffffff
!username/password input box and date text colour
xscreensaver.Dialog.text.foreground: #666666
xscreensaver.Dialog.text.background: #ffffff
xscreensaver.Dialog.internalBorderWidth: 24
xscreensaver.Dialog.borderWidth: 20
xscreensaver.Dialog.shadowThickness: 2
!timeout bar (background is actually determined by Dialog.text.background)
xscreensaver.passwd.thermometer.foreground: #006aff
xscreensaver.passwd.thermometer.background: #000000
xscreensaver.passwd.thermometer.width: 8
!datestamp format--see the strftime(3) manual page for details
xscreensaver.dateFormat: %I:%M%P %a %b %d, %Y
 
 
! xclock ---------------------------------------------------------------
xclock*update: 1
xclock*analog: false
xclock*foreground: grey40
xclock*background: black
xclock*font: -*-fixed-*-*-*-*-8-*-*-*-*-*-*-*
 
! urxvt config ---------------------------------------------------------
URxvt.termName: rxvt-unicode
URxvt.imLocale: en_US.UTF-8
URxvt.saveLines: 5000
URxvt.cursorBlink: true
URxvt.foreground: #bcbcbc
URxvt.background: #000000
URxvt.cursorColor: #e0e080
URxvt.throughColor: #8080f0
URxvt.highlightColor: #343434
URxvt.transparent: true
URxvt.tintColor: #999999
URxvt.fading: 40
URxvt.visualBell: true
URxvt.urgentOnBell: true
URxvt.font: -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*
URxvt.scrollBar: false
URxvt.scrollBar_right: false
URxvt.urlLauncher: luakit
URxvt.matcher.button: 3
URxvt.perl-ext-common: default,matcher
! colors
! link
URxvt.colorUL: #D7D7D7
 
! aterm ----------------------------------------------------------------
Aterm*background: #000000
Aterm*foreground: #bcbcbc
Aterm*transparent: true
Aterm*shading: 80
Aterm*cursorColor: #d8d8d8
Aterm*scrollbars: false
Aterm*saveLines: 2000
Aterm*tinting: gray
Aterm*scrollBar: false
Aterm*transpscrollbar: true
Aterm*borderwidth: 0
Aterm*font: -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*
Aterm*geometry: 80x25
Aterm*fading: 70
 
! xcalc ----------------------------------------------------------------
xcalc*geometry: 200x275
xcalc.ti.bevel.background: #111111
xcalc.ti.bevel.screen.background: #000000
xcalc.ti.bevel.screen.DEG.background: #000000
xcalc.ti.bevel.screen.DEG.foreground: LightSeaGreen
xcalc.ti.bevel.screen.GRAD.background: #000000
xcalc.ti.bevel.screen.GRAD.foreground: LightSeaGreen
xcalc.ti.bevel.screen.RAD.background: #000000
xcalc.ti.bevel.screen.RAD.foreground: LightSeaGreen
xcalc.ti.bevel.screen.INV.background: #000000
xcalc.ti.bevel.screen.INV.foreground: Red
xcalc.ti.bevel.screen.LCD.background: #000000
xcalc.ti.bevel.screen.LCD.foreground: LightSeaGreen
xcalc.ti.bevel.screen.LCD.shadowWidth: 0
xcalc.ti.bevel.screen.M.background: #000000
xcalc.ti.bevel.screen.M.foreground: LightSeaGreen
xcalc.ti.bevel.screen.P.background: #000000
xcalc.ti.bevel.screen.P.foreground: Yellow
xcalc.ti.Command.foreground: White
xcalc.ti.Command.background: #777777
xcalc.ti.button5.background: Orange3
xcalc.ti.button19.background: #611161
xcalc.ti.button18.background: #611161
xcalc.ti.button20.background: #611111
!uncomment to change label on division button
!xcalc.ti.button20.label:      /
xcalc.ti.button25.background: #722222
xcalc.ti.button30.background: #833333
xcalc.ti.button35.background: #944444
xcalc.ti.button40.background: #a55555
xcalc.ti.button22.background: #222262
xcalc.ti.button23.background: #222262
xcalc.ti.button24.background: #222272
xcalc.ti.button27.background: #333373
xcalc.ti.button28.background: #333373
xcalc.ti.button29.background: #333373
xcalc.ti.button32.background: #444484
xcalc.ti.button33.background: #444484
xcalc.ti.button34.background: #444484
xcalc.ti.button37.background: #555595
xcalc.ti.button38.background: #555595
xcalc.ti.button39.background: #555595
XCalc*Cursor: hand2
XCalc*ShapeStyle: rectangle
and save it as ~/.Xresources

Then, produce this script, called 'dkeger'

Code: Select all

#!/bin/bash
# dkeger -- choose from a bunch of sexy Xresources
feh --montage --thumbnails /home/$USER/.colors/*.png &
echo "Which theme to use?"
dir /home/$USER/.colors
TMPFILE=/tmp/dkeger_store
touch $TMPFILE
XRSREAL=/home/$USER/.Xresources
XRSFAKE=/home/$USER/.Xresources_new
SELECTED=/home/$USER/.colors/$THEME
FULLNAME=("#include <${SELECTED}>")
sed '/include/d' < $XRSREAL > $TMPFILE
mv $TMPFILE $XRSREAL
echo -e ${FULLNAME} >> $XRSREAL
echo "$XRSREAL written..."
xrdb -merge $XRSREAL
echo "$XRSREAL merged..."
echo "You can close this terminal now."
setsid x-terminal-emulator
exit 0
save it, and make it executable.

Finally, get the archive of dkeg's Xresources colors, and copy them to ~/.colors

Code: Select all

git clone https://github.com/dkeg/colors.git
mv ~/colors/* ~/.colors
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: dkeger

Unread post by DebianJoe » Mon Nov 04, 2013 4:53 am

*thumbs up*
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

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

Re: dkeger

Unread post by dkeg » Mon Nov 04, 2013 5:27 am

wow Jules, great! thank you!

I was kicking some ideas around for such an automated result, starting with my pallater hack for easier c/p output. *thinking* about the cool results of joining pallater and dkeger

Work hard; Complain less

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

Re: dkeger

Unread post by machinebacon » Mon Nov 04, 2013 5:47 am

paletter could get a 'ask for filename' line and maybe even 'create preview in screentest' or so.
..gnutella..

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

Re: dkeger

Unread post by dkeg » Mon Nov 04, 2013 5:50 am

started working on something. Of course my skills are weak, but may be able to get something going. Probably will need some time though. No problem, just take it as side project. Going with the 'or create new?' option for starters and listing wallpaper directory for selection.

Work hard; Complain less

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: dkeger

Unread post by rhowaldt » Mon Nov 04, 2013 10:30 am

@dkeg: weak skills are skills ready to be developed. have fun :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

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

Re: dkeger

Unread post by dkeg » Mon Nov 04, 2013 1:56 pm

;D

Work hard; Complain less

Post Reply