Recent Posts

Pages: 1 ... 8 9 [10]
91
Conky / Re: Conky Support, Codes and Screenshots
« Last post by PackRat on March 10, 2018, 05:48:12 PM »
one line conky -



Code: [Select]
conky.config = {
--#############################################
-- Settings
--#############################################
background = true,
use_xft = true,
-- font = 'Office Code Pro:Medium:size=10',
-- font = 'Ubuntu:Medium:size=10',
font = 'Inconsolata LGC:regular:size=10',
xftalpha = 1.0,
update_interval = 1.0,
update_interval_on_battery = 30.0,
total_run_times = 0,

own_window = true,
own_window_colour = '#070707',
own_window_transparent = true,
    own_window_type = 'override',
--    own_window_type = 'dock',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_class = 'ConkyHoriz',
own_window_title = 'ConkyHoriz',
--#############################################
-- Compositing tips:
-- Conky can play strangely when used with
-- different compositors. I have found the
-- following to work well, but your mileage
-- may vary. Comment/uncomment to suit.
--#############################################

 -- own_window_argb_visual = true,
 --own_window_argb_value 2

--#############################################

no_buffers = true,
uppercase = true,
cpu_avg_samples = 2,
override_utf8_locale = true,
short_units = true,
imlib_cache_size = 0,
pad_percents = 1,
-- max_specials = '2048',
max_user_text = 3200,
text_buffer_size = 1024,
no_buffers = true,
if_up_strictness = 'address',
double_buffer = true,
minimum_width = 1366, minimum_height = 0,
maximum_width = 1366,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 1,
border_outer_margin = 1,

default_color = '#DAC79C',
default_shade_color = '#000000',
default_outline_color = '#828282',
color0 = '#FFFFFF',
color1 = '#000000',
color2 = '#FF0000',-- - red
color3 = '#FFFF00',-- - yellow
color4 = '#0000FF',-- - blue
color5 = '#00FF00',-- - green
color6 = '#FFA500',-- - orange
color7 = '#00CDCD',-- - cyan3
color8 = '#FFD700',-- - gold
color9 = '#F00F16',-- - reddish

alignment = 'top_middle',
gap_x = 0,
gap_y = 0,

-- -- doesn't seem to work when docked in the slit --#
lua_load = '~/conky/transbg.lua',
lua_draw_hook_pre = 'draw_bg 4 0 0 0 0 0x070707 0.58',

-- Mem:${offset 8}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}${memperc}%${color}${offset 32}\

};

conky.text = [[
${goto 12}Uptime:${offset 8}${uptime_short} \
${goto 264}Core0:${offset 8}${if_match ${hwmon 0 temp 2}<=50}${color7}${else}${if_match ${hwmon 0 temp 2}<=70}${color8}${else}${if_match ${hwmon 0 temp 2}>70}${color9}${endif}${endif}${endif}${hwmon 0 temp 2}${offset 2}°C${color}${offset 16} \
Core1:${offset 8}${if_match ${hwmon 0 temp 4}<=50}${color7}${else}${if_match ${hwmon 0 temp 4}<=70}${color8}${else}${if_match ${hwmon 0 temp 4}>70}${color9}${endif}${endif}${endif}${hwmon 0 temp 4}${offset 2}°C${color}${offset 16} \
CPU:${offset 8}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu0}%${color}${offset 16}${loadavg 1}${offset 8}${loadavg 2}${offset 8}${loadavg 3}${offset 16} \
Batt:${offset 8}${execpi 60 acpi -b | awk '/Battery 0/ {print $3}' | cut -c1-4}${offset 8}${if_match ${battery_percent BAT0}<=15}${color9}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=33}${color8}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>33}${color7}${battery_percent BAT0}%${endif}${endif}${endif}${color}${offset 16} \
Net:${if_up wlo1}${offset 8}${wireless_bitrate wlo1}${endif}${offset 16}${if_match ${wireless_link_qual_perc wlo1}<=30}${color9}${blink ${wireless_link_qual_perc wlo1}%}${color}${else}${if_match ${wireless_link_qual_perc wlo1}<=50}${color8}${wireless_link_qual_perc wlo1}%${else}${if_match ${wireless_link_qual_perc wlo1}>50}${color7}${wireless_link_qual_perc wlo1}%${endif}${endif}${endif}${color}${offset 16}${if_up wlo1}U:${offset 8}${upspeedf wlo1}${offset 24}D:${offset 8}${downspeedf wlo1}${endif}${color}\
${alignr 12}${time %a %e %b}
]];
92
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by PackRat on March 08, 2018, 08:17:10 PM »
@riV - no problem.

