DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default BareGUI for OpenBSD Updated for 7.2

This grew from a previous SimpleDesktop thread that built a lightweight Desktop Environment (DE) in OpenBSD. The older project relied on manually edited configuration scripts and menus. This iteration produces a fast, lightweight stacking desktop with a resting memory footprint around 170mb. When a user adds an application that has a freedesktop compliant *.desktop entry, it will automatically be added to the menu.

These instructions have been updated for version 7.2 and should be backwards compatible with 7.1

Changes for 7.2
MPD client Gimmix was dropped upstream. The default mpd client is now audio/ncmpc.
~/.config/mpd/mpd.conf updated for OpenBSD mixer "hardware".
Killed any previously running mpd servers in ~/.config/openbox/autostart
Sylpheed was replaced with mail/claws-mail. Although code source has not changed, sending emails in Sylpheed failed with my provider. Claws-mail utilizes gtk3; Sylpheed's gtk2 toolkit is not receiving any more security patches.
Xterm font changed to DejaVuSansMono
OpenBox rc.xml fonts changed to DejaVuSansMono
OpenBox rc.xml hotkey for audio volume changed to sndioctl
Tint2 top bar clock font size 11->12
Wallpaper decreased size of wired puffy.png 5%.
National weather service set up a new server for radar images. Script paths adjusted.
Updated ~/Scripts/yad_wifi.sh for gtk3
Updated ~/Scripts/obsd_wifi.sh

The basic layout is similar to Mac OS/X interface. A bottom, one-click launcher for commonly used applications. A full menu is accessed by right-clicking on a blank area of the desktop or hitting the "Menu" key.
The following key combinations are setup. C=ctrl, A=alt, Up=up arrow, Down=down arrow
  1. C-A-b: starts Firefox-esr
  2. C-A-e: starts claws-mail
  3. C-A-t:: starts xterm
  4. C-Up: Audio volume up 7%
  5. C-Down: Audio volume down 7%
  6. C-m: Audio mute toggle


Even though the ability to customize the DE has been simplified, users still need to be familiar with the OpenBSD FAQ, man pages, package management and text editing. A Base OpenBSD install provides vi, mg, ed and xedit. editors/leafpad is from the LXDE project, is available in ports and is a good fit for newbies who want a simple gtk based editor.

The project has 2 levels. The first level provides just the base install + bare desktop. The second level installs commonly used applications listed in BareGUI_recommended_apps.txt. The default apps in the list were chosen based on efficiency, ongoing upstream support and testing in the release. The experienced open source user can edit this list to customize their environment.

The next, optional level is a list of commonly used packages that have freedesktop compliant menu entries and are well supported in OpenBSD. The project essentially chooses web browsers, email clients and office suites using criteria described later. After adding the additional packages, the DE is functionally the same as the older SimpleDesktop project. NCurses applications can be given *.desktop menu entries - mail/alpine and audio/ncmpc have been provided.

Name:  BareGUI72.png
Views: 345
Size:  83.4 KB

To get started, click the link to download. Extract the following tarball and the README should take you the rest of the way. If you are working from a new OpenBSD install, without a browser, this base ftp command should download:

Code:
ftp -o BareGUI72.tar.gz https://daemonforums.org/attachment.php?attachmentid=1081&d=1667269056
BareGUI72.tar.gz

If you find this to be time saving and useful, consider supporting the OpenBSD project.

OpenBSD Donations

Last edited by shep; 1st November 2022 at 02:18 AM.
Reply With Quote
  #2   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Adding Freedesktop compliant *.desktop entries

