mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
update weather and helpfile
This commit is contained in:
parent
b6c27ed3a0
commit
8b6a5f14a8
@ -1,7 +1,7 @@
|
|||||||
# Welcome to my Hyprland help, and tips and tricks #
|
# Welcome to my Hyprland help, and tips and tricks #
|
||||||
# If you have questions, or need help you can open issue on my github
|
# If you have questions, or need help you can open issue on my github
|
||||||
# Or you can reach me in or join on Discord that I admin
|
# Or you can reach me in or join on Discord that I admin
|
||||||
# Discord link update discord server link or you can message me directly on my discord. DC user: Ja.KooLit
|
# Discord link https://discord.gg/V2SJ92vbEN
|
||||||
# Github page: https://github.com/JaKooLit
|
# Github page: https://github.com/JaKooLit
|
||||||
|
|
||||||
Super = Windows Key
|
Super = Windows Key
|
||||||
@ -64,12 +64,16 @@
|
|||||||
|
|
||||||
# waybar customizations
|
# waybar customizations
|
||||||
- waybar font too big or too small. Edit the font-size in waybar styles located in ~/.config/hypr/waybar/styles/ . By default, it is set to 100%. After adjusting the GTK font scaling to your liking, edit all the waybar styles. Reduce or increase according to your needs. NOTE that its on percent %. You can also change to px whichever suits you.
|
- waybar font too big or too small. Edit the font-size in waybar styles located in ~/.config/hypr/waybar/styles/ . By default, it is set to 100%. After adjusting the GTK font scaling to your liking, edit all the waybar styles. Reduce or increase according to your needs. NOTE that its on percent %. You can also change to px whichever suits you.
|
||||||
|
|
||||||
- if you want 12h format instead of 24H format, edit the ~/.config/hypr/waybar/modules look for clock. delete the // and add // or delete the previous one
|
- if you want 12h format instead of 24H format, edit the ~/.config/hypr/waybar/modules look for clock. delete the // and add // or delete the previous one
|
||||||
|
|
||||||
- CPU Temperature:
|
- CPU Temperature:
|
||||||
- a.) to change from deg C to deg F , edit the ~/.config/hypr/waybar/modules look for "temperature". Change the format to "format": "{temperatureF}°F {icon}",
|
- a.) to change from deg C to deg F , edit the ~/.config/hypr/waybar/modules look for "temperature". Change the format to "format": "{temperatureF}°F {icon}",
|
||||||
- b.) to fix the temperature if not showing correctly, comment "thermal zone": 0 by putting // before. Delete the // on the "hwmon path". Refresh waybar by pressing CTRL SHIFT w. If still not showing correctly, navigate to /sys/class/hwmon/ and open each hwmon. Look for k10temp for amd. Not sure about intel cpu. and edit accordingly the hwmon path in the "temperature" waybar module.
|
- b.) to fix the temperature if not showing correctly, comment "thermal zone": 0 by putting // before. Delete the // on the "hwmon path". Refresh waybar by pressing CTRL SHIFT w. If still not showing correctly, navigate to /sys/class/hwmon/ and open each hwmon. Look for k10temp for amd. Not sure about intel cpu. and edit accordingly the hwmon path in the "temperature" waybar module.
|
||||||
- b.1) use this function to easily identify the hwmon path. Ran this in your terminal ``` for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done ```
|
- b.1) use this function to easily identify the hwmon path. Ran this in your terminal ``` for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done ```
|
||||||
|
|
||||||
|
- Weather.sh (Default weather app in waybar) edit ~/.config/hypr/scripts/Weather.sh and add your city. Make sure a major city in your Area. Delete rbn folder in ~/.cache and refresh waybar by either pressing super shift w or choose waybar layout super alt w.
|
||||||
|
|
||||||
# Hyprland configurations
|
# Hyprland configurations
|
||||||
- *Hyprland* configuration files are in `~/.config/hypr/`
|
- *Hyprland* configuration files are in `~/.config/hypr/`
|
||||||
- files located in this folder can be edited using editor of your choice.
|
- files located in this folder can be edited using editor of your choice.
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
city=
|
||||||
cachedir=~/.cache/rbn
|
cachedir=~/.cache/rbn
|
||||||
cachefile=${0##*/}-$1
|
cachefile=${0##*/}-$1
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ IFS=$'\n'
|
|||||||
|
|
||||||
cacheage=$(($(date +%s) - $(stat -c '%Y' "$cachedir/$cachefile")))
|
cacheage=$(($(date +%s) - $(stat -c '%Y' "$cachedir/$cachefile")))
|
||||||
if [ $cacheage -gt 1740 ] || [ ! -s $cachedir/$cachefile ]; then
|
if [ $cacheage -gt 1740 ] || [ ! -s $cachedir/$cachefile ]; then
|
||||||
data=($(curl -s https://en.wttr.in/$1\?0qnT 2>&1))
|
data=($(curl -s https://en.wttr.in/"$city"$1\?0qnT 2>&1))
|
||||||
echo ${data[0]} | cut -f1 -d, > $cachedir/$cachefile
|
echo ${data[0]} | cut -f1 -d, > $cachedir/$cachefile
|
||||||
echo ${data[1]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile
|
echo ${data[1]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile
|
||||||
echo ${data[2]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile
|
echo ${data[2]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user