Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Digit

#21
Media Room / terminal colours
September 28, 2013, 03:52:40 PM
(yeah i said colours, not colors ~ brittish education)  ;)


here's a few ways (and please shout at me to add scrots of the lot):
nice one liner, 256:
(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)

perl, 256:
#!/usr/bin/perl
# Author: Todd Larason <jtl@molehill.org>
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $

# use the resources for colors 0-15 - usually more-or-less a
# reproduction of the standard ANSI colors, but possibly more
# pleasing shades

# colors 16-231 are a 6x6x6 color cube
for ($red = 0; $red < 6; $red++) {
    for ($green = 0; $green < 6; $green++) {
        for ($blue = 0; $blue < 6; $blue++) {
            printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
                   16 + ($red * 36) + ($green * 6) + $blue,
                   ($red ? ($red * 40 + 55) : 0),
                   ($green ? ($green * 40 + 55) : 0),
                   ($blue ? ($blue * 40 + 55) : 0));
        }
    }
}

# colors 232-255 are a grayscale ramp, intentionally leaving out
# black and white
for ($gray = 0; $gray < 24; $gray++) {
    $level = ($gray * 10) + 8;
    printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
           232 + $gray, $level, $level, $level);
}


# display the colors

# first the system ones:
print "System colors:\n";
for ($color = 0; $color < 8; $color++) {
    print "\x1b[48;5;${color}m  ";
}
print "\x1b[0m\n";
for ($color = 8; $color < 16; $color++) {
    print "\x1b[48;5;${color}m  ";
}
print "\x1b[0m\n\n";

# now the color cube
print "Color cube, 6x6x6:\n";
for ($green = 0; $green < 6; $green++) {
    for ($red = 0; $red < 6; $red++) {
        for ($blue = 0; $blue < 6; $blue++) {
            $color = 16 + ($red * 36) + ($green * 6) + $blue;
            print "\x1b[48;5;${color}m  ";
        }
        print "\x1b[0m ";
    }
    print "\n";
}


# now the grayscale ramp
print "Grayscale ramp:\n";
for ($color = 232; $color < 256; $color++) {
    print "\x1b[48;5;${color}m  ";
}
print "\x1b[0m\n";


a nice classic graph:#!/bin/bash
#
#   This file echoes a bunch of color codes to the
#   terminal to demonstrate what's available.  Each
#   line is the color code of one forground color,
#   out of 17 (default + 16 escapes), followed by a
#   test use of that color on all nine background
#   colors (default + 8 escapes).
#

T='TiP'   # The test text

echo -e "\n                 40m     41m     42m     43m\
     44m     45m     46m     47m";