OpenBSD has some useful base applications that do not have menu entries. I have provided ~/.local/share/applications/*.desktop entries for xterm and xcalc along with an expanded ~/.Xdefaults. A classic Ti80 calculator look for xcalc is included. You can look at the examples and reference this Arch Linux wiki in order to generate additional *.desktop entries:

Desktop Entries - ArchWiki

If you want to modify the ~/.Xdefaults file, this is a good guide:
https://wiki.archlinux.org/title/X_resources
In newer linux distributions Xresources provides the same configuration but requires xrdb to implement any changes. OpenBSD still uses ~/.Xdefaults which is read on each login.


The Arch wiki also details how to avoid duplicate desktop entries in case there are duplicates in /usr/local/share/applications and ~/.local/share/applications. Just append
Code:
NoDisplay=true
to the entry you want to hide.

Last edited by shep; 24th October 2022 at 11:18 PM.
Reply With Quote
  #3   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Scripting and adding *.desktop entries for ncurses apps
For those new to scripts, they need to be executable. Executable permissions can be lost during archive/compression and if they do not function, chmod +x the script.
Ncurses applications are lightweight, responsive applications that run in a terminal. One issue is that the terminal may need to be resized to fully display the application. I do this by running a shell script that sets the xterm size and then executes the Ncurses application. The shell script is then executed by the *.desktop entry. When setting the geometry initially, you can mouse drag the corner of the xterm, running the ncurses app, and adjust. The changes in the geometry are displayed in a pop-up as long as the mouse button remains depressed. Note the geometry when it looks good and enter it after the xterm -g(geometry) flag.

productivity/calcurse is not provided by default but makes a good example to walk through adding an ncurses application.

Code:
# pkg_add calcurse
Calcurse
~/Scripts/calcurse_start.sh
Code:
#!/bin/sh
xterm -g 65x30 +sb -T "Calcurse Calendar" -e calcurse
with the following:
~/.local/share/applications/calcurse.desktop
Code:
[Desktop Entry]
Name=Calcurse
GenericName=Calendar
Comment=Calendar
Exec=~/Scripts/calcurse_start.sh
Terminal=false
Type=Application
Encoding=UTF-8
Icon=x-office-calendar
Categories=Office;Calendar;

Last edited by shep; 24th October 2022 at 11:19 PM.
Reply With Quote
  #4   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

x11/yad Tricks - scripting tint2/clock/calendars and abook sub-menu entries.

Tint2 does not provide a popup calendar but does have the capability to launch one. Most of the Linux based Openbox/tint2 distributions use productivity/gsimplecal which was just ported to OpenBSD. The project continues to use x11/yad to generate a calendar largely because BareGUI tries to avoid redundant applications. Yad is utilized for additional scripts.

The ~/scripts/calendar.sh script positions the calendar under the panel clock The code to run the calendar script is in the clock section of ~/.config/tint2/tint2rc.

Sylpheed comes with a functional address book but if you use mutt/neomutt/alpine, mail/abook is good for contact management. One challenge was that I like separate address books. It made bulk emails easier although I still have to manually copy/paste the recipients to Bcc:.

Here is the yad script that itemizes my abook addressbooks:
~/scripts/yad_abook.sh
Code:
#!/bin/sh

GTK_THEME=Adwaita:dark \
yad --form --width=256 --text="Choose an Addressbook:" --title="Abook" \
--field="AirPark":fbtn 'xterm +sb -g 72x26 -T "Airpark AddressBook" -e abook --datafile /home/YOUR_USER/.abook/airparkaddress' \
--field="BlockWatch":fbtn 'xterm +sb -g 72x44 -T "Block AddressBook" -e abook --datafile /home/YOUR_USER/.abook/blockaddress' \
--field="Business":fbtn 'xterm +sb -g 72x44 -T "Business AddressBook" -e abook --datafile /home/YOUR_USER/.abook/bizaddress' \
--field="Family":fbtn 'xterm +sb -g 72x20 -T "Family AddressBook" -e abook --datafile /home/YOUR_USER/.abook/familyaddress' \
--field="Friends":fbtn 'xterm +sb -g 72x22 -T "Friends AddressBook" -e abook --datafile /home/YOUR_USER/.abook/friendsaddress' \
--window-icon=contact-new --button=gtk-cancel:6
You can add/delete --field lines as needed.

and the desktop entry:
~/.local/share/applications/abook.desktop
Code:
[Desktop Entry]
Name=Abook
GenericName=Contacts
Comment=Manage Contacts
Exec=~/Scripts/yad_abook.sh
Icon=x-office-address-book
Terminal=false
Type=Application
StartupNotify=false
Categories=Office;ContactManagement;

Last edited by shep; 21st October 2022 at 06:00 PM.
Reply With Quote
  #5   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Basis for package recommendations in OpenBSD 7.2

Web Browsers
In OpenBSD, the major browsers can be categorized by security updates and pledged, privilege separation. Historically, only firefox-esr makes it through the 6/12month support cycles without dependency issues. Iridium and Chromium are reported to provide better privilege separation. Chromium provides both security updates and privilege separation at the expense of Google's tracking. Iridium uses the same Chromium codebase and attempts to patch out Google tracking. Firefox-esr recommended due to more frequent security updates in OpenBSD. Iridium updated during the 7.2 ports freeze and may generate "out of date" browser warnings . Current has just added www/ungoogled-chromium which has more frequent upstream updates than iridium and will be available in 7.3. Iridium goes through a time consuming validation process that accounts for the delay. Ungoogled-Chromium uses Iridium patches, applies them to the latest release but does not test for browser data being sent back to Google.

A quick note on www/firefox-esr. The default install has hidden messages about missing gvfs and xdg settings. This can be addressed by adding packages devel/py3-xdg and x11/gnome/gvfs. I noticed the warnings when CLI starting Firefox-esr in a terminal whose $PWD was ~/Downloads (pledge/unveil work around to import bookmarks.html).

Email Clients
Email clients fall into 3 categories. In the first category, inline html, OpenBSD has mail/evolution, mail/geary and mail/mozilla-thunderbird. Evolution pulls many Gnome3 dependencies, Geary some gnome dependencies and is imap4 only. Html emails are generally frowned upon as click prompts can be disguised to run scripts or take you to a spoofed website. It is reported that this is how the GRU gained access to the DNC's email server. Evolution and Thunderbird have an option to display emails as text.

The second category has text based email clients with GUI's. mail/sylpheed, mail/claws-mail and mail/trojita are available. Claws-mail, forked from Sylpheed, provides plugins but 7.2stable has no html plugins. Previously claws-mail html plugins were discontinued in OpenBSD due to security problems. Trojita is Qt5 based, only supports imap4. I previously recommended Sylpheed in this category but the present version uses the gtk2 toolkit. Gtk2 is not receiving any more updates - even security updates. Sylpheed 3.9 is in beta.

The last group are keyboard driven, text clients like mail/mutt, mutts' feature enhanced fork: mail/neomutt and mail/alpine. If you have to frequently work through large numbers of emails, setting up and learning the keystokes for mutt/neomutt is worthwhile. I'd have chosen Mutt but the configuration is a massive chore. A mutt/neomutt configuration helper, mail/mutt-wizard, has been added to 7.2 but has not been tested to see if it would provide and "up and running" configuration for someone without alot ot time or unix/linux experience. Once a Mutt user gets their configuration tuned, they won't give it up.

Claws-mail worked out of the box with my email provider. When sending mail with claws-mail, a prompt to download the ssl/tls certificate would appear. With Sylpheed, the prompt appears on mail retrieval but not sending. If, on the first retrieval in Sylpheed, I selected always download ssl certificate. it did work with my email provider. This may be specific to my ISP. If your upgrading BareGUI and have a working Sylpheed configuration, it should work.

Alpine is an option for keyboard driven text email that is easy to setup. It utilizes mbox email formating rather than #MH which should not matter unless you archive emails.
Mail Storage formats
Alpine provided the classic Unix
Code:
/var/mail/$user
folder and has a configuration helper. The pkg-readmes have an alpine entry and it includes setting up pop3, imap4 and smtp. The pkg-readme, imap4 entry for Spectrum did not work for me. I had better results by entering Setup(S) -> Config(C) and entering the following syntax for "Inbox Path"
Server:
Code:
{imap.example.com:993/ssl/user=user@example.com}Inbox
The options for Inbox Path are described in detail here:
https://ratfactor.com/slackware/alpi...fig-notes.html
Staying in the Config interface, I added the SMTP Server entry using the syntax in the pkg-readme.
To have your sent emails stored on the imap server, rather than locally, set the default-fcc using the same syntax to the Sent Mail folder.
For spectrum, the folder was displayed as Sent Mail but the page source showed the folder to be SentMail.
Code:
fcc-name-rule={imap.example.com:993/ssl/user=user@example.com}SentMail
Another quirk for my Email provider; I also needed to add a "From: header" as described in the following link.
https://unix.stackexchange.com/quest...not-send-email

This should get Alpine email up and running. To fine tune Alpine, this website is helpful:
https://opensource.com/article/21/5/alpine-linux-email
If you have questions on configuring mail/alpine, please start a new thread.

Office
The most popular office suite is editors/libreoffice. It is an active, widely utilized suite that has good compatibility with MSOffice. It is large and resource heavy but is well implemented in OpenBSD. Lighter office utilities are editors/abiword, math/gnumeric and editors/calligra. Calligra is Qt5 based. Libreoffice is recommended unless your system is i386 based or ram limited. If Libreoffice runs slowly, consider Abiword and Gnumeric.

Last edited by shep; 15th November 2022 at 12:23 AM.
Reply With Quote
  #6   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Time and Weather

NTP, x11/yad, graphics/ImageMagick and net/curl based Weather scripts. Note: In OpenBSD, it is possible to use the base ftp command to pull the *.txt files from https:// sites. I used curl so the same scripts will run in Debian as #!/bin/bash scripts. If you are an OpenBSD purist, you can easily modify the scripts to use the base ftp command.

The base distribution utilizes openntpd to synch the computer clock on startup. man ntpd.

My father was a USN trained pilot/navigator who compulsively sync'd his watch to the National Institute of Standards and closely monitored the weather. These weather scripts are helpful in scheduling outdoor activities and IMHO are better than the Gnome/XFCE4/KDE weather applications for US users. They do not constantly poll saving CPU cycles and bandwidth. The data is direct from US sources rather than extrapolated data from https://www.met.no.

The following scripts will pull METAR (MEteorological Terminal Area Report) and METAF (MEteorological Terminal Area Forecast) from a nearby U.S. airport (ICAO code). These are free aviation weather products which are updated hourly. There are examples for pulling *.txt files and animated gif's. You should be able to paste in the url for your local product.
~/Scripts/weather.sh
Code:
#!/bin/sh
xterm -g 75x17-1+39 -T "Yakima, WA Weather" -hold -e \
curl -sk https://tgftp.nws.noaa.gov/data/observations/metar/decoded/KYKM.TXT
~/Scripts/weather_forecast.sh
Code:
#!/bin/sh
# This is a simple script that downloads current weather conditions and zone
# forecast from the National Weather Service to /tmp and displays them.
# 
# To change the forecast zone, replace wa/waz027 with another forecast zone.
# See <https://weather.noaa.gov/pub/data/forecasts/zone/> for a list.
#
xterm -g 75x50-1+38 -T "Yakima, WA Forecast" -hold -e \
curl -sk https://tgftp.nws.noaa.gov/data/forecasts/zone/wa/waz027.txt
This script pulls an animated *gif of a nearby weather radar station and displays it in ImageMagick
In the US you can browse the available images at:
https://radar.weather.gov/ridge/standard/.
If you know the ICAO code for your nearby airport, you should see it in the list
https://en.wikipedia.org/wiki/ICAO_airport_code
~/Scripts/weather_radar.sh
Code:
#!/bin/sh

# This is a simple script that downloads a composite radar image for the NW from
# the National Weather Service

# The script is configured for the Pacific Northwest.
# 
# You can browse "https://radar.weather.gov/ridge/standard/" for your area

curl https://radar.weather.gov/ridge/standard/PACNORTHWEST_loop.gif  | \
 animate -immutable -loop 0 -title "NorthWest Radar Loop"
This script can be adapted to pull any Weather Wunderground animated gif, NOAA satellite gif's and weather.gov radar 'loop' images you can find on the internet.

I use a yad --form to group all my weather products
~/Scripts/yad_weather.sh
Code:
#!/bin/sh

GTK_THEME=Adwaita:dark \
yad --form --width=256 --text="Weather Menu:" --title="Weather" \
--field="KYKM Current":fbtn 'sh /home/YOUR_USER/scripts/weather.sh' \
--field="KYKM Forecast":fbtn 'sh /home/YOUR_USER/scripts/weather_forecast.sh' \
--field="KYKM TAF":fbtn 'sh /home/YOUR_USER/scripts/kykm_taf.sh' \
--field="PDT Radar":fbtn 'sh /home/YOUR_USER/scripts/pdt_radar.sh' \
--field="NW Satellite":fbtn 'sh /home/YOUR_USER/scripts/nw_satellite.sh' \
--field="NW Composite Radar":fbtn 'sh /home/YOUR_USER/scripts/weather_radar.sh' \
--field="CONUS Radar":fbtn 'sh /home/YOUR_USER/scripts/conus_radar.sh' \
--window-icon=weather-overcast --button=Close6
You can add/delete --field lines as needed.

and call the yad_weather.sh script with a tint2 button
~/.config/tint2/tint2rc
Code:
#-------------------------------------
# Button 1
button = new
button_icon = /usr/local/share/icons/gnome/32x32/status/weather-overcast.png
button_text = 
button_tooltip = "Yakima, WA Weather"
button_lclick_command = ~/Scripts/yad_weather.sh
button_rclick_command = ~/Scripts/yad_weather.sh
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #000000 100
button_padding = 6 3
button_background_id = 0
button_centered = 0
button_max_icon_size = 32

#-------------------------------------
This code is in the provided ~/.config/tint2/tint2rc and can be enabled by editing
Code:
#-------------------------------------
# Panel
panel_items = TSC
panel_size = 100% 38
to

Code:
#-------------------------------------
# Panel
panel_items = TSPC
panel_size = 100% 38

Last edited by shep; 25th October 2022 at 11:31 PM. Reason: updated for yad New weather.gov radar server
Reply With Quote
  #7   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Tint2 executor to display current wifi connection data.

This project tries to use OpenBSD tools whenever possible and recently the project has implemented a feature which can connect to multiple networks provided they are listed in your /etc/hostname.if file. The following script lets the user know, with a single click, which of the possible networks is being used.

OpenBSD gains Wi-Fi "auto-join".

The script is still a little rough. One issue is that ifconfig line that is parsed for connection data can lead off with "nwid" or "ieee80211". The script currently uses "grep ieee80211". If you do not use the join command your can either replace ieee80211 with nwid in the script or add "join" to your /etc/hostname.if. Some spacing issues in the yad output lead to the addition of non-printable \t "tab".
~/Scripts/obsd_wifi.sh
Code:
#!/bin/sh
TEST="$(nc -dzw1 8.8.8.8 443 2>&1)"
if echo $TEST | grep '^Connect' >/dev/null ; then

# IFS; Inter Field Separator (see man ksh)
# to preserve newlines,save and set IFS to space only
OLD_IFS="${IFS}"
IFS=" "

# capture 'ifconfig' output once and reuse ....
IFCONFIG=$(ifconfig)
#echo ${IFCONFIG}

NWID="$(echo ${IFCONFIG} | grep ieee80211 | awk '{print $3}')"
CHAN="$(echo ${IFCONFIG} | grep ieee80211 | awk '{print $5}')"
BSSID="$(echo ${IFCONFIG} | grep ieee80211 | awk '{print $7}')"
SN="$(echo ${IFCONFIG} | grep ieee80211 | awk '{print $8}')"
IP="$(echo ${IFCONFIG} | grep inet | tail -n1 | awk '{print $2}')"

cat <<END
--------------------------------------
Current WiFi Connection
--------------------------------------

NWID:
$NWID

CHAN:
$CHAN

BSSID:
$BSSID

S/N:
$SN

IP:
$IP

END
else
cat <<END
----------------------------------
Currently Connection Test
nc google.com 443 is Down
----------------------------------
END
fi
~/Scripts/yad_wifi.sh
Code:
#!/bin/sh
yad --posx=-60 --posy=38 \
 --text="$(sh /home/jsh/Scripts/obsd_wifi.sh 2>&1)" \
 --undecorated --button=gtk-close:6
I added this as a second "button" in my tint2 panel configuration (P).
~/.config/tint2/tint2rc
Code:
#-------------------------------------
# Panel
panel_items = TSPPC
panel_size = 100% 38
-----
 #-------------------------------------
# Button 1
button = new
button_icon = /usr/local/share/icons/gnome/32x32/status/weather-overcast.png
button_tooltip = "Yakima, WA Weather"
button_padding = 6 3 0
button_max_icon_size = 24
button_lclick_command = sh ~/scripts/yad_weather.sh
button_mclick_command =
button_rclick_command = sh ~/scripts/yad_weather.sh
# Button 2
button = new
button_icon = /usr/local/share/icons/gnome/32x32/devices/network-wireless.png
button_tooltip = "Wireless Connection"
button_padding = 6 3 0
button_max_icon_size = 24
button_lclick_command = sh ~/scripts/yad_wifi.sh
button_mclick_command =
button_rclick_command = sh ~/scripts/yad_wifi.sh
For those using Gnome, KDE4 or XFCE4, you can either make a obsd_wifi.desktop file ,described above, or use yad --notification to produce a sytemtray entry
yad Notification Options
yad Notification

This is the output positioned under the wireless icon in the tint2 panel
Name:  wifi.jpg
Views: 5283
Size:  18.1 KB

Last edited by shep; 24th October 2022 at 06:35 PM. Reason: updated for yad gtk3
Reply With Quote
  #8   (View Single Post)  
Old 18th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

audio/mpd Setup
These steps are provided now that ncmpc is the default mpd client. For a quick guide on ncmpc useage;
hit the F1 key.

The mpd setup is described in this thread:
Music Player Daemon (MPD OpenBSD Howto

In ~/.config/openbox/autostart uncomment #
Code:
# Start local instance of mpd
#(sleep 2.0 && mpd ~/.config/mpd/mpd.conf) &
If you use another mpd client, set the MPD_HOST to
~/.config/mpd/socket and music directory to ~/Music

Last edited by shep; 22nd October 2022 at 12:44 AM.
Reply With Quote
  #9   (View Single Post)  
Old 28th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

sysutils/xorriso-tcktl

This details the setup of a CD/DVD/Blueray user interface based on libisoburn.

sysutils/xorriso-tcltk does not include a wrapper application that is needed to run the interface. It is provided by www/tk, version 8.5. The needed packages are
Code:
# pkg_add libisoburn xorriso-tcltk tk
Choose version 8.5 for tcl/tk. sysutils/xorriso can co-exist with xorriso-tcltk for those who wish to burn from the command line.

Add your user to the operator group and add group rw permission for /dev/rcd0*.
The interface also provides for copying from one drive to another, so if you have several drives, adjust your permission to include group rw for both drives.

For a freedesktop compliant menu entry, create ~/.local/share/applications/xorriso.desktop with the following content
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Xorriso
GenericName=Disk Burner
Comment=Optical Disk GUI
X-GNOME-FullName=Openbox Menu
Exec=xorriso-tcltk
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=drive-removable-media
Categories=Utility;
MimeType=
StartupNotify=true
Name:  xorriso.png
Views: 2864
Size:  73.1 KB

Last edited by shep; 31st December 2019 at 05:33 PM. Reason: added sharper screenshot
Reply With Quote
Old 15th March 2020
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 164
Default

Hey shep,
Any news for the (possible) next BareGui? Any others (possible) projects related to Desktop?
Reply With Quote
Old 15th March 2020
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Quote:
Originally Posted by ripe View Post
Hey shep,
Any news for the (possible) next BareGui? Any others (possible) projects related to Desktop?
I'm not aware of any changes that would prevent BareGUI installation/scripts from running in 6.7.

Under consideration:
1. Sylpheed to Claws-mail. Claws-mail offers more flexibility in regards to plugins although the older html plugins had security issues. The newer html plugin is webkitgtk4 based which is getting security updates.
2. A section on vimb/webkitgtk4. On my setup, vimb opens a page of commonly visited links. My morning routine is news, weather, markets and forums. In vimb, I can hit all of my routine sites without touching the mouse.

Would be open to any EU weather input under time and weather section.

I'm building my own jgmenu, using the latest code and running it. Upstream now has a "C" coded menu generator that does not need menu-cache. Upstream still includes a python3 based menu and the menu-cache option which I'm hoping will be phased out. The "C" coded menu generator lighter, faster and has less dependencies.

Last edited by shep; 20th October 2022 at 03:47 PM.
Reply With Quote
Old 15th March 2020
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 164
Default

Ok thank you.
https://www.bbc.com/weather
Reply With Quote
Old 19th May 2020
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 164
Default

Atl all seems OK from 6.6 to 6.7 with sysupgrade.
Reply With Quote
Old 19th May 2020
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

Thanks for the report. I'm still getting my own devices up to date and have not yet tried to do a new BareGui configuration in 6.7. I'm not aware of any major changes that need to be made.

On your BBC weather link, do you pull any animated gifs or *.txt files? If so, could you edit your post and point out the urls?
Reply With Quote
Old 19th May 2020
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bloaty McBloatFace
 
Join Date: Dec 2015
Location: London
Posts: 391
Default

The BBC weather service isn't very good any more, they switched from https://www.metoffice.gov.uk/ to the rather rubbish MeteoGroup to save money when the licence fee was frozen.

For a text-based weather service see http://www.wttr.in/

It's not as good as the Met Office forecast but it can be viewed in a terminal or from the TTY:
Code:
curl wttr.in
Not sure if that works with ftp(1).
Reply With Quote
Old 20th May 2020
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 164
Default

I didnt use the BBC weather link, just linking to you to see if it was OK for you. But I consider taking a look to Head_on_a_Stick lingk wttr.in
Reply With Quote
Old 23rd May 2020
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 164
Default

I just changed in the script of weather.sh:
Code:
#!/bin/sh
xterm -g 125x40-1+39 -T "City's Weather" -hold -e \
curl -sk http://www.wttr.in/
But I lost the icon on top task bar. In tint2rc:
Code:
#-------------------------------------
# Button 1
button = new
button_icon = /home/ripe/pictures/sun_weather.png
button_text = 
button_tooltip = "City's Weather"
button_lclick_command = ~/scripts/weather.sh
button_rclick_command = ~/scripts/weather_radar.sh
button_mclick_command = ~/scripts/weather_forecast.sh
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #000000 100
button_padding = 6 3
button_background_id = 0
button_centered = 0
button_max_icon_size = 32
I can launch it with:
Code:
./weather.sh
Peace.
Reply With Quote
Old 23rd May 2020
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,451
Default

tint2 buttons support 3 mouse options: right click, left click and middle click.

I kept adding weather sources and exceeded the 3 options. My solution was to use ~/scripts/yad_weather.sh. You can add as many locales and sources to the yad scripts as you want. I also had a wttr.in option with weather_forecast.sh. You should be able to return weather.sh to your local value and edit ~/scripts/weather_forecast.sh for the wttr.in source.

I recommend reading the wttr.in documentation as it will allow you to pick forcasts more accurately.

https://wttr.in/:help

Last edited by shep; 7th February 2021 at 01:28 AM.
Reply With Quote
Old 24th May 2020
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 164
Default

Ok I will see it. Thank you man.
Reply With Quote
Old 14th June 2022
erpete erpete is offline
Port Guard
 
Join Date: Jan 2019
Posts: 10
Default Gimmix and other stuff

I came back to BareGUI from Xfce that is kind of laggy on my computer. This Openbox session is more responsive. Any changes in program recommendation since last time?

I wanted to try Gimmix but it seems to be dead. Would Deadbeef make for a good replacement?

Would Claws-mail be preferable alternative to Sylpheed? I've rarely used this email clients and would like to give it a try.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick