*SOLVED* Dkeger error and how to spectrwm scrot

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

*SOLVED* Dkeger error and how to spectrwm scrot

Unread post by noo_b_nomnoms » Sun Nov 13, 2016 10:49 am

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.
Last edited by noo_b_nomnoms on Mon Nov 14, 2016 6:28 am, edited 1 time in total.
Sir! Put down the hammer and slowly step away from the computer.

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

Re: Dkeger error and how to spectrwm scrot

Unread post by machinebacon » Sun Nov 13, 2016 1:27 pm

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

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

Re: Dkeger error and how to spectrwm scrot

Unread post by noo_b_nomnoms » Sun Nov 13, 2016 4:12 pm

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....?
Last edited by dkeg on Sun Nov 13, 2016 10:27 pm, edited 1 time in total.
Reason: Added code tags
Sir! Put down the hammer and slowly step away from the computer.

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

Re: Dkeger error and how to spectrwm scrot

Unread post by machinebacon » Sun Nov 13, 2016 5:01 pm

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

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

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

Unread post by noo_b_nomnoms » Mon Nov 14, 2016 6:58 am

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)
Sir! Put down the hammer and slowly step away from the computer.

User avatar
Snap
Sperminator
Posts: 189
Joined: Sun Oct 05, 2014 8:11 pm

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

Unread post by Snap » Mon Nov 14, 2016 8:35 am

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.

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

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

Unread post by wuxmedia » Mon Nov 14, 2016 10:53 am

pretty sure your output got pooched there.
yeah you can add some sort of ping to the scrot command/function/alias
"Seek, and Ye shall find"
"Github | Chooons | Site"

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

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

Unread post by machinebacon » Mon Nov 14, 2016 11:03 am

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

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

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

Unread post by wuxmedia » Mon Nov 14, 2016 11:27 am

that is one motherfucker of an alert beep!
"Seek, and Ye shall find"
"Github | Chooons | Site"

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

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

Unread post by machinebacon » Mon Nov 14, 2016 11:28 am

^ WYSIWYG :D
..gnutella..

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

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

Unread post by noo_b_nomnoms » Mon Nov 14, 2016 4:37 pm

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 ;)
Sir! Put down the hammer and slowly step away from the computer.

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

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

Unread post by machinebacon » Mon Nov 14, 2016 5:14 pm

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

Post Reply