for FGs in '    m' '   1m' '  30m' '1;30m' '  31m' '1;31m' '  32m' \
           '1;32m' '  33m' '1;33m' '  34m' '1;34m' '  35m' '1;35m' \
           '  36m' '1;36m' '  37m' '1;37m';
  do FG=${FGs// /}
  echo -en " $FGs \033[$FG  $T  "
  for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
    do echo -en "$EINS \033[$FG\033[$BG  $T  \033[0m";
  done
  echo;
done
echo



another nice classic graph:#!/bin/bash
#
# Description:
#
#    Prints a color table of 8bg * 8fg * 2 states (regular/bold)
#
# Copyright:
#
#    (C) 2009 Wolfgang Frisch <xororand@unfoog.de>
#
# License:
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

echo
echo Table for 16-color terminal escape sequences.
echo Replace ESC with \\033 in bash.
echo
echo "Background | Foreground colors"
echo "---------------------------------------------------------------------"
for((bg=40;bg<=47;bg++)); do
        for((bold=0;bold<=1;bold++)) do
                echo -en "\033[0m"" ESC[${bg}m   | "
                for((fg=30;fg<=37;fg++)); do
                        if [ $bold == "0" ]; then
                                echo -en "\033[${bg}m\033[${fg}m [${fg}m  "
                        else
                                echo -en "\033[${bg}m\033[1;${fg}m [1;${fg}m"
                        fi
                done
                echo -e "\033[0m"
        done
        echo "--------------------------------------------------------------------- "
done

echo
echo


another 256 list:#! /bin/bash
for i in {0..255} ; do
    printf "\x1b[38;5;${i}mcolour${i}\n"
done


a lua one, alegedly:#!/usr/bin/env lua

function cl(e)
return string.format('\27[%sm', e)
end

function print_fg(bg, pre)
for fg = 30,37 do
fg = pre..fg
io.write(cl(bg), cl(fg), string.format(' %6s ', fg), cl(0))
end
end

for bg = 40,47 do
io.write(cl(0), ' ', bg, ' ')
print_fg(bg, ' ')
io.write('\n    ')
print_fg(bg, '1;')
io.write('\n\n')
end


ruby roo?!?#!/usr/bin/env ruby
# coding: utf-8

# ANSI color scheme script
# Author: Ivaylo Kuzev < Ivo >
# Original: http://crunchbanglinux.org/forums/post/134749/#p134749
# Modified using Ruby.

CL = "\e[0m"
BO = "\e[1m"

R = "\e[31m"
G = "\e[32m"
Y = "\e[33m"
B = "\e[34m"
P = "\e[35m"
C = "\e[36m"
 
print <<EOF

#{BO}#{R}  ██████  #{CL} #{BO}#{G}██████  #{CL}#{BO}#{Y}   ██████#{CL} #{BO}#{B}██████ #{CL}  #{BO}#{P}  ██████#{CL} #{BO}#{C}  ███████#{CL}
#{BO}#{R}  ████████#{CL} #{BO}#{G}██    ██ #{CL}#{BO}#{Y}██ #{CL}      #{BO}#{B}██    ██#{CL} #{BO}#{P}██████ #{CL} #{BO}#{C} █████████#{CL}
#{R}  ██  ████#{CL} #{G}██  ████#{CL}#{Y} ████    #{CL} #{B}████  ██#{CL} #{P}████ #{CL}    #{C}█████ #{CL}
#{R}  ██    ██#{CL} #{G}██████ #{CL}#{Y}  ████████#{CL} #{B}██████ #{CL}  #{P}████████#{CL} #{C}██ #{CL}

EOF


anyone got more?
#22
get flattr for vsido, put a button for it under the donate button, and i'll subscribe, giving you a guaranteed monthly lil extra from me.
(guaranteed so long as i keep my flattr fund topped up.)
#23
Media Room / advanced multimedia terminal emulators
September 28, 2013, 07:46:57 AM
i've seen two such things.

a terminal emulator, that can do WAY more than is typical.  graphics and video, not only "barely achieved in a rudimentary way" but actually far outstripping any other means of cruising through your images and video...

... now if only i could find them again.   grrr.

[edit]
ah, wasnt too painful to search for (lies).
found mention of http://www.enlightenment.org/p.php?p=about/terminology or http://acko.net/blog/on-termkit/ or http://xiki.org/ via arch forum.

terminology i think is the one i was thinking of.
https://www.youtube.com/watch?v=ibPziLRGvkg
(not the best video of it in action, just the first i found this time.)

~update~
tried installing from the github following not the readme (which was bs), but instead following (some of) this: http://comments.gmane.org/gmane.comp.window-managers.enlightenment.user/19208
i gave up when stumped by no libtoolize or glibtoolize availability.

probably will have more success with trying that other repo... maybe.
#24
I've Got a Life / orgmode - your life in plain text
September 28, 2013, 06:30:16 AM
k, i'm a newbie with orgmode, so am undeserving of making even so much as an introductory how-to... but i suppose orgmode.org has enough links to documentation already, and there are some excellent videos about it too.   so getting into it is easy enough that i neednt even try to how-to it.

like the tagline says, your life, in plain text.

so, what better place for it than in here!

"I've got a life"... might as well get it organised with org mode.  :)

https://www.youtube.com/results?q=orgmode
#25
VSIDO Discussions / 100th user celebrations?
September 27, 2013, 01:33:43 PM
according to the members page, there are 99 forumites here.

are we going to throw a party for the next to show up in the introductions section?

"congratulations, you are the 100th member..." that kind of thing...

;D
#26
Artwork & Screenshots / VSIDO ASCII
September 27, 2013, 10:41:43 AM
we like screenfetch.  it's nice.
it could be nicer, with a vsido logo, rather than a debian one...

with that in mind, dizzie and me were having a little poke around.

here's a reasonably well refined version (compared to both our earlier attempts)...
              ..,,;::ccc:;'.              
          ..';:cccccccccccc:;'.           
        .':cccc:,,'...'';:cccc:'.         
      .':ccc:'..         ..,:ccc,.        
     .,ccc;'.               .,ccc,.       
    .,ccc'.                  .':cc.       
    'cc:..         ...'..      .:c,.      
   .:c:.         .',.....       ,c:.      
   'cc'         .,'.            .cc.      
  .;c;.         ,,.             .:c.      
  .:c'         .:.              .::.      
  .:c.         .:.              .:,.      
  .:c.         .;:.             ';.       
xl.,c,.xl..:lclc.lk: ;xoccod:..,,.:lcll:. 
xX.'c:cW:.0d. .; .Kd,cMo .'cKXc.,Kd. .;kO.
.Xd.;c0o 'Wk'     0l'oMk;:;;;Xx kK.    .Xd
 oW:.o0'  'dK0d.  0: :Md...  0k 0k      0k
 .KK'0x:.   .:kO  0: :Mo    .Xd kK.    .Xd
  :W00;c:;;. .dd  0: :Mo  .cKk. 'Kd. .;0k.
   cx,.,coOdcl:. .d: ;xocclc;.   .:lcll:. 
       .':c:.                             
         .;c:,.                           
          ..;c:'.                         
            ..,::,...                     
               .',;:;,'.....              
                   .',:ccc;.              

feel free to echo that into a terminal to see.   heh, i'm too lazy to scrot it for you just yet.
(i'll come back n make this thread's original post nice later.)

oh, and that was made using jp2a.sudo apt-get install jp2a && man jp2a

to be specific, i used this command (on a pic i had just made specificly intended to work cleanly in ascii):jp2a --colors --size=42x26 ~/images/vsido/vsidoforascii-mk2.jpg (and of course just added a " > filename" to get it saved nice n neat for later, in a form which is more easy to get.

now we just need to get that added to screenfetch's code.  ;)
... er, or refined a bit more before we do.  ;)
#27
Feedback & Suggestions / release names
September 26, 2013, 02:38:55 PM
just a suggestion (oh, i dont need to point that out in this forum section i suppose...)


grep -i sid /usr/share/dict/words | grep -v side

words with "sid" in them.   ... but not side, cos that sorta ruins it.


pick from that.  ;)   plenty releases to come.  ;)


not that this is a naming convention of vsidos... but it could should be.  ;D
#28
ok, following the release early model...   (i.e. this doesnt work yet! ~ see error output bellow)
here goes.


#! /bin/bash

#local scrot location
LOCSCROT="/home/digit/images/screenshots"

#this is where you're uploading your scrots
UP="/media/ovhtoo/home/digit/stuff/scrots"

#this is where you're getting your url from
DOWN="http://ks392457.kimsufi.com/stuff/scrots"

#vasties way:
#scrot -d 6 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrots &amp; mirage ~/images/screenshots/$f'

#similar to way in man scrot
scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f $LOCSCROT/'

#this is the name of your picture
PIC={ls -hart $LOCSCROT | tail -n 1}

#my first notion was to reach for mogrify after a cp... but... see below...
#mogrify -resize 400x300 $LOCSCROT/$PIC


#... for my better notion...

#create a $PICTHUMB name here somehow perhaps, so i dont end up with *.png-thumb.png

#this creates the thumbnail and uploads ... no need for the thumbnail locally.
convert             \
   $LOCSCROT/$PIC        \
  -resize 400x300     \
  -background white \
  -gravity center   \
  -extent 400x300     \
   $UP/$PIC-thumb.png

#this uploads, presuming your sshfs mount is active
cp $LOCSCROT/$PIC $UP/$PIC

#this then provides you with the bb code in your clipboard
echo "[url=$UP/$PIC][img]$UP/$PIC-thumb.png[/img][/url]" | xclip


after seeing that talk about zenity n such, i thought i should get this ball rolling, hopefully light a small fire under my ass with this lil project.
the potential grows...

not just for setting locations, but methods of uploads, and so on...  well... it will come.    feel free to contribute past my sluggish ineptitude.  ^_^   there be interested parties around.  ;)

##### error
Quotemv: cannot move '2013-09-25_1400x1050.png' to 'LOCSCROT/': Not a directory
/home/digit/bin/zkrt: line 19: -hart: command not found
tail: 1}: invalid number of lines
convert.im6: no decode delegate for this image format `/home/digit/images/screenshots/' @ error/constitute.c/ReadImage/544.
convert.im6: no images defined `/media/ovhtoo/home/digit/stuff/scrots/-thumb.png' @ error/convert.c/ConvertImageCommand/3044.
cp: omitting directory '/home/digit/images/screenshots/'

XD, ok, so, somehow the scrot command didnt like my local directory variable, my ability to embed in {} is pure fantasy (or at least need quotes), somehow doesnt like to tail a single line (oh, cos zero output?), and, dear lord what have i done wrong with my imagemagick convert command!?

someone slap me. XD
#29
ok, to my surprise i was kinda handed the job of being the guy to define the default vsido command aliases.

so since i'm not so full of myself to think i have the best ideas (because what an awesome lil crowd we have here), i thought it appropriate to make my effort more a "compiling the good ideas from everyone" than a "coming up with the good ideas by myself".

