Originally Posted by
dmillerct
Somebody had a great idea today but I cant find the post amongst all the conky threads I subscribe to.
Most netbooks don't have a CAPS LOCK led indicator. This person suggested using cat to call the caps lock state.
Can that be done? I did some research and can't figure out where it would reside.
That was me (1st post on this page) I'm getting close, actaully I think I've found it.
Code:
user@machine:~$ xset q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
auto repeat delay: 500 repeat rate: 10
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 0
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins
DPMS (Energy Star):
Standby: 780 Suspend: 0 Off: 900
DPMS is Enabled
Monitor is On
LED mask: 00000000 = off
LED mask: 00000001 = caps
LED mask: 00000002 = num
LED mask: 00000003 = caps + num
edit:
And here's the conky (combined it with my conky clock).
Code:
minimum_size 288 1
gap_x 2
gap_y 2
alignment top_left
update_interval 1.0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
uppercase no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour blue
double_buffer yes
use_xft yes
xftfont Radio Space Bold:size=10
default_color 333333
TEXT
${time %Y:%m:%d:%R:%S}${alignr}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000001"}${color CCCCCC}ABC${color}${else}ABC${endif}
edit II: (couldn't resist caps + num)
Code:
TEXT
${time %Y:%m:%d:%R:%S}${alignr}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000000"}ABC 123${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000001"}${color CCCCCC}ABC${color} 123${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000002"}ABC ${color CCCCCC}123${color}${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000003"}${color CCCCCC}ABC 123${color}${endif}${endif}${endif}${endif}
Bookmarks