-
Search Results
-
Topic: conky with conditionals
Hi!
So here is the problem. I use wttr.in to get weather data to output display in conky. For example:
${execi 1200 curl -sm 2 wttr.in/stockholm?format="%w"\&M}the -m 2 gives 2 seconds before the operation times out. Otherwise I’ve found that conky gets stuck when the curl command never finishes and nothing is displayed. I have to manually kill the curl processes in htop to get it to move on. And then the same thing repeats 20 min later. So -m 2 solves that problem. However, I have about five curl commands to wttr and some formatting and text that looks weird when nothing is returned from wttr. I’ve found wttr to be somewhat unreliable so this happens a lot. Enough times that I want to make a conditional along the lines of, “if curl times out, then…”. The exit code when curl times out is 28. So basically, when executing the above command, and the exit code is 28, then I dont want conky to use any of the code below. Any way to do this?
Topic: ft10 Vertical side
hello everyone
FT10 Vertical sample#---- Generated by tint2conf f925 ---- # See https://gitlab.com/o9000/tint2/wikis/Configure for # full documentation of the configuration options. #------------------------------------- # Gradients #------------------------------------- # Backgrounds # Background 1: Panel rounded = 0 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #eeeeee 0 border_color = #bbbbbb 10 background_color_hover = #eeeeee 0 border_color_hover = #bbbbbb 10 background_color_pressed = #eeeeee 0 border_color_pressed = #bbbbbb 10 # Background 2: Default task, Iconified task rounded = 5 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #eeeeee 4 border_color = #eeeeee 0 background_color_hover = #eeeeee 22 border_color_hover = #eaeaea 44 background_color_pressed = #dddddd 4 border_color_pressed = #eaeaea 44 # Background 3: Active task rounded = 5 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #dddddd 4 border_color = #999999 100 background_color_hover = #eeeeee 22 border_color_hover = #999999 100 background_color_pressed = #dddddd 4 border_color_pressed = #999999 100 # Background 4: Urgent task rounded = 5 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #aa4400 100 border_color = #aa7733 100 background_color_hover = #aa4400 100 border_color_hover = #aa7733 100 background_color_pressed = #aa4400 100 border_color_pressed = #aa7733 100 # Background 5: Tooltip rounded = 2 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #ffffaa 100 border_color = #999999 100 background_color_hover = #ffffaa 100 border_color_hover = #999999 100 background_color_pressed = #ffffaa 100 border_color_pressed = #999999 100 # Background 6: Inactive desktop name rounded = 2 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #eeeeee 4 border_color = #999999 30 background_color_hover = #eeeeee 22 border_color_hover = #999999 30 background_color_pressed = #dddddd 4 border_color_pressed = #999999 30 # Background 7: Active desktop name rounded = 2 border_width = 1 border_sides = TBLR border_content_tint_weight = 0 background_content_tint_weight = 0 background_color = #dddddd 3 border_color = #999999 100 background_color_hover = #dddddd 3 border_color_hover = #999999 100 background_color_pressed = #dddddd 3 border_color_pressed = #999999 100 #------------------------------------- # Panel panel_items = PPPTPCLP: panel_size = 87% 53 panel_margin = 0 0 panel_padding = 2 2 2 panel_background_id = 1 wm_menu = 1 panel_dock = 0 panel_pivot_struts = 0 panel_position = center right vertical panel_layer = normal panel_monitor = all panel_shrink = 0 autohide = 0 autohide_show_timeout = 0 autohide_hide_timeout = 0.5 autohide_height = 2 strut_policy = follow_size panel_window_name = tint2 disable_transparency = 0 mouse_effects = 1 font_shadow = 0 mouse_hover_icon_asb = 100 0 10 mouse_pressed_icon_asb = 100 0 0 scale_relative_to_dpi = 0 scale_relative_to_screen_height = 0 #------------------------------------- # Taskbar taskbar_mode = multi_desktop taskbar_hide_if_empty = 0 taskbar_padding = 0 2 2 taskbar_background_id = 0 taskbar_active_background_id = 0 taskbar_name = 0 taskbar_hide_inactive_tasks = 0 taskbar_hide_different_monitor = 0 taskbar_hide_different_desktop = 0 taskbar_always_show_all_desktop_tasks = 0 taskbar_name_padding = 6 3 taskbar_name_background_id = 6 taskbar_name_active_background_id = 7 taskbar_name_font = sans bold 9 taskbar_name_font_color = #ffffff 100 taskbar_name_active_font_color = #ffffff 100 taskbar_distribute_size = 1 taskbar_sort_order = none task_align = center #------------------------------------- # Task task_text = 0 task_icon = 1 task_centered = 1 urgent_nb_of_blink = 100000 task_maximum_size = 152 35 task_padding = 4 3 4 task_font = sans 8 task_tooltip = 1 task_thumbnail = 1 task_thumbnail_size = 188 task_font_color = #ffffff 100 task_icon_asb = 100 0 0 task_background_id = 2 task_active_background_id = 3 task_urgent_background_id = 4 task_iconified_background_id = 2 mouse_left = toggle_iconify mouse_middle = none mouse_right = maximize_restore mouse_scroll_up = toggle mouse_scroll_down = toggle_iconify #------------------------------------- # System tray (notification area) systray_padding = 0 0 2 systray_background_id = 0 systray_sort = ascending systray_icon_size = 22 systray_icon_asb = 100 0 0 systray_monitor = 1 systray_name_filter = #------------------------------------- # Launcher launcher_padding = 0 0 2 launcher_background_id = 0 launcher_icon_background_id = 0 launcher_icon_size = 22 launcher_icon_asb = 100 0 0 launcher_icon_theme_override = 0 startup_notifications = 1 launcher_tooltip = 1 launcher_item_app = tint2conf.desktop launcher_item_app = web-browser.desktop launcher_item_app = terminal.desktop launcher_item_app = leafpad.desktop launcher_item_app = /usr/share/applications/searchmonkey.desktop launcher_item_app = /usr/share/applications/packageinstaller.desktop launcher_item_app = /usr/share/applications/antix/updater.desktop launcher_item_app = /usr/share/applications/antix-weather.desktop #------------------------------------- # Clock time1_format = %H:%M #time2_format = %A %d %B time1_font = sans bold 9 time1_timezone = time2_timezone = time2_font = sans 9 clock_font_color = #ffffff 100 clock_padding = 1 0 clock_background_id = 0 clock_tooltip = clock_tooltip_timezone = clock_lclick_command = WINID=$(wmctrl -lx | grep 'antiX-calendar' | awk 'NR==1{print $1}'); if [ $WINID ]; then wmctrl -c "antiX-calendar" & else /usr/local/lib/ft10/yad-calendar-ft10.sh & fi clock_rclick_command = /usr/local/lib/ft10/ft10-clock.sh clock_mclick_command = clock_uwheel_command = clock_dwheel_command = #------------------------------------- # Battery battery_tooltip = 1 battery_low_status = 22 battery_low_cmd = xmessage 'tint2: Battery low!' battery_full_cmd = bat1_font = sans 8 bat2_font = sans 6 battery_font_color = #ffffff 100 bat1_format = bat2_format = battery_padding = 1 0 battery_background_id = 0 battery_hide = 101 battery_lclick_command = battery_rclick_command = battery_mclick_command = battery_uwheel_command = battery_dwheel_command = ac_connected_cmd = ac_disconnected_cmd = #------------------------------------- # Button 1 button = new button_icon = /usr/local/lib/ft10/icons/volume-ft10.png button_text = button_tooltip = Volume button_lclick_command = WINID=$(wmctrl -lx | grep 'yad-volume' | awk 'NR==1{print $1}'); if [ $WINID ]; then wmctrl -c "yad-volume" & else yad --scale --image="/usr/share/icons/papirus-antix/48x48/actions/stock_volume.png" --borders=10 --title="yad-volume" --max-value 100 --value $(amixer -M get Master | awk -v FS="[[%]" '/%/ {print $2}') --print-partial --undecorated --width 300 --fixed --sticky --mouse --on-top --escape-ok --no-buttons --close-on-unfocus | while read VolNew; do amixer -M -q set Master ${VolNew}%; done & fi button_rclick_command = pkill alsamixer || roxterm -e alsamixer button_mclick_command = button_uwheel_command = button_dwheel_command = button_font_color = #000000 100 button_padding = 0 0 button_background_id = 0 button_centered = 0 button_max_icon_size = 0 #------------------------------------- # Button 2 button = new button_icon = /usr/local/lib/ft10/icons/plus-minus-ft10.png #button_text = +/- button_tooltip = Left click- Add,move,remove Toolbar icons; Right click- Manage Toolbar button_lclick_command = WINID=$(wmctrl -lx | grep 'Tint2 icons' | awk 'NR==1{print $1}'); if [ $WINID ]; then wmctrl -c "Tint2 icons" & else /usr/local/lib/ft10/tim-tint.sh & fi button_rclick_command = ft10_tint2_manager.sh button_mclick_command = button_uwheel_command = button_dwheel_command = button_font_color = #5c616c 100 button_padding = 0 0 button_background_id = 0 button_centered = 0 button_max_icon_size = 0 #------------------------------------- # Button 3 button = new button_icon = /usr/local/lib/ft10/icons/window-switcher-ft10.png button_text = button_tooltip = Task switcher button_lclick_command = skippy-xd button_rclick_command = skippy-xd button_mclick_command = fluxbox-remote ClientMenu button_uwheel_command = skippy-xd button_dwheel_command = skippy-xd button_font_color = #000000 100 button_padding = 0 0 button_background_id = 0 button_centered = 0 button_max_icon_size = 0 #------------------------------------- # Button 4 button = new button_icon = /usr/local/lib/ft10/icons/menu-ft10.png button_tooltip = Menu button_lclick_command = jgmenu_run button_rclick_command = jgmenu_run button_mclick_command = jgmenu_run button_uwheel_command = jgmenu_run button_dwheel_command = jgmenu_run button_font = Sans 24 button_font_color = #e6e9ef 100 button_padding = 0 0 button_background_id = 0 button_centered = 0 button_max_icon_size = 0 #------------------------------------- # Button 5 button = new button_icon = /usr/local/lib/ft10/icons/wifi-f10.png button_text = button_tooltip = Network manager - Connman button_lclick_command = [ <code>pgrep cmst</code> ] && pkill cmst || cmst -d & button_rclick_command = export PATH="/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/mysql/bin:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools:~/usr/lib/jvm/jdk-6/bin" && conky -c /usr/local/lib/ft10/executors/conkyrc-ft10br -o -i 20 -a br button_mclick_command = button_uwheel_command = button_dwheel_command = button_font_color = #000000 100 button_padding = 0 0 button_background_id = 0 button_centered = 0 button_max_icon_size = 0 #------------------------------------- # Tooltip tooltip_show_timeout = 0.5 tooltip_hide_timeout = 0.1 tooltip_padding = 2 2 tooltip_background_id = 5 tooltip_font_color = #222222 100 tooltip_font = sans 9notes
tint2 with FT10
change Calendar geometry 40-50 to 60-60
same for connman right-click
change conkyrc-ft10br gap 60, 60
replace volume geometry to –mouse
Yo PPC, volume bar looks exactly like the one on our tv.
change jgmenurc position_mode =pointer, menu_width =550, _margin =55, 55
init fluxbox = allow remote actions for the middle-click on skippy
to-do, recent docs, add more of the ft10 buttons ..