to be clear, the purpose of this thread, is not the same as aliases you use.  the purpose is to come up with a healthy, advantageous, robust and sane set of aliases worthy of giving out to everyone as a default.  (though feel free to pluck worthy aliases from the aliases you use thread, ~ i'll certainly be having another look at it later too.)

so... here's what we have so far...

(work in progress, will attempt to make it well organised enough for clarity, including enough 'system' to allow users to extrapolate.)


alias up='sudo apt-get update && sudo apt-get dist-upgrade'
alias get='sudo apt-get install'
alias rem='sudo apt-get autoremove'
alias cl='sudo apt-get autoclean'
alias se='apt-cache policy'
alias upg='sudo update-grub'
alias grc='ps aux | grep'
alias re='source ~/.bashrc'
alias cd..='cd ..'
alias md=mkdir
alias sdn='sudo shutdown -h now'
alias prg="sudo apt-get purge"
alias ls='ls -F --color --group-directories-first'
alias l="ls -lha"
alias c='clear'  #necessary?  c ENTER is better than CTRL l ?
alias q='exit'
alias s='sudo'
alias al='cat ~/.bash_aliases'
alias muz='cd $HOME/music && gyts'
alias fin='find . | grep -i -s -e "$@"'
alias lxterm='lxterminal'

######################################################
############# Abbreviated apt Commands ################
######################################################

#these are very useful if you know your apt commands already.
#tip: agu, agi, agr, acs, and agdu, are likely the one's you'll first want.

alias agi='sudo apt-get install'
alias agir='sudo apt-get install --reinstall'
alias agfi='sudo apt-get -f install'
alias agr='sudo apt-get remove'
alias agpr='sudo apt-get --purge remove'
alias agp='sudo apt-get purge'
alias acs='apt-cache search'
alias acsi='apt-cache --installed search'
alias agu='sudo apt-get update'
alias agup='sudo apt-get upgrade'
alias agdu='sudo apt-get dist-upgrade'
alias agar='sudo apt-get autoremove'
alias agarp='sudo apt-get autoremove --purge'
alias agc='sudo apt-get clean'
alias agac='sudo apt-get autoclean'                                                                                                                                           
alias acp='sudo apt-cache policy'
alias agka='sudo apt-key add - '
alias aar='sudo add-apt-repository'

######################################################
######### Aliases for setting the background ##############
######################################################

alias fehb='feh --bg-scale' #fehb defaults to feb --bg-scale, change to pref
alias fehbs='feh --bg-scale'
alias fehbc='feh --bg-center'
alias fehbf='feh --bg-fill'
alias fehbm='feh --bg-max'
alias fehbt='feh --bg-tile'


######################################################
############## terminal color aliases ###################
######################################################

alias listtermcolors='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)'
alias graphtermcolors='~/bin/colortable.sh'

#####################################################
############# file management aliases ###################
######################################################

alias big='ls -laSh | head'  #show the top ten biggest files in current dir
alias latest='ls -lhart'

#cant see the forest for the trees (install tree too, its nice)
alias forest="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'"

######################################################
############# statmonkey's aliases #####################
######################################################

alias did='sudo ls -l /dev/disk/by-id/*'
alias tr='sudo find / -type d -name *Trash*' # find all your trash files
alias rb='exec bash'      # restart bash environment
alias hb='history|more'            # get a listing of your bash history
alias path='echo -e ${PATH//:/\\n}' #lists out your path var
alias atoz="mkdir {A..Z}" #create a to z folders
alias uuid='ls -al /dev/disk/by-uuid/*' # List drives by uuid
alias netmap='nmap 192.168.0-1.0-255 -sP' # get a complete netmap requires nmap

######################################################
############## VastOne's Added Aliases ##################
######################################################
alias sl="sudo medit /etc/apt/sources.list"
alias reinstall='sudo apt-get install --reinstall'
alias finstall='sudo apt-get -f install'
#alias agp='sudo apt-get autoremove --purge' #conflicts apt-get purge.  try agarp
alias add='sudo add-apt-repository'
alias install-norec='sudo apt-get install --no-install-recommends'
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias addgpg='sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys'
alias addkey='sudo gpg --keyserver subkeys.pgp.net --recv'
alias expkey='gpg --export --armor'
alias keyadd='sudo apt-key add - '
alias sfonts='sudo fc-cache -fv'
alias fonts='fc-cache -fv'
alias da='date "+%a, %b %d, %Y [%I:%M %P]"'
alias dat='date "+%A, %B %d, %Y [%I:%M %P]"'

######################################################
############ Non-INXI system info Aliases #################
######################################################

alias running='PS_FORMAT="user,pid,pcpu,pmem,start,args" ps axf' #that wise?

######################################################
############### Various INXI Aliases #################
######################################################
####################### Short ########################
alias s11='inxi -Fz -c6' ## filtered
alias S11='inxi -F -c6' ## not filtered
####################### Full #########################
alias SYS='inxi -ACDfGIpluNrsSt cm3 -x -v7 -c6' ## not filtered
alias sys='inxi -ACDfGIpluNrsSt cm3 -x -v7 -c6 -z' ## Filtered
####################### Pieces #######################
alias aud='inxi -A -x -c6'
alias cpu='inxi -Cf -x -c6'
alias hdd='inxi -Dd -x -c6'
alias mac='inxi -M -x -c6'
alias net='inxi -N -x -c6'
alias par='inxi -plu -x -c6'
alias sen='inxi -s -x -c6'
alias gfx='inxi -Gx -x -c6'


so, with a mind to aliases useful to all, not just our own itches, please, provide some suggestions... and dont be upset when/if this list starts getting edited down to avoid absurdity or conflicts.   :)   we cant just keep adding everyone's... can we?   

typical approach i plan to take with this is to prioritize towards the systematic, e.g. where i have commented out VastOne's "agp", favouring the naming system of merely abbreviating the apt commands, such that agp means apt-get purge, and thus agarp is there to do the apt-get autoremove purge.   

^ this is only so far as there's overlap.   of course it makes sense to keep a lot of the aliases more human, than systematic.   like, i'm not going to write a load of other aliases for the inxi stuff, ... gfx of course is preferred over iGxc6.

but why system > human?   hey, it worked for chemistry (for the most part), and enables you to know thousands from knowing just enough to have grokked the system.   compared to the library of arbitrary chemical names prior to systematizing, it's just better.   ;)  ... mostly.

oh, and from time to time i may throw a comment in there querying an alias (like c=clear)... such comments i dont intend to keep.  only until certainty over an alias.

(and as VastOne said in his post bellow, dont be shy about suggesting ones for stuff that's not in vsido by default, so long as they make sense, and we can make them fit in, they wont hurt to have)

with that all said, please do fire away, not only with suggestions of what to add, but what to change, how to arrange, rearange, reoraganise, refactorise, recomment, etc.   and of course point out any conflicting overlaps i have missed!



thnx.
#30
I've Got a Life / I LUB GNU
September 25, 2013, 10:32:15 AM
~{ k, since this forum doesnt have a general catch-all forum to pick up all the threads that dont fit into any of the other subforums/sections, i'll just post this here. }~

so.  gnu's almost 30!

great!  none of us would be here without it.

i've just watched: GNµ 19 - Gnunet - Teil 2: Richard Stallman ...and think it one of the best.  he hits a lot of major points in a fairly expedient and concise way to convey the principle.

so...

i lub gnu...

... but... i'm still a lazy convenience trapped fool in many regards.

let me just run vrms in command line (a virtual richard matthew stallman for your computer!) and see how far off the mark i am on my main two local machines...

ok, i'll just share the output of vrms | tail -n 2, because frankly, the rest is embarrassing.

the laptop's main OS (still the age old crunchbang long since up'd to sid):
  8 non-free packages, 0.3% of 2484 installed packages.
  13 contrib packages, 0.5% of 2484 installed packages.

the big main workstation/server's main OS (vsido from... back whenever that was i installed it around the start of 2013):
  9 non-free packages, 0.5% of 1855 installed packages.
  2 contrib packages, 0.1% of 1855 installed packages.

i've had that as low as 4 non free packages in the past.

why do i do it?

i want stuff, i want...

it's that paradoxical self-contradictory position of being free to be not free. 

is this cognitive dissonance?   surely at least a little.   maybe some schism between perceived values, and actual values.  ... like wanting to have a higher self image of one's own ideals, principles and values than one actually has.   ... still, that's got to be a good thing in a way, right?  that one is wanting/striving for better.  that they affirm that kind of better progression in themselves, holding that vibe, so the rest will follow and entrain to it.

maybe i'm just flexing some smarts to excuse it, or distance myself from the reality of ~ a thousand vulnerabilities, or idk.

i just wanna say, i lub gnu, but i know my practice lags behind my ideal.


many times of recent, both in this regard, and in others, i've been reminded of some old story (i dont recall if it was from jains, buddhists, or whoever)...

this monk is going along one day, and he takes a long path around a pond to avoid a lion in a cave at the other side of the pond.  another day the monk's going along, the lion attempts to lure him over with some gold, the monk goes for the gold, gets eaten.

~ there's certainly a longer more eloquent and poignant version of the story that drives it home better.  but yeah, that's the gist... lion offering gold. 

i lub the fsf too y'see.   even managed to give em some money during that brief time i had some.

so... when i watch rms vids like the one above, i cant help but feel like ... idk... a fool?  a hypocrite?  a charlatan?  no, maybe they're all a bit too harsh.  ... makes me feel like i CAN do better.   (... and having looked at some security advisories recently, stuff elaborating on specific package vulnerabilities to remote, all the more feeling the very valid real need to gut out the proprietary stuff, which typically has at least an order of magnitude higher number of issues and frequency of issues.)

like Gandhi say:

you have to be the change you want to see in the world.

(which also is the favorite quote of my ex)  :)


ok, so i'm going to presume it's a given that you love gnu, or at least foss in general to some large extent, or at the very least like your freedom...
... do you love it enough to appease vrms?

sudo apt-get install vrms
vrms


ps, who was it was asking about how to youtube without flash recently?  ... ~ i should go find that thread wherever that was...
pps, just saw mention of apt-rdepends in http://vsido.org/index.php/topic,501.msg6174.html#msg6174 and think, what a lovely little tool to help check all the things vrms lists, to help get a clue of what's not needed.
#31
Conky / Interactive conky
September 16, 2013, 12:58:48 AM
Quote
intention with this thread, is to provide an overview of the methods to make conky interactive, and provided a dedicated space to discuss those methods, and to share new methods and ways and tricks and nuances relating closely to conky interactivity.

so conky's not interactive is it.

or is it?

it can be.  i stopped using conky because i thought interactivity couldnt be done without heavy base code modification.

years without searching, i searched again, and now it seems there are many routes.

so i'm starting this thread with the intention of compiling a nice clean bullet point list of the possible routes to go do create interactivity in conky.

and maybe another list of great links with more interactivity info.

so, i'm sure i'll be back to edit this first post to extend these lists many times.   please help by posting about other means you find exist, and i'll try to update in a timely manner.



WAYS!

conky clicky
https://github.com/netikras/ConkyClicky

dzen + conky + ...?
(sry, i dont have a link, i've just been informed it's doable)

MrPeachy's method
http://crunchbang.org/forums/viewtopic.php?pid=199475#p199475





LINKS!

crunchbang forums has a thread titled like this one, it's quite long.  ^_^  (lets be conciser and cover more broader ground here in this one)
http://crunchbang.org/forums/viewtopic.php?id=18419&p=1

actually, that's just peachy's thread again, here's another of his, a tute for making buttons.
http://crunchbang.org/forums/viewtopic.php?pid=245759%23p245759#p245759

further ways, could be achieved with the exec, execi and texeci ... if you get creative. ;)
https://wiki.gentoo.org/wiki/Conky/HOWTO#Extending_Conky

xdotool is a probable candidate in many methods, though will likely take a bit of work from scratch... it's not short, clean and minimal.
http://www.semicomplete.com/projects/xdotool/

you know some lua, right?  it will likely be helpful to you too. here's mr peachy's how to for lua scripting conky.
http://crunchbang.org/forums/viewtopic.php?id=17246

some more mentions of "interactive conky" found on vsido forum:
http://vsido.org/index.php/topic,6.msg1509/topicseen.html#msg1509
http://vsido.org/index.php/topic,6.msg970/topicseen.html#msg970
(yeah, i thought there'd be more too)


VIDEOS
(thought i should add a separate heading for this stuff.)

this one calls itself default...  and.. it's in vsido...
Default interactive conky panel (did i miss something when i ran away straight to to my xmonad config after installing vsido? vsido has interactive conky ootb?)

more from falldown:
http://www.youtube.com/user/202christopher/videos (INCLUDING LCARS)



please share any other links you know of that may be of use.

(small beginnings, i know)



#32
this is the main xmonad thread at vsido.org


http://xmonad.org

as requested, here's a screenshot of it. 

#33
Scripts / plait
September 12, 2013, 10:51:54 PM
~ well, not sure this qualifies quite as a "How-To", but maybe another more fitting section will be found for it, or maybe i'll just try to make it more how-to-ish than i was originally intending to bother with ~

I just want to bring to your attention, a way of playing your music, that deserves more attention and widespread use.

plait.

do you like unix philosophy?  do you like the star trek computer?

plait's kind of both.

for example, to play some jazz, i would simply issue:plait jazz
rather elegant and simple.

so, presuming you've got it installed, and set up correctly in your ~/.plait/config, and have run plait -cto update the cache at least once, then the fun begins.

so, there's not really much to say about it is there.  a quick look through the man page, and you'll likely grok enough info.

plait -r bobwill play a shuffled playlist of any track with the the string "bob" anywhere in its filename, or tags.

ok, so that might not be an entirely practical way to use it.  but there are many better ways you'll be able to come up with to play just what you want.

plait 2013 plait floyd wish plait -r tull brick

of course, if writing plait is too much for you, you could always make a shorter alias in your ~/.bashrc or even as some script...alias plr="plait -r" or even some specific onesalias idm="plait -m idm electronica bleep" alias scaregran="plait -r gabber" alias scarestalker="plait -r nal unt" alias scarefriends="plait -r jedward"

and remember i said unix philosophy...

try that same lovely intuitive searching of your music to match your terms, with plait -l so maybe something like plait -l springsteen and viola, a nice clean text output of the paths to those tracks that match...  pipe that or output to files or... see, very nice for creating playlists n things like that.   :)  and of course, once you create a playlist, you can give it a unique memorable name, and then play it with plait ...

and loads of other cool stuff too.  once it's open to unix philosophy, the potential goes through the roof.

... but mostly, i just use it like the peeps in star trek ask for music from the ship's computer.

usually that's asking for a genre or a composer/musician/orchestra/band, or sometimes i get as specific to ask for an album, or a track, and sometimes more intricate and elaborate things.

usually it's just something like:plait tranceorplait baroqueorplait -r ambient soundscapeso i can quickly help induce the required brainwave state conducive to whatever i'm doing, working or learning or relaxing.

i do find myself doing plait -r anadaoften, and also plait anada ountry for some faves.

so, i hope you see the point i'm trying to emphasize here, that, although plait does open to a multitude of wonders and utilitarian gold, it's one simple simple ability, that being as a juke box, is done so well, such that merely doing that one thing so well is reason enough to bring plait to the attention of others alone.   it really has to be experienced to really get the jist of how much a boon it is to deal with your music playing in this manner.

presumably you've got a nice collection of music you like in your collection, and it's reasonably well populated with tags (usually just as they come), and that's enough to help plait make the best of that for you. 

plait does for playing your music, as tiling window management does for your workflow.     ~er something like that, not quite worded as clearly as i have it in my head, but it's the same kind of augment.  it gets the clumsy interface out of your way, and just neatly organises stuff and does what it's supposed to, as effectively and as out of your way as possible.   unobtrusive.  the quiet aid that does the job, not the loud glamor pop-tart toddler that puts all its efforts into being noticed.

