guest@dotshare [~/groups/wms/ratpoison] $ ls Ratshot/ | cat

Ratshot (scrot) (+1 likes)

ivo Jul 21, 2012 (wms/ratpoison)

.ratpoisonrc(raw, dl)

SCROT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
startup_message off 
    
set fgcolor yellow
set bgcolor red
  
set border 0 
set padding 0 0 0 0
set barpadding 0 0 

set resizeunit 20
set winfmt %n %s %t  
set winname class 
set winliststyle column
set wingravity c
set bargravity ne 
set maxsizegravity c 
set waitcursor 0
set font -xos4-terminus-bold-r-normal--14-140-72-72-c-80-koi8-r 
msgwait 5 
rudeness 12 
   
escape C-space
    
bind o only
bind d dedicate  
bind w windows
bind g groups
bind Escape abort
 
definekey top XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute && ratpoison -c "echo RaiseVolume +5"
definekey top XF86AudioLowerVolume exec amixer -q set Master 5- unmute && ratpoison -c "echo LowerVolume -5"
definekey top XF86AudioMute exec amixer -q set Master toggle && ratpoison -c "echo [ MUTE ]"
 
alias reload exec ratpoison -c "source $HOME/.ratpoisonrc"
alias ratshot exec import -window root png:$HOME/ratshots/ratshot-$(date +%s)$$.png && ratpoison -c "echo Ratshot saved!" 
    
bind c exec conkeror
#bind x exec urxvtc  
bind x exec urxvtc -e screen -RD
bind X exec xchainkeys
bind p exec ~/.scripts/dmenu_launch  
bind b exec ~/.scripts/rat_info.sh	

CLICK TO VIEW

x

rat_info.sh(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/bin/sh
# ratpoison info
 
LIFE="$(($(($(date +%s) - $(date -d " $(head -1 /var/log/pacman.log | cut -d ' ' -f 1,2 | tr -d '[]')" +%s))) / 86400)) days"
PACKAGE="`pacman -Q | wc -l`"
KERNEL="`uname -r`"
MEM="`free -m | grep "buffers/" | awk {'print $3'}`"
FREQ=$(cpufreq-info | grep "current CPU frequency" | awk '{print $5"MHz"}')
VOL="$(exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*")%"
HOME="$(df /dev/sda4 | awk '/^\/dev/{printf "%s ", $5}' | sed '$s/.$//')"
ROOT="$(df / | awk '/^\/dev/{printf "%s ", $5}' | sed '$s/.$//')"
USB="$(df /mnt/usb | awk '/^\/dev/{printf "%s ", $5}' | sed '$s/.$//')"
DATE="$(date +"%d.%m.%Y/%H:%M")"
BAT=$" `acpi | awk '{print $4, $3, $5}' | tr -d ','`"
ratpoison -c "echo `echo -e "ARCHLIFE: $LIFE \nPACKAGE: $PACKAGE \nKERNEL: $KERNEL \nMEM: $MEM \nFREQ: $FREQ \nVOL: $VOL \nHDD: $HOME $ROOT $USB \nBAT:$BAT \nDATE: $DATE"`"
 

x

Comments

ivo said about 4 years ago

Grab your mouse at gunpoint.