Page 1 of 1

*SOLVED* Dkeger error and how to spectrwm scrot

Posted: Sun Nov 13, 2016 10:49 am
by noo_b_nomnoms
I used dkeger to change my xcolors.
Here is the output: Copying colorbar to /home/chuck/.Xresources_colors
xrdb: colon missing on line 20, ignoring line

Is this a problem that needs fixing? Where would I go to fix this "xrdb"?

And another boneheaded question: In looking up how to activate the scrot feature in spectrwm I have read that you must add the "screenshot.sh" full and window to your PATH$ (?) and now you will know why I don't write bash scripts: Just where is my PATH$ ? And where would the scripts for "screenshot.sh" full and window be?
I really think I've stayed up too late playing with this, lols!
I could use the help, though. I tried just copying the scripts with the "screenshot.sh" from my .spectrwm.conf to a bin folder that I created in my home directory, but that didn't work.

Re: Dkeger error and how to spectrwm scrot

Posted: Sun Nov 13, 2016 1:27 pm
by machinebacon
can you post your ~/.Xresources and ~/.Xresources_colors please?

about screenshot.sh - you can either simply put in our bbq scroters:

Code: Select all

program[screenshot_all]	= scrotnow	# optional
program[screenshot_wind]	= scrotsel	# optional
or even easier calling the program directly

Code: Select all

program[screenshot_all]	= scrot -m	# optional
program[screenshot_wind]	= scrot -s	# optional
or do this in a terminal (it copies the screenshot.sh file into our $PATH's /usr/local/bin/ and makes it executable)

Code: Select all

sudo cp /usr/share/doc/spectrwm/examples/screenshot.sh /usr/local/bin/ 
sudo chmod a+x /usr/local/bin/screenshot.sh
to know about your $PATH, see

3.2.1. The path at http://www.tldp.org/LDP/intro-linux/htm ... sect_03_02
7.2.1.2. Exporting variables at http://www.tldp.org/LDP/intro-linux/htm ... sect_07_02

Re: Dkeger error and how to spectrwm scrot

Posted: Sun Nov 13, 2016 4:12 pm
by noo_b_nomnoms
Thanks!
.Xresources:

Code: Select all

!*background: #000000
!*foreground: #ffffff
*transparent:    true
*shading:    15

*font:                  -*-neep-medium-*-*-*-15-*-*-*-*-*-*-*
*boldFont:              -*-neep-medium-*-*-*-15-*-*-*-*-*-*-*
xterm*faceName:         terminus:pixelsize=15

*scrollBar:             false
*internalBorder:        8
*externalBorder:        6

*allowBoldFonts:        true

Xft*dpi:                96
Xft*antialias:          true
Xft*hinting:            none
Xft.autohint:           0
Xft.antialias:          1
Xft.hinting:            true
Xft.hintstyle:          hintfull
Xft.dpi:                96
Xft.rgba:               rgb
Xft.lcdfilter:          lcddefault

include ".Xresources_colors"

.Xresources_colors: ! dkeg 2014 !

!!!! colorbar !!!!

!*background:#000000
*background:#111111
*foreground:#d3d3d3

*color0: #002596
*color1: #00AED9
*color2: #00AF4D
*color3: #0FCBBC
*color4: #555555
*color5: #34B6E5
*color6: #53DB3F
*color7: #7C5CCB
*color8: #CC092F
*color9: #D80073
*color10: #FF17A3
*color11: #FF535B
*color12: #FF993A
*color13: #FFE81A
*color14: #716800
*color15: #FFFFFF
That's that! The only thing I really did to .Xresources was try to add that transparency line at the top.
At least I think that's all I did....?

Re: Dkeger error and how to spectrwm scrot

Posted: Sun Nov 13, 2016 5:01 pm
by machinebacon
change

Code: Select all

include ".Xresources_colors"
to

Code: Select all

#include ".Xresources_colors"
# is not a comment in .Xresources. Comments have a ! in front.

As next,

Code: Select all

xrdb -remove
xrdb -load ~/.Xresources
and open a new terminal.

So, in short, your ~/.Xresources should look like:

Code: Select all

!*background: #000000
!*foreground: #ffffff
*transparent: true
*shading: 15

*font: -*-neep-medium-*-*-*-15-*-*-*-*-*-*-*
*boldFont: -*-neep-medium-*-*-*-15-*-*-*-*-*-*-*
xterm*faceName: terminus:pixelsize=15

*scrollBar: false
*internalBorder: 8
*externalBorder: 6

*allowBoldFonts: true

Xft*dpi: 96
Xft*antialias: true
Xft*hinting: none
Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintfull
Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault

#include ".Xresources_colors"

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 6:58 am
by noo_b_nomnoms
2016-11-14-000300_1280x800_scrot.png
2016-11-13-235618_1280x800_scrot.png
Thank you! I think I have it! :) The only problem is there is no beep or preview, so before I knew it I had a home folder full of scrots, lols!
Here's one (above :D)

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 8:35 am
by Snap
If you want to see the result (also indicates success if needed) you can use something like this:

Code: Select all

scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Imagess/ & feh -x ~/images/$f'
Modify it and adapt it to your needs. As is it needs feh, but you can use any other viewer.

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 10:53 am
by wuxmedia
pretty sure your output got pooched there.
yeah you can add some sort of ping to the scrot command/function/alias

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 11:03 am
by machinebacon
^^ that's exactly what BBQ's scrotnow and scrotsel do by default on BBQ. maybe feh got removed?

^^^ Anyway, if you want a beep, let me know. Or

Code: Select all

sudo editor /usr/local/bin/scrotnow
and add

Code: Select all

( speaker-test -t sine -f 1200 ) & pid=$! ; sleep 0.2s ; kill -9 $pid
as last line. Save, exit, try, be happy.

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 11:27 am
by wuxmedia
that is one motherfucker of an alert beep!

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 11:28 am
by machinebacon
^ WYSIWYG :D

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 4:37 pm
by noo_b_nomnoms
Thanks, guys! Everything is working! And this is great! Turn it on, and I got my emails and news on one page, general web browsing on another, file manager on another, musics on another, terms ready to rock on another, AWESOME! :)
I am very happy with this! :)
You need a "10" button on your rating page ;)

Re: *SOLVED* Dkeger error and how to spectrwm scrot

Posted: Mon Nov 14, 2016 5:14 pm
by machinebacon
you can make certain apps start automatically after login, like with

Code: Select all

autorun = ws[1]:icedove
it sometimes doesn't really want to open the apps in the correct workspace (ie. chrome always opens in WS1) but manually moving them with MOD-shift-2/3/4 is easy-peasy. spectrwm rocks.