in the back of my mind, i keep coming up with wonderful scripts, using time dependancy for what mood of stuff to play...  so i can have an endless playlist to tune into, always different every day, able to be left on 24/7, but adaptive and interactive/interuptable enough to switch it up to high gear (like if you have a party, and want the thumping music when you'd normally have been asleep), and so on... but then, plait works just so great and effortless for whatever you want to be playing anyways, it's like, why bother.   ^_^

having said that, if you do bother, please do share any of your plait script creations, or other use tips.  :)

greatest implementation of plait i have seen, was in INX. 

oh hey, that reminds me, it can stream too.  you can use that same genius interface to basically access any number of djs out there.  ~  i think there may be some fiddling and limitations to that...  yet to investigate at time of writing initial post.  (may return to edit with more stream info later)

so anyways, before i lose any sense of a punchy end and trail off, i'll stop there.

sudo apt-get install plait
(hopefully that gets you plaiter in the same package)

more (better) plait info here!

^ have at.  :)
#34
(really wasnt sure where to post this half baked blue-sky idea)
(no really, wasnt even sure which forum to post it in, n when i got here... wm, ot, suggestions, or...   idk.)


it all started with a thought... posted as an action in an irc chan not long ago...

* digit ponders having his system configured effectively entirely with custom environment variables, so all configs merely point to the enviroment variables, and then one has all the unixy goodness power to it all the more, or even just to consolidate into one config

idea came from thinking about how to set up a twin gtk config that'd be on a timer, and manually toggle-able.  then thinking, what about all the non-gtk .... say you've got an emacs config, and a tint2, and a conky, and a tilda, and a tickr.... and whatever else that uses some kind of unique colour configuration non-standardisation.

so how would i be able to go about having my night/day colour configs work for all those non gtk apps too?   that toggle has to change everything, or it defeats the point.

at first i thought, maybe some complex convoluded script with the static locations in all the configs kept track off, and sed, awk, grep, replace the shit out of them....


then i thought, what a stupid amount of work... cant they all just be pointing to variables that you can cleanly edit in a consolidated sensible expedient clear manner?


...



let that sink in for a moment if you want.  what that would be like....



...



...



*nods intensely*

:)  anyone with me on this?  get it?   makes sense right?  seems too simple tho, no?  surely some mad genius had already thought of this...     surely there's some reason this is not already so, as the norm across configs everywhere in all distros...

i imagine there's likely already limitations with many specific application's non-standard config just not even being smart enough for that sort of thing.  .... or are none of them smart enough for that?  o_O



of course, even if one is completely uninterested in the initial notion ~ of a day/night config toggle, for visibility in high light, and reducing glare in darkness ~, the ability to consolidate and unify your colour theme across all apps is sure to be an easy sell for most of you. 

...at least for those of you who have experienced the displeasure of having tweaked some colour config to perfection-for-that-moment, then see the other apps dotted around that have no clue about your brilliance in that other supposedly more system-wide config.

desktop environments try to prevent this in their own closed pockets... but idea that they're a closed system the devs have perfect control over to create the perfect paradise for its users is an illusion i doubt anyone can seriously hold for long... there will always be something else that needs to be installed but refuses to play with this desktop environment's paradigm, because, frankly it wasnt created by the de's devs, or with any thought to limiting itself to only this desktop environment  (well... some apps do, but you know what i mean).

so desktop environments didnt really solve the problem, only created another example of xkcd 927.



lets go back, not forwards then.  dont build on, build under.  er... no, that could easily be misinterpreted and misconstrewed.  (shows my spell checker is off, i know ~ as if you wouldnt have noticed "convoluded" earlier, and the rest. )

just go to the unixy goodness i mean.  get a d.e.-agnostic, distro-agnostic, more core n fundamental means...

or am i barking up the wrong tree with this notion?




[right before posting]
woah, triple dejavu... i think i've had this idea recurring every few years, then forgotten about until i start to understand things better and get closer to a way to implement...  this feels like i'm pretty close this time.   if it doesnt get implemented this time... next time i come up with this idea, for sure.  XD

PS my forum original-posts like this are always better than my blog.  XD 
#36
VSIDO Discussions / The vsido remastery thread
April 10, 2013, 12:53:44 PM
this thread is intended for any and all issues surrounding remastery.  aka, roll-your-own.  aka various other things too, but basicaly the ability to make your own transferable/sharable/reuseable iso of your own changed version of a distro. 

debian-live, remastersys, refracta, relinux, linuxlive scripts, clonezilla, tar, dd, chroot, squashfs, aufs, unionfs, bootloaders, installers, configs, personal file exclude lists, and so on.

but perhaps the overarching theme intended for this thread, is perhaps to probe for "the best"* method of remastery. 

*everyone having different needs, the best, can be a great many things.  matters of convenience and ease, control and customiseability, universality and distro-agnosticism.   



which method is best?  which have you used?  what are the benefits of one over another for you?  are there any methods i left out?
#37
WM Designs and Discussions / tinywm
April 09, 2013, 11:42:23 PM
https://github.com/mackstann/tinywm

it's tiny... no, really tiny.

