Adding Weather Config (and bugfixes)

This commit is contained in:
SteveTinkers 2021-11-19 14:55:33 -08:00
parent 6b3d977391
commit 9309b81930
4 changed files with 110 additions and 17 deletions

View File

@ -136,7 +136,7 @@ PKGS_ARCH_DEFAULT=(
#'qt5-virtualkeyboard' # Virtual keyboard for login screen (surface devices)
'konsole' # KDE terminal
'kate' # KDE text editor
'kompare' File comparison tool (also supports meld) (also supports kdiff3)
'kompare' # File comparison tool (also supports meld) (also supports kdiff3)
'meld'
'kdiff3'
'ark' # KDE file archive tool

View File

@ -84,6 +84,81 @@ else
done
fi
# install optional weather package if configured
if [ ! -z "${openWeatherMapCityId}" ]; then
if [ -z "${openWeatherMapCityAlias}" ]; then
openWeatherMapCityAlias="Configured City"
fi
echo "configuring weather for $openWeatherMapCityAlias - $openWeatherMapCityId"
# Install plasmoids
yay -S --noconfirm plasma5-applets-eventcalendar
cd ~
git clone https://github.com/kotelnik/plasma-applet-weather-widget
cd ${HOME}/plasma-applet-weather-widget
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
sudo make install
# Configure KDE and weather plasmoids
file1=/home/titus/.config/plasma-org.kde.plasma.desktop-appletsrc
file2=/home/titus/.config/plasma_calendar_holiday_regions
sed -i 's/plugin=org.kde.plasma.digitalclock/plugin=org.kde.plasma.eventcalendar/g' $file1
sed -i 's/AppletOrder=34;4;5;6;7;18;19/AppletOrder=34;4;5;6;44;7;18;19/g' $file1
echo "[Containments][2][Applets][18][Configuration][General]
clockShowLine2=true
timerSfxFilepath=file:///usr/share/sounds/freedesktop/stereo/audio-channel-front-right.oga
v71Migration=true
v72Migration=true
[Containments][2][Applets][18][Configuration][Google Calendar]
calendarList=W10=
tasklistList=W10=
[Containments][2][Applets][18][Configuration][Weather]
openWeatherMapCityId=$openWeatherMapCityId
weatherUnits=imperial
[Containments][2][Applets][44]
immutability=1
plugin=org.kde.weatherWidget
[Containments][2][Applets][44][Configuration]
PreloadWeight=75
[Containments][2][Applets][44][Configuration][Appearance]
inTrayActiveTimeoutSec=8000
renderMeteogram=true
[Containments][2][Applets][44][Configuration][ConfigDialog]
DialogHeight=540
DialogWidth=720
[Containments][2][Applets][44][Configuration][General]
lastReloadedMsJson={\"cache_5a5440a6c6026f3e61c6aee598cae8dc\":1637347842409,\"cache_3c6fc338a6d3824bb170a9f9e7628698\":1637348083971}
places=[{\"providerId\":\"owm\",\"placeIdentifier\":\"$openWeatherMapCityId\",\"placeAlias\":\"$openWeatherMapCityAlias\"}]
reloadIntervalMin=20
[Containments][2][Applets][44][Configuration][Units]
pressureType=inHg
temperatureType=fahrenheit
windSpeedType=mph" >> $file1
echo "[General]
selectedRegions=us_en-us" >> $file2
else
echo "no weather configured"
fi
echo "-------------------------------------------------------------------------"
echo "-- Setup User Theme --"
@ -113,14 +188,7 @@ InputMethod=qtvirtualkeyboard
EOF
'
# In case someone uses
'$HOME/.config/dolphinrc'
# In case someone installs syncthing
username=$(whoami)
systemctl enable syncthing@$username.service
# In case someone doesn't delete ffmpegthumbs (video thumbnails)
# ffmpegthumbs (video thumbnails) for Dolphin
# This is dolphin defaults + ffmpegthumbs
echo "[PreviewSettings]" >> $HOME/.config/dolphinrc
echo "Plugins=appimagethumbnail,audiothumbnail,comicbookthumbnail,cursorthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,directorythumbnail,fontthumbnail,imagethumbnail,jpegthumbnail,kraorathumbnail,windowsexethumbnail,windowsimagethumbnail,opendocumentthumbnail,svgthumbnail,textthumbnail,ffmpegthumbs" >> $HOME/.config/dolphinrc
@ -130,4 +198,8 @@ echo "MaximumRemoteSize=10485758951424" >> $HOME/.config/kdeglobals
#echo "[General]" >> $HOME/.config/dolphinrc
#echo "RememberOpenedTabs=false" >> $HOME/.config/dolphinrc
# In case someone installs syncthing
username=$(whoami)
systemctl enable syncthing@$username.service
echo "ready for 'arch-chroot /mnt /root/ArchTitus/3-post-setup.sh'"

View File

@ -3,6 +3,13 @@ username=titus
password=1234
hostname=host
# Configuring this section enables showing weather on the taskbar
# and forecasts on the calendar
# Go to 'https://openweathermap.org/find' to get your City ID and Alias
# This example is for Chicago.
#openWeatherMapCityId=4887398
#openWeatherMapCityAlias="Chicago, US"
PKGS_AUR=(
'brave-bin' # Brave Browser
'dxvk-bin' # DXVK DirectX to Vulcan
@ -33,15 +40,16 @@ PKGS_ARCH=(
'gufw' # manage netfilter firewall
#...MAIN TOOLS...
'cmatrix' # matix screen
'cmatrix' # matrix screen
'cronie' # schedule tasks/jobs
'htop' # see running processes
'dmidecode' # see system technical specs
'lsof' # list open files for running Unix processes
'nano' # a famous text editor
'nano' # a famous text editor...easy for newbies, not as powerful as vim
'neofetch' # displays information about your computer
'openssh' # remote login another system with the SSH protocol
'os-prober' # detect other OSes on a set of drives (for grub)
'vim' # a famous text editor
'vim' # a famous text editor...hard for newbies
'wget' # get files from web
'git' # get files from web, think github or gitlab
'bash-completion' # programmable completion for the bash shell
@ -52,12 +60,15 @@ PKGS_ARCH=(
'pacman-contrib' # scripts and tools for pacman systems
'rsync' # sync files
'reflector' # sort and filter pacman mirror list
'snapper' # managing BTRFS and LVM snapshots tool...also installed by snap-pac and snapper-gui-git
# btrfs can't create snapshots of a volume that also contains a swapfile. I fixed this by moving my swapfile to its own subvolume.
'snapper' # managing BTRFS and LVM snapshots tool...(installed by snap-pac and snapper-gui-git as well)
#...KDE...
#'qt5-virtualkeyboard' # Virtual keyboard for login screen (surface devices)
'konsole' # KDE terminal
'kate' # KDE text editor
'kompare' # File comparison tool (also supports meld) (also supports kdiff3)
'meld'
'kdiff3'
'ark' # KDE file archive tool
'p7zip' # 7Z format support
'unrar' # RAR decompression support
@ -85,7 +96,7 @@ PKGS_ARCH=(
'lutris' # gaming platform
'okular' # pdf viewer
'qemu' # a hypervisor (virtual machines)
'steam'
'steam' # games
'gamemode' # gaming optimizations
'synergy' # share kebyard and mouse amung systems
'virt-manager' # another hypervisor (create virtual machines)
@ -122,8 +133,8 @@ PKGS_ARCH=(
'fuseiso' # mount ISO images
#...SAMBA-WINDOWS NETWORK SHARE SUPPORT...
'samba'
'smbnetfs'
#'samba'
#'smbnetfs'
#...UNNEEDED to explicitly install...
'unzip' # file compression installed by other things when needed as a dependency

View File

@ -84,6 +84,16 @@ fi
echo "" >> $configFileName
echo "# Configuring this section enables showing weather on the taskbar" >> $configFileName
echo "# and forecasts on the calendar" >> $configFileName
echo "# Go to 'https://openweathermap.org/find' to get your City ID and Alias" >> $configFileName
echo "# This example is for Chicago." >> $configFileName
echo "#openWeatherMapCityId=4887398" >> $configFileName
echo "#openWeatherMapCityAlias=\"Chicago, US\"" >> $configFileName
# Read default packages from scrips into array...
# This section of code is not lifted from any other scrips in this repo...custom for this need.