93
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by riV on March 07, 2018, 05:31:46 AM »
hello PackRat
Thanks for examples You and jedi.  same output to conky as that previous image from this:
Code: [Select]
${color}key ${color7}state active
${color7}NumLock     ${exec xset q | awk '/Caps/ {print $8}'}
${color7}Caps Lock   ${exec xset q | awk '/Caps/ {print $4}'}
you accomplished having me learn a bit. Thanks vsido community forum.

94
WM Designs and Discussions / Re: Fluxbox Styles
« Last post by PackRat on March 06, 2018, 05:24:46 PM »


Code: [Select]
!
! fluxbox style - moonstone
! created by PackRat
! creation date - 03-06-2018
!
! 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 see <http://www.gnu.org/licenses/>.

! FONT OPTIONS
*.font: Source Serif Pro-11:regular
toolbar.workspace.font:          Source Code Pro-11:regular
toolbar.clock.font:              Source Code Pro-11:regular
!toolbar.iconbar.focused.font:    Source Serif Pro-11:semibold
!toolbar.iconbar.unfocused.font:  Source Serif Pro-11:regular
!window.font:                    <font>
!window.label.focus.font:         Source Serif Pro-11:regular
!window.label.unfocus.font:       Source Serif Pro-11:regular
!menu.frame.font:                <font>
!menu.hilite.font:               Source Serif Pro-11:regular
!menu.title.font:                <font>

!TOOLBAR OPTIONS
toolbar: flat gradient vertical
toolbar.height:                 24
toolbar.bevelWidth:             0
toolbar.color:                  #E4E4E4
toolbar.colorTo:                #E4E4E4
toolbar.borderColor:            #AAAAAA
toolbar.borderWidth:            1
toolbar.shaped:                 false
!toolbar.pixmap:                 <filename>

toolbar.clock:                  flat gradient vertical
toolbar.clock.borderColor:      #AAAAAA
toolbar.clock.borderWidth:      0
toolbar.clock.justify:          Center
!toolbar.clock.pixmap:           <filename>
toolbar.clock.color:            #E4E4E4
toolbar.clock.colorTo:          #E4E4E4
toolbar.clock.textColor:        #050505

toolbar.systray: parentrelative
!toolbar.systray.color: #0D1114
!toolbar.systray.colorTo: #0D1114

toolbar.workspace:              flat gradient vertical
toolbar.workspace.color:        #E4E4E4
toolbar.workspace.colorTo:      #E4E4E4
toolbar.workspace.justify:      Center
toolbar.workspace.textColor:    #050505
toolbar.workspace.borderColor:  #AAAAAA
toolbar.workspace.borderWidth:  0
!toolbar.workspace.pixmap:       <filename>

toolbar.button: parentrelative
toolbar.button.PicColor: #2F2F2F
toolbar.button.scale: 0.5

toolbar.iconbar.empty:          flat gradient vertical
toolbar.iconbar.empty.color:    #E4E4E4
toolbar.iconbar.empty.colorTo:  #E4E4E4
toolbar.iconbar.borderColor:    #AAAAAA
toolbar.iconbar.borderWidth:    1
!toolbar.iconbar.empty.pixmap:   <filename>

toolbar.iconbar.focused:        raised gradient vertical
toolbar.iconbar.focused.color: #424153
toolbar.iconbar.focused.colorTo: #424153
toolbar.iconbar.focused.borderColor: #AAAAAA
toolbar.iconbar.focused.borderWidth:    1
toolbar.iconbar.focused.justify:        Center
toolbar.iconbar.focused.textColor: #FCFCFC
!toolbar.iconbar.focused.pixmap: yellow-black.png

toolbar.iconbar.unfocused:        raised gradient vertical
toolbar.iconbar.unfocused.color:       #E4E4E4
toolbar.iconbar.unfocused.colorTo:     #E4E4E4
toolbar.iconbar.unfocused.borderColor: #AAAAAA
toolbar.iconbar.unfocused.borderWidth:  1
toolbar.iconbar.unfocused.justify:      Center
toolbar.iconbar.unfocused.textColor:  #2F2F2F
!toolbar.iconbar.unfocused.pixmap: <filename>

!WINDOW OPTIONS
window.title.height:            20
window.justify:                 Center
window.bevelWidth:              0
window.borderColor:             #2F2F2F
window.borderWidth:             1
!window.roundCorners:            <{Top|Bottom}{Left|Right}>
!window.frame.focusColor:        <color>
!window.frame.unfocusColor:      <color>

window.title.focus:             flat gradient vertical
window.title.focus.color:       #E4E4E4
window.title.focus.colorTo:     #E4E4E4
!window.title.focus.pixmap:      <filename>
window.title.unfocus:           flat gradient vertical
window.title.unfocus.color:     #E4E4E4
window.title.unfocus.colorTo:   #E4E4E4
!window.title.unfocus.pixmap:    <filename>

!window.label.active:            flat gradient vertical gradient horizontal
!window.label.active.textColor:  #E5E5E5

window.label.focus:             flat gradient vertical
window.label.focus.color:       #424153
window.label.focus.colorTo:     #424153
window.label.focus.textColor:   #FCFCFC
!window.label.focus.pixmap:      title.png

window.label.unfocus:           flat gradient vertical
window.label.unfocus.color:     #E4E4E4
window.label.unfocus.colorTo:   #E4E4E4
window.label.unfocus.textColor: #2F2F2F
!window.label.unfocus.pixmap:    title.png

window.button.focus:            flat gradient vertical
window.button.focus.color:      #E4E4E4
window.button.focus.colorTo:    #E4E4E4
window.button.focus.picColor:   #2F2F2F
window.button.pressed: sunken bevel2
window.button.pressed.color:    #AAAAAA
window.button.pressed.colorTo:  #AAAAAA
window.button.unfocus:          flat gradient vertical
window.button.unfocus.color:    #E4E4E4
window.button.unfocus.colorTo:  #E4E4E4
window.button.unfocus.picColor: #2F2F2F

window.grip.focus:              flat
window.grip.focus.color:        #424153
window.grip.focus.colorTo:      #424153
!window.grip.focus.pixmap:       <filename>
window.grip.unfocus:            flat
window.grip.unfocus.color:      #E4E4E4
window.grip.unfocus.colorTo:    #E4E4E4
!window.grip.unfocus.pixmap:     <filename>
window.handle.focus:            flat gradient vertical
window.handle.focus.color:      #E4E4E4
window.handle.focus.colorTo:    #E4E4E4
!window.handle.focus.pixmap:     <filename>
window.handle.unfocus:          flat gradient vertical
window.handle.unfocus.color:    #E4E4E4
window.handle.unfocus.colorTo:  #E4E4E4
!window.handle.unfocus.pixmap:   <filename>
window.handleWidth:             4
!window.iconify.pixmap:          <filename>
!window.iconify.pressed.pixmap:  <filename>
!window.iconify.unfocus.pixmap:  <filename>

!! Window decoration pixmaps
!window.button.focus.pixmap:     <filename>
!window.button.unfocus.pixmap:   <filename>
!window.button.pressed.pixmap:   <filename>
!window.close.pixmap:            button-close-hover.png
!window.close.pressed.pixmap:    close-pressed.xpm
!window.close.unfocus.pixmap:    <filename>
!window.maximize.pixmap:         maximize-prelight.xpm
!window.maximize.pressed.pixmap: <filename>
!window.maximize.unfocus.pixmap: <filename>
!window.iconify.pixmap:         maximize-prelight.xpm
!window.iconify.pressed.pixmap: maximize-pressed.xpm
!window.iconify.unfocus.pixmap: <filename>
!window.shade.pixmap:            maximize-prelight.xpm
!window.shade.pressed.pixmap:    <filename>
!window.shade.unfocus.pixmap:    <filename>
!window.stick.pixmap:            maximize-prelight.xpm
!window.stick.pressed.pixmap:    <filename>
!window.stick.unfocus.pixmap:    <filename>
!window.stuck.pixmap:            <filename>
!window.stuck.unfocus.pixmap:    <filename>
!window.lhalf.pixmap:            <filename>
!window.lhalf.unfocus.pixmap:    <filename>
!window.rhalf.pixmap:            <filename>
!window.rhalf.unfocus.pixmap:    <filename>

!MENU OPTIONS
!menu.roundCorners:              <{Top|Bottom}{Left|Right}>
menu.itemHeight:                20
menu.bevelWidth:                1
menu.borderColor:               #2F2F2F
menu.borderWidth:               1
!menu.bullet:                    <{empty|square|triangle|diamond}>
menu.bullet: triangle
menu.bullet.position:           right
menu.frame:                     raised
menu.frame.color:               #E4E4E4
menu.frame.colorTo:             #E4E4E4
menu.frame.disableColor:        #9C9C9C
menu.frame.justify:             Left
!menu.frame.pixmap:              <filename>
menu.frame.textColor:           #2F2F2F
menu.hilite:                    flat gradient vertical
menu.hilite.color:              #424153
menu.hilite.colorTo:            #424153
menu.hilite.justify:            Left
!menu.hilite.pixmap:             <filename>
menu.hilite.textColor:          #FCFCFC

menu.title:                     flat gradient vertical
menu.title.color:               #424153
menu.title.colorTo:             #424153
!menu.title.pixmap:              <filename>
menu.title.textColor:           #FCFCFC
menu.title.justify:             Center
menu.titleHeight:               20

!menu.selected.pixmap:           <filename>
!menu.submenu.pixmap:            <filename>
!menu.unselected.pixmap:         <filename>

! usually do not change background and slit

!BACKGROUND
! Every style must specify the background option. If you don’t want your
! style to change the user’s background, then use ‘background: none’.
! background: centered|aspect|tiled|fullscreen|random|solid|gradient <texture>|mod|none|unset
! background.pixmap: <file or directory>
! background.color: <color>
! background.colorTo: <color>
! background.modX: <integer>
! background.modY: <integer>
! background: none

!SLIT
slit: flat
slit.bevelWidth: 0
slit.borderColor: #101010
slit.borderWidth: 0
slit.color:         #101010
slit.colorTo:       #101010
!slit.pixmap: <filename>
           
! EOF
95
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by PackRat on March 06, 2018, 02:37:23 PM »
Actully, the way that xset is output, you can just use the first character -

Code: [Select]
[pts/4]-[~]% xset q | awk '/00:/ {print $6 " " $7 " " $8}'
Num Lock: on
[pts/4]-[~]% xset q | awk '/00:/ {print $2 " " $3 " " $4}'
Caps Lock: off
[pts/4]-[~]%

fun with text parsing  ;D
96
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by PackRat on March 06, 2018, 02:28:27 PM »
@riV - using grep with awk is usually overkill - using the big hammer to pound finishing nails sort of thing.

Just use awk by itself and use grep with sed.

and you don't necessarily need the heading in your conky, you can do it all with awk, use quotes to space:

Code: [Select]
[pts/0]-[~]% xset q | awk '/Caps Lock:/ {print $2 " " $3 " " $4}'
Caps Lock: off
[pts/0]-[~]% xset q | awk '/Caps Lock:/ {print $2 " " $3 " " $4}'
Caps Lock: on
[pts/0]-[~]% xset q | awk '/Num Lock:/ {print $6 " " $7 " " $8}'
Num Lock: on
[pts/0]-[~]% xset q | awk '/Num Lock:/ {print $6 " " $7 " " $8}'
Num Lock: off
[pts/0]-[~]% xset q | awk '/Num Lock:/ {print $6 " " $7 " " $8}'
Num Lock: on

back on topic -

 
97
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by riV on March 06, 2018, 07:21:02 AM »
hello PackRat
hi jedi.  Have no idea why it works.  Here it is:
Code: [Select]
${color}key ${color7}state active
${color7}NumLock   ${exec xset q | grep Num |awk '{print "  " $8}'}
${color7}Caps Lock ${exec xset q | grep Caps |awk '{print "  " $4}'}


There is some kind of awk default to print, so somehow it could be shorter. what do you think? can it be shortened?
Without Your start at it I never could have got this. thanks.
There is alternate ways, better way?
Is it close enough to not be considered silliness?
Fingers- crossed here that you say it is ready to share. is it ready?  If not, then stop me here before it makes me look silly elsewhere please.  I will wish to include the code You passed along as the starting point. 
98
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by riV on March 05, 2018, 04:53:38 PM »
hello PackRat
Thank You muchly, jedi.  I will give that a try.  Crinos51two8 is not found here at vsido,, found in other places an indication Crinos51two8 said to use freely the scripting.  Is it okay to share freely? did I get that right?  The chagrin part is that I started talking about the key state in another forum,, now,, this code provenance will include that it came through jedi.  Thanks. 
99
Artwork & Screenshots / Re: March 2018 Screenshot Thread
« Last post by jedi on March 04, 2018, 07:36:18 PM »
Hey riV.  It is a conky that calls a script.  Here is the script called 'header.sh';
Code: [Select]
#!/bin/sh
# header.sh
# by Crinos512
# Usage:
#  ${execp ~/conky/mine/header.sh} #obviously this needs to point to where you store the script
#OSVer=""`lsb_release -i | cut -f 2| tr "[:upper:]" "[:lower:]"`" ( "`lsb_release -r | cut -f 2`" )"
#WMVer=`Xfwm --version`
Updates=`aptitude search "~U" | wc -l | tail`
#Conky=`\{conky_version\}}`

#echo "\${voffset -20}\${font Diamond Fantasy:style=Bold:pixelsize=20}\${alignc}\${color}\$nodename\${font}"
#echo "\${font Liberation Sans:style=Bold:pixelsize=11}\${alignc}~ \$kernel \$machine ~"
#echo "\${alignc}~ $OSVer ~ $WMVer ~"
echo " \${alignc}${Updates} Sys Upd"
#echo "\${alignc}~ $Conky  ~"
#echo "\${alignc}~ Uptime: \$uptime_short ~\${color}\${font}"
#echo "\(Conky \${conky_version}\${exec conkyForecast -V})"
echo "\${font xirod:Bold:size=6}NUM: \${exec xset q | grep Num |awk '{print " "\$8}'}  \${font}"
echo "\${font xirod:Bold:size=6}CAPS: \${exec xset q | grep Caps |awk '{print " "\$4}'}  \${font}"
exit 0

Wherever you want the keyboard indicators to appear, just call it from the appropriate place in your conky with the following;
Code: [Select]
${execpi 9 ~/conky/mine/header.sh}
To my knoweledge the script was written by 'crinos518' whom I haven't seen online in years?  The script does much more than just show the caps lock and num lock state.  Any line with a '#' in front of it is not seen by the script when it runs.  It has lots of goodies.  Enjoy...
Good Luck!
100
Scripts / Re: vsido-exit (systemd based logout script for VSIDO)
« Last post by PackRat on March 04, 2018, 07:28:16 PM »
Was cleaning up some other scripts so went ahead and added hibernate to the vsido-exit script should anyone want that. Haven't tested it, my harddrive with VSIDO bought the farm; should work though, standard systemctl command.



Code: [Select]
#!/usr/bin/env bash
vslo_menu (){
vslo_ttle="What would you like to do?"
vslo_clas="$vslo_ttle"
vslo_wico="/usr/share/icons/icon.png"
vslo_main=$(yad --title="$vslo_ttle" --class="$vslo_clas" --window-icon="$vslo_wico" --width="648" --height="48" --center --fixed --on-top --buttons-layout=center  --button="Cancel!! Cancel:1" --button="Logout!$vslo_bute!Logout of VSIDO:2" --button="Suspend!$vslo_buts!Suspend VSIDO:3" --button="Hibernate!$vslo_buts!Hibernate VSIDO:4" --button="Reboot!$vslo_butr!Reboot VSIDO:5" --button="Shutdown!$vslo_butq!Shutdown VSIDO:6")
vslo_main=$?
case "$vslo_main" in
1 | 252)
exit 1
;;
2)
id_of_session=$(loginctl session-status | head -n 1 | awk '{print $1}')
loginctl terminate-session "$id_of_session"
exit 0
;;
3)
systemctl suspend
exit 0
;;
4)
systemctl hibernate
exit 0
;;
5)
systemctl reboot
exit 0
;;
6)
systemctl poweroff
exit 0
;;
esac
}
while :
do
vslo_menu
done
Pages: 1 ... 8 9 [10]