see: /* TinyWM is written by Nick Welch <nick@incise.org> in 2005 & 2011.
*
* This software is in the public domain
* and is provided AS IS, with NO WARRANTY. */

#include <X11/Xlib.h>

#define MAX(a, b) ((a) > (b) ? (a) : (b))

int main(void)
{
    Display * dpy;
    XWindowAttributes attr;
    XButtonEvent start;
    XEvent ev;

    if(!(dpy = XOpenDisplay(0x0))) return 1;

    XGrabKey(dpy, XKeysymToKeycode(dpy, XStringToKeysym("F1")), Mod1Mask,
            DefaultRootWindow(dpy), True, GrabModeAsync, GrabModeAsync);
    XGrabButton(dpy, 1, Mod1Mask, DefaultRootWindow(dpy), True,
            ButtonPressMask|ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None);
    XGrabButton(dpy, 3, Mod1Mask, DefaultRootWindow(dpy), True,
            ButtonPressMask|ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None);

    start.subwindow = None;
    for(;;)
    {
        XNextEvent(dpy, &ev);
        if(ev.type == KeyPress && ev.xkey.subwindow != None)
            XRaiseWindow(dpy, ev.xkey.subwindow);
        else if(ev.type == ButtonPress && ev.xbutton.subwindow != None)
        {
            XGetWindowAttributes(dpy, ev.xbutton.subwindow, &attr);
            start = ev.xbutton;
        }
        else if(ev.type == MotionNotify && start.subwindow != None)
        {
            int xdiff = ev.xbutton.x_root - start.x_root;
            int ydiff = ev.xbutton.y_root - start.y_root;
            XMoveResizeWindow(dpy, start.subwindow,
                attr.x + (start.button==1 ? xdiff : 0),
                attr.y + (start.button==1 ? ydiff : 0),
                MAX(1, attr.width + (start.button==3 ? xdiff : 0)),
                MAX(1, attr.height + (start.button==3 ? ydiff : 0)));
        }
        else if(ev.type == ButtonRelease)
        {
            start.subwindow = None;
        }
    }
}
and that's it!  see the annotated version if those 50 lines of code are beyong your comprehension.

i was wondering... a vsido community tinywm config & extension project perhaps?

:)
#38
Artwork & Screenshots / Tilers Unite!
February 09, 2013, 12:43:33 AM
Welcome to the foremost general tiling thread in the vsido forum.

whatever your taste of tiling window management, this is as good a thread as any to share.

whether you carve your own unique re-implementations of ratpoison in lolcode, or you just like making openbox a bit more tiling-windowmanager-ish, come chew the fat in here, share your stories, your discoveries, and your troubles.

I myself seem to keep coming back to xmonad as my favourite tiling window manager.  it's been what i've used the most over the past 5 or 6 years (openbox or scrotwm vying for second place), and found new loves i3 and clfswm, iressitable, to such an extent i've started trying to take some cues from each, into my xmonad config, which i've just not long gotten copied into my vsido install.  :)


(oh noes, why is emacs looking like it is the wrong gtk colour... oh no... not gtk slipped into my system i hope! nnooooo, need to block gtk 3!!! ruiner of consistent themes)

here's a paste of my xmonad.hs as it is now, warts and all. :)  tabular boonad
#39
Feedback & Suggestions / quick search bar in synaptic
February 06, 2013, 03:19:12 PM
vsido could do with apt-xapian-index for synaptic.

at least that's my view on it.

save those of us who like to use it from having to sudo apt-get install apt-xapian-index && sudo update-apt-xapian-index... and having to find out that's what we need to do to restore it.  ^_^

synaptic just feels funny without it.

what say ye?
#40
[edit] the short story:  had made typo on install, and had an "ah" instead of a "ha" in my computers name.  had renamed it in host file, but xauth still needed to be told.  so i told it, n now it's fixed.  fin.[/edit][/i]


(synaptic:5597): Gtk-WARNING **: cannot open display: :0

^is the error i get any time i attempt to launch synaptic in a terminal, whether as root, using sudo, or gksu.

tried telling it to use displays 1-3 too, same result, different number.

in desperation i even tried un-installing and re-installing it.

running it from gmrun, with gksu, it takes me to the message box informing me it will launch without asking for root perms, but when i close that, instead of seeing synaptic, i get nothing.  same result with launching it from the desktop menu's "root" menu.

htop shows it is not running.

same story with gparted.


what have i done?  :O
fairly sure i had run gparted at some point earlier...  or maybe that was just in the live system.

this is on the debian sid version of vsido... release before last, i think.
Linux levinrhan 3.7-trunk-amd64 #1 SMP Debian 3.7.1-1~experimental.2 x86_64 GNU/Linux
^ that one.  er... tho, that's after an upgrade or two... meh, should still be same kernel, i dont recall rebooting or switching to new kernel.

really would prefer not giving up on vsido... but inability to run synaptic, is a deal breaker.   getting the info i need from apt get/cache is just too clumsy in some cases.

ps, tips from here [ http://crunchbang.org/forums/viewtopic.php?id=23975 ] failed to remedy the problem for me.